/* ============================================================
   SMAN Template - Multi-Page High School Website Template
   Color: Green Education Theme (#1b5e20 / #2e7d32)
   Framework: Pure CSS, Font Awesome 6, Google Fonts (Poppins)
   Pages: index.html | network.html | galeri.html | kontak.html
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --primary: #1b5e20;
    --primary-dark: #0d3b0f;
    --primary-light: #2e7d32;
    --primary-lighter: #4caf50;
    --accent: #81c784;
    --accent-light: #a5d6a7;
    --accent-dark: #388e3c;
    --bg: #f1f8e9;
    --bg-light: #f9fdf7;
    --bg-white: #ffffff;
    --bg-gray: #f5f5f5;
    --text: #212121;
    --text-light: #616161;
    --text-lighter: #9e9e9e;
    --text-white: #ffffff;
    --border: #c8e6c9;
    --border-light: #e8f5e9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 32px rgba(0, 0, 0, 0.14);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1240px;
    --max-width-sm: 960px;
    --header-height: 70px;
    --font-primary: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font-primary);
    background: var(--bg-white);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-dark);
}
ul,
ol {
    list-style: none;
}
button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}
::selection {
    background: var(--primary-light);
    color: #fff;
}
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.container-sm {
    max-width: var(--max-width-sm);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll-left {
    opacity: 0;
    transform: translateX(-30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.animate-on-scroll-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.animate-on-scroll-right {
    opacity: 0;
    transform: translateX(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.animate-on-scroll-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-dark);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: all var(--transition);
}
.header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    background: rgba(13, 59, 15, 0.97);
    backdrop-filter: blur(10px);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}
.brand:hover {
    opacity: 0.9;
    color: #fff;
}
.brand-logo {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-text .brand-name {
    font-size: 1.15rem;
    font-weight: 700;
}
.brand-text .brand-sub {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
}
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav > a,
.nav .dropdown-toggle {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: var(--radius-xs);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
}
.nav > a:hover,
.nav .dropdown-toggle:hover,
.nav > a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.nav .dropdown {
    position: relative;
}
.nav .dropdown .dropdown-toggle i {
    font-size: 0.65rem;
    transition: transform var(--transition-fast);
}
.nav .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}
.nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    color: var(--text);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 1001;
}
.nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav .dropdown-menu a {
    display: block;
    color: var(--text);
    padding: 10px 20px;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}
.nav .dropdown-menu a:hover {
    background: var(--bg);
    color: var(--primary);
    padding-left: 24px;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    transition: background var(--transition-fast);
}
.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   PAGE HEADER (Sub-page Banner)
   ============================================================ */
.page-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 24px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.page-header-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}
.page-header p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 0;
}
.page-header .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.85rem;
    opacity: 0.75;
}
.page-header .breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}
.page-header .breadcrumb a:hover {
    text-decoration: underline;
}
.page-header .breadcrumb i {
    font-size: 0.6rem;
}

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background: var(--primary-dark);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1523050854058-8df90110ea5f?w=1400");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 59, 15, 0.88) 0%,
        rgba(27, 94, 32, 0.78) 40%,
        rgba(46, 125, 50, 0.7) 70%,
        rgba(13, 59, 15, 0.85) 100%
    );
    z-index: 1;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
    opacity: 0.5;
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 40px 24px;
    animation: fadeInUp 1s ease-out;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.hero-badge i {
    margin-right: 6px;
    color: var(--accent);
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero h1 .highlight {
    color: var(--accent);
}
.hero .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 6px;
}
.hero .hero-motto {
    font-size: 1.05rem;
    opacity: 0.8;
    margin-bottom: 32px;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}
.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: float 2s ease-in-out infinite;
}
.hero-scroll a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    transition: color var(--transition-fast);
}
.hero-scroll a:hover {
    color: #fff;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
    padding: 80px 24px;
}
.section-alt {
    background: var(--bg-light);
}
.section-dark {
    background: var(--primary-dark);
    color: #fff;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header .section-label {
    display: inline-block;
    background: var(--border-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}
.section-dark .section-title {
    color: #fff;
}
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.section-divider .line {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-divider .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
}
.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   SAMBUTAN KEPALA SEKOLAH
   ============================================================ */
.sambutan-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: center;
}
.sambutan-photo-wrapper {
    text-align: center;
}
.sambutan-photo {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 0 auto 20px;
    position: relative;
}
.sambutan-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sambutan-photo-border {
    position: absolute;
    inset: -8px;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    opacity: 0.4;
    pointer-events: none;
}
.sambutan-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
}
.sambutan-role {
    font-size: 0.85rem;
    color: var(--text-light);
}
.sambutan-content {
    position: relative;
    padding-left: 24px;
    border-left: 4px solid var(--accent);
}
.sambutan-content .quote-icon {
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 12px;
    display: block;
}
.sambutan-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}
.sambutan-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.sambutan-content .sambutan-signature {
    margin-top: 20px;
    font-style: italic;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   PROFIL SEKOLAH - TABS
   ============================================================ */
.profil-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.profil-tab {
    padding: 12px 28px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.profil-tab:hover {
    border-color: var(--accent);
    color: var(--primary);
}
.profil-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.profil-tab i {
    margin-right: 8px;
}
.profil-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.profil-content.active {
    display: block;
}
.profil-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.profil-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}
.profil-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.visi-box,
.misi-box {
    padding: 28px;
    border-radius: var(--radius);
}
.visi-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}
.visi-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.misi-box {
    background: var(--bg-light);
    border: 2px solid var(--border);
}
.misi-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.misi-box ol {
    padding-left: 20px;
    list-style: decimal;
}
.misi-box ol li {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 4px;
}
.struktur-chart {
    text-align: center;
}
.struktur-top {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.struktur-node {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    min-width: 150px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}
.struktur-node:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.struktur-node.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.struktur-node .node-role {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 2px;
}
.struktur-node .node-name {
    font-size: 0.9rem;
    font-weight: 700;
}
.struktur-connector {
    display: flex;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    margin: 8px 0;
}
.struktur-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stats {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
}
.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.stat-item {
    text-align: center;
    padding: 36px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    transition: all var(--transition);
}
.stat-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}
.stat-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 12px;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ============================================================
   FASILITAS
   ============================================================ */
.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.fasilitas-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.fasilitas-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.fasilitas-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.fasilitas-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.fasilitas-card:hover .fasilitas-card-img img {
    transform: scale(1.08);
}
.fasilitas-card-img .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.fasilitas-card:hover .img-overlay {
    opacity: 1;
}
.fasilitas-card-body {
    padding: 20px;
}
.fasilitas-card-body .card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
    transition: all var(--transition);
}
.fasilitas-card:hover .card-icon {
    background: var(--primary);
    color: #fff;
}
.fasilitas-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}
.fasilitas-card-body p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================================
   EKSTRAKURIKULER
   ============================================================ */
.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ekskul-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}
.ekskul-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.ekskul-icon {
    width: 60px;
    height: 60px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 14px;
    transition: all var(--transition);
}
.ekskul-card:hover .ekskul-icon {
    background: var(--primary);
    color: #fff;
    transform: rotateY(360deg);
}
.ekskul-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.ekskul-card p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================================
   PRESTASI TABLE
   ============================================================ */
.prestasi-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.prestasi-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.9rem;
}
.prestasi-table thead {
    background: var(--primary);
    color: #fff;
}
.prestasi-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}
.prestasi-table th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}
.prestasi-table th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}
.prestasi-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
}
.prestasi-table tbody tr {
    transition: background var(--transition-fast);
}
.prestasi-table tbody tr:hover {
    background: var(--bg-light);
}
.prestasi-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--radius-lg);
}
.prestasi-table tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--radius-lg) 0;
}
.prestasi-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.prestasi-badge.gold {
    background: #fff8e1;
    color: #f57f17;
}
.prestasi-badge.silver {
    background: #f5f5f5;
    color: #616161;
}
.prestasi-badge.bronze {
    background: #fbe9e7;
    color: #d84315;
}

/* ============================================================
   PPDB INFO
   ============================================================ */
.ppdb {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 70px 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}
.ppdb::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.ppdb-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.ppdb h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.ppdb p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 32px;
}
.ppdb-timeline {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.ppdb-step {
    flex: 1;
    min-width: 150px;
    max-width: 220px;
    text-align: center;
    padding: 20px;
    position: relative;
}
.ppdb-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    right: -10px;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}
.ppdb-step-num {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all var(--transition);
}
.ppdb-step:hover .ppdb-step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
}
.ppdb-step h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.ppdb-step span {
    font-size: 0.78rem;
    opacity: 0.75;
}

/* ============================================================
   NETWORK DIRECTORY (network.html)
   ============================================================ */
.network-page {
    padding: 60px 24px;
    background: var(--bg-light);
}
.network-stats-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.network-stat-badge {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    min-width: 140px;
}
.network-stat-badge .nsb-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.network-stat-badge .nsb-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}
.network-filter {
    max-width: 540px;
    margin: 0 auto 36px;
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    transition: border-color var(--transition);
}
.network-filter:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08);
}
.network-filter input {
    flex: 1;
    border: none;
    padding: 15px 24px;
    font-size: 0.95rem;
    outline: none;
    color: var(--text);
    background: transparent;
}
.network-filter input::placeholder {
    color: var(--text-lighter);
}
.network-filter button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 15px 24px;
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition-fast);
}
.network-filter button:hover {
    background: var(--primary-dark);
}
.network-no-results {
    display: none;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-light);
    font-size: 1.05rem;
}
.network-no-results i {
    font-size: 2.5rem;
    color: var(--text-lighter);
    display: block;
    margin-bottom: 12px;
}
.network-city-group {
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.network-city-group:hover {
    box-shadow: var(--shadow);
}
.network-city-group.hidden {
    display: none;
}
.network-city-header {
    background: var(--primary-light);
    color: #fff;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.network-city-header:hover {
    background: var(--primary);
}
.network-city-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.network-city-header .badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.network-city-body {
    padding: 16px 22px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.network-school-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    background: var(--bg-light);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
}
.network-school-link:hover {
    background: var(--border-light);
    border-color: var(--accent);
    color: var(--primary-dark);
    transform: translateX(4px);
}
.network-school-link i {
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ============================================================
   GALLERY PAGE (galeri.html)
   ============================================================ */
.galeri-page {
    padding: 60px 24px;
}
.galeri-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.galeri-filter-btn {
    padding: 10px 24px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.galeri-filter-btn:hover {
    border-color: var(--accent);
    color: var(--primary);
}
.galeri-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.galeri-grid-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.galeri-grid-main .galeri-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.galeri-grid-main .galeri-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.galeri-grid-main .galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.galeri-grid-main .galeri-item:hover img {
    transform: scale(1.08);
}
.galeri-grid-main .galeri-item .galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 59, 15, 0.88),
        transparent 50%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}
.galeri-grid-main .galeri-item:hover .galeri-overlay {
    opacity: 1;
}
.galeri-grid-main .galeri-item .galeri-overlay i {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 8px;
}
.galeri-grid-main .galeri-item .galeri-overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}
.galeri-grid-main .galeri-item .galeri-overlay .galeri-cat {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.galeri-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}
.galeri-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
}
.galeri-lightbox.open {
    display: flex;
}
.galeri-lightbox img {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.galeri-lightbox .lb-caption {
    color: #fff;
    font-size: 1rem;
    margin-top: 16px;
    font-weight: 500;
}
.galeri-lightbox .lb-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.galeri-lightbox .lb-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.galeri-lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.galeri-lightbox .lb-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}
.galeri-lightbox .lb-prev {
    left: 24px;
}
.galeri-lightbox .lb-next {
    right: 24px;
}

/* ============================================================
   KONTAK PAGE (kontak.html)
   ============================================================ */
.kontak-page {
    padding: 60px 24px;
}
.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.kontak-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.kontak-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.kontak-info-icon {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: all var(--transition);
}
.kontak-info-item:hover .kontak-info-icon {
    background: var(--primary);
    color: #fff;
}
.kontak-info-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
}
.kontak-info-text p {
    font-size: 0.875rem;
    color: var(--text-light);
}
.kontak-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 280px;
    background: var(--bg);
}
.kontak-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.kontak-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.kontak-form h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.kontak-form h3 i {
    margin-right: 8px;
    color: var(--primary);
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-light);
    transition: all var(--transition-fast);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.kontak-social-section {
    margin-top: 32px;
    text-align: center;
}
.kontak-social-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}
.kontak-social-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.kontak-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    transition: all var(--transition);
    text-decoration: none;
}
.kontak-social-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.kontak-social-link.fb {
    background: #1877f2;
}
.kontak-social-link.ig {
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
}
.kontak-social-link.tw {
    background: #000;
}
.kontak-social-link.yt {
    background: #ff0000;
}
.kontak-social-link.tk {
    background: #000;
}
.kontak-social-link.wa {
    background: #25d366;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 56px 24px 28px;
    position: relative;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--primary-lighter),
        var(--accent)
    );
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.footer-col p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 8px;
}
.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    display: block;
    padding: 5px 0;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}
.footer-col a:hover {
    color: var(--accent);
    padding-left: 6px;
}
.footer-col a i {
    width: 18px;
    margin-right: 6px;
    font-size: 0.75rem;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all var(--transition);
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}
.footer-bottom {
    max-width: var(--max-width);
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}
.footer-bottom strong {
    color: var(--accent);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .fasilitas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .galeri-grid-main {
        grid-template-columns: repeat(2, 1fr);
    }
    .ekskul-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sambutan-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .sambutan-photo {
        max-width: 220px;
    }
    .visi-misi-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .kontak-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    .header-inner {
        padding: 0 16px;
    }
    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 16px;
        gap: 2px;
        overflow-y: auto;
        z-index: 999;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    .nav.open {
        display: flex;
    }
    .nav > a,
    .nav .dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: var(--radius-xs);
    }
    .nav .dropdown {
        width: 100%;
    }
    .nav .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
        padding: 4px 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 0;
        border-radius: var(--radius-xs);
    }
    .nav .dropdown.open .dropdown-menu {
        display: block;
    }
    .nav .dropdown-menu a {
        color: rgba(255, 255, 255, 0.85);
        padding: 10px 16px 10px 36px;
        font-size: 0.85rem;
    }
    .nav .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        padding-left: 40px;
    }
    .hamburger {
        display: flex;
    }
    .hero {
        min-height: calc(100vh - var(--header-height));
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .hero .hero-subtitle {
        font-size: 1rem;
    }
    .hero .hero-motto {
        font-size: 0.9rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
    .section {
        padding: 50px 16px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fasilitas-grid {
        grid-template-columns: 1fr;
    }
    .galeri-grid-main {
        grid-template-columns: 1fr;
    }
    .ekskul-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ppdb-timeline {
        flex-direction: column;
        align-items: center;
    }
    .ppdb-step:not(:last-child)::after {
        top: auto;
        bottom: -4px;
        right: auto;
        width: 2px;
        height: 20px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .profil-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .profil-tab {
        text-align: center;
    }
    .network-city-body {
        grid-template-columns: 1fr;
    }
    .network-stats-bar {
        gap: 16px;
    }
    .prestasi-table {
        font-size: 0.8rem;
    }
    .prestasi-table th,
    .prestasi-table td {
        padding: 10px 12px;
    }
    .sambutan-content {
        padding-left: 16px;
        border-left-width: 3px;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }
    .galeri-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero .hero-badge {
        font-size: 0.75rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ekskul-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .galeri-grid-main {
        grid-template-columns: 1fr;
    }
    .brand-text .brand-name {
        font-size: 1rem;
    }
    .brand-logo {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .sambutan-photo {
        max-width: 180px;
    }
    .prestasi-table {
        font-size: 0.75rem;
    }
    .network-filter {
        flex-direction: column;
        border-radius: var(--radius-sm);
        border: none;
    }
    .network-filter input {
        border: 2px solid var(--border);
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        text-align: center;
    }
    .network-filter button {
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }
}
@media print {
    .header,
    .hamburger,
    .back-to-top,
    .footer,
    .hero-scroll {
        display: none;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}
