/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 68px);
    min-height: 520px;
    overflow: hidden;
    background: var(--bg-hero);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(5, 8, 12, 0.88) 0%,
            rgba(5, 8, 12, 0.65) 50%,
            rgba(5, 8, 12, 0.88) 100%);
}

[data-theme="light"] .slide-overlay {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.7) 50%,
            rgba(255, 255, 255, 0.92) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.slide-content .hero-headline {
    font-size: clamp(30px, 4.8vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.slide-content .hero-sub {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 620px;
}

.slide-content .hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* Slider Navigation Arrows */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(201, 168, 76, 0.6);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

[data-theme="light"] .slider-prev,
[data-theme="light"] .slider-next {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1A1D21;
}

[data-theme="light"] .slider-prev:hover,
[data-theme="light"] .slider-next:hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(168, 138, 46, 0.5);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.slider-dots .dot.active {
    background: var(--gold);
    transform: scale(1.25);
}

[data-theme="light"] .slider-dots .dot {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .slider-dots .dot.active {
    background: var(--gold);
}

/* ============================================================
   FOUNDATIONS GRID
   ============================================================ */
.foundations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.foundation-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.foundation-card:hover {
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-4px);
}

.foundation-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.foundation-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   EDUCATION GRID
   ============================================================ */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.education-card:hover {
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-4px);
}

.education-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.education-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   PRE-IPO GRID
   ============================================================ */
.preipo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.preipo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
}

.preipo-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.preipo-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.preipo-card ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.preipo-card li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .foundations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: calc(100vh - 60px);
        min-height: 480px;
    }

    .slide-content {
        padding: 0 20px;
        gap: 16px;
    }

    .slide-content .hero-headline {
        font-size: 28px;
    }

    .slide-content .hero-sub {
        font-size: 14px;
    }

    .slide-content .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .slide-content .hero-actions .btn-primary,
    .slide-content .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .slider-prev,
    .slider-next {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .foundations-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .preipo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .slider-dots {
        bottom: 18px;
    }
}

@media (max-width: 480px) {
    .slide-content .hero-headline {
        font-size: 24px;
    }

    .slide-content .hero-sub {
        font-size: 13px;
    }

    .foundation-card,
    .education-card,
    .preipo-card {
        padding: 22px 18px;
    }
}

/* ============================================================
   HERO SLIDER — ENTRY ANIMATIONS
   ============================================================ */

/* Base state for animated elements (applies before .animate-in) */
.slide .hero-eyebrow,
.slide .hero-headline,
.slide .hero-sub,
.slide .hero-actions {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
}

/* Active slide shows animated-in elements */
.slide.active .hero-eyebrow.animate-in,
.slide.active .hero-headline.animate-in,
.slide.active .hero-sub.animate-in,
.slide.active .hero-actions.animate-in {
    animation: nnFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Keyframes */
@keyframes nnFadeUp {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }

    60% {
        opacity: 1;
        transform: translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   HERO SLIDER — PROGRESS BAR
   ============================================================ */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 11;
    overflow: hidden;
}

[data-theme="light"] .slider-progress {
    background: rgba(0, 0, 0, 0.06);
}

.slider-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
            var(--gold) 0%,
            var(--gold-bright) 50%,
            var(--gold) 100%);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.6);
    border-radius: 0 2px 2px 0;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    .slide .hero-eyebrow,
    .slide .hero-headline,
    .slide .hero-sub,
    .slide .hero-actions {
        opacity: 1;
        transform: none;
        animation: none !important;
        transition: none !important;
    }

    .slide {
        transition: opacity 0.3s ease;
    }

    .slide-bg {
        transition: none !important;
        transform: none !important;
    }

    .slider-progress-bar {
        display: none;
    }
}

/* ============================================================
   SMALL TWEAK: keep dots above the progress bar
   ============================================================ */
.slider-dots {
    bottom: 22px;
}