/* ===================================================================
   HERO.CSS - Full-bleed Hero Slider (Misk Hub style)
   Full-width, 80vh, video/image support, Swiper.js integration
   =================================================================== */

/* ===== HERO SLIDER (Full-bleed) ===== */
.hero-slider {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 80vh;
    min-height: 520px;
    max-height: 900px;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(135deg, #2F39A9 0%, #2E6FA0 100%);
}

/* Swiper Container */
.hero-slider .swiper-container,
.hero-slider .swiper {
    width: 100%;
    height: 100%;
}

/* Slides */
.hero-slider .swiper-slide,
.hero-slider .hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider .swiper-slide-active,
.hero-slider .hero-slide.active {
    z-index: 2;
}

/* Slide background */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 32%;
    background-repeat: no-repeat;
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.05);
}

/* Slide overlay — dark, darkest at the center text block, lighter at the edges */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 34, 0.35) 0%, rgba(8, 12, 34, 0.60) 35%, rgba(4, 7, 24, 0.82) 62%, rgba(8, 12, 34, 0.60) 85%, rgba(8, 12, 34, 0.72) 100%),
        linear-gradient(90deg, rgba(8, 12, 34, 0.22) 0%, rgba(8, 12, 34, 0) 20%, rgba(8, 12, 34, 0) 80%, rgba(8, 12, 34, 0.22) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 34, 0.38) 0%, rgba(8, 12, 34, 0.62) 35%, rgba(4, 7, 24, 0.84) 62%, rgba(8, 12, 34, 0.62) 85%, rgba(8, 12, 34, 0.74) 100%),
        linear-gradient(90deg, rgba(8, 12, 34, 0.22) 0%, rgba(8, 12, 34, 0) 20%, rgba(8, 12, 34, 0) 80%, rgba(8, 12, 34, 0.22) 100%);
    z-index: 1;
}

/* Smooth color transition between the hero and the section below (blue gradient) */
.hero-slider::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(24, 33, 90, 0.72) 55%, #2F39A9 100%);
}

/* Video in hero */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center 35%;
    z-index: 0;
}

.slide--video .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Slide content */
.hero-slide-content,
.hero-slide .hero-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    z-index: 3;
    position: relative;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    z-index: 3;
}

.hero-slide-content h1 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.35);
    max-width: 860px;
    letter-spacing: -0.01em;
}

.hero-slide-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 2.2rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-link-secondary {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.hero-link-secondary:hover {
    color: #fff !important;
}

/* Arrows (Swiper-compatible) */
.hero-arrow,
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    line-height: 1;
    padding: 0;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover,
.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.hero-arrow-prev,
.hero-slider .swiper-button-prev {
    right: 24px;
}

.hero-arrow-next,
.hero-slider .swiper-button-next {
    left: 24px;
}

/* Swiper arrow icon color */
.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
    font-size: 1.2rem;
    color: #fff;
}

/* Dots / Pagination */
.hero-slider-dots,
.hero-slider .swiper-pagination {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
    transform: none;
}

.hero-slider .swiper-pagination-horizontal {
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    transform: none;
}

.hero-dot,
.hero-slider .swiper-pagination-bullet {
    width: 40px;
    height: 6px;
    border-radius: 3px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    opacity: 1;
}

.hero-dot.active,
.hero-slider .swiper-pagination-bullet-active {
    background: var(--color-accent);
    width: 52px;
}

.hero-dot:hover,
.hero-slider .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-slider {
        height: 65vh;
        min-height: 420px;
    }
    .hero-slide-content h1 {
        font-size: clamp(1.3rem, 3.5vw, 2rem);
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 55vh;
        min-height: 360px;
    }
    .hero-slide-content h1 {
        font-size: 1.3rem;
    }
    .hero-slide-content p {
        font-size: 0.9rem;
    }
    .hero-arrow,
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .hero-arrow-prev,
    .hero-slider .swiper-button-prev {
        right: 12px;
    }
    .hero-arrow-next,
    .hero-slider .swiper-button-next {
        left: 12px;
    }
}