* { margin:0; padding:0; box-sizing:border-box }

:root {
    --primary: #1a56db;
    --primary-dark: #0f3a8e;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --light-bg: #f8faff;
    --text: #1e293b;
    --text-light: #64748b;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: white;
    transition: background .4s, color .4s;
    overflow-x: hidden;
}

body.loaded { animation: bodyFadeIn .5s ease }

@keyframes bodyFadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

body.dark { background: var(--dark-bg); color: #e2e8f0 }

/* ───── Loading Screen ───── */
#loading-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, #eef2ff, #f8faff);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity .6s ease, visibility .6s ease;
}

.dark #loading-screen { background: linear-gradient(135deg, #0f172a, #1e1b4b) }

#loading-screen.hide { opacity: 0; visibility: hidden; pointer-events: none }

#loading-screen p { font-weight: 700; font-size: 1.1rem; margin-top: 1.5rem; background: linear-gradient(135deg,var(--primary),#7c3aed); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text }

.loader {
    width: 48px; height: 48px; border: 4px solid var(--primary);
    border-top-color: transparent; border-radius: 50%;
    animation: spin .8s linear infinite;
}

.dark .loader { border-color: var(--accent); border-top-color: transparent }

@keyframes spin {
    to { transform: rotate(360deg) }
}

/* ───── Navbar ───── */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: .8rem 5%;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    color: var(--text); position: fixed; width: 100%; top: 0;
    z-index: 100; transition: box-shadow .3s, background .3s, padding .3s;
}

.dark nav { background: rgba(15,23,42,.88); color: #e2e8f0 }

nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); padding: .5rem 5% }

.logo { display:flex; align-items:center; gap:.75rem; text-decoration:none }

.logo-svg { flex-shrink:0 }

.logo-text { display:flex; flex-direction:column; line-height:1.2 }

.logo-text span { font-size:1.05rem; font-weight:800; background:linear-gradient(135deg,var(--primary),#7c3aed); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text }

.logo-text small { font-size:.6rem; font-weight:500; opacity:.5; letter-spacing:.02em }

.logo-icon { font-size:1.5rem }

.nav-links a {
    color: var(--text); text-decoration: none; margin-left: 1.8rem;
    font-weight: 500; font-size: .88rem; position: relative;
    transition: color .3s;
}

.dark .nav-links a { color: #cbd5e1 }

.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent); transition: width .3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100% }

.nav-links a.active { color: var(--primary) }
.dark .nav-links a.active { color: var(--accent-light) }

.hamburger {
    display: none; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--text);
}

.dark .hamburger { color: #e2e8f0 }

/* ───── Reusable ───── */
section { padding: 5rem 5%; position: relative }

h2 {
    text-align: center; font-size: 2rem; font-weight: 700;
    margin-bottom: .8rem; position: relative;
}

h2::after {
    content: ''; display: block; width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px; margin: .6rem auto 0;
}

.dark h2 { color: #f1f5f9 }

.section-sub {
    text-align: center; color: var(--text-light);
    max-width: 600px; margin: 0 auto 3rem;
}

.reveal { opacity:0; transform:translateY(35px); transition:opacity .6s ease,transform .6s ease }
.reveal.visible { opacity:1; transform:translateY(0) }

/* stagger: every .reveal child of a grid gets delayed */
.program-grid .reveal:nth-child(1),
.gallery-grid .reveal:nth-child(1),
.achievement-grid .reveal:nth-child(1),
.testimonial-grid .reveal:nth-child(1),
.facility-grid .reveal:nth-child(1),
.ekskul-grid .reveal:nth-child(1),
.teacher-grid .reveal:nth-child(1),
.news-grid .reveal:nth-child(1) { transition-delay:0s }

.program-grid .reveal:nth-child(2),
.gallery-grid .reveal:nth-child(2),
.achievement-grid .reveal:nth-child(2),
.testimonial-grid .reveal:nth-child(2),
.facility-grid .reveal:nth-child(2),
.ekskul-grid .reveal:nth-child(2),
.teacher-grid .reveal:nth-child(2),
.news-grid .reveal:nth-child(2) { transition-delay:.1s }

.program-grid .reveal:nth-child(3),
.gallery-grid .reveal:nth-child(3),
.achievement-grid .reveal:nth-child(3),
.testimonial-grid .reveal:nth-child(3),
.facility-grid .reveal:nth-child(3),
.ekskul-grid .reveal:nth-child(3),
.teacher-grid .reveal:nth-child(3),
.news-grid .reveal:nth-child(3) { transition-delay:.2s }

.program-grid .reveal:nth-child(4),
.gallery-grid .reveal:nth-child(4),
.achievement-grid .reveal:nth-child(4),
.testimonial-grid .reveal:nth-child(4),
.facility-grid .reveal:nth-child(4),
.ekskul-grid .reveal:nth-child(4),
.teacher-grid .reveal:nth-child(4),
.news-grid .reveal:nth-child(4) { transition-delay:.3s }

.gallery-grid .reveal:nth-child(5),
.achievement-grid .reveal:nth-child(5),
.ekskul-grid .reveal:nth-child(5),
.teacher-grid .reveal:nth-child(5) { transition-delay:.4s }

.gallery-grid .reveal:nth-child(6),
.achievement-grid .reveal:nth-child(6),
.ekskul-grid .reveal:nth-child(6) { transition-delay:.5s }

.ekskul-grid .reveal:nth-child(7) { transition-delay:.6s }
.ekskul-grid .reveal:nth-child(8) { transition-delay:.7s }
.ekskul-grid .reveal:nth-child(9) { transition-delay:.8s }
.ekskul-grid .reveal:nth-child(10) { transition-delay:.9s }
.ekskul-grid .reveal:nth-child(11) { transition-delay:1s }
.ekskul-grid .reveal:nth-child(12) { transition-delay:1.1s }
.ekskul-grid .reveal:nth-child(13) { transition-delay:1.2s }
.ekskul-grid .reveal:nth-child(14) { transition-delay:1.3s }
.ekskul-grid .reveal:nth-child(15) { transition-delay:1.4s }
.ekskul-grid .reveal:nth-child(16) { transition-delay:1.5s }
.ekskul-grid .reveal:nth-child(17) { transition-delay:1.6s }
.ekskul-grid .reveal:nth-child(18) { transition-delay:1.7s }
.ekskul-grid .reveal:nth-child(19) { transition-delay:1.8s }
.ekskul-grid .reveal:nth-child(20) { transition-delay:1.9s }

/* ───── Buttons ───── */
.btn {
    padding: .8rem 2rem; border: none; border-radius: 50px;
    font-size: .9rem; font-weight: 600; cursor: pointer;
    transition: all .3s; margin: .3rem; display: inline-block;
    font-family: 'Poppins', sans-serif;
    position: relative; overflow: hidden;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.15) }

.btn:active { transform: translateY(-1px) }

.ripple {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,.4);
    transform: scale(0); animation: rippleAnim .6s linear; pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0 }
}

.btn-primary { background: linear-gradient(135deg, var(--accent), #f97316); color: white }

.btn-secondary {
    background: rgba(255,255,255,.92); color: var(--primary);
    border: 2px solid rgba(255,255,255,.3);
}

.dark .btn-secondary { background: rgba(255,255,255,.1); color: white; border-color: rgba(255,255,255,.2) }

.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary) }

.dark .btn-outline { border-color: var(--accent); color: var(--accent) }

.btn-outline:hover { background: var(--primary); color: white }
.dark .btn-outline:hover { background: var(--accent); color: #1e293b }

.btn-sm { padding: .4rem 1rem; font-size: .78rem }

.btn-footer {
    background: rgba(255,255,255,.08); color: #cbd5e1;
    border: 1px solid rgba(255,255,255,.1); padding: .5rem 1rem;
    border-radius: 8px; cursor: pointer; font-family: 'Poppins', sans-serif;
    font-size: .82rem; transition: all .3s; margin: .15rem;
}

.btn-footer:hover { background: rgba(255,255,255,.15); transform: translateY(-2px) }

/* ───── Hero ───── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center;
    background: linear-gradient(135deg, #eef2ff 0%, #f8faff 40%, #ece7ff 100%);
    color: var(--text); padding-top: 80px; overflow: hidden; position: relative;
}

.dark .hero { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); color: #f1f5f9 }

.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 600 Q360 400 720 500 T1440 400 L1440 800 L0 800 Z' fill='rgba(26,86,219,0.03)'/%3E%3C/svg%3E") center/cover;
    pointer-events: none; will-change: transform;
}

.dark .hero::before {
    fill: rgba(245,158,11,0.03);
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden }

.shape {
    position: absolute; border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; opacity: .1 }
.shape-2 { width: 300px; height: 300px; background: var(--accent); bottom: -80px; right: -60px; opacity: .1; animation-delay: -3s }
.shape-3 { width: 200px; height: 200px; background: #8b5cf6; top: 50%; right: 10%; opacity: .08; animation-delay: -6s }

.dot {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); opacity: .15; animation: dotFloat 6s ease-in-out infinite;
}

.dark .dot { background: var(--accent); opacity: .08 }

.dot-1 { top: 20%; left: 15%; animation-delay: 0s }
.dot-2 { top: 35%; right: 20%; animation-delay: -1.5s; width: 8px; height: 8px }
.dot-3 { top: 70%; left: 25%; animation-delay: -3s }
.dot-4 { top: 60%; right: 12%; animation-delay: -4.5s; width: 4px; height: 4px }
.dot-5 { top: 15%; right: 35%; animation-delay: -2s; width: 5px; height: 5px }

@keyframes dotFloat {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-20px) }
}

@keyframes float {
    0%,100% { transform: translate(0,0) scale(1) }
    33% { transform: translate(20px,-30px) scale(1.05) }
    66% { transform: translate(-15px,20px) scale(.95) }
}

.hero-content { max-width: 820px; padding: 0 1rem; position: relative; z-index: 1 }

.hero-content::before {
    content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 120px; background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #f97316);
    color: white; padding: .25rem 1.2rem; border-radius: 20px;
    font-size: .78rem; font-weight: 600; margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(245,158,11,.3);
}

.hero-logo { margin-bottom: .8rem }
.hero-logo svg { filter: drop-shadow(0 4px 12px rgba(26,86,219,.2)) }
.dark .hero-logo svg text:last-child { fill: #e2e8f0 !important }

.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: .8rem; line-height: 1.2 }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #7c3aed, var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p { font-size: 1.1rem; margin-bottom: 2rem; min-height: 1.8em; max-width: 560px; margin-inline: auto }

.typing-text { color: var(--text); font-weight: 500 }
.dark .typing-text { color: #e2e8f0 }

.typing-cursor {
    display: inline-block; color: var(--accent); font-weight: 300;
    animation: blink .7s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1 }
    50% { opacity: 0 }
}

.hero-strip {
    display: flex; justify-content: center; gap: 2.5rem; margin-top: 3rem;
    flex-wrap: wrap;
}

.strip-item { text-align: center }

.strip-num {
    display: block; font-size: 1.6rem; font-weight: 800;
    color: var(--primary); line-height: 1.2;
}

.dark .strip-num { color: var(--accent-light) }

.strip-item span:last-child { font-size: .8rem; opacity: .6 }

/* ───── Wave ───── */
.wave-divider { line-height: 0; position: relative }
.wave-divider svg { display: block; width: 100%; height: 50px }
.wave-divider.flip svg { transform: rotate(180deg) }
.dark .wave-divider path { fill: var(--dark-bg) }

/* ───── About ───── */
.about { background: var(--light-bg) }
.dark .about { background: var(--dark-bg) }

.about-content { display: flex; align-items: center; gap: 3rem; max-width: 1100px; margin: 0 auto }
.about-text { flex: 1 }

.about-lead { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem }

.about-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    margin: 1.5rem 0;
}

.about-feature { display: flex; align-items: center; gap: .5rem; font-size: .9rem }
.feature-icon { font-size: .85rem }

.about-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    flex-shrink: 0;
}

.stat-card {
    background: white; padding: 1.5rem 2rem; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow); transition: all .3s;
}

.dark .stat-card { background: var(--dark-card) }

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover) }

.stat-number {
    font-size: 2.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p { color: var(--text-light); font-weight: 500; font-size: .85rem; margin-top: .2rem }

/* ───── Programs ───── */
.programs { background: white }
.dark .programs { background: var(--dark-bg) }

.program-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem; max-width: 1100px; margin: 0 auto;
}

.program-card {
    background: var(--light-bg); padding: 2.2rem 1.8rem;
    border-radius: var(--radius); text-align: center; cursor: pointer;
    transition: all .4s; border: 1px solid transparent;
    position: relative; overflow: hidden;
}

.dark .program-card { background: var(--dark-card); border-color: rgba(255,255,255,.05) }

.program-card::before {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius);
    padding: 2px; background: linear-gradient(135deg, var(--primary), transparent, var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .4s;
}

.program-card:hover::before { opacity: 1 }

.program-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-hover);
}

.card-icon-wrap {
    width: 60px; height: 60px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 1rem;
}

.program-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem }
.program-card p { color: var(--text-light); font-size: .85rem; margin-bottom: 1rem }

.card-link { font-size: .85rem; color: var(--primary); font-weight: 600 }
.dark .card-link { color: var(--accent) }

/* ───── Achievements ───── */
.achievements { background: var(--light-bg) }
.dark .achievements { background: var(--dark-bg) }

.achievement-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}

.achievement-card {
    background: white; padding: 2rem; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow); transition: all .3s;
    position: relative; overflow: hidden;
}

.dark .achievement-card { background: var(--dark-card) }

.achievement-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), #8b5cf6);
    opacity: 0; transition: opacity .3s;
}

.achievement-card:hover::after { opacity: 1 }

.achievement-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover) }

.achievement-medal { font-size: 2.5rem; display: block; margin-bottom: .8rem }

.achievement-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem }

.achievement-card p { color: var(--text-light); font-size: .85rem }

/* ───── Gallery ───── */
.gallery { background: white }
.dark .gallery { background: var(--dark-bg) }

.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}

.gallery-item {
    cursor: pointer; border-radius: var(--radius); overflow: hidden;
    transition: all .4s; position: relative;
    box-shadow: var(--shadow);
}

.gallery-item-img {
    aspect-ratio: 4/3; overflow: hidden;
}

.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-hover) }

.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,86,219,.15), transparent);
    opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 1;
}

.gallery-item:hover::after { opacity: 1 }

.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .6s ease;
    image-rendering: auto;
}
.gallery-item:hover img { transform: scale(1.08) }

.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: white; padding: 2rem 1rem 1rem; font-weight: 600;
    transform: translateY(100%); transition: transform .4s;
}

.gallery-item:hover .gallery-caption { transform: translateY(0) }

/* ───── Testimonials ───── */
.testimonials { background: var(--light-bg) }
.dark .testimonials { background: var(--dark-bg) }

.testimonial-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem; max-width: 1100px; margin: 0 auto;
}

.testimonial-card {
    background: white; padding: 2rem; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: all .3s;
    position: relative;
}

.dark .testimonial-card { background: var(--dark-card) }

.testimonial-card::before {
    content: '\201C'; position: absolute; top: 1rem; right: 1.5rem;
    font-size: 4rem; line-height: 1; opacity: .08; color: var(--primary);
    font-family: Georgia, serif;
}

.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover) }

.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem;
}

.testimonial-text { font-style: italic; font-size: .9rem; margin-bottom: 1rem; opacity: .85 }

.testimonial-author strong { display: block; font-size: .9rem }
.testimonial-author span { color: var(--text-light); font-size: .8rem }

/* ───── Media ───── */
.media { background: white }
.dark .media { background: var(--dark-bg) }

.media-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto }

.media-box {
    background: var(--light-bg); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow); transition: transform .3s;
}

.dark .media-box { background: var(--dark-card) }
.media-box:hover { transform: translateY(-4px) }

.media-label { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem }

/* ───── Video Player ───── */
.video-wrapper {
    position: relative; border-radius: 12px; overflow: hidden;
    background: #000; cursor: pointer;
}

.video-wrapper video { width: 100%; display: block; max-height: 300px; background: #000 }

.video-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.35);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: .5rem;
    transition: opacity .3s; cursor: pointer;
}

.video-overlay.hidden { opacity: 0; pointer-events: none }

.video-play-btn {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,.2); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: white; transition: all .3s;
    border: 2px solid rgba(255,255,255,.3);
}

.video-overlay:hover .video-play-btn { transform: scale(1.1); background: rgba(255,255,255,.3) }

.video-overlay-text { color: white; font-size: .85rem; font-weight: 500; opacity: .8 }

.video-controls-bar {
    background: rgba(0,0,0,.85); border-radius: 0 0 12px 12px;
    padding: .4rem 1rem .6rem;
}

.video-progress {
    height: 4px; background: rgba(255,255,255,.15); border-radius: 2px;
    cursor: pointer; margin-bottom: .4rem; position: relative;
}

.video-progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--accent), #f97316);
    border-radius: 2px; width: 0%; transition: width .1s;
}

.video-controls-row {
    display: flex; justify-content: space-between; align-items: center;
}

.video-left, .video-right { display: flex; align-items: center; gap: .5rem }

.video-time { font-size: .72rem; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums }

.media-icon-btn {
    background: none; border: none; color: rgba(255,255,255,.7);
    cursor: pointer; font-size: .9rem; padding: .2rem .3rem;
    transition: color .3s; line-height: 1;
}

.media-icon-btn:hover { color: white }

/* ───── Audio Card ───── */
.audio-card {
    display: flex; gap: 1.2rem; align-items: center;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px; padding: 1.2rem;
}

.dark .audio-card { background: linear-gradient(135deg, #0f172a, #1e293b) }

.audio-art {
    position: relative; flex-shrink: 0;
}

.audio-art-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #f97316);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; position: relative; z-index: 2;
}

.audio-art-ring {
    position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.15);
    animation: none;
}

.audio-art-ring.playing {
    animation: audioSpin 3s linear infinite;
    border-color: var(--accent);
    border-top-color: transparent;
}

@keyframes audioSpin {
    to { transform: rotate(360deg) }
}

.audio-body { flex: 1; min-width: 0 }

.audio-track-info strong { display: block; color: white; font-size: .85rem; margin-bottom: .15rem }
.audio-track-info span { display: block; font-size: .7rem; color: rgba(255,255,255,.5) }

.audio-progress {
    height: 3px; background: rgba(255,255,255,.12); border-radius: 2px;
    cursor: pointer; margin: .6rem 0 .3rem; position: relative;
}

.audio-progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--accent), #f97316);
    border-radius: 2px; width: 0%; transition: width .1s;
}

.audio-time {
    display: flex; justify-content: space-between;
    font-size: .65rem; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums;
}

.audio-controls-row {
    display: flex; align-items: center; gap: .5rem; margin-top: .5rem;
}

.audio-play-main {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent); color: #1e293b !important;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem !important; transition: all .3s;
}

.audio-play-main:hover { transform: scale(1.1); background: #f97316 !important; color: #1e293b !important }

/* ───── FAQ ───── */
.faq { background: var(--light-bg) }
.dark .faq { background: var(--dark-bg) }

.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem }

.faq-item { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow) }
.dark .faq-item { background: var(--dark-card) }

.faq-question {
    width: 100%; padding: 1.2rem 1.5rem; display: flex;
    justify-content: space-between; align-items: center;
    background: none; border: none; cursor: pointer;
    font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 600;
    color: var(--text); transition: background .3s;
}

.dark .faq-question { color: #e2e8f0 }

.faq-question:hover { background: rgba(0,0,0,.02) }
.dark .faq-question:hover { background: rgba(255,255,255,.03) }

.faq-arrow { font-size: .7rem; transition: transform .3s }

.faq-item.open .faq-arrow { transform: rotate(180deg) }

.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s;
    padding: 0 1.5rem; color: var(--text-light); font-size: .88rem;
}

.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.5rem 1.2rem }

/* ───── Contact ───── */
.contact { background: white }
.dark .contact { background: var(--dark-bg) }

.contact-container { display: flex; gap: 3rem; max-width: 1100px; margin: 0 auto; align-items: flex-start }

.contact-container form { flex: 1; display: flex; flex-direction: column; gap: 1rem }

.form-row { display: flex; gap: 1rem }
.form-row input { flex: 1 }

input, textarea, select {
    padding: .85rem 1.2rem; border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: .9rem; width: 100%; font-family: 'Poppins', sans-serif;
    transition: border-color .3s, box-shadow .3s; background: white;
}

.dark input, .dark textarea, .dark select {
    background: var(--dark-card); border-color: #334155; color: #e2e8f0;
}

input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,86,219,.1);
}

textarea { height: 120px; resize: vertical }

.contact-info { flex: 1; display: flex; flex-direction: column; gap: 1rem }

.contact-item {
    display: flex; align-items: center; gap: 1rem;
    background: var(--light-bg); padding: 1rem 1.2rem;
    border-radius: 12px; box-shadow: var(--shadow); transition: transform .3s;
}

.dark .contact-item { background: var(--dark-card) }
.contact-item:hover { transform: translateX(5px) }

.contact-icon { font-size: 1.3rem }

.contact-item strong { display: block; font-size: .82rem }
.contact-item span { font-size: .85rem; color: var(--text-light) }

.contact-social { display: flex; gap: .5rem; margin-top: .5rem }

.map-container {
    max-width: 1100px; margin: 2rem auto 0;
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%; height: 300px; border: 0; display: block;
}

.social-link {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary); color: white; display: flex;
    align-items: center; justify-content: center;
    text-decoration: none; font-size: .75rem; font-weight: 700;
    transition: all .3s;
}

.social-link:hover { transform: translateY(-3px); background: var(--primary-dark) }

/* ───── Footer ───── */
footer { background: linear-gradient(135deg, #0f172a, #1e1b4b); color: #e2e8f0; padding: 3rem 5% 0 }

.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem; max-width: 1100px; margin: 0 auto; padding-bottom: 2rem;
}

.footer-col p { font-size: .85rem; opacity: .7; margin: .6rem 0; line-height: 1.6 }

.footer-col h4 { font-size: .95rem; font-weight: 700; margin-bottom: 1rem; color: var(--accent-light) }

.footer-col a {
    display: block; color: #94a3b8; text-decoration: none;
    font-size: .85rem; margin-bottom: .5rem; transition: color .3s;
}

.footer-col a:hover { color: var(--accent-light) }

.footer-social { display: flex; gap: .5rem; margin-top: 1rem }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 0; font-size: .82rem; opacity: .6;
}

/* ───── Facilities ───── */
.facilities { background: white }
.dark .facilities { background: var(--dark-bg) }

.facility-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}

.facility-card {
    background: var(--light-bg); padding: 2rem; border-radius: var(--radius);
    text-align: center; transition: all .3s;
}

.dark .facility-card { background: var(--dark-card) }

.facility-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover) }

.facility-icon { font-size: 2.5rem; display: block; margin-bottom: .8rem }

.facility-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem }

.facility-card p { color: var(--text-light); font-size: .85rem }

/* ───── Ekstrakurikuler Slider ───── */
.ekskul { background: var(--light-bg); overflow: hidden }
.dark .ekskul { background: var(--dark-bg) }

.ekskul-slider-container {
    max-width: 1100px; margin: 0 auto; position: relative;
    padding: 0 2.5rem;
}

.ekskul-slider-wrapper {
    overflow: hidden; border-radius: var(--radius);
}

.ekskul-track {
    display: flex; gap: 1rem; transition: transform .5s ease;
    padding: .5rem 0;
}

.ekskul-card {
    flex: 0 0 calc(25% - .75rem); /* 4 per row */
    background: white; padding: 1.5rem 1rem; border-radius: 12px;
    text-align: center; font-weight: 600; font-size: .85rem;
    box-shadow: var(--shadow); transition: all .3s; cursor: pointer;
}

.dark .ekskul-card { background: var(--dark-card) }

.ekskul-card span { display: block; font-size: 2.2rem; margin-bottom: .5rem }

.ekskul-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover) }

.ekskul-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background: var(--primary); color: white;
    font-size: 1rem; cursor: pointer; z-index: 5;
    transition: all .3s; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.dark .ekskul-btn { background: var(--accent); color: #1e293b }

.ekskul-btn:hover { transform: translateY(-50%) scale(1.1) }

.ekskul-prev { left: 0 }
.ekskul-next { right: 0 }

@media (max-width: 900px) {
    .ekskul-card { flex: 0 0 calc(50% - .5rem) } /* 2 per row */
}

@media (max-width: 480px) {
    .ekskul-card { flex: 0 0 100% } /* 1 per row */
    .ekskul-slider-container { padding: 0 2rem }
}

/* ───── Slider Prestasi ───── */
.slider-section { background: white; padding: 3rem 5% 5rem }
.dark .slider-section { background: var(--dark-bg) }

.slider-container {
    max-width: 700px; margin: 0 auto; overflow: hidden;
    border-radius: var(--radius); box-shadow: var(--shadow-hover);
    position: relative;
}

.slider-track {
    display: flex; transition: transform .6s ease;
}

.slider-slide {
    min-width: 100%; padding: 3rem 2rem; text-align: center;
    color: white; display: flex; flex-direction: column;
    align-items: center; justify-content: center; min-height: 260px;
}

.slider-icon { font-size: 3rem; margin-bottom: 1rem }

.slider-slide h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem }

.slider-slide p { font-size: .9rem; opacity: .85 }

.slider-dots {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: .5rem;
}

.slider-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.4); cursor: pointer; transition: all .3s;
}

.slider-dots span.active { background: white; transform: scale(1.3) }

/* ───── Teachers ───── */
.teachers { background: var(--light-bg) }
.dark .teachers { background: var(--dark-bg) }

.teacher-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}

.teacher-card {
    background: white; padding: 2rem 1.5rem; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow); transition: all .3s;
}

.dark .teacher-card { background: var(--dark-card) }

.teacher-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover) }

.teacher-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; margin: 0 auto 1rem;
}

.teacher-card h3 { font-size: 1rem; font-weight: 700 }
.teacher-card > span { display: block; font-size: .82rem; color: var(--primary); font-weight: 600; margin: .3rem 0 }
.dark .teacher-card > span { color: var(--accent) }
.teacher-card p { color: var(--text-light); font-size: .8rem; margin-top: .5rem }

/* ───── Countdown PPDB ───── */
.ppdb {
    background: linear-gradient(135deg, #1a56db, #7c3aed);
    color: white; text-align: center;
}

.ppdb h2 { color: white }
.ppdb h2::after { background: var(--accent) }
.ppdb .section-sub { color: rgba(255,255,255,.7) }

.countdown-container {
    display: flex; justify-content: center; gap: 2rem;
    max-width: 600px; margin: 0 auto;
}

.countdown-item { text-align: center }

.countdown-num {
    display: block; font-size: 3.5rem; font-weight: 800;
    line-height: 1; background: rgba(255,255,255,.15);
    padding: 1rem 1.5rem; border-radius: 12px;
    backdrop-filter: blur(4px); min-width: 100px;
}

.countdown-label { display: block; margin-top: .5rem; font-weight: 500; font-size: .85rem; opacity: .7 }

.countdown-cta { text-align: center; margin-top: 2rem }

/* ───── Fee / Biaya ───── */
.fee-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15) }

.fee-title {
    font-size: 1.3rem; font-weight: 700; text-align: center;
    margin-bottom: 2rem; color: white;
}

.fee-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}

.fee-card {
    background: rgba(255,255,255,.96); border-radius: var(--radius);
    padding: 1.8rem 1.5rem; text-align: center;
    transition: all .4s; position: relative; overflow: hidden;
}

.dark .fee-card { background: var(--dark-card) }

.fee-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.25) }

.fee-featured {
    background: white; box-shadow: 0 8px 32px rgba(0,0,0,.2);
    border: 2px solid var(--accent);
}

.dark .fee-featured { background: var(--dark-card); border-color: var(--accent-light) }

.fee-featured:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.3) }

.fee-badge {
    display: inline-block; background: var(--light-bg); color: var(--text);
    padding: .25rem 1.2rem; border-radius: 20px; font-size: .78rem;
    font-weight: 700; margin-bottom: .8rem;
}

.dark .fee-badge { background: var(--dark-bg); color: #e2e8f0 }

.fee-badge-feat { background: linear-gradient(135deg, var(--accent), #f97316); color: white }

.fee-amount { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1 }

.dark .fee-amount { color: var(--accent-light) }

.fee-currency { font-size: 1rem; font-weight: 600; vertical-align: super; margin-right: 2px }

.fee-desc { font-size: .8rem; color: var(--text-light); margin-top: .25rem; margin-bottom: 1rem }

.fee-table-wrap { text-align: left }

.fee-table { width: 100%; font-size: .78rem; border-collapse: collapse }
.fee-table tr { border-bottom: 1px solid rgba(0,0,0,.05) }
.dark .fee-table tr { border-color: rgba(255,255,255,.05) }
.fee-table td { padding: .4rem 0 }
.fee-table td:last-child { text-align: right; font-weight: 600 }
.fee-val { color: var(--text) }
.dark .fee-val { color: #e2e8f0 }
.fee-disc { text-decoration: line-through; opacity: .4 }
.fee-free { color: #059669 }
.fee-total { border-top: 2px solid var(--accent) !important }
.dark .fee-total { border-color: var(--accent-light) !important }
.fee-total td { font-weight: 800 !important; font-size: .85rem; padding: .5rem 0; color: var(--text) }
.dark .fee-total td { color: #f1f5f9 }

.fee-note { font-size: .72rem; color: var(--text-light); margin-top: .6rem; font-style: italic }

.fee-info {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem; max-width: 1100px; margin: 2rem auto 0;
}

.fee-info-item {
    background: rgba(255,255,255,.1); backdrop-filter: blur(4px);
    padding: .8rem 1rem; border-radius: 10px; font-size: .78rem;
    color: rgba(255,255,255,.85); display: flex; align-items: center; gap: .5rem;
}

.fee-info-item span { font-size: 1.1rem }

@media (max-width: 700px) {
    .fee-card { padding: 1.5rem 1rem }
    .fee-amount { font-size: 1.8rem }
    .fee-info { grid-template-columns: 1fr }
}

.scroll-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: white; border: none;
    font-size: 1.3rem; cursor: pointer; z-index: 85;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    opacity: 0; transform: translateY(20px);
    transition: all .3s; pointer-events: none;
}

.scroll-top.show { opacity: 1; transform: translateY(0); pointer-events: auto }

.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.3) }

/* ───── Theme Toggle Nav ───── */
.theme-toggle-nav {
    background: none; border: none; font-size: 1.2rem;
    cursor: pointer; padding: .3rem .5rem; margin-left: .5rem;
    color: var(--text); transition: transform .3s;
    line-height: 1;
}

.dark .theme-toggle-nav { color: #e2e8f0 }

.theme-toggle-nav:hover { transform: rotate(15deg) scale(1.1) }

.theme-toggle-mobile { display: none }

/* ───── News / Berita ───── */
.news { background: var(--light-bg) }
.dark .news { background: var(--dark-bg) }

.news-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem; max-width: 1100px; margin: 0 auto;
}

.news-card {
    background: white; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: all .4s;
}

.dark .news-card { background: var(--dark-card) }

.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover) }

.news-img {
    height: 160px; display: flex; align-items: center;
    justify-content: center; font-size: 3rem; color: rgba(255,255,255,.8);
}

.news-body { padding: 1.5rem }

.news-date { font-size: .75rem; color: var(--text-light); font-weight: 500 }

.news-body h3 { font-size: 1rem; font-weight: 700; margin: .3rem 0 }

.news-body p { font-size: .83rem; color: var(--text-light); margin-bottom: .8rem }

.news-link {
    color: var(--primary); text-decoration: none; font-weight: 600;
    font-size: .85rem; transition: gap .3s; display: inline-flex; align-items: center; gap: .2rem;
}

.dark .news-link { color: var(--accent) }

.news-link:hover { gap: .5rem }

/* ───── Smooth Section Transitions ───── */
section { position: relative }
section::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(26,86,219,.08), transparent);
    pointer-events: none;
}

/* ───── WA Float ───── */
.wa-float {
    position: fixed; bottom: 2rem; left: 2rem;
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.4rem;
    text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,.4);
    z-index: 90; animation: pulse 2s infinite; transition: transform .3s;
}

.wa-float:hover { transform: scale(1.1) }

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(37,211,102,.4) }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,.7) }
    100% { box-shadow: 0 4px 20px rgba(37,211,102,.4) }
}

/* ───── Modal ───── */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    z-index: 200; align-items: center; justify-content: center;
}

.modal.show { display: flex; animation: fadeIn .3s }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(.92) }
    to { opacity: 1; transform: scale(1) }
}

.modal-content { background: white; padding: 2.5rem; border-radius: var(--radius); width: 90%; max-width: 460px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.2) }
.dark .modal-content { background: var(--dark-card); color: #e2e8f0 }
.modal-content h2 { margin-bottom: .5rem }
.modal-content form { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem }

.close {
    position: absolute; top: 1rem; right: 1.2rem;
    font-size: 1.6rem; cursor: pointer; opacity: .4; transition: opacity .3s;
}

.close:hover { opacity: 1 }

.news-modal-content { max-width: 600px; padding: 2rem }
.news-modal-content h3 { font-size: 1.2rem; margin-bottom: .5rem }
.news-modal-content .news-date { display: block; font-size: .8rem; color: var(--text-light); margin-bottom: 1rem }
.news-modal-content p { font-size: .9rem; line-height: 1.8; color: var(--text-light); margin-bottom: 1rem }
.news-modal-content .news-modal-img {
    width: 100%; height: 200px; border-radius: 10px; margin-bottom: 1rem;
    display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: rgba(255,255,255,.8);
}

/* ───── Brosur Modal ───── */
.brosur-content { max-width: 640px; max-height: 90vh; overflow-y: auto; padding: 2rem }

.brosur-header { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--light-bg) }
.dark .brosur-header { border-color: var(--dark-card) }
.brosur-header h2 { font-size: 1.4rem; margin-bottom: .3rem }
.brosur-header h2::after { display: none }
.brosur-header p { font-size: .85rem; color: var(--text-light) }

.brosur-pages { position: relative; min-height: 320px }

.brosur-page {
    display: none; animation: fadeIn .3s;
}

.brosur-page.active { display: block }

.brosur-cover {
    text-align: center; padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #eef2ff, #f8faff);
    border-radius: var(--radius);
}

.dark .brosur-cover { background: linear-gradient(135deg, var(--dark-card), var(--dark-bg)) }

.brosur-cover-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem }

.brosur-cover h3 { font-size: 1.6rem; font-weight: 800; background: linear-gradient(135deg,var(--primary),#7c3aed); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text }

.brosur-cover p { font-size: 1rem; font-weight: 600; margin: .3rem 0 }
.brosur-cover small { font-size: .78rem; opacity: .6 }

.brosur-program-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem }
.brosur-program-list div { background: var(--light-bg); padding: .6rem .8rem; border-radius: 8px; font-size: .85rem }
.dark .brosur-program-list div { background: var(--dark-card) }

.brosur-list { margin: .5rem 0 0 1.2rem; font-size: .85rem; display: flex; flex-direction: column; gap: .4rem }
.brosur-list li { color: var(--text-light) }

.brosur-fasil { background: var(--light-bg); padding: .8rem; border-radius: 8px; font-size: .85rem; line-height: 1.6 }
.dark .brosur-fasil { background: var(--dark-card) }

.brosur-cta-box {
    margin-top: 1.2rem; padding: 1rem; background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: 12px; color: white; text-align: center; font-size: .85rem;
}
.brosur-cta-box p { margin: .3rem 0; opacity: .9 }

.brosur-nav {
    display: flex; justify-content: center; align-items: center;
    gap: 1rem; margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid var(--light-bg);
}
.dark .brosur-nav { border-color: var(--dark-card) }
.brosur-nav span { font-size: .85rem; font-weight: 600; min-width: 50px; text-align: center }

/* ───── Toast ───── */
.toast {
    position: fixed; bottom: 2rem; right: 2rem;
    background: var(--text); color: white; padding: .9rem 1.8rem;
    border-radius: 12px; opacity: 0; transform: translateY(20px);
    transition: all .4s; z-index: 300; font-weight: 500;
    font-size: .9rem; box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.toast.show { opacity: 1; transform: translateY(0) }

/* ───── Testimonial Slider ───── */
.testi-slider-container {
    max-width: 700px; margin: 0 auto; position: relative; overflow: hidden;
}
.testi-slider {
    display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.testi-slide {
    min-width: 100%; text-align: center; padding: 1rem 2rem;
}
.testi-slide .testimonial-avatar {
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; margin: 0 auto 1.2rem;
}
.testi-slide .testimonial-text {
    font-size: 1.05rem; font-style: italic; color: var(--text-light);
    max-width: 600px; margin: 0 auto 1rem; line-height: 1.8;
}
.dark .testi-slide .testimonial-text { color: #cbd5e1 }
.testi-slide .testimonial-author { margin-top: .5rem }
.testi-slide .testimonial-author strong { display: block; font-size: 1rem }
.testi-slide .testimonial-author span { font-size: .82rem; color: var(--text-light) }
.testi-dots {
    display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem;
}
.testi-dots span {
    width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1;
    cursor: pointer; transition: all .3s;
}
.testi-dots span.active { background: var(--primary); width: 24px; border-radius: 5px }

/* ───── Skill Bars ───── */
.skills-section {
    background: linear-gradient(135deg, #eef2ff, #f8faff);
    position: relative;
}
.dark .skills-section { background: linear-gradient(135deg, #0f172a, #1e1b4b) }
.skills-container {
    max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem;
}
.skill-item {}
.skill-label { display: flex; justify-content: space-between; margin-bottom: .5rem; font-weight: 600; font-size: .9rem }
.skill-bar { height: 12px; background: #e2e8f0; border-radius: 12px; overflow: hidden; position: relative }
.dark .skill-bar { background: #334155 }
.skill-fill {
    height: 100%; border-radius: 12px;
    background: linear-gradient(90deg, var(--primary), #7c3aed, var(--accent));
    background-size: 200% 100%; animation: shimmer 2s infinite;
    width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ───── Alumni Spotlight ───── */
.alumni-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1000px; margin: 0 auto;
}
.alumni-card {
    background: white; border-radius: var(--radius); padding: 2rem;
    text-align: center; box-shadow: var(--shadow); transition: all .4s;
}
.dark .alumni-card { background: var(--dark-card) }
.alumni-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover) }
.alumni-img {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700; color: white;
}
.alumni-card h3 { margin-bottom: .2rem }
.alumni-role { font-size: .82rem; color: var(--accent); font-weight: 600; display: block; margin-bottom: .8rem }
.alumni-card p { font-size: .85rem; color: var(--text-light); font-style: italic }

/* ───── Student of the Month ───── */
.spotlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    position: relative;
}
.dark .spotlight { background: linear-gradient(135deg, #451a03, #713f12) }
.spotlight-card {
    max-width: 750px; margin: 0 auto; background: white;
    border-radius: var(--radius); padding: 2.5rem; box-shadow: 0 8px 30px rgba(0,0,0,.08);
    position: relative; overflow: hidden; border: 2px solid var(--accent);
}
.dark .spotlight-card { background: var(--dark-card); border-color: var(--accent) }
.spotlight-badge {
    display: inline-block; background: linear-gradient(135deg, var(--accent), #f97316);
    color: white; padding: .4rem 1.2rem; border-radius: 50px; font-weight: 700;
    font-size: .8rem; margin-bottom: 1.5rem; letter-spacing: .5px;
}
.spotlight-body { display: flex; align-items: center; gap: 2rem }
.spotlight-avatar {
    width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: white;
}
.spotlight-info h3 { font-size: 1.3rem; margin-bottom: .2rem }
.spotlight-info > span { font-size: .85rem; color: var(--text-light) }
.spotlight-info > p { margin-top: .8rem; font-size: .9rem; color: var(--text-light) }
.spotlight-stats {
    display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap;
}
.spotlight-stats span {
    font-size: .78rem; background: #f1f5f9; padding: .3rem .8rem;
    border-radius: 50px; font-weight: 600;
}
.dark .spotlight-stats span { background: #334155 }

/* ───── Calendar ───── */
.cal-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 700px; margin: 0 auto;
}
.cal-card {
    display: flex; align-items: center; gap: 1rem;
    background: white; border-radius: 14px; padding: 1.2rem;
    box-shadow: var(--shadow); transition: all .3s;
}
.dark .cal-card { background: var(--dark-card) }
.cal-card:hover { transform: translateX(6px); box-shadow: var(--shadow-hover) }
.cal-date {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white; border-radius: 12px; padding: .6rem .8rem;
    font-weight: 700; font-size: .85rem; text-align: center;
    min-width: 60px; line-height: 1.3; flex-shrink: 0;
}
.cal-detail strong { display: block; font-size: .95rem; margin-bottom: .2rem }
.cal-detail span { font-size: .8rem; color: var(--text-light) }

/* ───── Social Media Embed ───── */
.social-embed { max-width: 800px; margin: 0 auto }
.social-tabs {
    display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.5rem;
}
.social-tab {
    padding: .6rem 1.5rem; border: 2px solid #e2e8f0; border-radius: 50px;
    background: transparent; cursor: pointer; font-weight: 600;
    font-family: 'Poppins', sans-serif; font-size: .85rem;
    transition: all .3s; color: var(--text);
}
.dark .social-tab { border-color: #334155; color: #e2e8f0 }
.social-tab.active {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white; border-color: transparent;
}
.social-panel { display: none }
.social-panel.active { display: block; animation: fadeIn .4s }
.social-feed-placeholder {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.social-post {
    background: white; border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow); text-align: center; transition: all .3s;
}
.dark .social-post { background: var(--dark-card) }
.social-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover) }
.social-post-img {
    height: 120px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.social-post span {
    display: block; padding: .8rem; font-size: .8rem; font-weight: 500;
}
.social-follow {
    display: flex; gap: 1rem; justify-content: center; margin-top: 1.8rem;
}

/* ───── Floating Notification ───── */
.floating-notif {
    position: fixed; bottom: 90px; right: 20px; z-index: 400;
    background: white; border-radius: 14px; padding: 1rem 1.2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.15); display: flex;
    align-items: center; gap: 1rem; max-width: 380px;
    animation: slideUp 0.5s cubic-bezier(.4,0,.2,1) 1s both;
    border-left: 4px solid var(--accent);
}
.dark .floating-notif { background: var(--dark-card); color: #e2e8f0 }
.floating-notif-icon { font-size: 1.8rem; flex-shrink: 0 }
.floating-notif-body strong { display: block; font-size: .9rem; margin-bottom: .2rem }
.floating-notif-body span { font-size: .8rem; color: var(--text-light); line-height: 1.4 }
.dark .floating-notif-body span { color: #94a3b8 }
.floating-notif-close {
    background: none; border: none; font-size: 1.2rem; cursor: pointer;
    color: var(--text-light); flex-shrink: 0; padding: .2rem;
}
.floating-notif.hide { animation: slideOut .4s forwards }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: translateY(0) } }
@keyframes slideOut { to { opacity: 0; transform: translateY(20px) } }

/* ───── Cookies Consent ───── */
.cookie-consent {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 400; background: white; border-radius: 14px;
    padding: 1rem 1.5rem; box-shadow: 0 8px 30px rgba(0,0,0,.15);
    display: flex; align-items: center; gap: 1.2rem;
    max-width: 550px; animation: slideUp .5s cubic-bezier(.4,0,.2,1) 1.5s both;
    border: 1px solid rgba(0,0,0,.06);
}
.dark .cookie-consent { background: var(--dark-card); color: #e2e8f0; border-color: #334155 }
.cookie-consent p { font-size: .82rem; margin: 0; flex: 1 }
.cookie-btns { display: flex; gap: .5rem; flex-shrink: 0 }
.cookie-consent.hide { animation: slideOut .4s forwards }

/* ───── Scroll Top Progress Ring ───── */
.scroll-top-ring {
    position: fixed; bottom: 25px; right: 25px; z-index: 200;
    width: 48px; height: 48px; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    transition: opacity .3s;
}
.scroll-top-ring.visible { display: flex }
.scroll-top-ring svg { position: absolute; transform: rotate(-90deg) }
.scroll-ring-bg { fill: none; stroke: #e2e8f0; stroke-width: 3 }
.dark .scroll-ring-bg { stroke: #334155 }
.scroll-ring-progress {
    fill: none; stroke: var(--accent); stroke-width: 3;
    stroke-linecap: round; stroke-dasharray: 125.6; stroke-dashoffset: 125.6;
    transition: stroke-dashoffset .1s linear;
}
.scroll-top-icon {
    font-size: 1.3rem; color: var(--accent); font-weight: 700;
    z-index: 1; margin-top: -2px;
}

/* ───── Smooth Section Transition Gradient ───── */
section::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px; background: linear-gradient(to top, rgba(255,255,255,.5), transparent);
    pointer-events: none; z-index: 0;
}
.dark section::after { background: linear-gradient(to top, rgba(15,23,42,.5), transparent) }

/* ───── Enhanced Parallax ───── */
.hero-shapes .shape { transition: transform .15s cubic-bezier(.4,0,.2,1) }

/* ───── Smooth Loading Bar ───── */
#progress-bar {
    background: linear-gradient(90deg, var(--accent), #ef4444, #8b5cf6, var(--accent));
    background-size: 300% 100%; animation: progressMove 2s linear infinite;
}
@keyframes progressMove { 0%{background-position:0 0} 100%{background-position:300% 0} }

/* ───── Smooth Page Transition ───── */
section { transition: background .5s ease }
.reveal { transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1) }

/* ───── Responsive additions ───── */
@media (max-width: 768px) {
    .alumni-grid { grid-template-columns: 1fr }
    .social-feed-placeholder { grid-template-columns: repeat(2, 1fr) }
    .cal-grid { grid-template-columns: 1fr }
    .spotlight-body { flex-direction: column; text-align: center }
    .spotlight-stats { justify-content: center }
    .floating-notif { max-width: 300px; bottom: 80px; right: 10px; left: 10px }
    .cookie-consent { flex-direction: column; text-align: center; max-width: 90% }
}
@media (max-width: 480px) {
    .social-feed-placeholder { grid-template-columns: 1fr }
}

/* ───── Lightbox ───── */
.lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.92); z-index: 500;
    align-items: center; justify-content: center; flex-direction: column;
}

.lightbox.show { display: flex; animation: fadeIn .3s }

.lightbox-img { max-width: 95vw; max-height: 90vh; border-radius: 12px; object-fit: contain; image-rendering: auto; box-shadow: 0 8px 40px rgba(0,0,0,.3) }
.lightbox-caption { color: white; margin-top: 1rem; font-size: 1.1rem; font-weight: 600 }

.lightbox-close {
    position: absolute; top: 1.5rem; right: 2rem;
    color: white; font-size: 2.5rem; cursor: pointer; opacity: .5; transition: opacity .3s;
}

.lightbox-close:hover { opacity: 1 }

.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12); color: white; border: none;
    font-size: 1.6rem; padding: .7rem .9rem; cursor: pointer;
    border-radius: 50%; transition: all .3s; backdrop-filter: blur(4px);
}

.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); transform: translateY(-50%) scale(1.1) }
.lightbox-prev { left: 1.5rem }
.lightbox-next { right: 1.5rem }

/* ───── Responsive ───── */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr }
}

@media (max-width: 900px) {
    .about-content { flex-direction: column; gap: 2rem }
    .contact-container { flex-direction: column; gap: 2rem }
    .media-container { grid-template-columns: 1fr }
    .hero h1 { font-size: 2.2rem }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
        padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.1);
    }
    .dark .nav-links { background: rgba(15,23,42,.95) }
    .nav-links.open { display: flex }
    .nav-links a { margin: .4rem 0; padding: .4rem 0 }
.hamburger { display: block }
    .theme-toggle-nav { display: none } /* hide inline toggle, it will be in the menu */
    .theme-toggle-mobile { display: block !important; margin-top: .5rem; font-size: .85rem; opacity: .7 }

.about-stats { grid-template-columns: 1fr 1fr }
    .form-row { flex-direction: column }
    .hero h1 { font-size: 1.8rem }
    .hero-strip { gap: 1.5rem }
    .footer-content { grid-template-columns: 1fr; text-align: center }
    .footer-bottom { flex-direction: column; gap: .5rem; text-align: center }

    .lightbox-prev, .lightbox-next { font-size: 1.2rem; padding: .4rem }
    .lightbox-prev { left: .5rem }
    .lightbox-next { right: .5rem }
}

@media (max-width: 480px) {
    section { padding: 3.5rem 5% }
    h2 { font-size: 1.6rem }
    .about-stats { grid-template-columns: 1fr }
    .stat-card { padding: 1rem 1.5rem }
    .program-grid { grid-template-columns: 1fr }
    .achievement-grid { grid-template-columns: 1fr }
}

/* ───── Print ───── */
@media print {
    nav, .wa-float, .footer-actions, .hamburger, #progress-bar { display: none }
    .hero { min-height: auto; padding: 2rem }
}
