/* ================================================
   SMA Nusantara Cendekia - School Profile CSS
   Modern Dark/Light Theme with Green-Teal Accents
   ================================================ */

/* ========== Google Fonts Import ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========== CSS Variables ========== */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-1: #059669;
    --accent-2: #10b981;
    --accent-3: #34d399;
    --accent-4: #6ee7b7;
    --gradient-primary: linear-gradient(135deg, #059669, #10b981, #34d399);
    --gradient-hero: linear-gradient(135deg, #064e3b, #065f46, #047857);
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --navbar-bg: rgba(255,255,255,0.9);
    --footer-bg: #064e3b;
    --preloader-bg: #064e3b;
}

body.dark-mode {
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1e293b;
    --text-primary: #e8eaf6;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(16, 185, 129, 0.15);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
    --navbar-bg: rgba(10, 15, 26, 0.9);
    --footer-bg: #0a0f1a;
    --preloader-bg: #0a0f1a;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ========== Container ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== Preloader ========== */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--preloader-bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(52, 211, 153, 0.2);
    border-top-color: var(--accent-3);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.preloader-text {
    margin-top: 16px; font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 1.1rem; color: white; letter-spacing: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Scroll Progress ========== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--gradient-primary);
    z-index: 9998; transition: width 0.1s;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    backdrop-filter: blur(20px);
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.navbar.scrolled { padding: 10px 0; box-shadow: var(--shadow-md); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem;
    color: var(--text-primary);
}
.navbar-logo { height: 40px; width: auto; }
.brand-accent { color: var(--accent-1); }
.nav-toggle {
    display: none; background: none; border: none;
    font-size: 1.4rem; color: var(--text-primary); cursor: pointer;
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary); transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent-1); background: rgba(5, 150, 105, 0.08);
}
.nav-search-btn {
    background: white; color: #0f172a; border: 2px solid #e2e8f0; cursor: pointer;
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; margin-left: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.nav-search-btn:hover {
    background: var(--accent-1); color: white; border-color: var(--accent-1);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

/* ========== Hero Slider ========== */
.hero-slider {
    position: relative; width: 100%; height: 100vh; min-height: 600px;
    overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.35);
}
.hero-slide-content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 0 24px; z-index: 2;
}
.hero-badge-school {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 50px;
    font-size: 0.85rem; font-weight: 500; color: var(--accent-3);
    margin-bottom: 20px;
}
.hero-title {
    font-family: 'Poppins', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800; color: white; line-height: 1.2; margin-bottom: 16px;
    max-width: 800px;
}
.hero-title .typing-text { color: var(--accent-3); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.8);
    max-width: 600px; margin-bottom: 32px;
}
.hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: var(--gradient-primary);
    border: none; border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
    color: white; cursor: pointer; transition: all 0.3s;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3); }

/* Slider dots */
.slider-dots {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 5;
}
.slider-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.4); border: none; cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active { background: var(--accent-3); transform: scale(1.3); }

/* ========== Section Defaults ========== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.15); border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; color: var(--accent-1);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-title {
    font-family: 'Poppins', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700; margin-bottom: 8px; color: var(--text-primary);
}
.section-subtitle {
    font-size: 1rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto;
}
.section-alt { background: var(--bg-secondary); }

/* ========== About Section ========== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: 400px; object-fit: cover; }
.about-content h3 {
    font-family: 'Poppins', sans-serif; font-size: 1.5rem;
    font-weight: 700; margin-bottom: 16px;
}
.about-content p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px;
}
.stat-item {
    text-align: center; padding: 16px;
    background: var(--bg-card); border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.stat-number {
    font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800;
    color: var(--accent-1);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ========== Visi Misi ========== */
.visi-misi-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.vm-card {
    padding: 40px; background: var(--bg-card); border-radius: var(--radius-lg);
    border: 1px solid var(--border-color); transition: all 0.3s;
}
.vm-card:hover { border-color: var(--accent-2); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vm-card-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white; margin-bottom: 20px;
}
.vm-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.vm-card p { color: var(--text-secondary); line-height: 1.8; }
.misi-list { padding: 0; }
.misi-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0; color: var(--text-secondary); line-height: 1.6;
}
.misi-list li i { color: var(--accent-1); margin-top: 4px; flex-shrink: 0; }

/* ========== Program Unggulan ========== */
.program-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.program-card {
    padding: 32px 24px; background: var(--bg-card);
    border-radius: var(--radius-lg); border: 1px solid var(--border-color);
    text-align: center; transition: all 0.3s; position: relative;
}
.program-card.has-image {
    padding: 0; overflow: hidden;
}
.program-card:hover { border-color: var(--accent-2); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-image {
    position: relative; width: 100%; height: 200px; overflow: hidden;
}
.program-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.program-card:hover .program-image img { transform: scale(1.1); }
.program-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 20px;
}
.program-icon-float {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--gradient-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: 0 4px 12px rgba(5,150,105,0.4);
    position: absolute; top: 170px; left: 50%; transform: translateX(-50%);
    z-index: 5; border: 4px solid var(--bg-card); transition: all 0.3s;
}
.program-card.has-image .program-content { padding: 42px 24px 28px; position: relative; z-index: 1; text-align: center; }
.program-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: rgba(5, 150, 105, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--accent-1);
    margin: 0 auto 16px; transition: all 0.3s;
}
.program-card:hover .program-icon { background: var(--gradient-primary); color: white; }
.program-card:hover .program-icon-float { transform: translateX(-50%) translateY(-5px); box-shadow: 0 6px 16px rgba(5,150,105,0.5); }
.program-card h4 { font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 8px; }
.program-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }

/* ========== Teachers Grid ========== */
.teachers-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px;
}
.teacher-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border-color);
    text-align: center; transition: all 0.3s;
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.teacher-photo {
    width: 100%; height: 250px; object-fit: cover;
    transition: transform 0.4s;
}
.teacher-card:hover .teacher-photo { transform: scale(1.05); }
.teacher-info { padding: 20px 16px; }
.teacher-name {
    font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem;
    margin-bottom: 4px;
}
.teacher-position { font-size: 0.85rem; color: var(--accent-1); font-weight: 500; }
.teacher-subject { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ========== Facilities Grid ========== */
.facilities-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px;
}
.facility-card {
    display: flex; align-items: center; gap: 20px;
    padding: 24px; background: var(--bg-card);
    border-radius: var(--radius-lg); border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.facility-card.has-image {
    flex-direction: column; align-items: stretch; gap: 0; padding: 0;
    overflow: hidden;
}
.facility-card:hover { border-color: var(--accent-2); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.facility-image {
    position: relative; width: 100%; height: 220px; overflow: hidden;
}
.facility-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.facility-card:hover .facility-image img { transform: scale(1.1); }
.facility-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    display: flex; align-items: flex-end; justify-content: flex-end;
    padding: 16px; opacity: 0; transition: opacity 0.3s;
}
.facility-card:hover .facility-image-overlay { opacity: 1; }
.facility-icon-float {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
    transform: translateY(10px); transition: transform 0.3s;
}
.facility-card:hover .facility-icon-float { transform: translateY(0); }
.facility-card.has-image .facility-content { padding: 20px 24px 24px; }
.facility-icon {
    width: 56px; height: 56px; min-width: 56px; border-radius: 14px;
    background: rgba(5, 150, 105, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--accent-1);
}
.facility-card:hover .facility-icon { background: var(--gradient-primary); color: white; }
.facility-content h4 { font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 4px; }
.facility-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ========== Achievements ========== */
.achievements-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px;
}
.achievement-card {
    display: flex; gap: 16px; padding: 24px;
    background: var(--bg-card); border-radius: var(--radius-lg);
    border: 1px solid var(--border-color); transition: all 0.3s;
}
.achievement-card.has-image {
    flex-direction: column; gap: 0; padding: 0;
    overflow: hidden;
}
.achievement-card:hover { border-color: var(--accent-2); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.achievement-image {
    position: relative; width: 100%; height: 200px; overflow: hidden;
}
.achievement-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.achievement-card:hover .achievement-image img { transform: scale(1.1); }
.achievement-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 16px;
}
.achievement-level-badge {
    padding: 5px 14px; border-radius: 50px;
    background: var(--gradient-primary); color: white;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4);
}
.achievement-card.has-image .achievement-content { padding: 18px 22px 22px; }
.achievement-icon {
    width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
    background: rgba(5, 150, 105, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--accent-1);
}
.achievement-content h4 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.achievement-content p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }
.achievement-meta {
    display: flex; gap: 8px;
}
.achievement-badge {
    padding: 3px 10px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600;
}
.achievement-badge.level { background: rgba(5,150,105,0.1); color: var(--accent-1); }
.achievement-badge.year { background: rgba(100,116,139,0.1); color: var(--text-muted); }

/* ========== Gallery ========== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.gallery-item {
    position: relative; border-radius: var(--radius-md); overflow: hidden;
    cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; bottom: 16px; left: 16px; width: fit-content; max-width: calc(100% - 32px);
    background: rgba(0, 0, 0, 0.05); /* Ultra transparent */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* Pill shape */
    padding: 6px 16px 6px 6px;
    display: flex; align-items: center; justify-content: flex-start;
    gap: 10px;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.gallery-item:hover .gallery-overlay { 
    transform: translateY(-5px); 
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.gallery-overlay::before {
    content: "\f083"; /* FontAwesome fa-camera-retro */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    color: #fcd34d; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; min-width: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}
.gallery-overlay span { 
    color: #f8fafc; font-size: 0.85rem; font-weight: 500; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.8); text-align: left;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ========== Articles / News ========== */
.articles-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px;
}
.article-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border-color); transition: all 0.3s;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.article-card-image { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-card-image { transform: scale(1.05); }
.article-card-body { padding: 24px; }
.article-category {
    display: inline-block; padding: 4px 12px;
    background: rgba(5,150,105,0.1); color: var(--accent-1);
    border-radius: 50px; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; margin-bottom: 8px;
}
.article-card-title {
    font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 600;
    margin-bottom: 8px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-excerpt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-footer { display: flex; justify-content: space-between; align-items: center; }
.article-date { font-size: 0.8rem; color: var(--text-muted); }
.article-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 600; color: var(--accent-1); transition: gap 0.3s;
}
.article-link:hover { gap: 10px; }

/* ========== PPDB Section ========== */
.ppdb-section {
    padding: 80px 0;
    background: var(--gradient-hero);
    color: white;
}
.ppdb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ppdb-content h2 { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.ppdb-content p { color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 24px; }
.ppdb-info-list { margin-bottom: 24px; }
.ppdb-info-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ppdb-info-item i { color: var(--accent-3); width: 20px; }
.ppdb-info-item span { color: rgba(255,255,255,0.9); }
.ppdb-info-item strong { color: white; }
.ppdb-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: white; color: var(--accent-1);
    border: none; border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
}
.ppdb-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.ppdb-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.ppdb-image img { width: 100%; height: auto; }

/* ========== Contact / Guestbook ========== */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-info-list { margin-bottom: 32px; }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid var(--border-color);
}
.contact-icon {
    width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
    background: rgba(5,150,105,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-1); font-size: 1.1rem;
}
.contact-info-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.contact-info-item p { font-size: 0.85rem; color: var(--text-secondary); }
.contact-map { border-radius: var(--radius-md); overflow: hidden; }
.contact-map iframe { width: 100%; height: 300px; border: none; }
.contact-form {
    background: var(--bg-card); padding: 32px;
    border-radius: var(--radius-lg); border: 1px solid var(--border-color);
}
.contact-form h3 { font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-control {
    width: 100%; padding: 12px 16px;
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); font-family: 'Inter'; font-size: 0.9rem;
    color: var(--text-primary); transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: var(--accent-2); }
textarea.form-control { min-height: 120px; resize: vertical; }
.btn-submit {
    width: 100%; padding: 14px;
    background: var(--gradient-primary); border: none;
    border-radius: var(--radius-md); color: white;
    font-family: 'Inter'; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,0.3); }

/* Alert messages */
.alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-size: 0.9rem;
}
.alert-success { background: rgba(16,185,129,0.1); color: var(--accent-1); border: 1px solid rgba(16,185,129,0.2); }
.alert-danger { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

/* ========== Footer ========== */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white; padding: 80px 0 0; position: relative; overflow: hidden;
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
    margin-bottom: 40px;
}
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-link:hover { background: var(--accent-a4, #3b82f6); transform: translateY(-4px); border-color: transparent; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
.footer-col h4 { font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 24px; font-size: 1.1rem; color: #f8fafc; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: color 0.3s;
    display: inline-flex; align-items: center;
}
.footer-col ul li a:hover { color: #60a5fa; padding-left: 4px; }
.footer-col.footer-contact ul li { display: flex; gap: 12px; color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 16px; align-items: flex-start; }
.footer-col.footer-contact ul li i { margin-top: 3px; font-size: 1rem; color: var(--accent-a4, #60a5fa); flex-shrink: 0; }
.footer-col.footer-contact ul li a { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,0.7); padding-left: 0; }
.footer-col.footer-contact ul li a:hover { color: #60a5fa; padding-left: 0; }

/* Footer Stats */
.footer-stats-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 0 0 30px 0; }
.footer-stats {
    display: flex; gap: 16px; margin-bottom: 30px; justify-content: center; flex-wrap: wrap;
}
.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.9rem; color: rgba(255,255,255,0.8);
    display: flex; align-items: center; gap: 10px;
}
.stat-pill strong { color: white; font-size: 1rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: #60a5fa; text-decoration: none; transition: color 0.3s; }
.footer-bottom a:hover { color: white; }

/* ========== Floating Buttons ========== */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: white; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5); }

.scroll-top {
    position: fixed; bottom: 90px; right: 24px; z-index: 999;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-primary); font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: all 0.3s;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent-1); color: white; border-color: var(--accent-1); }

.theme-toggle {
    position: fixed; bottom: 144px; right: 24px; z-index: 999;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-primary); font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s;
}
.theme-toggle:hover { background: var(--accent-1); color: white; border-color: var(--accent-1); }

/* ========== Lightbox ========== */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.9); display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 90%; max-height: 80vh; border-radius: 8px; display: block; }
.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: white; font-size: 2rem; cursor: pointer;
}
.lightbox-caption {
    color: rgba(255,255,255,0.8); font-size: 0.9rem;
    margin-top: 12px; text-align: center;
}

/* ========== Article Detail ========== */
.article-detail { padding: 120px 0 60px; }
.article-detail-container { max-width: 800px; margin: 0 auto; }
.article-detail-header { margin-bottom: 32px; }
.article-detail-image { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 24px; }
.article-detail-body { line-height: 1.9; color: var(--text-secondary); }
.article-detail-body p { margin-bottom: 16px; }

/* ========== Teacher Modal ========== */
.teacher-card { cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.teacher-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.teacher-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    padding: 24px; backdrop-filter: blur(5px);
}
.teacher-modal-overlay.active { opacity: 1; visibility: visible; }
.teacher-modal-content {
    background: var(--bg-card); border-radius: 20px; overflow: hidden;
    width: 100%; max-width: 700px; display: flex;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); position: relative;
    transform: translateY(20px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.teacher-modal-overlay.active .teacher-modal-content { transform: translateY(0) scale(1); }
.teacher-modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.7); color: #333; font-size: 14px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s;
    backdrop-filter: blur(4px);
}
.teacher-modal-close:hover { background: white; color: #881337; transform: rotate(90deg); }
.teacher-modal-left { width: 45%; position: relative; }
.teacher-modal-left img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.teacher-modal-left-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.teacher-modal-left-overlay h3 { color: white; margin-bottom: 2px; font-weight: 700; font-size: 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.teacher-modal-position { color: #fcd34d; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 10px rgba(252,211,77,0.3); margin-bottom: 16px; border-bottom: 1px solid rgba(252,211,77,0.4); padding-bottom: 6px; display: inline-block;}
.teacher-modal-left-overlay .badge { 
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.teacher-modal-left-overlay .badge i { font-size: 1rem; color: #fef08a; }
.teacher-modal-right { width: 55%; padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; }
.teacher-modal-title { color: #881337; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 24px; font-size: 0.9rem; text-transform: uppercase; }
.teacher-modal-item { display: flex; align-items: center; background: rgba(0,0,0,0.03); padding: 16px; border-radius: 12px; margin-bottom: 16px; }
.teacher-modal-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-right: 16px; flex-shrink: 0; }
.icon-subject { background: #fef3c7; color: #d97706; }
.icon-education { background: #dcfce7; color: #059669; }
.icon-email { background: #e0e7ff; color: #4f46e5; }
.teacher-modal-text { display: flex; flex-direction: column; }
.teacher-modal-text small { font-size: 0.75rem; color: var(--text-secondary); font-weight: 600; margin-bottom: 4px; letter-spacing: 0.5px; text-transform: uppercase; }
.teacher-modal-text strong { font-size: 1rem; color: var(--text-primary); font-weight: 600; word-break: break-all; }

@media (max-width: 768px) {
    .teacher-modal-content { flex-direction: column; max-width: 400px;}
    .teacher-modal-left { width: 100%; }
    .teacher-modal-left img { min-height: 250px; height: 250px; }
    .teacher-modal-right { width: 100%; padding: 24px; }
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .about-grid, .ppdb-grid, .contact-grid, .visi-misi-grid { grid-template-columns: 1fr; }
    .teachers-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: 70px; left: 0; right: 0;
        background: var(--navbar-bg); backdrop-filter: blur(20px);
        flex-direction: column; padding: 16px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%); opacity: 0;
        transition: all 0.3s; pointer-events: none;
    }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .hero-slider { height: 70vh; min-height: 500px; }
    .facilities-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .program-grid { grid-template-columns: repeat(2, 1fr); }
    .teachers-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col.footer-contact ul li { justify-content: center; }
    .footer-brand { align-items: center; }
    .footer-brand .footer-social { justify-content: center; }
    .footer-stats { flex-direction: column; align-items: center; gap: 10px; }
    .stat-pill { min-width: 200px; justify-content: center; }
    .section { padding: 60px 0; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: clamp(1.5rem, 5vw, 2.5rem); }
}

@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr; }
    .program-grid { grid-template-columns: 1fr; }
    .teachers-grid { grid-template-columns: 1fr 1fr !important; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .hero-slider { height: 60vh; min-height: 400px; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.85rem; }
    .container { padding: 0 16px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-1); }
