section.slider {
    height: 790px;
    background: url(../images/slider.svg) no-repeat center center;
    background-color: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
}
section.slider .carousel-inner {
    margin-top: -100px;
}
section.slider span{
    font-size: 56px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 32px;
    display: inline-flex;
}
section.slider strong{
    font-size: 56px;
    font-weight: 600;
    color: #FFDF3B;
    margin-right: 10px;
}
section.slider p{
    font-weight: 400;
    font-size: 32px;
    line-height: 54px;
    color: #fff;
    text-align: justify;
    direction: rtl;
}

section.slider .btn-primary {
    position: relative;
    color: #0023D4;
    background: #FFDF3B;
    font-size: 18px;
    width: 150px;
    border: none;
    z-index: 1;
    border-radius: 10px;
    margin-top: 32px;
}

section.slider .btn-primary::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #fff;
    border-radius: 15px;
    z-index: -1;
}

section.slider .btn-primary img{
    margin-right: 10px;
}
section.slider .carousel-indicators [data-bs-target]{
    background-color: #3B5BFF;
}
.carousel-indicators .active {
    opacity: 1;
    background-color: #FACC15 !important;
    width: 100px;
}
section.slider .carousel-indicators {
    bottom: -220px;
    z-index: 1000;
}
section.services{
    background: #f3f3f3;
    padding-top: 32px;
    padding: 32px 0 32px 0;
}
section.services  .item{
    background-image: url("../images/services-bg.svg");
    background-position: center;
    height: 450px;
    text-align: right;
    direction: rtl;
    padding: 16px;
}
section.services .item span.title{
    margin-top: 16px;
    display: block;
}
section.services .item ul{
    font-size: 13px;
    line-height: 23px;
    padding-right: 16px;
    margin-top: 8px;
}
section.services span.section-slug{
    margin-bottom: 32px;
}
.services-btn {
   background: url("../images/services-btn.svg");
    display: block;
    height: 200px;
    text-align: center;
    background-repeat: no-repeat;
    background-position: top;
    margin-top: 2px;
    padding-top: 20px;
    text-decoration: none;
    transition: ease-in 0.5s;
}

.services-btn:hover {
    background: url("../images/services-hover-btn.svg");
    display: block;
    height: 200px;
    text-align: center;
    background-repeat: no-repeat;
    background-position: top;
    margin-top: -10px;
    padding-top: 20px;
    text-decoration: none;
    color: #fff;
    transition: ease-in 0.5s;
}
section.about-us{
    padding: 64px 0 32px 0;
}
section.about-us h2{
    margin-bottom: 32px;
}
section.about-us p{
    color: #383838;
    direction: rtl;
    text-align: justify;
    line-height: 32px;
}
section.customer{
    text-align: right;
    height: 500px;
    background: url("../images/customer-bg.svg") no-repeat center center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position-x: right;
}
section.customer h2{
    color: #fff;
    margin-bottom: 24px;
}
section.customer p{
    color: #fff;
    text-align: justify;
    direction: rtl;
    line-height: 40px;
}
section.our-team{
    margin: 64px 0 64px 0;
}
section.our-team .item{
    border-radius: 10px;
    border: 1px solid #a1a1a1;
    padding: 32px 0 32px 0;
}
section.our-team .item img{
    display: initial;
    width: auto;
}
section.our-team h2{
    margin: 0 0 32px 0;
}
section.our-team .item span{
    display: flex;
    justify-content: center;
}
section.our-team .item  .title {
    font-weight: 700;
    margin: 32px 0 16px 0;
}
section.our-team .item  .position {
    font-weight: 400;
    color: #3B5BFF;
    margin: 16px 0 16px 0;
}

section.testimonials{
    padding: 174px 0 174px 0;
    background: #F9FAFB;
}
section.testimonials .wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
}

section.testimonials .carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

section.testimonials .carousel__item {
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    opacity: 0;
    filter: drop-shadow(2px 3px 8px #eee);
    will-change: transform, opacity;
    -webkit-animation: carousel-animate-vertical 27s linear infinite;
    animation: carousel-animate-vertical 27s linear infinite;
    border-left: 6px solid #FFDF3B;
    border-radius: 16px;
}

section.testimonials .carousel__item:nth-child(1) {
    -webkit-animation-delay: calc(3s * -1);
    animation-delay: calc(3s * -1);
}

section.testimonials .carousel__item:nth-child(2) {
    -webkit-animation-delay: calc(3s * 0);
    animation-delay: calc(3s * 0);
}

section.testimonials .carousel__item:nth-child(3) {
    -webkit-animation-delay: calc(3s * 1);
    animation-delay: calc(3s * 1);
}

section.testimonials .carousel__item:nth-child(4) {
    -webkit-animation-delay: calc(3s * 2);
    animation-delay: calc(3s * 2);
}

section.testimonials .carousel__item:nth-child(5) {
    -webkit-animation-delay: calc(3s * 3);
    animation-delay: calc(3s * 3);
}

section.testimonials .carousel__item:nth-child(6) {
    -webkit-animation-delay: calc(3s * 4);
    animation-delay: calc(3s * 4);
}

section.testimonials .carousel__item:nth-child(7) {
    -webkit-animation-delay: calc(3s * 5);
    animation-delay: calc(3s * 5);
}

section.testimonials .carousel__item:nth-child(8) {
    -webkit-animation-delay: calc(3s * 6);
    animation-delay: calc(3s * 6);
}

section.testimonials .carousel__item:last-child {
    -webkit-animation-delay: calc(-3s * 2);
    animation-delay: calc(-3s * 2);
}



section.testimonials .carousel__item-body {
    width: 100%;
    background-color: #fff;
    border-radius: 14px;
    padding: 16px 20px 16px;
    text-align: justify;
    line-height: 32px;
    direction: rtl;

}
section.testimonials .carousel__item-body img{
    display: inline-flex;
}
section.testimonials .title {
    margin: 10px;
    display: inline-flex;
    justify-content: right;
    font-size: 14px;
}
section.testimonials .position {
    color: #3B5BFF;
    font-size: 14px;
    float: left;
    margin-top: 10px;
}
section.testimonials div.bg{
    background: url("../images/testimonials.svg");
    text-align: center;
    background-position: center;
    background-repeat: no-repeat;
    height: 310px;
}
section.testimonials div.bg h2{
    font-size: 56px;
    line-height: 68px;
    padding-top: 70px;
}
section.testimonials div.bg h2 strong{
    color: #3B5BFF;
}
@-webkit-keyframes carousel-animate-vertical {
    0% {
        transform: translateY(100%) scale(0.5);
        opacity: 0;
        visibility: hidden;
    }
    3%, 11.1111111111% {
        transform: translateY(100%) scale(0.7);
        opacity: 0.4;
        visibility: visible;
    }
    14.1111111111%, 22.2222222222% {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
    25.2222222222%, 33.3333333333% {
        transform: translateY(-100%) scale(0.7);
        opacity: 0.4;
        visibility: visible;
    }
    36.3333333333% {
        transform: translateY(-100%) scale(0.5);
        opacity: 0;
        visibility: visible;
    }
    100% {
        transform: translateY(-100%) scale(0.5);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes carousel-animate-vertical {
    0% {
        transform: translateY(100%) scale(0.5);
        opacity: 0;
        visibility: hidden;
    }
    3%, 11.1111111111% {
        transform: translateY(100%) scale(0.7);
        opacity: 0.4;
        visibility: visible;
    }
    14.1111111111%, 22.2222222222% {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
    25.2222222222%, 33.3333333333% {
        transform: translateY(-100%) scale(0.7);
        opacity: 0.4;
        visibility: visible;
    }
    36.3333333333% {
        transform: translateY(-100%) scale(0.5);
        opacity: 0;
        visibility: visible;
    }
    100% {
        transform: translateY(-100%) scale(0.5);
        opacity: 0;
        visibility: hidden;
    }
    }
section.brands{
    text-align: right;
    height: 500px;
    background: url("../images/brands-bg.svg") no-repeat center center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position-x: 0;
    width: 80%;
}
section.brands h2 {
    width: 93%;
    color: #fff;
    margin-bottom: 32px;
}
section.brands h2:before{
    border-bottom: none;
}
section.brands .owl-carousel .owl-item img {
    width:auto;
}
section.brands .owl-carousel .item {
    display: flex;
    justify-content: center;
    box-shadow: 0 0 20px 0px rgba(255, 255, 255, 0.6);
    margin: 30px; /* ایجاد فضا تا سایه دیده بشه */
    border-radius: 12px;
    position: relative;
    z-index: 1;
    background: #5470FF;
}
section.brands .owl-carousel.owl-theme.owl-loaded.owl-drag {
    width: 94%;
}
section.posts {
    direction: rtl;
}

section.posts .post-card {
    position: relative;
    border: 1px solid #d0d4ff;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

section.posts .post-card.small {
    height: 160px;
}
section.posts small{
    margin-left: auto;
}
section.posts i{
    margin-left: 10px;
}
section.posts h2{
    width: 90%;
}
section.posts .post-card.main {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 380px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    color: #fff;
}

/* ✅ اورلی آبی روی تصویر */
section.posts .post-card.main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(41, 90, 255, 0) 0%, rgba(41, 90, 255, 0.85) 100%);
    z-index: 1;
}

/* ✅ متن و فلش بیاد بالای اورلی */
section.posts .post-card.main .post-content,
section.posts .post-card.main .post-arrow {
    position: absolute;
    z-index: 2;
}

section.posts .post-card.main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


section.posts .post-card.main .post-content {
    position: absolute;
    bottom: 20px;
    right: 30px;
}
section.posts .post-card.main{
    padding: 0 !important;
    height: auto;
}
section.posts .post-card.main .post-arrow {
    position: absolute;
    bottom: 6px;
    left: 6px;
    color: #fff;
    font-size: 50px;
}

section.posts .post-card.small .post-img img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
}

section.posts .post-card.small .post-content {
    flex: 1;
    margin-right: 15px;
}
