section.slider {
    height: 600px;
    background: url("../images/slider.svg") no-repeat center center;
    background-color: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
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;
}
.fancy-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 12px 20px 20px;
}

/* خط اصلی */
.fancy-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    border-radius: 10px;
}

/* خط پیشرفت */
.fancy-progress {
    position: absolute;
    top: 40px;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #0023D4, #6610f2);
    border-radius: 10px;
    transition: 0.4s ease;
}

/* هر مرحله */
.fancy-step {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 2;
}

/* شماره مرحله */
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #FFDF3B;
    color: #0023D4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 20px;
    font-weight: 800;
    transition: 0.4s;
}

/* کارت محتوا */
.step-card {
    margin-top: 20px;
    padding: 22px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    opacity: 0.4;
    transform: translateY(10px);
    transition: 0.4s ease;
}

.step-card h5 {
    font-weight: 800;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    line-height: 1.9;
    color: #444;
}

/* فعال */
.fancy-step.active .step-card {
    opacity: 1;
    transform: translateY(0);
}

.fancy-step.active .step-number {
    background: linear-gradient(135deg, #0023D4, #6610f2);
    color: #fff;
    box-shadow: 0 0 0 8px rgba(255, 223, 59, 0.25);
}

/* مراحل قبل */
.fancy-step.done .step-number {
    background: #0023D4;
    color: #fff;
}

section.slider .btn-primary {
    position: relative;
    color: #0023D4;
    background: #FFDF3B;
    font-size: 18px;
    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: -130px;
    z-index: 1000;
}
section.services{
    background: #f3f3f3;
    padding-top: 32px;
    padding: 32px 0 32px 0;
}

section.services  .item{
    height: 432px;
    text-align: right;
    direction: rtl;
    padding: 16px;
    background: #fff;
    border-radius: 20px;
}
section.services .item span.title{
    margin: 16px auto 16px auto;
    display: block;
}
section.services .item-inner {
    flex: 1; /* محتوای بالا ارتفاع قابل تغییر داشته باشد */
}
section.services .item ul{
    font-size: 13px;
    line-height: 23px;
    padding-right: 16px;
    height: 145px;
    overflow: hidden;
}
section.services span.section-slug{
    margin-bottom: 32px;
}
section.services img{
    border-radius: 10px;
}
.item-footer {
    margin-top: auto; /* دکمه همیشه پایین بماند */
    text-align: center;
}
.services-btn {
    color: #0023D4;
    background: #FFDF3B;
    font-size: 14px;
    width: 80%;
    border: none;
    z-index: 1;
    border-radius: 10px;
    margin-top: 23px;
    text-decoration: none;
    position: absolute;
    right: 34px;
    bottom: 20px;
    padding: 6px;
}

.services-btn img{
    width: auto !important;
    height: 20px;
}
.services-btn::before{
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #0023D4;
    border-radius: 15px;
    z-index: -1;
}
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;
    background: #3B5BFF;
    background-image: url("../images/textcher-left.svg");
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88%;
    border-top-left-radius: 70px;
    border-bottom-left-radius: 70px;
    background-repeat: no-repeat;
    background-position-x: -20px;
    height: 479px;
    background-position-y: -12px;
    margin-left: 173px;
}
section.customer h2{
    color: #fff;
    margin-bottom: 24px;
}
section.customer p{
    color: #fff;
    text-align: justify;
    direction: rtl;
    line-height: 40px;
}
section.time-line{
    margin: 64px 0 64px 0;
}


section.time-line h2{
    margin: 0 0 32px 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 {
    position: relative;
    height: 479px;
    margin-right: 173px;

    background-color: #3B5BFF;

    border-top-right-radius: 70px;
    border-bottom-right-radius: 70px;

    overflow: hidden;

    display: flex;
    align-items: center;
}

/* لایه تزئینی شبیه SVG سمت راست */
section.brands::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -10px;

    width: 420px;
    height: 110%;

    background: url("../images/textcher-right.svg") no-repeat;
    background-position: right center;
    background-size: contain;

    opacity: 0.6;
    pointer-events: none;
}

/* محتوای داخلی بیاد روی بکگراند */
section.brands .container {
    position: relative;
    z-index: 2;
}


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;
    border-radius: 10px;
}
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;
}
.carousel {
    display: flex;
    transition: transform 0.5s ease;
    animation: scroll 20s linear infinite;
}

.carousel__item {
    min-width: 100%;
}
.carousel:hover {
    animation-play-state: paused;
}

section.posts .post-card.small .post-content {
    flex: 1;
    margin-right: 15px;
}
.accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}
.faq-section .accordion-item{
    border: 1px solid #d0d4ff;
    margin-bottom: 16px;
    border-radius: 10px;
}
.faq-section div.text-center{
    margin-bottom: 64px;
}
.faq-section button{
    background: transparent;
    border-radius: 10px;
}
.faq-section {
    margin: 64px auto 64px auto;
}
/* Desktop Large */
@media (min-width: 1200px) {}

/* Small Desktop / Laptop */
@media (max-width: 1200px) and (min-width: 992px) {}
/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {

}
/* Mobile */
@media (max-width: 768px) {
    section.slider {
        padding-top: 100px;
        background: #3B5BFF;
        height: 650px;
    }
    section.slider span {
        font-size: 20px;
        margin-bottom: 0;
    }
    section.slider strong {
        font-size: 20px;
        margin-right: 1px;
    }
    section.slider p {
        font-size: 16px;
        line-height: 37px;
    }
    section.slider .btn-primary {
        margin-top: 0;
        width: 100%;
        margin-bottom: 42px;
    }
    section.customer {
        height: auto;
        background-image: none;
        margin-left: auto;
        width: auto;
        padding: 62px 0px;
    }
    section.customer h2 {
        color: #fff;
        margin-bottom: 24px;
        margin-top: 46px;
    }
        .fancy-timeline {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            position: relative;
        }

        .fancy-step {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            width: 100%;
            margin-bottom: 24px;
            position: relative;
        }

        /* خط وسط تایم‌لاین رو مخفی کن */
        .fancy-line,
        .fancy-progress {
            display: none;
        }

        .step-number {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            margin-left: 0px;
            margin-right: 20px;
        }

        .step-card {
            width: 100%;
            margin-top: 0;
            padding: 10px;
        }
    section.brands {
        margin-right: auto;
    }
    section.brands h2 {
        width: 100%;
        margin-bottom: 0;
    }
    section.brands .owl-nav {
        top: -49px;
    }
    section.posts h2 {
        width: 65%;
    }
    section.posts .post-card {
        margin-bottom: 32px;
    }
    .faq-section {
        margin: 0px auto 64px auto;
    }
    .faq-section .accordion-button.collapsed {
        font-size: 14px;
        text-align: right;
    }
}