/* Hero Slider — Full-width Swiper + Parallax + Coverflow */

/* Homepage padding override */
header + .home-page {
    padding-top: 100px;
}

@media (max-width: 992px) {
    header + .home-page {
        padding-top: 75px;
    }
}

/* Hide all slides except first before Swiper init */
.hero-slider:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

.hero-slider:not(.swiper-initialized) .hero-slider__pagination,
.hero-slider:not(.swiper-initialized) .hero-slider__nav {
    opacity: 0;
}

.hero-slider {
    width: 100%;
    height: 560px;
    margin: 10px 0 60px;
    overflow: hidden;
    position: relative;
}

.hero-slider .swiper-wrapper {
    align-items: center;
}

.hero-slider .swiper-slide {
    width: 1140px;
    max-width: calc(100% - 60px);
    transition: transform 0.6s ease, filter 0.6s ease, opacity 0.6s ease;
    transform: scale(0.88);
    filter: blur(4px);
    opacity: 0.5;
    border-radius: 16px;
    overflow: hidden;
}

.hero-slider .swiper-slide-active {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
    z-index: 2;
}

.hero-slide {
    display: flex;
    align-items: center;
    height: 420px;
    gap: 40px;
    text-align: left;
    padding: 40px 48px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.hero-slide__content {
    flex: 1 1 50%;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero-slide__image {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-slide__image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Title */
.hero-slide__title {
    font-weight: 700;
    font-size: 36px;
    line-height: 46px;
    margin: 0 0 24px;
    color: #fff;
}

/* Text */
.hero-slide__text {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.6;
}

.hero-slide__text p {
    margin: 0;
}

.hero-slide__text a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    transition: text-decoration-color 0.3s ease;
}

.hero-slide__text a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

/* Buttons */
.hero-slide__actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-slide__actions .btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-slide__actions .btn-primary-fill {
    background: #7487DD;
    border: 1px solid #7487DD;
    color: #fff;
}

.hero-slide__actions .btn-primary-fill:hover {
    background: #5a6fc7;
    border-color: #5a6fc7;
    color: #fff;
}

.hero-slide__actions .btn-outline-light-custom {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.hero-slide__actions .btn-outline-light-custom:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.hero-slide__actions .btn i {
    margin-left: 6px;
    font-style: normal;
    transition: transform 0.3s ease;
}

.hero-slide__actions .btn:hover i {
    transform: translateX(4px);
}

/* Navigation arrows */
.hero-slider__prev,
.hero-slider__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    z-index: 10;
    width: 48px;
    height: 48px;
    min-height: unset;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
    backdrop-filter: blur(12px);
    outline: none;
    padding: 0;
    opacity: 0;
}

.hero-slider__prev {
    left: calc(50% - 570px - 58px);
}

.hero-slider__next {
    right: calc(50% - 570px - 58px);
}

.hero-slider:hover .hero-slider__prev,
.hero-slider:hover .hero-slider__next {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.hero-slider__prev:hover,
.hero-slider__next:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.hero-slider__prev svg,
.hero-slider__next svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-slider__nav {
    display: none;
}

/* Pagination dots */
.hero-slider__pagination {
    position: absolute;
    bottom: 22px;
    left: 25% !important;
    transform: translateX(-50%);
    right: auto !important;
    top: auto !important;
    width: auto !important;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.hero-slider__pagination .swiper-pagination-bullet {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    border-radius: 2px;
    transition: width 0.4s ease, background 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-slider__pagination .swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.hero-slider__pagination .swiper-pagination-bullet-active {
    width: 44px;
}

.hero-slider__pagination .swiper-pagination-bullet-active::after {
    animation: hero-progress 8s linear forwards;
}

@keyframes hero-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Progress bar — hidden */
.hero-slider__progress {
    display: none;
}

/* -- Responsive -- */
@media (max-width: 1200px) {
    .hero-slider {
        height: 440px;
    }

    .hero-slider .swiper-slide {
        width: 960px;
    }

    .hero-slider__prev {
        left: calc(50% - 480px - 58px);
    }

    .hero-slider__next {
        right: calc(50% - 480px - 58px);
    }

    .hero-slide {
        height: 360px;
        padding: 32px 36px;
    }

    .hero-slide__title {
        font-size: 30px;
        line-height: 40px;
    }
}

@media (max-width: 991px) {
    .hero-slider {
        height: auto;
        margin: 10px 0 40px;
    }

    .hero-slider .swiper-slide {
        max-width: none;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
        border-radius: 0;
    }

    .hero-slide {
        height: auto;
        min-height: 300px;
        padding: 28px 32px;
        border-radius: 0;
        border: none;
        background: none;
    }

    .hero-slide__title {
        font-size: 26px;
        line-height: 34px;
    }

    .hero-slider__prev,
    .hero-slider__next {
        display: none;
    }

    .hero-slider__pagination {
        left: 50% !important;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .hero-slide {
        flex-direction: column-reverse;
        gap: 20px;
        padding: 24px 20px 50px;
    }

    .hero-slide__content,
    .hero-slide__image {
        flex: 1 1 100%;
        width: 100%;
    }

    .hero-slide__title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 12px;
    }

    .hero-slide__text {
        font-size: 14px;
    }

    .hero-slide__actions {
        flex-direction: column;
        margin-top: 20px;
    }

    .hero-slide__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-slide__image img {
        max-height: 200px;
        margin: 0 auto;
    }

    .hero-slider__prev,
    .hero-slider__next {
        width: 36px;
        height: 36px;
    }

    .hero-slider__prev {
        left: 12px;
    }

    .hero-slider__next {
        right: 12px;
    }
}
