/* ==========================================================================
   TEMA RESMI SEKOLAH: BIRU DONGKER & KUNING EMAS PRESTASI
   SMP NEGERI 2 TAROKAN, KABUPATEN KEDIRI
   ========================================================================== */

:root {
    /* Palet Biru (Wibawa, Amanah, Pendidikan) */
    --school-navy-950: #06182c;
    --school-navy-900: #0a2544;
    --school-navy-800: #0f3560;
    --school-blue-700: #144883;
    --school-blue-600: #1a5bb0;
    --school-blue-500: #2563eb;
    --school-blue-soft: #edf4fc;
    --school-blue-light: #dbeafe;

    /* Palet Kuning / Emas (Cerdas, Prestasi, Semangat) */
    --school-gold: #f59e0b;
    --school-gold-hover: #d97706;
    --school-yellow: #fbbf24;
    --school-yellow-bright: #facc15;
    --school-yellow-soft: #fef3c7;
    --school-yellow-subtle: #fffbeb;
    --school-yellow-border: #fde68a;

    /* Netral & Teks */
    --school-text-main: #0f172a;
    --school-text-body: #334155;
    --school-text-muted: #64748b;
    --school-text-light: #94a3b8;
    --school-line: #e2e8f0;
    --school-bg: #f8fafc;
    --school-card: #ffffff;

    /* Bayangan & Efek */
    --school-shadow-sm: 0 2px 4px rgba(10, 37, 68, 0.05);
    --school-shadow-md: 0 8px 24px rgba(10, 37, 68, 0.08);
    --school-shadow-lg: 0 16px 36px rgba(10, 37, 68, 0.12);
    --school-shadow-gold: 0 6px 20px rgba(245, 158, 11, 0.28);
    --school-radius-sm: 8px;
    --school-radius-md: 14px;
    --school-radius-lg: 20px;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
    overflow-x: clip;
    max-width: 100vw;
}
[id] {
    scroll-margin-top: 105px;
}
body {
    margin: 0;
    font-family: 'Quicksand', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--school-text-body);
    background: var(--school-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100vw;
    width: 100%;
    position: relative;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', 'Plus Jakarta Sans', sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: 'Quicksand', 'Plus Jakarta Sans', sans-serif; }

.public-container {
    width: min(1220px, calc(100% - 40px));
    margin-inline: auto;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.public-topbar {
    background: var(--school-navy-950);
    color: #e2e8f0;
    font-size: 12px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}
.public-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.public-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.public-topbar-tag {
    background: var(--school-gold);
    color: var(--school-navy-950);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 4px;
}
.public-topbar-text {
    font-weight: 600;
    color: #ffffff;
}
.public-topbar-dot {
    color: var(--school-yellow);
    opacity: 0.7;
}
.public-topbar-motto {
    color: #94a3b8;
    font-style: italic;
}
.public-topbar-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 500;
}
.public-topbar-clock svg {
    color: var(--school-yellow);
    flex-shrink: 0;
}

/* Aksesibilitas Font Size Scaler */
.public-a11y-controls {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.a11y-label {
    font-size: 11px;
    color: #94a3b8;
    margin-right: 2px;
}
.a11y-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.4;
    transition: all 0.2s ease;
}
.a11y-btn:hover,
.a11y-btn.active {
    background: var(--school-gold);
    color: var(--school-navy-950);
    border-color: var(--school-gold);
}

/* Quick Copy Phone */
.public-topbar-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-size: 11.5px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.public-topbar-copy-btn:hover {
    color: var(--school-yellow);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--school-yellow);
}
.public-topbar-copy-btn svg {
    color: var(--school-yellow);
    flex-shrink: 0;
}

.public-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.public-topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}
.public-topbar-item svg {
    color: var(--school-yellow);
}
.public-topbar-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: var(--school-yellow);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}
.public-topbar-separator {
    color: rgba(255, 255, 255, 0.2);
}
.public-topbar-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 11px;
    transition: all 0.2s ease;
}
.public-topbar-login:hover {
    background: var(--school-gold);
    color: var(--school-navy-950);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.public-header {
    background: #ffffff;
    border-bottom: 2px solid var(--school-line);
    position: relative;
    z-index: 20;
}
.public-header-inner {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.public-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}
.public-emblem {
    position: relative;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc, #edf4fc);
    border: 2px solid var(--school-yellow);
    box-shadow: 0 4px 12px rgba(10, 37, 68, 0.1);
}
.public-brand-copy {
    display: flex;
    flex-direction: column;
}
.public-brand-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--school-blue-600);
    text-transform: uppercase;
}
.public-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--school-navy-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-top: 2px;
}
.public-brand-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--school-text-muted);
    margin-top: 4px;
    font-weight: 500;
}
.public-brand-location svg {
    color: var(--school-gold);
}

.public-header-highlights {
    display: flex;
    align-items: center;
    gap: 20px;
}
.public-header-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--school-bg);
    border: 1px solid var(--school-line);
    border-radius: var(--school-radius-sm);
}
.stat-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--school-blue-soft);
    color: var(--school-blue-600);
}
.stat-icon-wrap.gold {
    background: var(--school-yellow-soft);
    color: var(--school-gold-hover);
}
.stat-title {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--school-text-muted);
}
.stat-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--school-navy-900);
}

/* Header Actions (Search & Mobile Hamburger) */
.public-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--school-bg);
    border: 1.5px solid var(--school-line);
    border-radius: 30px;
    color: var(--school-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.header-search-btn:hover {
    border-color: var(--school-gold);
    background: #ffffff;
    color: var(--school-navy-900);
    box-shadow: 0 4px 14px rgba(10, 37, 68, 0.08);
}
.header-search-btn svg {
    color: var(--school-blue-600);
    flex-shrink: 0;
}
.search-hint {
    color: var(--school-text-muted);
}
.search-shortcut {
    background: #ffffff;
    border: 1px solid var(--school-line);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--school-navy-800);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.public-menu-toggle {
    display: none;
    border: 1.5px solid var(--school-line);
    background: var(--school-bg);
    padding: 8px 9px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.public-menu-toggle:hover {
    background: var(--school-blue-soft);
    border-color: var(--school-blue-light);
}
.public-menu-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--school-navy-900);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.public-menu-toggle.is-active .bar-1 {
    transform: translateY(6px) rotate(45deg);
}
.public-menu-toggle.is-active .bar-2 {
    opacity: 0;
    transform: scaleX(0);
}
.public-menu-toggle.is-active .bar-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   NAVIGATION BAR (ROYAL BLUE WITH GOLD ACCENTS)
   ========================================================================== */
.public-nav {
    background: var(--school-navy-900);
    box-shadow: 0 4px 16px rgba(10, 37, 68, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}
.public-nav-inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.public-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

/* Individual direct nav item */
.nav-item-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 14px;
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav-item-link svg {
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-item-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3.5px;
    background: var(--school-yellow);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.nav-item-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.nav-item-link:hover svg {
    opacity: 1;
    transform: translateY(-1px);
    color: var(--school-yellow);
}
.nav-item-link.active {
    color: var(--school-yellow);
    background: rgba(255, 255, 255, 0.08);
}
.nav-item-link.active svg {
    opacity: 1;
    color: var(--school-yellow);
}
.nav-item-link.active::after {
    transform: scaleX(1);
}

/* ==========================================================================
   DROPDOWN MENU SYSTEM (DESKTOP WITH COOL SPRING & CASCADE ANIMATIONS)
   ========================================================================== */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 14px;
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: 0;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav-dropdown-trigger svg:first-child {
    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-dropdown-trigger::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3.5px;
    background: var(--school-yellow);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.is-open .nav-dropdown-trigger {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.nav-dropdown:hover .nav-dropdown-trigger svg:first-child,
.nav-dropdown.is-open .nav-dropdown-trigger svg:first-child {
    color: var(--school-yellow);
    opacity: 1;
}
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown.is-open .nav-dropdown-trigger::after,
.nav-dropdown-trigger.active::after {
    transform: scaleX(1);
}
.nav-dropdown-trigger.active {
    color: var(--school-yellow);
}

/* Rotating Chevron Caret Animation */
.dropdown-caret {
    opacity: 0.7;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, opacity 0.2s ease;
}
.nav-dropdown:hover .dropdown-caret,
.nav-dropdown.is-open .dropdown-caret {
    transform: rotate(180deg);
    color: var(--school-yellow);
    opacity: 1;
}

/* Floating Card Container with Glassmorphism & 3D Spring Entrance */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 340px;
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 20px 45px -10px rgba(6, 24, 44, 0.32), 0 0 0 1px rgba(10, 37, 68, 0.06);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.96) rotateX(-5deg);
    transform-origin: top left;
    perspective: 1000px;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.28s ease,
                box-shadow 0.28s ease;
    z-index: 200;
}

/* Invisible hover bridge to prevent flickers */
.nav-dropdown-menu::after {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

/* Top decorative pointer arrow with gold border */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 28px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1.5px solid rgba(251, 191, 36, 0.35);
    border-top: 1.5px solid rgba(251, 191, 36, 0.35);
    transform: rotate(45deg);
    border-radius: 2px;
}

/* Open state on hover & touch/keyboard */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1) rotateX(0);
    box-shadow: 0 24px 50px -10px rgba(6, 24, 44, 0.38), 0 0 0 1px rgba(10, 37, 68, 0.08);
}

/* Dropdown Menu Header Badge */
.dropdown-menu-header {
    padding: 6px 12px 10px;
    border-bottom: 1px solid var(--school-line);
    margin-bottom: 6px;
}
.dropdown-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--school-gold-hover);
    background: var(--school-yellow-soft);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--school-yellow-border);
}
.dropdown-desc {
    display: block;
    font-size: 11.5px;
    color: var(--school-text-muted);
    margin-top: 3px;
    line-height: 1.35;
}

/* Dropdown Items List */
.dropdown-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}
.dropdown-item-icon.blue {
    background: var(--school-blue-soft);
    color: var(--school-blue-600);
    border: 1px solid var(--school-blue-light);
}
.dropdown-item-icon.gold {
    background: var(--school-yellow-soft);
    color: var(--school-gold-hover);
    border: 1px solid var(--school-yellow-border);
}

.dropdown-item-content {
    flex: 1;
    min-width: 0;
}
.dropdown-item-title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--school-navy-900);
    line-height: 1.25;
    transition: color 0.2s ease;
}
.dropdown-item-sub {
    display: block;
    font-size: 11px;
    color: var(--school-text-muted);
    margin-top: 2px;
    white-space: normal;
    line-height: 1.35;
}
.dropdown-item-arrow {
    font-size: 16px;
    font-weight: bold;
    color: var(--school-text-light);
    opacity: 0.3;
    transform: translateX(0);
    transition: all 0.2s ease;
}

/* Hover Interaction on Dropdown Item */
.dropdown-item:hover {
    background: var(--school-blue-soft);
    border-color: rgba(26, 91, 176, 0.15);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(10, 37, 68, 0.05);
}
.dropdown-item:hover .dropdown-item-title {
    color: var(--school-blue-600);
}
.dropdown-item:hover .dropdown-item-icon {
    transform: scale(1.12) rotate(4deg);
    box-shadow: 0 4px 12px rgba(10, 37, 68, 0.12);
}
.dropdown-item:hover .dropdown-item-arrow {
    opacity: 1;
    color: var(--school-gold);
    transform: translateX(3px);
}

/* Staggered Item Cascading Entrance Animation */
.nav-dropdown:hover .dropdown-item,
.nav-dropdown.is-open .dropdown-item {
    animation: dropdownItemReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nav-dropdown:hover .dropdown-item:nth-child(1),
.nav-dropdown.is-open .dropdown-item:nth-child(1) { animation-delay: 0.04s; }
.nav-dropdown:hover .dropdown-item:nth-child(2),
.nav-dropdown.is-open .dropdown-item:nth-child(2) { animation-delay: 0.08s; }
.nav-dropdown:hover .dropdown-item:nth-child(3),
.nav-dropdown.is-open .dropdown-item:nth-child(3) { animation-delay: 0.12s; }
.nav-dropdown:hover .dropdown-item:nth-child(4),
.nav-dropdown.is-open .dropdown-item:nth-child(4) { animation-delay: 0.16s; }

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

.public-nav-cta {
    margin-left: auto;
    white-space: nowrap;
}
.nav-ppdb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--school-yellow), var(--school-gold));
    color: var(--school-navy-950);
    font-size: 13px;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 30px;
    box-shadow: var(--school-shadow-gold);
    transition: all 0.25s ease;
}
.nav-ppdb-btn:hover {
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fed7aa, var(--school-yellow));
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--school-navy-950);
    border-radius: 50%;
    animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   SECTION HEADINGS & COMMONS
   ========================================================================== */
.public-section-heading {
    margin-bottom: 34px;
}
.public-section-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--school-blue-600);
}
.public-section-heading .eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    background: var(--school-gold);
    border-radius: 2px;
}
.public-section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--school-navy-900);
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.public-section-heading p {
    margin: 10px 0 0;
    color: var(--school-text-muted);
    font-size: 15px;
    max-width: 680px;
}
.public-section-heading.align-center {
    text-align: center;
}
.public-section-heading.align-center .eyebrow {
    justify-content: center;
}
.public-section-heading.align-center p {
    margin-inline: auto;
}

/* BUTTONS */
.public-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 24px;
    border-radius: var(--school-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 0;
}
.public-button-primary {
    background: linear-gradient(135deg, var(--school-yellow), var(--school-gold));
    color: var(--school-navy-950);
    box-shadow: var(--school-shadow-gold);
}
.public-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, #fde68a, var(--school-yellow));
}
.public-button-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}
.public-button-outline:hover {
    background: #ffffff;
    color: var(--school-navy-900);
    border-color: #ffffff;
    transform: translateY(-2px);
}
.public-button-blue {
    background: var(--school-blue-600);
    color: #ffffff;
}
.public-button-blue:hover {
    background: var(--school-navy-800);
    transform: translateY(-2px);
}

/* ==========================================================================
   PUBLIC FOOTER (CLEAN NAVY & GOLD - 3 COLUMNS)
   ========================================================================== */
.public-footer {
    background: var(--school-navy-950);
    color: #cbd5e1;
    border-top: 4px solid var(--school-gold);
    margin-top: 60px;
}
.public-footer-top {
    padding: 56px 0 36px;
}
.public-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr;
    gap: 44px;
    align-items: flex-start;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.footer-brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #0f3560;
    border: 1.5px solid var(--school-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-school-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.footer-school-sub {
    font-size: 12px;
    color: var(--school-yellow);
    margin-top: 2px;
    font-weight: 500;
}
.footer-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: #94a3b8;
    margin: 0 0 18px;
}
.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.footer-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-pill.gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--school-yellow);
    border-color: rgba(245, 158, 11, 0.35);
}

.footer-heading {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.footer-heading-line {
    width: 32px;
    height: 3px;
    background: var(--school-gold);
    border-radius: 2px;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links li a {
    font-size: 13.5px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
}
.footer-links li a::before {
    content: "›";
    color: var(--school-yellow);
    margin-right: 8px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s;
}
.footer-links li a:hover {
    color: var(--school-yellow);
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}
.footer-contact-list .contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--school-yellow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-text {
    flex: 1;
}
.footer-contact-action {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    align-self: center;
}
.footer-contact-action:hover {
    color: var(--school-yellow);
    text-decoration: underline;
}

.public-footer-bottom {
    background: #030d17;
    padding: 18px 0;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.public-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 14px;
}
.footer-copy strong {
    color: #cbd5e1;
}
.footer-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--school-yellow);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.footer-admin-btn:hover {
    background: var(--school-gold);
    color: var(--school-navy-950);
    transform: translateY(-1px);
}

/* ==========================================================================
   SCROLLED HEADER & NAV STATES
   ========================================================================== */
.public-header {
    transition: box-shadow 0.25s ease;
}
.public-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(10, 37, 68, 0.08);
}
.public-nav {
    transition: box-shadow 0.25s ease;
}
.public-nav.is-scrolled {
    box-shadow: 0 8px 24px rgba(6, 24, 44, 0.35);
    border-bottom: 2px solid var(--school-gold);
}

/* ==========================================================================
   INTERACTIVE FOOTER & ACCORDION
   ========================================================================== */
.footer-interactive-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    padding: 0;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}
.footer-interactive-link:hover {
    color: var(--school-yellow);
}
.copy-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--school-yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.footer-heading-toggle {
    display: block;
}
.accordion-icon {
    display: none;
}
.footer-collapse-content {
    display: block;
}

/* ==========================================================================
   MOBILE DRAWER NAVIGATION (SLIDE-OUT DENGAN BACKDROP BLUR)
   ========================================================================== */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 24, 44, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: #ffffff;
    z-index: 999;
    box-shadow: -10px 0 35px rgba(6, 24, 44, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.mobile-drawer.is-open {
    transform: translateX(0);
}

.drawer-header {
    background: var(--school-navy-900);
    color: #ffffff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--school-gold);
    flex-shrink: 0;
}
.drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.drawer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0f3560;
    border: 1px solid var(--school-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.drawer-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}
.drawer-sub {
    font-size: 11px;
    color: var(--school-yellow);
    margin-top: 2px;
}
.drawer-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.drawer-close-btn:hover {
    background: var(--school-gold);
    color: var(--school-navy-950);
}

.drawer-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
    overflow-y: auto;
}
.drawer-search-wrap {
    position: relative;
}
.drawer-search-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--school-bg);
    border: 1.5px solid var(--school-line);
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.drawer-search-input:focus {
    border-color: var(--school-blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--school-text-main);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}
.drawer-link:hover {
    background: var(--school-blue-soft);
    color: var(--school-navy-900);
    transform: translateX(3px);
}
.drawer-link.active {
    background: var(--school-navy-900);
    color: var(--school-yellow);
}
.drawer-link.active .drawer-link-icon {
    background: rgba(251, 191, 36, 0.2);
    color: var(--school-yellow);
}
.drawer-link.active .drawer-arrow {
    color: var(--school-yellow);
}
.drawer-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--school-blue-soft);
    color: var(--school-blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.drawer-badge-gold {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--school-yellow-soft);
    color: var(--school-gold-hover);
    border: 1px solid var(--school-yellow-border);
}
.drawer-arrow {
    margin-left: auto;
    font-size: 16px;
    color: var(--school-text-light);
}

/* ==========================================================================
   MOBILE DRAWER ACCORDION DROPDOWNS
   ========================================================================== */
.drawer-accordion {
    border-radius: 10px;
    transition: background-color 0.25s ease;
}
.drawer-accordion.is-open {
    background: rgba(10, 37, 68, 0.04);
}
.drawer-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--school-text-main);
    font-size: 13.5px;
    font-weight: 600;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}
.drawer-accordion-btn:hover {
    background: var(--school-blue-soft);
    color: var(--school-navy-900);
}
.drawer-accordion.is-open .drawer-accordion-btn {
    color: var(--school-navy-900);
    font-weight: 700;
}
.drawer-chevron {
    margin-left: auto;
    color: var(--school-text-muted);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}
.drawer-accordion.is-open .drawer-chevron {
    transform: rotate(180deg);
    color: var(--school-gold-hover);
}

/* Modern CSS Grid 0fr -> 1fr smooth height animation */
.drawer-accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-accordion.is-open .drawer-accordion-body {
    grid-template-rows: 1fr;
}
.drawer-accordion-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 8px 8px 36px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.drawer-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--school-text-body);
    text-decoration: none;
    background: transparent;
    border-left: 2px solid rgba(26, 91, 176, 0.2);
    transition: all 0.2s ease;
}
.drawer-sublink:hover {
    background: var(--school-blue-soft);
    color: var(--school-blue-600);
    border-left-color: var(--school-gold);
    transform: translateX(4px);
}
.drawer-sublink span:last-child {
    font-size: 14px;
    color: var(--school-text-light);
    transition: transform 0.2s ease, color 0.2s ease;
}
.drawer-sublink:hover span:last-child {
    color: var(--school-gold);
    transform: translateX(3px);
}

.drawer-cta-section {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--school-line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drawer-btn-ppdb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--school-yellow), var(--school-gold));
    color: var(--school-navy-950);
    font-size: 13.5px;
    font-weight: 800;
    box-shadow: var(--school-shadow-gold);
    text-decoration: none;
    transition: transform 0.2s;
}
.drawer-btn-ppdb:hover {
    transform: translateY(-2px);
}
.drawer-btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--school-blue-soft);
    color: var(--school-blue-600);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--school-blue-light);
    text-decoration: none;
    transition: all 0.2s;
}
.drawer-btn-call:hover {
    background: var(--school-blue-light);
}

/* ==========================================================================
   QUICK SEARCH MODAL (CMD+K / POPUP MODAL)
   ========================================================================== */
.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 24, 44, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}
.search-modal-dialog {
    width: min(620px, 100%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(6, 24, 44, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-modal-backdrop.is-open .search-modal-dialog {
    transform: translateY(0) scale(1);
}
.search-modal-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--school-line);
    background: #ffffff;
}
.search-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-input-icon {
    color: var(--school-blue-600);
    flex-shrink: 0;
}
#modalSearchInput {
    width: 100%;
    border: 0;
    outline: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--school-text-main);
    background: transparent;
}
#modalSearchInput::placeholder {
    color: var(--school-text-light);
}
.search-modal-close {
    border: 1px solid var(--school-line);
    background: var(--school-bg);
    color: var(--school-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.search-modal-close:hover {
    background: var(--school-line);
    color: var(--school-text-main);
}
.search-modal-body {
    max-height: 420px;
    overflow-y: auto;
    padding: 12px 14px;
}
.search-section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--school-text-muted);
    padding: 8px 10px 4px;
}
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.search-result-item:hover {
    background: var(--school-blue-soft);
    border-color: var(--school-blue-light);
    transform: translateX(3px);
}
.result-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.result-icon.blue {
    background: var(--school-blue-soft);
    border: 1px solid var(--school-blue-light);
}
.result-icon.gold {
    background: var(--school-yellow-soft);
    border: 1px solid var(--school-yellow-border);
}
.result-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--school-navy-900);
}
.result-desc {
    font-size: 12px;
    color: var(--school-text-muted);
    margin-top: 2px;
}
.result-tag {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--school-text-muted);
}
.search-modal-footer {
    padding: 10px 18px;
    background: var(--school-bg);
    border-top: 1px solid var(--school-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--school-text-muted);
}
.search-modal-footer kbd {
    background: #ffffff;
    border: 1px solid var(--school-line);
    border-radius: 3px;
    padding: 1px 5px;
    font-weight: 700;
    color: var(--school-navy-800);
}

/* ==========================================================================
   FLOATING ACTIONS & TOAST
   ========================================================================== */
.floating-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--school-navy-900), var(--school-navy-800));
    color: var(--school-yellow);
    border: 2px solid var(--school-gold);
    box-shadow: 0 8px 24px rgba(6, 24, 44, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    transform: translateY(16px) scale(0.85);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.floating-back-to-top:hover {
    background: var(--school-gold);
    color: var(--school-navy-950);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
}

.school-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--school-navy-950);
    color: #ffffff;
    border: 1.5px solid var(--school-gold);
    padding: 11px 22px;
    border-radius: 30px;
    box-shadow: 0 12px 32px rgba(6, 24, 44, 0.45);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.school-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.school-toast .toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--school-gold);
    color: var(--school-navy-950);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
}

/* ==========================================================================
   ACCESSIBILITY & UTILITIES
   ========================================================================== */
body.font-dec {
    font-size: 14.5px;
}
body.font-inc {
    font-size: 17.5px;
}
.hide-desktop {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1050px) {
    .public-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .public-header-highlights {
        display: none;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    .public-container {
        width: min(100% - 24px, 1200px);
    }
    
    /* Topbar Mobile */
    .public-topbar-inner {
        min-height: 32px;
        padding: 4px 0;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center;
        gap: 8px;
    }
    .public-topbar-left {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        gap: 6px;
    }
    .public-topbar-clock {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .public-topbar-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .public-topbar-copy-btn {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 6px;
    }
    .public-topbar-copy-btn span {
        display: none;
    }
    .public-topbar-login {
        padding: 3px 8px;
        font-size: 11px;
        border-radius: 6px;
        gap: 4px;
    }
    
    /* Header Mobile */
    .public-header-inner {
        min-height: 72px;
    }
    .public-brand {
        gap: 10px;
    }
    .public-brand-kicker {
        font-size: 9px;
    }
    .public-brand-name {
        font-size: 17px;
    }
    .public-brand-location {
        font-size: 11px;
    }
    .public-emblem {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border-radius: 12px;
    }
    .public-emblem svg {
        width: 36px;
        height: 36px;
    }
    .public-menu-toggle {
        display: flex;
    }

    /* Desktop nav is replaced by mobile slide drawer */
    .public-nav {
        display: none !important;
    }

    /* Search Modal Mobile */
    .search-modal-backdrop {
        padding: 40px 14px 14px;
    }
    .search-modal-dialog {
        border-radius: 14px;
    }

    /* Footer Clean, Compact & Slim on Mobile */
    .public-footer {
        margin-top: 36px;
    }
    .public-footer-top {
        padding: 28px 0 16px;
    }
    .public-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-col:not(:last-child) {
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .footer-brand {
        margin-bottom: 10px;
        gap: 10px;
    }
    .footer-brand-logo {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .footer-school-name {
        font-size: 15px;
    }
    .footer-school-sub {
        font-size: 11px;
    }
    .footer-desc {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
        color: #94a3b8;
    }
    .footer-badges {
        gap: 6px;
    }
    .footer-pill {
        font-size: 10px;
        padding: 2.5px 8px;
        border-radius: 5px;
    }
    .footer-heading {
        font-size: 14px;
        margin: 0 0 4px;
        letter-spacing: -0.01em;
    }
    .footer-heading-line {
        width: 24px;
        height: 2.5px;
        margin-bottom: 10px;
    }

    /* 2-Column Responsive Grid for Quick Links (Cuts vertical height by 50%) */
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 6px;
    }
    .footer-links li a {
        padding: 2px 0;
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
        display: inline-flex;
        align-items: baseline;
    }
    .footer-links li a::before {
        font-size: 13px;
        margin-right: 5px;
        flex-shrink: 0;
    }

    /* Compact Contact List */
    .footer-contact-list {
        gap: 8px;
    }
    .footer-contact-list li {
        gap: 10px;
        font-size: 12px;
        line-height: 1.45;
    }
    .footer-contact-list .contact-icon {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }
    .footer-contact-list .contact-icon svg {
        width: 13px;
        height: 13px;
    }
    .footer-contact-action {
        font-size: 12px;
    }

    .public-footer-bottom {
        padding: 14px 0 24px;
        font-size: 11.5px;
    }
    .public-footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .footer-bottom-admin {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .footer-admin-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 8px 16px;
    }

    /* Floating Back To Top Mobile */
    .floating-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    /* Mobile Drawer Full Height Scroll */
    .public-mobile-drawer {
        width: min(340px, 86vw);
    }
    .public-mobile-nav a,
    .mobile-submenu-toggle {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 580px) {
    .public-topbar-motto,
    .public-topbar-dot {
        display: none !important;
    }
    .public-topbar-inner {
        justify-content: space-between;
        gap: 8px;
    }
    .public-topbar-tag {
        font-size: 9px;
        padding: 2px 5px;
    }
}

@media (max-width: 480px) {
    .public-brand-kicker {
        display: none;
    }
    .public-brand-name {
        font-size: 15px;
        line-height: 1.15;
    }
    .public-brand-location span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }
    .public-topbar-copy-btn span {
        display: none;
    }
    .public-topbar-tag {
        display: none;
    }
    .public-header-actions {
        gap: 6px;
    }
    .public-search-trigger {
        padding: 8px;
        border-radius: 50%;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }
    .public-search-trigger span,
    .public-search-trigger kbd {
        display: none !important;
    }
    .public-search-trigger svg {
        margin: 0;
    }
    .floating-back-to-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
    .footer-links {
        column-gap: 10px;
        row-gap: 5px;
    }
    .footer-links li a {
        font-size: 11.5px;
    }
    .footer-col:not(:last-child) {
        padding-bottom: 14px;
    }
    .public-footer-top {
        padding: 22px 0 14px;
    }
}

@media (max-width: 360px) {
    .public-container {
        width: calc(100% - 20px) !important;
    }
    .public-emblem {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }
    .public-brand-name {
        font-size: 13.5px;
    }
    .public-brand-location {
        font-size: 10px;
    }
    .public-menu-toggle {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    .public-topbar-text {
        font-size: 11px;
    }
    .a11y-btn {
        padding: 1px 5px;
        font-size: 10px;
    }
}

/* ==========================================================================
   GLOBAL DEFENSIVE SVG & PAGINATION RESET
   Mencegah SVG pagination atau ikon membesar melebihi container
   ========================================================================== */
nav[role="navigation"] svg,
.pagination svg,
.school-pagination-nav svg,
.page-item svg,
.posts-pagination-wrap svg,
.post-pagination-container svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   SCHOOL PAGINATION COMPONENT (PRESTASI & MODERN THEME)
   ========================================================================== */
.school-pagination-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px auto 20px;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid var(--school-line, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(10, 37, 68, 0.05);
}

@media (min-width: 768px) {
    .school-pagination-nav {
        flex-direction: row;
        justify-content: space-between;
    }
}

.school-pagination-info {
    font-size: 13.5px;
    color: var(--school-text-muted, #64748b);
    line-height: 1.5;
    text-align: center;
}
.school-pagination-info .num {
    font-weight: 700;
    color: var(--school-navy-900, #0a2544);
}
.school-pagination-info .num.total {
    color: var(--school-blue-700, #154a8a);
    background: #f0f7ff;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #d0e4ff;
}

.school-pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.school-pagination-list .page-item {
    display: inline-flex;
}

.school-pagination-list .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--school-navy-900, #0a2544);
    background: #ffffff;
    border: 1px solid var(--school-line, #cbd5e1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    user-select: none;
}

.school-pagination-list .page-link:hover {
    background: #f1f5f9;
    color: var(--school-blue-700, #154a8a);
    border-color: var(--school-blue-500, #2563eb);
    transform: translateY(-1px);
}

.school-pagination-list .page-item.active .page-link {
    background: linear-gradient(135deg, var(--school-navy-950, #06182c) 0%, var(--school-navy-900, #0a2544) 100%);
    color: var(--school-yellow, #fbbf24);
    border-color: var(--school-navy-950, #06182c);
    box-shadow: 0 4px 12px rgba(10, 37, 68, 0.25);
    cursor: default;
    transform: none;
}

.school-pagination-list .page-item.disabled .page-link {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    transform: none;
}

.school-pagination-list .page-link.page-dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    min-width: 24px;
    cursor: default;
}

.school-pagination-list .page-prev,
.school-pagination-list .page-next {
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
}

/* Fallback for standard Tailwind / Bootstrap pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination .page-item .page-link {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    color: #0a2544;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.pagination .page-item.active .page-link {
    background: #0a2544;
    color: #fbbf24;
    border-color: #0a2544;
}
.pagination .page-item.disabled .page-link {
    color: #cbd5e1;
    border-color: #e2e8f0;
    background: #f8fafc;
}

/* ==========================================================================
   GLOBAL SCROLL-TRIGGERED REVEAL ANIMATIONS (TWO-WAY HARDWARE ACCELERATED)
   ========================================================================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #fef08a 100%);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
    z-index: 9999;
    pointer-events: none;
    transition: width 0.08s linear;
}

/* Elemen hanya disembunyikan jika browser mendukung JS & IntersectionObserver */
.js-has-observer [data-reveal] {
    opacity: 0;
    will-change: opacity, transform;
    transition-property: opacity, transform;
    transition-duration: 0.72s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0s; /* Reset instan/halus tanpa delay saat keluar viewport */
}

/* Variasi Arah & Efek Animasi */
.js-has-observer [data-reveal="fade-up"] {
    transform: translate3d(0, 44px, 0);
}

.js-has-observer [data-reveal="fade-down"] {
    transform: translate3d(0, -44px, 0);
}

.js-has-observer [data-reveal="fade-left"] {
    transform: translate3d(-48px, 0, 0);
}

.js-has-observer [data-reveal="fade-right"] {
    transform: translate3d(48px, 0, 0);
}

.js-has-observer [data-reveal="scale-in"] {
    transform: scale3d(0.91, 0.91, 1);
}

.js-has-observer [data-reveal="zoom-in"] {
    transform: scale3d(0.85, 0.85, 1) translate3d(0, 24px, 0);
}

/* Status Ketika Sudah Masuk Viewport */
.js-has-observer [data-reveal].reveal-visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) !important;
}

/* Delay Staggered Bertingkat */
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="50"] { transition-delay: 50ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="100"] { transition-delay: 100ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="120"] { transition-delay: 120ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="150"] { transition-delay: 150ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="190"] { transition-delay: 190ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="200"] { transition-delay: 200ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="250"] { transition-delay: 250ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="260"] { transition-delay: 260ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="300"] { transition-delay: 300ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="330"] { transition-delay: 330ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="350"] { transition-delay: 350ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="400"] { transition-delay: 400ms; }
.js-has-observer [data-reveal].reveal-visible[data-reveal-delay="450"] { transition-delay: 450ms; }

/* Efek Angka Statistik Saat Menghitung */
.stat-number.counting {
    color: var(--school-yellow, #fbbf24) !important;
    text-shadow: 0 0 18px rgba(251, 191, 36, 0.45);
    transition: color 0.3s ease;
}

/* ==========================================================================
   FLOATING BACK TO TOP BUTTON DENGAN CINCIN PROGRES EMAS
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0c2d57;
    border: none;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    box-shadow: 0 8px 24px rgba(12, 45, 87, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top-btn.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background: #154a8a;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(12, 45, 87, 0.45);
    color: #ffffff;
}

.back-to-top-btn svg.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

.back-to-top-btn:hover svg.btn-arrow {
    transform: translateY(-2px);
}

.back-to-top-btn svg.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.back-to-top-btn svg.progress-ring circle {
    fill: none;
    stroke: #fbbf24;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 138.23; /* 2 * PI * 22 */
    stroke-dashoffset: 138.23;
    transition: stroke-dashoffset 0.08s linear;
}

@media (max-width: 640px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    .back-to-top-btn svg.progress-ring {
        width: 44px;
        height: 44px;
    }
}

/* Accessibility: Matikan animasi bagi pengguna yang mengaktifkan prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress-bar {
        display: none !important;
    }
    .js-has-observer [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   DEDICATED CONTACT PAGE STYLES (/kontak)
   ========================================================================== */
.contact-hero-banner {
    position: relative;
    padding: 72px 0 54px;
    background: linear-gradient(135deg, var(--school-navy-950) 0%, var(--school-navy-900) 60%, var(--school-navy-800) 100%);
    color: #ffffff;
    overflow: hidden;
}
.contact-hero-banner::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--school-bg);
    border-radius: 32px 32px 0 0;
}
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}
.contact-card-item {
    background: #ffffff;
    border: 1px solid var(--school-line);
    border-radius: var(--school-radius);
    padding: 24px 22px;
    box-shadow: var(--school-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--school-shadow-lg);
    border-color: #cbd5e1;
}
.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}
.contact-card-icon.blue { background: #eff6ff; color: #2563eb; }
.contact-card-icon.green { background: #ecfdf5; color: #10b981; }
.contact-card-icon.amber { background: #fffbeb; color: #f59e0b; }
.contact-card-icon.purple { background: #f5f3ff; color: #7c3aed; }

.contact-card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--school-text-muted);
    margin-bottom: 6px;
}
.contact-card-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--school-navy-950);
    margin-bottom: 8px;
    line-height: 1.35;
}
.contact-card-sub {
    font-size: 12.5px;
    color: var(--school-text-muted);
    line-height: 1.4;
    margin-top: auto;
    padding-top: 8px;
}
.contact-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}
.contact-card-action:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}
@media (max-width: 900px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }
}
.contact-map-frame {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: var(--school-radius);
    box-shadow: var(--school-shadow);
}
.contact-form-box {
    background: #ffffff;
    border: 1px solid var(--school-line);
    border-radius: var(--school-radius);
    padding: 32px;
    box-shadow: var(--school-shadow);
}
.contact-input-group {
    margin-bottom: 18px;
}
.contact-input-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--school-navy-900);
    margin-bottom: 6px;
}
.contact-input-control {
    width: 100%;
    border: 1.5px solid var(--school-line);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.contact-input-control:focus {
    outline: none;
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}



