/* ============================================================
   MTs Tribakti Kunjang - Main Stylesheet
   Desain: Modern, Premium, KEREN
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
    /* === PRIMARY PALETTE: Teal-Green Modern (KEREN) === */
    --green-50:  #f0fdfa;
    --green-100: #ccfbf1;
    --green-200: #99f6e4;
    --green-400: #2dd4bf;
    --green-500: #14b8a6;
    --green-600: #0d9488;
    --green-700: #0f766e;
    --green-800: #115e59;
    --green-900: #134e4a;
    --green-950: #042f2e;

    --yellow-300: #fde047;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    --yellow-600: #ca8a04;

    --white: #ffffff;
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Brand */
    --primary: var(--green-700);
    --primary-dark: var(--green-900);
    --primary-light: var(--green-500);
    --accent: var(--yellow-400);
    --accent-dark: var(--yellow-600);

    /* Typography */
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-max: 1200px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.2);
    --shadow-green: 0 8px 30px rgba(15,118,110,.3);

    /* Border Radius */
    --radius-sm: .375rem;
    --radius-md: .75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all .3s cubic-bezier(.4,0,.2,1);
    --transition-slow: all .5s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   Utilities
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section { padding: var(--section-padding); }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--green-100);
    color: var(--green-800);
    padding: .375rem 1rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: .75rem;
}

.section-title span {
    color: var(--green-700);
    position: relative;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.text-center { text-align: center; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: .9rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: .02em;
}

.btn-primary {
    background: var(--accent);
    color: var(--green-900);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(250,204,21,.4);
}
.btn-primary:hover {
    background: var(--yellow-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250,204,21,.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
}

.btn-green {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}
.btn-green:hover {
    background: var(--green-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* ============================================================
   Navbar
   ============================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(20,83,45,.97);
    backdrop-filter: blur(20px);
    padding: .6rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,.3);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}

.logo-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
    transition: var(--transition);
}

.logo-icon img:hover { transform: scale(1.05); }

/* Sidebar logo - slightly larger */
.sidebar-header .logo-icon img {
    width: 56px;
    height: 56px;
}

.logo-text {
    line-height: 1.15;
}

.logo-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.01em;
}

.logo-sub {
    font-size: .72rem;
    color: var(--yellow-400);
    font-weight: 600;
    letter-spacing: .04em;
}

/* Slogan image in navbar */
.logo-slogan-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Sidebar slogan image */
.sidebar-slogan-img {
    width: 100%;
    max-width: 170px;
    height: auto;
    object-fit: contain;
    margin: .625rem auto 0;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-link {
    color: rgba(255,255,255,.85);
    padding: .5rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--yellow-400);
    background: rgba(255,255,255,.08);
}

.nav-login-btn {
    background: var(--accent);
    color: var(--green-900) !important;
    padding: .5rem 1.2rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    margin-left: .5rem;
    box-shadow: 0 2px 10px rgba(250,204,21,.35);
}

.nav-login-btn:hover {
    background: var(--yellow-500) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(250,204,21,.5) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .5rem;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero Section
   ============================================================ */
#hero {
    position: relative;
    overflow: hidden;
    background: var(--green-900);
}

/* Classic hero (fallback) needs full screen height */
#hero.hero-classic-mode {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Slider hero should NOT have min-height or flex centering */
#hero.hero-slider-mode {
    min-height: auto;
    display: block;
    padding-top: 100px; /* topbar (32px) + navbar (~68px) */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/gedung_sekolah.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(.35) saturate(1.2);
    transition: transform 8s ease;
}

.hero-bg.loaded { transform: scale(1.04); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5,46,22,.85) 0%,
        rgba(20,83,45,.7) 50%,
        rgba(21,128,61,.4) 100%
    );
}

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

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(250,204,21,.15);
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: .5; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(250,204,21,.15);
    border: 1px solid rgba(250,204,21,.4);
    color: var(--yellow-400);
    padding: .5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown .8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp .8s ease .2s both;
}

.hero-title .highlight {
    color: var(--yellow-400);
    text-shadow: 0 0 30px rgba(250,204,21,.4);
}

.hero-keren {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    animation: fadeInUp .8s ease .35s both;
}

.keren-pill {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: .35rem .9rem;
    border-radius: var(--radius-full);
    font-size: .82rem;
    font-weight: 700;
}

.keren-pill .letter {
    color: var(--yellow-400);
    font-size: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    animation: fadeInUp .8s ease .45s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp .8s ease .55s both;
}

/* ============================================================
   Hero Ticker / Running Text
   ============================================================ */
.hero-ticker {
    background: linear-gradient(135deg, var(--green-900), var(--green-800));
    padding: .65rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.hero-ticker::before,
.hero-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.hero-ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--green-900), transparent);
}
.hero-ticker::after {
    right: 0;
    background: linear-gradient(270deg, var(--green-800), transparent);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: tickerScroll 40s linear infinite;
    will-change: transform;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ticker-item {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    padding: 0 .5rem;
    white-space: nowrap;
}

.ticker-sep {
    color: var(--yellow-400);
    font-size: .7rem;
    padding: 0 .75rem;
    opacity: .6;
}

.hero-stats {
    position: absolute;
    bottom: 2rem;
    left: 0; right: 0;
    z-index: 2;
    animation: fadeInUp .8s ease .7s both;
}

.hero-stats .container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,.12);
    padding: .75rem 1.25rem;
    border-radius: var(--radius-md);
}

.stat-icon {
    width: 36px;
    height: 36px;
    background: rgba(250,204,21,.15);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-400);
    flex-shrink: 0;
}

.stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: .72rem;
    color: rgba(255,255,255,.65);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ============================================================
   Profil Section
   ============================================================ */
#profil {
    background: var(--gray-50);
}

.profil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.profil-desc {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.visi-misi-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.vm-tab {
    padding: .5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: .875rem;
    transition: var(--transition);
    border: 2px solid var(--green-200);
    color: var(--green-700);
    cursor: pointer;
}

.vm-tab.active {
    background: var(--green-800);
    color: var(--white);
    border-color: var(--green-800);
}

.vm-content { display: none; }
.vm-content.active { display: block; animation: fadeIn .4s ease; }

.vm-text {
    background: var(--white);
    border-left: 4px solid var(--yellow-400);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: .95rem;
    line-height: 1.8;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.misi-list li {
    display: flex;
    gap: .75rem;
    margin-bottom: .75rem;
    align-items: flex-start;
    font-size: .92rem;
    color: var(--gray-700);
}

.misi-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow-400);
    margin-top: .45rem;
    flex-shrink: 0;
}

.profil-image-wrap {
    position: relative;
}

.profil-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-xl);
}

.profil-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profil-badge-float {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--green-800);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.profil-badge-float .num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--yellow-400);
}

.profil-badge-float .label {
    font-size: .75rem;
    opacity: .85;
    font-weight: 600;
}

/* ============================================================
   KEREN Section
   ============================================================ */
#keren {
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, var(--green-700) 100%);
    position: relative;
    overflow: hidden;
}

#keren::before {
    content: 'KEREN';
    position: absolute;
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255,255,255,.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    letter-spacing: .5em;
}

#keren .section-title { color: var(--white); }
#keren .section-subtitle { color: rgba(255,255,255,.7); }
#keren .section-badge {
    background: rgba(250,204,21,.15);
    color: var(--yellow-400);
    border: 1px solid rgba(250,204,21,.3);
}

.keren-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.keren-card {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.keren-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow-400), var(--yellow-500));
    transform: scaleX(0);
    transition: var(--transition);
}

.keren-card:hover::before { transform: scaleX(1); }

.keren-card:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.keren-letter {
    font-size: 4rem;
    font-weight: 900;
    color: var(--yellow-400);
    line-height: 1;
    margin-bottom: .5rem;
    text-shadow: 0 0 30px rgba(250,204,21,.3);
}

.keren-icon {
    width: 60px;
    height: 60px;
    background: rgba(250,204,21,.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--yellow-400);
}

.keren-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: .75rem;
}

.keren-desc {
    font-size: .875rem;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
}

/* ============================================================
   Galeri Section
   ============================================================ */
#galeri { background: var(--white); }

.galeri-filter {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.filter-btn {
    padding: .45rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: .82rem;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid var(--green-200);
    color: var(--green-700);
    cursor: pointer;
    background: transparent;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--green-800);
    color: var(--white);
    border-color: var(--green-800);
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.galeri-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.galeri-item:hover img { transform: scale(1.08); }

.galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,46,22,.8) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.galeri-item:hover .galeri-overlay { opacity: 1; }

.galeri-caption {
    color: var(--white);
    font-size: .875rem;
    font-weight: 700;
}

.galeri-item.large { grid-column: span 2; }

/* ============================================================
   Kontak Section
   ============================================================ */
#kontak { background: var(--gray-50); }

.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.kontak-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kontak-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.kontak-icon {
    width: 48px;
    height: 48px;
    background: var(--green-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    flex-shrink: 0;
}

.kontak-detail .label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: .2rem;
}

.kontak-detail .value {
    font-size: .95rem;
    font-weight: 600;
    color: var(--gray-800);
}

.sosmed-links {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.sosmed-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 700;
    transition: var(--transition);
}

.sosmed-btn.facebook {
    background: #1877f2;
    color: var(--white);
}

.sosmed-btn.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: var(--white);
}

.sosmed-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.kontak-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.kontak-form-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.form-control {
    width: 100%;
    padding: .7rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: .9rem;
    transition: var(--transition);
    color: var(--gray-800);
    background: var(--gray-50);
}

.form-control:focus {
    outline: none;
    border-color: var(--green-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(22,101,52,.1);
}

textarea.form-control { resize: vertical; min-height: 100px; }

/* ============================================================
   Footer
   ============================================================ */
footer {
    background: var(--green-950);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-name { margin-bottom: .5rem; }

.footer-desc {
    font-size: .875rem;
    line-height: 1.75;
    margin-top: 1rem;
    opacity: .7;
}

.footer-heading {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--yellow-400);
    margin-bottom: 1.25rem;
}

.footer-links li {
    margin-bottom: .6rem;
}

.footer-links a {
    font-size: .875rem;
    color: rgba(255,255,255,.6);
    transition: var(--transition);
}

.footer-links a:hover { color: var(--yellow-400); padding-left: .25rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    opacity: .5;
    flex-wrap: wrap;
    gap: .5rem;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(250,204,21,.4); }
    50%       { box-shadow: 0 0 0 10px rgba(250,204,21,0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .keren-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .profil-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
    :root { --section-padding: 3.5rem 0; }

    .navbar-menu {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--green-900);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: .5rem;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 999;
    }

    .navbar-menu.open { transform: translateX(0); }

    .nav-link {
        font-size: 1.25rem;
        padding: .75rem 2rem;
    }

    .nav-login-btn {
        margin-left: 0 !important;
        margin-top: .5rem;
        font-size: 1.1rem !important;
        padding: .75rem 2rem !important;
    }

    .hamburger { display: flex; z-index: 1001; }

    .hero-title { font-size: 2.5rem; }
    .hero-stats .container { gap: .75rem; }
    .stat-item { flex: 1; min-width: 140px; }

    .profil-grid { grid-template-columns: 1fr; }
    .profil-badge-float { right: 0; bottom: -1rem; }

    .keren-grid { grid-template-columns: 1fr; }

    .galeri-grid { grid-template-columns: repeat(2, 1fr); }
    .galeri-item.large { grid-column: span 1; }

    .kontak-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-badge { font-size: .72rem; }
    .galeri-grid { grid-template-columns: 1fr; }
    .hero-stats { position: relative; bottom: auto; margin-top: 3rem; }
}

/* ============================================================
   Dashboard Styles (Shared)
   ============================================================ */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--green-900);
    min-height: 100vh;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}

.nav-section {
    padding: .5rem 1.25rem;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.35);
    margin-top: .5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .75rem 1.5rem;
    color: rgba(255,255,255,.65);
    font-size: .875rem;
    font-weight: 600;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-link:hover {
    color: var(--white);
    background: rgba(255,255,255,.06);
    border-left-color: var(--yellow-400);
}

.sidebar-link.active {
    color: var(--yellow-400);
    background: rgba(250,204,21,.08);
    border-left-color: var(--yellow-400);
}

.sidebar-link .icon {
    width: 36px;
    height: 36px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.05);
    flex-shrink: 0;
    transition: var(--transition);
}

.sidebar-link.active .icon, .sidebar-link:hover .icon {
    background: rgba(250,204,21,.15);
    color: var(--yellow-400);
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.user-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    color: var(--green-900);
    flex-shrink: 0;
}

.user-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.user-role {
    font-size: .72rem;
    color: var(--yellow-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .625rem 1rem;
    background: rgba(239,68,68,.1);
    color: #fca5a5;
    border-radius: var(--radius-md);
    font-size: .8rem;
    font-weight: 700;
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(239,68,68,.2);
    color: #fecaca;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow-sm);
}

.topbar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900);
}

.topbar-date {
    font-size: .8rem;
    color: var(--gray-400);
    font-weight: 500;
    margin-top: .1rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--transition);
}

.notification-btn:hover { background: var(--gray-200); }

.notif-badge {
    position: absolute;
    top: -3px; right: -3px;
    width: 16px; height: 16px;
    background: #ef4444;
    border-radius: 50%;
    font-size: .6rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-area {
    padding: 2rem;
    flex: 1;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: currentColor;
    opacity: .04;
    transform: translate(20px, -20px);
}

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

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon.green { background: var(--green-100); color: var(--green-700); }
.stat-card-icon.yellow { background: #fef9c3; color: #a16207; }
.stat-card-icon.red { background: #fee2e2; color: #b91c1c; }
.stat-card-icon.blue { background: #dbeafe; color: #1d4ed8; }

.stat-card-val {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1;
}

.stat-card-label {
    font-size: .8rem;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: .25rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.card-body { padding: 1.5rem; }

/* Table */
.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.data-table th {
    background: var(--gray-50);
    color: var(--gray-500);
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
}

.data-table td {
    padding: .875rem 1rem;
    border-bottom: 1px solid var(--gray-50);
    color: var(--gray-700);
}

.data-table tr:hover td { background: var(--gray-50); }

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .7rem;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge-hadir { background: #dcfce7; color: #166534; }
.badge-sakit { background: #dbeafe; color: #1e40af; }
.badge-izin  { background: #fef9c3; color: #854d0e; }
.badge-alpa  { background: #fee2e2; color: #991b1b; }
.badge-admin { background: var(--green-100); color: var(--green-800); }
.badge-guru  { background: #dbeafe; color: #1e40af; }
.badge-murid { background: #f3e8ff; color: #6b21a8; }

/* Status Radio Absensi */
.status-radio-group {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.status-radio {
    position: relative;
}

.status-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.status-radio label {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .875rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid;
    transition: var(--transition);
}

.status-radio.hadir label { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.status-radio.sakit label { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; }
.status-radio.izin  label { border-color: #fde68a; color: #92400e; background: #fffbeb; }
.status-radio.alpa  label { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }

.status-radio input[type="radio"]:checked + label.hadir-lbl { background: #22c55e; color: white; border-color: #22c55e; }
.status-radio input[type="radio"]:checked + label.sakit-lbl { background: #3b82f6; color: white; border-color: #3b82f6; }
.status-radio input[type="radio"]:checked + label.izin-lbl  { background: #eab308; color: white; border-color: #eab308; }
.status-radio input[type="radio"]:checked + label.alpa-lbl  { background: #ef4444; color: white; border-color: #ef4444; }

/* Alert / Toast */
.alert {
    padding: .875rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: .875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    pointer-events: none;
}

.toast {
    padding: .875rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: .85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .6rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight .4s ease, fadeOut .4s ease 3.6s forwards;
    pointer-events: all;
    min-width: 260px;
    max-width: 360px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(20px); }
}

/* Loading Spinner */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: inline-block;
}

.spinner.dark {
    border-color: rgba(0,0,0,.1);
    border-top-color: var(--green-700);
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    flex-direction: column;
    gap: 1rem;
}

.loading-text {
    font-weight: 700;
    color: var(--green-700);
    font-size: .9rem;
}

/* Dashboard responsive */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }
    .dashboard-main {
        margin-left: 0;
    }
    .content-area { padding: 1.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar { padding: 1rem 1.25rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Topbar (Contact Bar)
   ============================================================ */
#topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    background: #111e11;
    padding: .4rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: var(--transition);
}

#topbar.hidden { transform: translateY(-100%); }

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.7);
    font-size: .76rem;
    font-weight: 500;
    transition: var(--transition);
}
.topbar-link:hover { color: var(--yellow-400); }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.topbar-social a {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
    transition: var(--transition);
    font-size: .7rem;
}
.topbar-social a:hover {
    background: var(--yellow-400);
    color: var(--green-900);
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-full);
    padding: .2rem .75rem;
}
.topbar-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: .73rem;
    width: 90px;
    font-family: var(--font-family);
}
.topbar-search input::placeholder { color: rgba(255,255,255,.4); }
.topbar-search-icon { color: rgba(255,255,255,.5); }

/* Shift navbar below topbar */
#navbar { top: 32px; }
#navbar.scrolled { top: 0; }

/* ============================================================
   Dropdown Menu
   ============================================================ */
.nav-item { position: relative; }

.nav-item.has-dropdown > .nav-link::after {
    content: '▾';
    font-size: .65rem;
    margin-left: .3rem;
    display: inline-block;
    transition: var(--transition);
}
.nav-item.has-dropdown:hover > .nav-link::after { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + .6rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 210px;
    background: rgba(5,30,10,.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md);
    padding: .5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    z-index: 200;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1.25rem;
    color: rgba(255,255,255,.78);
    font-size: .83rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}
.dropdown-item:hover {
    color: var(--yellow-400);
    background: rgba(255,255,255,.06);
    padding-left: 1.5rem;
}
.dropdown-item .di-icon {
    width: 20px;
    height: 20px;
    background: rgba(250,204,21,.12);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-400);
    flex-shrink: 0;
}
.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: .35rem 0;
}

/* ============================================================
   Modal — Yayasan Tribakti
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn .3s ease;
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp .35s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    border: none;
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-900); }

.modal-header-band {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    padding: 2rem 2.5rem 1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    color: var(--white);
}

.modal-header-band h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: .25rem;
}

.modal-header-band p {
    font-size: .87rem;
    color: rgba(255,255,255,.75);
}

.modal-body {
    padding: 2rem 2.5rem;
}

.yayasan-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    align-items: start;
}

.yayasan-info-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.yi-item {
    display: flex;
    gap: .75rem;
    padding: .75rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--yellow-400);
}

.yi-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .06em;
    min-width: 110px;
    flex-shrink: 0;
}

.yi-value {
    font-size: .875rem;
    color: var(--gray-800);
    font-weight: 600;
    line-height: 1.5;
}

.yayasan-ketua-card {
    background: linear-gradient(135deg, var(--green-800), var(--green-900));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    color: var(--white);
    position: static;
}

.yayasan-ketua-photo {
    width: 130px;
    height: 160px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--yellow-400);
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

.yayasan-ketua-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.yayasan-ketua-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: .25rem;
}

.yayasan-ketua-title {
    font-size: .78rem;
    color: var(--yellow-400);
    font-weight: 600;
}

.yayasan-ketua-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(250,204,21,.15);
    border: 1px solid rgba(250,204,21,.3);
    color: var(--yellow-400);
    padding: .3rem .75rem;
    border-radius: var(--radius-full);
    font-size: .72rem;
    font-weight: 700;
    margin-top: .75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #topbar { display: none; }
    #navbar { top: 0; }
    .yayasan-grid { grid-template-columns: 1fr; }
    .yayasan-ketua-card { position: static; }
    .modal-body { padding: 1.5rem; }
}



/* ============================================================
   PPDB Popup Brosur Modal (Popup Otomatis)
   ============================================================ */
.ppdb-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: 9900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn .35s ease;
}

.ppdb-popup-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 380px;
    width: 100%;
    max-height: 92vh;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
    animation: popupSlideUp .4s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

@keyframes popupSlideUp {
    from { transform: translateY(60px) scale(.92); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.ppdb-popup-close {
    position: absolute;
    top: .6rem; right: .6rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    border: 2px solid rgba(255,255,255,.5);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.ppdb-popup-close:hover { background: rgba(0,0,0,.8); transform: scale(1.1); }

.ppdb-popup-img-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(92vh - 80px);
    scrollbar-width: thin;
    scrollbar-color: var(--green-400) transparent;
}
.ppdb-popup-img-wrap::-webkit-scrollbar { width: 4px; }
.ppdb-popup-img-wrap::-webkit-scrollbar-thumb { background: var(--green-500); border-radius: 2px; }

.ppdb-popup-banner {
    width: 100%;
    height: auto;
    display: block;
}

.ppdb-popup-body {
    padding: 1rem 1.25rem;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.ppdb-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--green-100);
    color: var(--green-700);
    font-size: .72rem;
    font-weight: 800;
    padding: .25rem .75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .875rem;
}

.ppdb-popup-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: .6rem;
}

.ppdb-popup-desc {
    font-size: .875rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.ppdb-popup-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.ppdb-popup-dismiss {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    padding: .6rem 0;
    transition: var(--transition);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ppdb-popup-dismiss:hover { color: var(--gray-700); }

.ppdb-popup-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(15,118,110,.4);
}
.ppdb-popup-cta:hover {
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15,118,110,.5);
}

/* Nav PPDB Button */
.nav-ppdb-btn {
    background: linear-gradient(135deg, var(--green-500), var(--green-700)) !important;
    color: white !important;
    border-radius: 50px;
    padding: 0.5rem 1.25rem !important;
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(15,118,110,.4);
}
.nav-ppdb-btn:hover {
    background: linear-gradient(135deg, var(--green-600), var(--green-800)) !important;
    transform: translateY(-1px);
}

/* ============================================================
   Quick Access Grid
   ============================================================ */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

.qa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem .75rem 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--gray-800);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    gap: .6rem;
}
.qa-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200);
}

.qa-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    flex-shrink: 0;
}

.qa-label {
    font-size: .8rem;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1.2;
}
.qa-desc {
    font-size: .68rem;
    color: var(--gray-400);
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .quick-access-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .quick-access-grid { grid-template-columns: repeat(4, 1fr); gap: .6rem; }
    .qa-icon { width: 48px; height: 48px; }
    .qa-item { padding: .875rem .5rem .75rem; }
}
@media (max-width: 380px) {
    .quick-access-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Berita Card Grid
   ============================================================ */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.berita-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200);
}

.berita-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}
.berita-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.berita-card:hover .berita-card-img img {
    transform: scale(1.06);
}

.berita-card-cat {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--green-600);
    color: var(--white);
    font-size: .65rem;
    font-weight: 800;
    padding: .2rem .6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.berita-card-body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.berita-card-date {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: .5rem;
}

.berita-card-title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-card-excerpt {
    font-size: .8rem;
    color: var(--gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .berita-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .berita-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero Slider Dots & Controls
   ============================================================ */
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: 2px solid rgba(255,255,255,.8);
    cursor: pointer;
    transition: background .3s, transform .3s;
    padding: 0;
}
.slider-dot.active,
.slider-dot:hover {
    background: var(--white);
    transform: scale(1.3);
}

/* Hero section: ensure no gap top when slider active */
#hero {
    margin-top: 0;
}

/* Slider image full-width, fills height */
#heroSlider .slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive slider height */
@media (max-width: 768px) {
    #heroSlider {
        height: 360px !important;
    }
    #heroSlider > div[style*="padding"] {
        padding: 1.25rem 1.25rem 1.75rem !important;
    }
}
@media (max-width: 480px) {
    #heroSlider {
        height: 280px !important;
    }
}

/* ============================================================
   REVEAL - tampilkan semua konten langsung (no animation lib)
   ============================================================ */
.reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { padding: 4.5rem 0; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

.section-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--green-100); color: var(--green-700);
    padding: .35rem 1rem; border-radius: var(--radius-full);
    font-size: .75rem; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900;
    color: var(--gray-900); line-height: 1.2; margin-bottom: .75rem;
}
.section-title span { color: var(--green-600); }
.section-subtitle {
    font-size: .95rem; color: var(--gray-500); max-width: 560px;
    margin: 0 auto 1.5rem; line-height: 1.7;
}

/* ============================================================
   PROFIL SECTION
   ============================================================ */
.profil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .profil-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.profil-desc { color: var(--gray-600); line-height: 1.8; margin-bottom: 1.25rem; font-size: .95rem; }
.profil-image-wrap { position: relative; }
.profil-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); aspect-ratio: 4/3; }
.profil-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profil-badge-float {
    position: absolute; bottom: -1rem; right: -1rem; background: var(--green-700); color: white;
    padding: 1rem 1.5rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-lg);
}
.profil-badge-float .num { display: block; font-size: 1.8rem; font-weight: 900; line-height: 1; }
.profil-badge-float .label { font-size: .7rem; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.visi-misi-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; background: var(--gray-100); border-radius: var(--radius-full); padding: .25rem; width: fit-content; }
.vm-tab { border: none; background: none; padding: .45rem 1.1rem; border-radius: var(--radius-full); font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--gray-500); transition: var(--transition); }
.vm-tab.active { background: var(--green-700); color: white; box-shadow: 0 2px 8px rgba(15,118,110,.3); }
.vm-content { display: none; }
.vm-content.active { display: block; }
.vm-text { background: var(--green-50); border-left: 4px solid var(--green-500); padding: 1rem 1.25rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--gray-700); font-style: italic; line-height: 1.8; font-size: .9rem; }
.misi-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.misi-list li { padding: .6rem .875rem; background: var(--green-50); border-radius: var(--radius-md); color: var(--gray-700); font-size: .875rem; line-height: 1.6; display: flex; align-items: flex-start; gap: .6rem; }
.misi-list li::before { content: 'V'; color: var(--green-600); font-weight: 900; flex-shrink: 0; margin-top: .1rem; font-family: monospace; }

/* ============================================================
   KEREN SECTION
   ============================================================ */
#keren.section { background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, #1a3a5c 100%); color: white; position: relative; overflow: hidden; }
#keren .section-badge { background: rgba(255,255,255,.15); color: white; }
#keren .section-title { color: white; }
#keren .section-title span { color: var(--yellow-400); }
.keren-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
@media (max-width: 768px) { .keren-grid { grid-template-columns: 1fr; } }
.keren-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); padding: 1.75rem; backdrop-filter: blur(8px); transition: var(--transition); }
.keren-card:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); }
.keren-letter { font-size: 3rem; font-weight: 900; color: var(--yellow-400); line-height: 1; margin-bottom: .75rem; }
.keren-icon { width: 48px; height: 48px; background: rgba(255,255,255,.12); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: white; }
.keren-title { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: .6rem; }
.keren-desc { color: rgba(255,255,255,.7); font-size: .875rem; line-height: 1.7; }

/* ============================================================
   GALERI SECTION — Uniform Grid
   ============================================================ */
.galeri-filter { display: flex; gap: .5rem; justify-content: center; margin: 1.5rem 0 2rem; flex-wrap: wrap; }
.filter-btn { border: 1.5px solid var(--gray-200); background: white; padding: .45rem 1.1rem; border-radius: var(--radius-full); font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--gray-600); transition: var(--transition); }
.filter-btn.active, .filter-btn:hover { background: var(--green-700); border-color: var(--green-700); color: white; }

/* Grid uniform — semua foto sama tinggi, 3 kolom */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) { .galeri-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .galeri-grid { grid-template-columns: 1fr; } }

.galeri-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    aspect-ratio: 4/3;
    /* Semua sama tinggi via aspect-ratio, tidak ada .large */
}
.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.galeri-item:hover img { transform: scale(1.06); }
.galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    padding: .875rem;
}
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-caption { color: white; font-size: .82rem; font-weight: 700; }
.galeri-zoom {
    position: absolute;
    top: .6rem;
    right: .6rem;
    background: rgba(255,255,255,.25);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    opacity: 0;
    transition: opacity .3s;
}
.galeri-item:hover .galeri-zoom { opacity: 1; }
.galeri-item.hidden { display: none; }

/* Lightbox */
#galeriLightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#galeriLightbox.open { display: flex; }
#galeriLightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 0 60px rgba(0,0,0,.5);
}
#galeriLightbox .lb-caption {
    color: rgba(255,255,255,.8);
    margin-top: 1rem;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
}
#galeriLightbox .lb-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    opacity: .7;
}
#galeriLightbox .lb-close:hover { opacity: 1; }

/* ============================================================
   KONTAK SECTION
   ============================================================ */
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .kontak-grid { grid-template-columns: 1fr; gap: 2rem; } }
.kontak-info-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.kontak-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.kontak-icon { width: 44px; height: 44px; min-width: 44px; background: var(--green-100); color: var(--green-700); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.kontak-detail .label { font-size: .72rem; font-weight: 800; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.kontak-detail .value { font-size: .9rem; color: var(--gray-700); line-height: 1.6; font-weight: 600; }
.sosmed-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.sosmed-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: var(--radius-full); font-size: .8rem; font-weight: 700; text-decoration: none; transition: var(--transition); }
.sosmed-btn.facebook { background: #1877f2; color: white; }
.sosmed-btn.instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: white; }
.sosmed-btn:hover { opacity: .85; transform: translateY(-2px); }
.kontak-form-card { background: white; border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100); }
.kontak-form-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--gray-900); }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .78rem; font-weight: 700; color: var(--gray-600); margin-bottom: .4rem; }
.form-control { width: 100%; padding: .65rem .875rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); font-size: .875rem; font-family: var(--font-family); transition: border-color .2s; background: white; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-control:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.5rem; border-radius: var(--radius-full); font-size: .875rem; font-weight: 700; text-decoration: none; cursor: pointer; border: none; transition: var(--transition); }
.btn-green { background: var(--green-700); color: white; }
.btn-green:hover { background: var(--green-800); transform: translateY(-2px); }
.btn-primary { background: var(--yellow-400); color: var(--gray-900); }
.btn-primary:hover { background: var(--yellow-500); transform: translateY(-2px); }
