*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl !important;
        unicode-bidi: embed !important;  
        word-break: normal !important;       
        overflow-wrap: anywhere !important;
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

.comp2, .comp3, .comp4{
    width: 100%;
    max-width: 2000px;
    margin: auto;
    padding: 80px 0;
    opacity: 0;
    transform: translateY(50px);
}

.box2-k, .box3-k, .box4-k{
    padding: 0 20px;
}

.title2-k, .title3-k, .title4-k {
    opacity: 0;
    transform: translateY(30px);
    font-size: 20px;
}

.name-maya{
    color: rgb(130, 84, 225);
}

.title2-k h1, .title3-k h1, .title4-k h1 {
    margin-bottom: 15px;
    font-weight: 800;
}

.see-all-2, .see-all-3, .see-all-4{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin: 70px auto 0;
    padding: 10px 20px;
    color: black;
    text-align: center;
    text-decoration: none;
    border: 0.2px solid lightgray;
    border-radius: 50px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 10px;

}

.see-all-2 svg, .see-all-3 svg, .see-all-4 svg{
    transition: all 0.4s ease;
}

.see-all-2:hover, .see-all-3:hover, .see-all-4:hover{
    color: #fff;
    transform: translateY(-2px);
    background-color: white;
}

.see-all-2:hover svg, .see-all-3:hover svg, .see-all-4:hover svg{
    fill: #fff;
}

.see-all-2::before, .see-all-3::before, .see-all-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #211835;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    border-radius: 8px;
}

.see-all-2:hover::before, .see-all-3:hover::before, .see-all-4:hover::before {
    width: 100%;
}


.sbRealtedPosts-2, .sbRealtedPosts-3, .sbRealtedPosts-4 {
    max-width: 1280px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-top: 75px;
    margin: auto;
    opacity: 0;
    transform: translateY(40px);
}

.sbRealtedPost-2, .sbRealtedPost-3, .sbRealtedPost-4 {
    background-color: #fff;
    width: 300px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #d9d9d9;
    transition: all 0.1s ease, transform 0.1s ease, scale 0.1s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: rgba(99, 99, 99, 0.094) 0px 2px 8px 0px; 
    transition: 0.3s; 
}

.sbRealtedPost-2:hover, .sbRealtedPost-3:hover, .sbRealtedPost-4:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    scale: 1.05 !important; 
    border-bottom-right-radius: 0;
}

.sbRelatedPostImage-2, .sbRelatedPostImage-3, .sbRelatedPostImage-4 {
    width: 100%;
    max-height: 200px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.sbRealtedPost-2 div, .sbRealtedPost-3 div, .sbRealtedPost-4 div {
    padding: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 30px 0 65px;
}

.sbRealtedPost-2 div p, .sbRealtedPost-3 div p, .sbRealtedPost-4 div p {
    height: 100%;
}

.sbRealtedPost-2 h3, .sbRealtedPost-3 h3, .sbRealtedPost-4 h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.read-more-2, .read-more-3, .read-more-4 {
    bottom: 13px;
    position: absolute;
    left: 13px;
    text-decoration: none;
    background: #211835;
    border: 0.1px solid #211835;
    color: white;
    padding: 0px 15px 7px 15px;
    border-radius: 30px;
    transition: 0.2s;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.read-more-2:hover, .read-more-3:hover, .read-more-4:hover {
    color: black;
    background-color: white;
}

@media screen and (max-width: 1024px) {
    .title2-k, .title3-k, .title4-k {
        font-size: 17px;
    }
}

@media screen and (max-width: 768px){
    .title2-k, .title3-k, .title4-k {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
}
