/* ========================================
   LCSU — Hero Slider
   ======================================== */

.lcsu-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--lcsu-dark);
    margin-top: -72px; /* pull under navbar for immersive look */
}

.lcsu-hero .swiper {
    width: 100%;
    height: 100%;
}

/* Critical: Swiper slides MUST have explicit dimensions for fade */
.lcsu-hero .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.lcsu-hero__slide {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ── Background Image ──────────────────── */
.lcsu-hero__slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.lcsu-hero__slide-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease-out;
    transform: scale(1);
}
.swiper-slide-active .lcsu-hero__slide-bg img {
    transform: scale(1.08);
}

/* ── Overlay ───────────────────────────── */
.lcsu-hero__slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(15, 23, 42, 0.5) 45%,
        rgba(56, 189, 248, 0.12) 100%
    );
    z-index: 2;
}

/* ── Content ───────────────────────────── */
.lcsu-hero__slide-content {
    position: relative;
    z-index: 4;
    max-width: var(--lcsu-container);
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 72px; /* offset for navbar */
    width: 100%;
}

.lcsu-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--lcsu-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: var(--lcsu-radius-full);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.lcsu-hero__title {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    color: var(--lcsu-white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    max-width: 700px;
    letter-spacing: -0.02em;
}
.lcsu-hero__title span {
    background: linear-gradient(135deg, var(--lcsu-primary), var(--lcsu-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lcsu-hero__desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2rem;
}

.lcsu-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Swiper Custom Pagination ──────────── */
.lcsu-hero .swiper-pagination {
    bottom: 2.5rem !important;
    z-index: 10;
}
.lcsu-hero .swiper-pagination-bullet {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.4s ease;
    margin: 0 4px !important;
}
.lcsu-hero .swiper-pagination-bullet-active {
    width: 48px;
    background: var(--lcsu-primary);
}

/* ── Progress Bar ──────────────────────── */
.lcsu-hero__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}
.lcsu-hero__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--lcsu-primary-dark), var(--lcsu-primary));
    width: 0%;
    transition: width 0.05s linear;
}

/* ── Floating Shapes ───────────────────── */
.lcsu-hero__shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* between overlay (2) and content (4) */
    pointer-events: none;
    overflow: hidden;
}
.lcsu-hero__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.07);
    animation: lcsu-float 20s ease-in-out infinite;
}
.lcsu-hero__shape:nth-child(1) { width: 300px; height: 300px; top: -100px; right: -50px; animation-delay: 0s; }
.lcsu-hero__shape:nth-child(2) { width: 200px; height: 200px; bottom: 10%; left: 5%; animation-delay: -5s; }
.lcsu-hero__shape:nth-child(3) { width: 150px; height: 150px; top: 30%; right: 15%; animation-delay: -10s; }

@keyframes lcsu-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* ── Hero responsive adjustments ───────── */
@media (max-width: 768px) {
    .lcsu-hero { margin-top: -72px; }
    .lcsu-hero__slide-content { padding-top: 100px; }
    .lcsu-hero__badge { font-size: 0.75rem; }
}
@media (max-width: 480px) {
    .lcsu-hero__slide-content { padding: 90px 1rem 0; }
}
