/* ============================================================
   Hero Slider — "Timed Card Opening" (GSAP)
   Standalone stylesheet. Prefix `hs-` avoids layout conflicts.
   ============================================================ */

.hs-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    max-height: 860px;
    overflow: hidden;
    background-color: #0F4C97;
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.hs-slider *,
.hs-slider *::before,
.hs-slider *::after {
    box-sizing: border-box;
}

/* ---------- Background layers ---------- */

.hs-bgs {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hs-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    will-change: opacity, transform;
}

.hs-bg:first-child {
    opacity: 1;
}

.hs-animating .hs-bg {
    opacity: 0;
}

.hs-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* ---------- Gradient overlay (safe for transparent navbar) ---------- */

.hs-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        105deg,
        rgba(7, 28, 60, 0.90) 0%,
        rgba(8, 42, 92, 0.80) 32%,
        rgba(9, 60, 130, 0.46) 58%,
        rgba(15, 76, 151, 0.10) 100%
    );
}

.hs-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 18, 38, 0.55), transparent 34%);
}

/* ---------- Hero content / text ---------- */

.hs-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 104px clamp(20px, 5vw, 64px) 0;
}

.hs-text {
    position: absolute;
    max-width: 600px;
    opacity: 0;
    will-change: transform, opacity;
}

.hs-text:first-child {
    opacity: 1;
}

.hs-animating .hs-text {
    opacity: 0;
}

.hs-title {
    margin: 0;
    font-family: 'Poppins', 'Figtree', sans-serif;
    font-weight: 800;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hs-title-highlight {
    display: inline-block;
    color: #F4B400;
}

.hs-subtitle {
    margin: 1.25rem 0 0;
    max-width: 560px;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 500;
    line-height: 1.7;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 2.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hs-btn--primary {
    background-color: #F4B400;
    color: #0a1317;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hs-btn--primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.hs-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.hs-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

/* ---------- Carousel cards (small portrait row, right side) ---------- */

.hs-track-wrap {
    position: absolute;
    right: clamp(20px, 5vw, 64px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    pointer-events: none;
}

.hs-track {
    display: flex;
    flex-direction: row;
    gap: 14px;
    pointer-events: auto;
    will-change: transform;
}

.hs-card {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #0a2a55;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.30);
    opacity: 0.45;
    transform: scale(0.92);
    filter: saturate(0.7) brightness(0.8);
    cursor: pointer;
    will-change: transform, opacity;
    transition: transform 0.7s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
}

.hs-card:first-child {
    opacity: 1;
    transform: scale(1);
    filter: none;
}

.hs-animating .hs-card {
    opacity: 0.45;
    transform: scale(0.92);
    filter: saturate(0.7) brightness(0.8);
}

.hs-animating .hs-card.is-active {
    opacity: 1;
    transform: scale(1);
    filter: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.40);
}

.hs-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 14, 30, 0.72) 0%,
        rgba(5, 14, 30, 0.32) 28%,
        rgba(5, 14, 30, 0.08) 55%,
        transparent 75%
    );
}

/* ---------- Controls ---------- */

.hs-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 6;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 64px);
    pointer-events: none;
}

.hs-animating .hs-controls {
    display: flex;
}

.hs-controls__left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    pointer-events: auto;
}

.hs-progress {
    width: 120px;
    height: 3px;
    border-radius: 99px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.28);
}

.hs-progress > span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: #F4B400;
}

.hs-dots {
    display: flex;
    gap: 8px;
}

.hs-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 99px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hs-dots button.is-active {
    width: 28px;
    background: #fff;
}

.hs-dots button:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hs-controls__right {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.hs-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.hs-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.hs-arrow svg {
    width: 20px;
    height: 20px;
}

/* ---------- Tablet & Mobile (cards hidden, text full-width) ---------- */

@media (max-width: 1279px) {
    .hs-track-wrap {
        display: none;
    }
}

@media (max-width: 767px) {
    .hs-content {
        align-items: flex-start;
        padding-top: 96px;
        padding-bottom: 110px;
    }

    .hs-title {
        font-size: 32px;
    }

    .hs-controls {
        bottom: 20px;
    }

    .hs-progress {
        width: 70px;
    }

    .hs-arrow {
        width: 38px;
        height: 38px;
    }
}
