/* ===================================================================
   WEBSITE RESMI SD NEGERI INPRES ARSO VIII - KABUPATEN KEEROM, PAPUA
   Desain Modern, Responsif, Interaktif, dan Mudah Dikelola
   =================================================================== */

:root {
    --primary: #0d5c3a;         /* Hijau Hutan Khas Papua / Keerom */
    --primary-dark: #073b24;
    --primary-light: #167a4e;
    --primary-subtle: #e8f5e9;
    --secondary: #d97706;       /* Kuning Emas Keerom */
    --secondary-hover: #b45309;
    --accent: #2563eb;          /* Biru Teknologi / Starlink */
    --accent-light: #eff6ff;
    --danger: #dc2626;          /* Merah Aksen / Status Rusak */
    --warning: #f59e0b;         /* Oranye Status Rusak Sedang */
    --success: #16a34a;         /* Hijau Status Baik */
    --dark: #1e293b;            /* Teks Utama Gelap */
    --dark-muted: #64748b;      /* Teks Sekunder */
    --light-bg: #f8fafc;        /* Background Halaman */
    --card-bg: #ffffff;
    --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 25px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s ease-in-out;
}

/* RESET DASAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================================================
   BAR INFORMASI ATAS (TOP BAR)
   =================================================================== */
.top-bar {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item a {
    color: #e2e8f0;
}
.top-bar-item a:hover {
    color: var(--secondary);
}

.badge-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 11px;
}

.badge-tag.akreditasi {
    background: #eab308;
    color: #713f12;
}

.badge-tag.internet {
    background: #38bdf8;
    color: #0369a1;
}

/* ===================================================================
   HEADER & NAVIGASI UTAMA
   =================================================================== */
header.site-header {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.brand-text h1 {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.brand-text p {
    font-size: 12px;
    color: var(--dark-muted);
    font-weight: 500;
}

/* NAV LINKS */
nav.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-subtle);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-subtle);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
}


/* ===================================================================
   DROPDOWN MENU PROFIL SEKOLAH (DESKTOP & MOBILE RESPONSIF)
   =================================================================== */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-chevron {
    font-size: 11px;
    transition: transform 0.25s ease;
    display: inline-block;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
    padding: 8px;
    display: none;
    z-index: 1000;
    animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top left;
}

@keyframes navDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.18s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background: #f0fdf4;
    color: var(--primary);
    transform: translateX(3px);
}

.nav-dropdown-item .dropdown-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.18s ease;
}

.nav-dropdown-item:hover .dropdown-icon,
.nav-dropdown-item.active .dropdown-icon {
    background: #dcfce7;
}

.nav-dropdown-item strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
}

.nav-dropdown-item small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
}

.nav-dropdown-item:hover small {
    color: #047857;
}

.btn-nav-action {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: white !important;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.btn-nav-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45);
}

/* MOBILE TOGGLE BUTTON */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--primary);
    cursor: pointer;
    padding: 6px;
}

/* ===================================================================
   HERO BANNER BERANDA
   Menampilkan Kemegahan Gapura Resmi SDN INPRES ARSO VIII
   Posisi teks dan kartu kaca diletakkan lebih ke bawah agar tulisan nama sekolah
   pada gapura terlihat sangat jelas, tajam dan tidak tertutupi kartu
   =================================================================== */
.hero-section {
    position: relative;
    background-color: #072a1a;
    background-image: 
        /* Gradien pelindung teks di sisi bawah: bagian atas (gapura) sangat jernih dan transparan */
        linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.02) 16%, rgba(0, 0, 0, 0.05) 38%, rgba(5, 28, 17, 0.72) 72%, rgba(5, 28, 17, 0.96) 100%),
        url('../images/gerbang-utama.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    padding: 230px 0 110px; /* Ruang atas 230px memastikan tulisan 'SDN INPRES ARSO VIII' di gapura terlihat 100% bebas hambatan */
    min-height: 740px;
    display: flex;
    align-items: flex-end; /* Memposisikan kartu informasi umum ke bagian bawah gerbang */
    overflow: hidden;
    transition: background-image 0.4s ease;
}

/* Mode Foto Penuh: Latar belakang 100% tanpa filter gelap */
.hero-section.photo-mode {
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0%, transparent 20%, transparent 80%, rgba(5, 28, 17, 0.75) 100%),
        url('../images/gerbang-utama.jpg');
}

.hero-container {
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Sejajar di bagian bawah area gerbang */
    gap: 28px;
    width: 100%;
}

/* KARTU KACA ELEGAN (GLASSMORPHISM) - FORM INFORMASI UMUM BERANDA */
.hero-glass-card {
    background: rgba(6, 28, 18, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 20px;
    padding: 34px 38px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.52);
    max-width: 630px;
    margin-top: 30px; /* Digeser ke bawah agar tulisan nama sekolah di atas gapura bebas terlihat */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-glass-card.is-minimized {
    padding: 16px 22px;
    max-width: 320px;
    background: rgba(6, 28, 18, 0.94);
    border-color: rgba(253, 224, 71, 0.4);
}

.hero-glass-card.is-minimized .hero-tag,
.hero-glass-card.is-minimized .hero-tagline,
.hero-glass-card.is-minimized .hero-subtitle,
.hero-glass-card.is-minimized .hero-badges-row,
.hero-glass-card.is-minimized .btn-primary,
.hero-glass-card.is-minimized .btn-secondary {
    display: none;
}

.hero-glass-card.is-minimized .hero-title {
    font-size: 19px;
    margin-bottom: 8px;
}

.hero-glass-card.is-minimized .btn-glass-view {
    background: var(--secondary);
    color: white;
    border-color: transparent;
    padding: 8px 14px;
    font-size: 12.5px;
    width: 100%;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: #fde047;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 700;
    color: #fde047;
    line-height: 1.35;
    margin-bottom: 12px;
}

.hero-tagline span {
    color: #ffffff;
    text-decoration: underline decoration-color: var(--secondary);
}

.hero-subtitle {
    font-size: 14.5px;
    color: #e2e8f0;
    margin-bottom: 20px;
    line-height: 1.65;
}

.hero-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-badge-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: #f8fafc;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-glass-view {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-glass-view:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #ffffff;
    transform: translateY(-2px);
}

/* LENCANA SUDUT KANAN ATAS */
.hero-floating-badge {
    background: rgba(6, 28, 18, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    max-width: 380px;
    transition: var(--transition);
}

.hero-floating-badge:hover {
    background: rgba(6, 28, 18, 0.92);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-floating-badge-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-badge-icon {
    font-size: 26px;
}

.hero-floating-badge strong {
    display: block;
    font-size: 13.5px;
    color: #fde047;
    margin-bottom: 2px;
}

.hero-floating-badge small {
    display: block;
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.35;
}

.btn-zoom-photo {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
}

.btn-zoom-photo:hover {
    background: white;
    color: var(--primary);
}

.school-photo-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 4px solid #ffffff;
    margin-bottom: 45px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-photo-showcase:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.22);
}

.school-photo-showcase img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.school-photo-showcase:hover img {
    transform: scale(1.015);
}

.school-photo-caption {
    background: linear-gradient(to top, rgba(7, 42, 26, 0.95), rgba(7, 42, 26, 0.78));
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.hero-shape .shape-fill {
    fill: var(--light-bg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}
.btn-primary:hover {
    background-color: var(--secondary-hover);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ===================================================================
   STATISTIK CEPAT (STATS BAR)
   =================================================================== */
.stats-bar {
    margin-top: -30px;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.stat-item {
    background: var(--card-bg);
    padding: 22px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.stat-label {
    font-size: 12.5px;
    color: var(--dark-muted);
    font-weight: 600;
}

/* ===================================================================
   SECTION UTAMA & KOMPONEN UMUM
   =================================================================== */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.section-pill {
    display: inline-block;
    background-color: var(--primary-subtle);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 15px;
    color: var(--dark-muted);
}

/* CARDS */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* ===================================================================
   SAMBUTAN KEPALA SEKOLAH
   =================================================================== */
.welcome-section {
    background-color: #ffffff;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: center;
}

.welcome-photo-wrapper {
    position: relative;
    text-align: center;
}

.welcome-photo {
    width: 280px;
    height: 350px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    margin: 0 auto;
    border: 6px solid #ffffff;
    background: #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.welcome-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.welcome-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.welcome-content p {
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.principal-sig {
    margin-top: 24px;
    border-top: 2px dashed var(--border-color);
    padding-top: 16px;
}

.principal-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}

.principal-title {
    font-size: 13px;
    color: var(--dark-muted);
}

/* ===================================================================
   KONDISI REALITAS & POTENSI SEKOLAH (FEATURE HIGHLIGHT)
   =================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-box {
    background: #ffffff;
    padding: 30px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-box:hover::before {
    background: var(--secondary);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: var(--dark-muted);
    line-height: 1.65;
}

/* ===================================================================
   BERITA & PENGUMUMAN GRID
   =================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}

.news-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-img-holder {
    height: 190px;
    background: #cbd5e1;
    position: relative;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 12px;
    color: var(--dark-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--dark);
}

.news-title a:hover {
    color: var(--primary);
}

.news-snippet {
    font-size: 13.5px;
    color: var(--dark-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.news-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===================================================================
   DEWAN GURU & GTK CARDS
   =================================================================== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.teacher-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    padding: 24px 18px;
    position: relative;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.teacher-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
    object-position: center 20%;
    border: 3px solid var(--primary-subtle);
    background-color: #f1f5f9;
}

.teacher-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.teacher-role {
    display: inline-block;
    background: var(--primary-subtle);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.teacher-details {
    font-size: 12px;
    color: var(--dark-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.teacher-details span {
    display: flex;
    justify-content: space-between;
}

.teacher-details strong {
    color: #475569;
}

.badge-status {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.badge-status.pns {
    background: #dcfce7;
    color: #166534;
}

.badge-status.p3k {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-status.honor {
    background: #fef3c7;
    color: #92400e;
}

/* ===================================================================
   TABEL & DATA VISUAL (SISWA & SAPRAS)
   =================================================================== */
.data-table-wrapper {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    margin-bottom: 30px;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

table.data-table th {
    background-color: var(--primary);
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    white-space: nowrap;
}

table.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: #334155;
}

table.data-table tr:hover {
    background-color: #f8fafc;
}

table.data-table tfoot td {
    background-color: #f1f5f9;
    font-weight: 800;
    color: var(--dark);
    border-top: 2px solid var(--border-color);
}

table.data-table th:nth-child(3),
table.data-table td:nth-child(3) {
    white-space: nowrap;
    min-width: 210px;
}

.cond-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.cond-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.cond-baik {
    background: #dcfce7;
    color: #15803d;
}

.cond-rusak-sedang {
    background: #fef3c7;
    color: #b45309;
}

.cond-rusak-berat {
    background: #fee2e2;
    color: #b91c1c;
}

.cond-tidak-ada {
    background: #f1f5f9;
    color: #64748b;
}

/* ===================================================================
   ORGANISASI BAGAN
   =================================================================== */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 40px 0;
}

.org-node {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    min-width: 220px;
}

.org-node.kepsek {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
}

.org-node.kepsek .org-role {
    color: #fde047;
}

.org-node .org-name {
    font-weight: 800;
    font-size: 14.5px;
}

.org-node .org-role {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-muted);
}

.org-branch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    width: 100%;
}

/* ===================================================================
   FILTER & PENCARIAN
   =================================================================== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: #475569;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-box {
    position: relative;
    min-width: 240px;
}

.search-input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13.5px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 92, 58, 0.15);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-muted);
    font-size: 14px;
}

/* ===================================================================
   GALERI FOTO & LIGHTBOX
   =================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 220px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background: #cbd5e1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 20px 16px 14px;
    color: white;
    transform: translateY(10px);
    opacity: 0.9;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-title {
    font-size: 14px;
    font-weight: 700;
}

.gallery-cat {
    font-size: 11px;
    color: #fde047;
}

/* ===================================================================
   FORMULIR PPDB & KONTAK
   =================================================================== */
.form-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--dark);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 92, 58, 0.15);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ===================================================================
   FOOTER
   =================================================================== */
footer.site-footer {
    background: linear-gradient(135deg, #072a1a, #0b452b);
    color: #cbd5e1;
    padding: 60px 0 25px;
    margin-top: 60px;
    border-top: 4px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
}

.footer-col p {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fde047;
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}

/* ===================================================================
   FLOATING ACTION BUTTON (WHATSAPP & SCROLL TOP)
   =================================================================== */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.fab-whatsapp {
    background-color: #25d366;
}

.fab-whatsapp:hover {
    background-color: #1ebd5a;
    transform: scale(1.1);
    color: white;
}

.fab-scroll-top {
    background-color: var(--primary);
    display: none;
}

.fab-scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
}

/* ===================================================================
   MODAL LIGHTBOX
   =================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 900px;
    max-height: 85vh;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: black;
}

.lightbox-content img {
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
    outline: none;
}

.lightbox-close:hover {
    background: #dc2626;
    border-color: #ffffff;
    transform: scale(1.1);
}

/* ===================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   =================================================================== */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .hero-glass-card {
        max-width: 100%;
        padding: 30px 24px;
    }
    .hero-floating-badge {
        width: 100%;
        max-width: 100%;
    }
    .welcome-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Mobile Dropdown Profil */
    .nav-item-dropdown {
        width: 100%;
        display: block;
    }
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        margin: 6px 0 10px 10px;
        padding: 6px;
        width: calc(100% - 10px);
        min-width: 0;
    }
    .nav-item-dropdown:not(.is-open):not(:hover) .nav-dropdown-menu {
        display: none;
    }
    .nav-item-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .mobile-toggle {
        display: block;
    }

    nav.main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        gap: 10px;
    }

    nav.main-nav.show {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 10px 14px;
    }

    .hero-section {
        padding: 175px 0 80px;
        min-height: 600px;
        background-position: center top;
    }

    .hero-glass-card {
        padding: 24px 18px;
        border-radius: 16px;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-tagline {
        font-size: 15px;
    }

    .hero-subtitle {
        font-size: 13.5px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .top-bar-right {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .top-bar-right .top-bar-item {
        display: none;
    }

    .top-bar-right .top-bar-item:last-child {
        display: block !important;
    }

    .top-bar-right a {
        font-size: 11px !important;
        padding: 2px 8px !important;
        display: inline-block !important;
    }
}

/* PRINT MEDIA */
@media print {
    header, footer, .top-bar, .floating-actions, .filter-bar, 
/* ===================================================================
   DROPDOWN MENU PROFIL SEKOLAH (DESKTOP & MOBILE RESPONSIF)
   =================================================================== */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-chevron {
    font-size: 11px;
    transition: transform 0.25s ease;
    display: inline-block;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
    padding: 8px;
    display: none;
    z-index: 1000;
    animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top left;
}

@keyframes navDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.18s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background: #f0fdf4;
    color: var(--primary);
    transform: translateX(3px);
}

.nav-dropdown-item .dropdown-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.18s ease;
}

.nav-dropdown-item:hover .dropdown-icon,
.nav-dropdown-item.active .dropdown-icon {
    background: #dcfce7;
}

.nav-dropdown-item strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
}

.nav-dropdown-item small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
}

.nav-dropdown-item:hover small {
    color: #047857;
}

.btn-nav-action {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
}


/* TOMBOL PINTAS & MODE HILANG-MUNCUL KARTU GAPURA BERANDA */
/* ===================================================================
   EFEK MELUNCUR OTOMATIS: KARTU INFORMASI & PEMANDANGAN PENUH GAPURA
   Secara periodik kartu info meluncur keluar dan masuk kembali secara
   mulus tanpa tombol manual, memberikan pemandangan penuh gapura sekolah.
   =================================================================== */

.hero-auto-cycle-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(253, 224, 71, 0.15);
    color: #fde047;
    border: 1px solid rgba(253, 224, 71, 0.35);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
}

.hero-auto-cycle-badge .cycle-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: cyclePulse 1.8s infinite;
}

@keyframes cyclePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Transisi Halus Kartu Kaca Beranda */
.hero-glass-card {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Kondisi Saat Kartu Menghilang (Mode Pemandangan Penuh Gapura) */
.hero-glass-card.is-hidden-cycle {
    transform: translate3d(-115%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 1s cubic-bezier(0.7, 0, 0.84, 0),
                opacity 0.75s ease,
                visibility 0.75s ease;
}

/* Lencana Pojok Kanan */
.hero-floating-badge {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-floating-badge.is-hidden-cycle {
    transform: translate3d(120%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 1s cubic-bezier(0.7, 0, 0.84, 0),
                opacity 0.75s ease,
                visibility 0.75s ease;
}

/* Efek Latar Belakang Hero Saat Gapura Terbuka Penuh */
.hero-section {
    transition: background 0.8s ease;
}

.hero-section.gate-focus-active {
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, transparent 20%, transparent 80%, rgba(5, 28, 17, 0.4) 100%),
        url('../images/gerbang-utama.jpg') !important;
}

/* Indikator Halus Saat Foto Gapura Terbuka Penuh */
.hero-gate-showcase-badge {
    position: absolute;
    bottom: 35px;
    left: 40px;
    background: rgba(6, 28, 18, 0.85);
    border: 1px solid rgba(253, 224, 71, 0.4);
    color: #fde047;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 20px, 0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    pointer-events: none;
}

.hero-gate-showcase-badge.active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 768px) {
    .hero-glass-card.is-hidden-cycle {
        transform: translate3d(0, 115%, 0);
    }
    .hero-floating-badge.is-hidden-cycle {
        transform: translate3d(0, 120%, 0);
    }
    .hero-gate-showcase-badge {
        bottom: 20px;
        left: 50%;
        transform: translate3d(-50%, 20px, 0);
        font-size: 11.5px;
        white-space: nowrap;
    }
    .hero-gate-showcase-badge.active {
        transform: translate3d(-50%, 0, 0);
    }
}
