/* ==== تیتر و توضیح سکشن ==== */
.section-slider-box .section-title {
    text-align: center;
    font-weight: 600;
    font-size: 36px;
    line-height: 100%;
    color: rgba(4, 11, 41, 1);
    margin-bottom: 16px
}

.section-slider-box .section-des {
    font-size: 16px;
    text-align: center;
    color: rgba(107, 103, 122, 1)
}

/* ==== کارت اسلایدر ==== */
.slider-box {
    position: relative;
    overflow: hidden;
    height: 100%
}

.slider-box .slider-box-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}


/* لایه‌ی تیره روی کل تصویر (نمای معمولی و هاور) */
.slider-box-img::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .3);
    pointer-events: none;
}

/* بلور تدریجی پایین تصویر (مثل Figma progressive blur) */
.blur-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Safari نیاز به یک پس‌زمینه‌ی اندک دارد تا backdrop-filter فعال شود */
    background: rgba(0, 0, 0, 0.001);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 58.04%, rgba(0, 0, 0, 1) 91.61%, rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 41%) 55.04%, rgba(0, 0, 0, 1) 91.61%, rgba(0, 0, 0, 1) 100%);
}

/* کانتنت روی تصویر */
.slider-box-content {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
    pointer-events: none;
    transition: left .45s ease, transform .45s ease, gap .35s ease
}

.slider-box-content img {
    margin: 0;
    transform: scale(.95);
    transition: transform .45s ease, filter .45s ease
}


.slider-box-title {
    font-weight: 700;
    text-align: center;
    font-size: 18px;
    transition: .3s;
    color: #fff
}
.slider-box-content  .link__title,
.slider-box-content p {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    clip-path: inset(0 0 0 100%);
    transform: translateY(6px);
    transition:
        opacity .45s ease .1s,
        clip-path .55s cubic-bezier(.2, .7, .2, 1) .1s,
        transform .45s ease .1s,
        max-height .45s ease;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #fff;
    display: block;
    max-width: 100%;
}
.slider-box-content .link__title {
    color: rgba(188, 204, 220, 1);
    margin-top: 0.5rem;
    font-size: 13px;
}
.slider-box-swiper {
    margin-top: 48px
}

.slider-box-swiper .swiper-slide {
    transition: width .45s ease, height .45s ease, margin .45s ease;
    height: 359px;
}


/* دکمه‌های ناوبری */
.slider-box-swiper .swiper-button-next,
.slider-box-swiper .swiper-button-prev {
    z-index: 3
}

.slider-box-swiper .swiper-button-next i::before,
.slider-box-swiper .swiper-button-prev i::before {
    color: #fff
}

.section-slider-box i {
    font-size: 20px
}

.slider-box-img {
    height: 100%;
    width: 100%;
    display: block;
}

.dark-layer {
    position: absolute;
    inset: 0;
    background: rgba(70, 88, 106, 0.5);
    /* 👈 این همون رنگیه که گفتی */
    pointer-events: none;
    z-index: 1;
}

/* لایه‌ی بلور تدریجی پایین */
.blur-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: rgba(0, 0, 0, 0.001);
    /* برای فعال کردن blur در Safari */
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 58.04%,
            rgba(0, 0, 0, 0.5) 75%,
            rgba(0, 0, 0, 1) 91.61%,
            rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 58.04%,
            rgba(0, 0, 0, 0.5) 75%,
            rgba(0, 0, 0, 1) 91.61%,
            rgba(0, 0, 0, 1) 100%);
}


/* ==== دسکتاپ (طبق طرح در هاور) ==== */
@media (min-width:991px) {

    /* کارت پهن می‌شود */
    .slider-box-swiper .swiper-slide:hover {
        width: 49% !important
    }


    /* محتوا به چپ می‌لغزد و لوگو راست می‌ایستد */
    .slider-box-swiper .swiper-slide:hover .slider-box-content {
        right: 24px;
        transform: none;
        gap: 20px;
        flex-direction: row;
        width: 90%;
    }

    .slider-box-swiper .swiper-slide:hover .slider-box-title {
        text-align: right
    }


    .slider-box-swiper .swiper-slide:hover .slider-box-content img {
        transform: scale(1);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25))
    }

    .slider-box-swiper .swiper-slide:hover .slider-box-content .link__title ,
    .slider-box-swiper .swiper-slide:hover .slider-box-content p {
        opacity: 1;
        visibility: visible;
        clip-path: inset(0 0 0 0);
        transform: translateY(0);
        max-height: 200px;
        overflow: visible;
    }
}

/* ==== موبایل ==== */
@media (max-width:991px) {

    .slider-box {
        height: max-content;
    }

    .slider-box-img {
        position: relative;
    }

    .slider-box-swiper .swiper-slide {
        height: auto
    }

    .slider-box-img::before {
        height: 100%;
    }

    .slider-box-content {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-top: 30px
    }

    .slider-box-title a {
        color: rgba(42, 45, 48, 1)
    }

    .slider-box-title {
        text-align: right
    }

    .slider-box-content p {
        color: rgba(132, 143, 153, 1);
        opacity: 1;
        clip-path: none;
        transform: none;
        max-height: max-content;
        visibility: visible;
    }

    .slider-box-swiper .swiper-button-next,
    .slider-box-swiper .swiper-button-prev {
        top: 35%
    }

    .aboutus-slide-image::before {
        content: "";
        position: absolute;
        inset: 0;
        backdrop-filter: blur(77px);
        -webkit-backdrop-filter: blur(48px);
        background: rgba(0, 0, 0, 0.25);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 58.04%, rgba(0, 0, 0, 1) 91.61%, rgba(0, 0, 0, 1) 100%);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 4.04%, rgba(0, 0, 0, 0.8) 82.61%, rgba(0, 0, 0, 1) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .slider-box-img::before {
        display: none;
    }

    .blur-layer {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 49.04%, rgba(0, 0, 0, 0.5) 63%, rgba(0, 0, 0, 1) 75.61%, rgba(0, 0, 0, 1) 100%);
    }
}