/* ==========================================================================
   site.css — Desain modern halaman publik SMA Negeri Banyumas
   Bootstrap 5.3.8 (CDN) + Bootstrap Icons + Swiper + AOS + Glightbox
   Dibangun mandiri (bukan dari folder tema). Kompatibel dengan sistem
   5-tema (config/themes.php -> partials/theme-style.blade.php) yang meng-
   override :root SETELAH file ini dimuat.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (:root) — nama variabel HARUS sama dengan theme-style
   -------------------------------------------------------------------------- */
:root {
    /* Tema (ditimpa oleh theme-style.blade.php per-tema terpilih) */
    --school-primary: #0F766E;
    --school-secondary: #14B8A6;
    --school-accent: #F59E0B;
    --school-accent-dark: #D97706;
    --school-green: #059669;
    --school-light: #F0FDFA;
    --school-light-2: #CCFBF1;
    --school-dark: #134E4A;
    --school-darker: #0B3A37;
    --school-text: #1F2937;
    --school-muted: #64748B;
    --accent-color: #0F766E;
    --nav-color: #1F2937;
    --nav-hover-color: #0F766E;
    --heading-color: #0F766E;
    --heading-font: 'Plus Jakarta Sans', sans-serif;
    --default-font: 'Inter', sans-serif;

    /* Token turunan */
    --surface-card: #ffffff;
    --text-muted: #64748B;
    --logo-blend: multiply;
    --body-bg: #F8FAFC;
    --body-text: #1F2937;
    --border-color: #E2E8F0;

    /* Token desain modern */
    --radius-sm: 0.6rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 50rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, .12);
    --shadow-primary: 0 14px 30px rgba(15, 118, 110, .25);
    --gradient-primary: linear-gradient(135deg, var(--school-primary) 0%, var(--school-secondary) 100%);
    --gradient-dark: linear-gradient(160deg, var(--school-dark) 0%, var(--school-darker) 100%);
    --gradient-accent: linear-gradient(135deg, var(--school-accent) 0%, var(--school-accent-dark) 100%);
    --transition: all .35s cubic-bezier(.4, 0, .2, 1);
    --header-h: 76px;
    --container-max: 1200px;
}

/* --------------------------------------------------------------------------
   2. DARK MODE — menimpa surface/text ketika <html data-bs-theme="dark">
   Catatan: selector :root[data-bs-theme="dark"] (specificity 0,2,0) sengaja
   dibuat lebih tinggi dari :root (0,1,0) yang di-emit theme-style.blade.php
   agar nilai dark MENANG meski partial dirender setelah site.css.
   -------------------------------------------------------------------------- */
:root[data-bs-theme="dark"] {
    --body-bg: #0B1220;
    --body-text: #E2E8F0;
    --school-text: #E2E8F0;
    --heading-color: #F8FAFC;
    --text-muted: #94A3B8;
    --surface-card: #131C2E;
    --border-color: #243049;
    --school-light: #0F1A2A;
    --school-light-2: #16233A;
    --nav-color: #E2E8F0;
    --logo-blend: normal;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, .55);
}

/* --------------------------------------------------------------------------
   3. BASE / TIPOGRAFI
   -------------------------------------------------------------------------- */
* { scroll-behavior: smooth; }

body {
    font-family: var(--default-font);
    color: var(--body-text);
    background-color: var(--body-bg);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .sitename {
    font-family: var(--heading-font);
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: -.02em;
}

a { color: var(--school-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--school-secondary); }

img { max-width: 100%; }

::selection { background: var(--school-secondary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--body-bg); }
::-webkit-scrollbar-thumb { background: var(--school-light-2); border-radius: 50rem; border: 3px solid var(--body-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--school-secondary); }

.main { min-height: 50vh; }

/* --------------------------------------------------------------------------
   4. SECTION TITLE (judul section modern)
   -------------------------------------------------------------------------- */
.section-title-school {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.2rem;
}
.section-title-school h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    margin: .6rem 0 .9rem;
    line-height: 1.2;
}
.section-title-school p { color: var(--text-muted); margin: 0 auto; max-width: 620px; }
.section-title-school.text-start { margin-left: 0; }

.badge-label {
    display: inline-block;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--school-primary);
    background: var(--school-light-2);
    padding: .4rem 1.1rem;
    border-radius: var(--radius-pill);
}
[data-bs-theme="dark"] .badge-label { color: var(--school-secondary); }

.title-line {
    width: 70px;
    height: 4px;
    border-radius: 50rem;
    background: var(--gradient-primary);
    margin: 1.1rem auto 0;
}

.bg-soft-teal { background-color: var(--school-light); }
[data-bs-theme="dark"] .bg-soft-teal { background-color: rgba(255, 255, 255, .02); }

/* Pola titik halus sebagai dekorasi section */
.section-pattern-bg {
    background-image: radial-gradient(var(--school-light-2) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
}
[data-bs-theme="dark"] .section-pattern-bg {
    background-image: radial-gradient(rgba(255, 255, 255, .04) 1.4px, transparent 1.4px);
}

/* Wave dividers */
.wave-divider { line-height: 0; margin: -1px 0; }
.wave-divider svg { display: block; width: 100%; height: 60px; }
.wave-divider-top { transform: rotate(180deg); }
.wave-divider-bottom svg { height: 50px; }

/* --------------------------------------------------------------------------
   5. TOPBAR
   -------------------------------------------------------------------------- */
#topbar {
    background: var(--gradient-dark);
    color: #CBD5E1;
    font-size: .85rem;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
#topbar i { color: var(--school-secondary); }
#topbar .social-links a {
    color: #CBD5E1;
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    transition: var(--transition);
}
#topbar .social-links a:hover {
    color: #fff;
    background: var(--school-secondary);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. HEADER / NAVBAR
   -------------------------------------------------------------------------- */
.header {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-h);
    transition: var(--transition);
    z-index: 997;
}
[data-bs-theme="dark"] .header { background: rgba(11, 18, 32, .82); }

/* Navbar solid + menyusut saat scroll */
.header.scrolled {
    height: 64px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-bs-theme="dark"] .header.scrolled { background: rgba(11, 18, 32, .96); }

.logo { gap: .65rem; }
.logo img { height: 42px; width: auto; transition: var(--transition); }
.header.scrolled .logo img { height: 36px; }
.logo .sitename {
    font-size: 1.12rem;
    margin: 0;
    line-height: 1.15;
    color: var(--school-dark);
    max-width: 340px;
}
[data-bs-theme="dark"] .logo .sitename { color: #fff; }

/* Nav menu */
.navmenu > ul {
    list-style: none;
    display: flex;
    gap: .25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}
.navmenu > ul > li > a {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--nav-color);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: .95rem;
    padding: .55rem .9rem;
    border-radius: var(--radius-sm);
    position: relative;
}
.navmenu > ul > li > a:hover,
.navmenu > ul > li > a.active {
    color: var(--nav-hover-color);
    background: var(--school-light);
}
[data-bs-theme="dark"] .navmenu > ul > li > a:hover,
[data-bs-theme="dark"] .navmenu > ul > li > a.active { background: rgba(255, 255, 255, .06); }

.navmenu > ul > li > a.active::after {
    content: "";
    position: absolute;
    left: .9rem; right: .9rem; bottom: .35rem;
    height: 2px;
    border-radius: 50rem;
    background: var(--gradient-primary);
}

/* Dropdown */
.navmenu .dropdown > a .toggle-dropdown { font-size: .7rem; transition: var(--transition); }
.navmenu .dropdown > ul {
    position: absolute;
    top: 118%;
    left: 0;
    min-width: 230px;
    list-style: none;
    padding: .5rem;
    margin: 0;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}
.navmenu .dropdown:hover > ul,
.navmenu .dropdown:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.navmenu .dropdown:hover > a .toggle-dropdown { transform: rotate(180deg); }
.navmenu .dropdown > ul a {
    display: block;
    padding: .55rem .85rem;
    border-radius: var(--radius-sm);
    color: var(--body-text);
    font-size: .9rem;
    font-weight: 500;
}
.navmenu .dropdown > ul a:hover {
    background: var(--school-light);
    color: var(--school-primary);
    padding-left: 1.1rem;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
    font-size: 1.6rem;
    color: var(--school-dark);
    cursor: pointer;
    display: none;
    line-height: 1;
}
[data-bs-theme="dark"] .mobile-nav-toggle { color: #fff; }

/* Theme toggle button */
.theme-toggle {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--surface-card);
    color: var(--school-dark);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.05rem;
    transition: var(--transition);
}
[data-bs-theme="dark"] .theme-toggle { color: var(--school-accent); }
.theme-toggle:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: rotate(20deg) scale(1.05);
}

/* --------------------------------------------------------------------------
   7. HERO / FULLBANNER
   -------------------------------------------------------------------------- */
.fullbanner-hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: calc(var(--header-h) * -1);
    padding-top: var(--header-h);
}
.fullbanner-swiper,
.fullbanner-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.fullbanner-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}
.fullbanner-fallback { background: var(--gradient-dark); }

.fullbanner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(11, 58, 55, .92) 0%, rgba(15, 118, 110, .72) 45%, rgba(19, 78, 74, .55) 100%);
}
.fullbanner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0;
}
.fullbanner-content .badge-hero {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    backdrop-filter: blur(6px);
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .8rem;
    padding: .5rem 1.3rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.2rem;
}
.fullbanner-content h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.fullbanner-content p {
    color: rgba(255, 255, 255, .92);
    font-size: 1.08rem;
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* Tombol hero */
.btn-hero-primary,
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: .98rem;
    padding: .85rem 1.9rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}
.btn-hero-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 10px 25px rgba(217, 119, 6, .4);
}
.btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(217, 119, 6, .55);
}
.btn-hero-outline {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .6);
}
.btn-hero-outline:hover {
    color: var(--school-dark);
    background: #fff;
    border-color: #fff;
    transform: translateY(-3px);
}

/* Hero floating shapes */
.hero-floating-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .35;
    animation: floatY 8s ease-in-out infinite;
}
.hero-shape-1 { width: 90px; height: 90px; background: var(--school-accent); top: 18%; left: 8%; }
.hero-shape-2 { width: 140px; height: 140px; background: var(--school-secondary); bottom: 14%; right: 10%; animation-delay: 1.5s; }
.hero-shape-3 { width: 60px; height: 60px; background: #fff; top: 30%; right: 22%; opacity: .2; animation-delay: 3s; }
.hero-shape-4 { width: 50px; height: 50px; background: var(--school-accent); bottom: 30%; left: 18%; animation-delay: 4.5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

/* Hero scroll-down indicator */
.hero-scroll-down {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(4px);
    animation: bobble 2s ease-in-out infinite;
}
@keyframes bobble { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Swiper pagination / nav override */
.fullbanner-pagination { bottom: 22px !important; }
.fullbanner-pagination .swiper-pagination-bullet {
    width: 11px; height: 11px; background: #fff; opacity: .5; transition: var(--transition);
}
.fullbanner-pagination .swiper-pagination-bullet-active { opacity: 1; width: 30px; border-radius: 50rem; }
.fullbanner-prev, .fullbanner-next {
    color: #fff; background: rgba(255, 255, 255, .15);
    width: 48px; height: 48px; border-radius: 50%;
    backdrop-filter: blur(4px); transition: var(--transition);
}
.fullbanner-prev:hover, .fullbanner-next:hover { background: rgba(255, 255, 255, .35); }
.fullbanner-prev { left: 20px; }
.fullbanner-next { right: 20px; }
.fullbanner-prev::after, .fullbanner-next::after { font-size: 1.1rem; font-weight: 700; }

/* --------------------------------------------------------------------------
   8. PROFIL / ABOUT INFO CARDS
   -------------------------------------------------------------------------- */
.profil-logo-wrapper {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    display: inline-block;
}
.about-info-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    height: 100%;
    transition: var(--transition);
}
.about-info-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--school-light-2); }
.info-icon {
    flex: 0 0 auto;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.2rem;
}
.info-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.info-value { font-weight: 700; color: var(--school-text); font-family: var(--heading-font); }

.school-logo { filter: drop-shadow(0 10px 20px rgba(15, 118, 110, .18)); }

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: .92rem;
    color: var(--school-primary);
    padding: .35rem .2rem;
    border-bottom: 2px solid transparent;
}
.btn-read-more:hover { color: var(--school-secondary); border-bottom-color: var(--school-secondary); gap: .65rem; }

/* --------------------------------------------------------------------------
   9. STATISTIK
   -------------------------------------------------------------------------- */
.stats-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0;
}
.stats-section::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}
.stat-item {
    position: relative;
    padding: 1.4rem 1rem;
}
.stat-icon {
    width: 70px; height: 70px;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    font-size: 1.8rem;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.stat-item:hover .stat-icon { transform: translateY(-6px) scale(1.05); background: var(--gradient-accent); }
.stat-number {
    display: block;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1;
    color: #fff;
}
.stat-label { color: rgba(255, 255, 255, .82); font-size: .92rem; margin-top: .4rem; }

/* --------------------------------------------------------------------------
   10. FEATURE / KEUNGGULAN CARDS
   -------------------------------------------------------------------------- */
.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.7rem;
    height: 100%;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 78px; height: 78px;
    margin: 0 auto 1.3rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--school-primary);
    background: var(--school-light);
    transition: var(--transition);
}
[data-bs-theme="dark"] .feature-icon { color: var(--school-secondary); }
.feature-card:hover .feature-icon { background: var(--gradient-primary); color: #fff; transform: rotate(-6deg) scale(1.06); }
.feature-card h4 { font-size: 1.15rem; margin-bottom: .6rem; }
.feature-card p { color: var(--text-muted); font-size: .94rem; margin: 0; }

/* --------------------------------------------------------------------------
   11. NEWS / ARTIKEL CARDS
   -------------------------------------------------------------------------- */
.news-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img-wrapper { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .card-img-wrapper img { transform: scale(1.08); }
.card-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: .74rem;
    padding: .32rem .85rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}
.card-body-inner { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-meta {
    display: flex; flex-wrap: wrap; gap: 1rem;
    font-size: .8rem; color: var(--text-muted);
    margin-bottom: .7rem;
}
.card-meta i { color: var(--school-secondary); margin-right: .2rem; }
.card-title { margin-bottom: auto; }
.card-title a {
    display: block;
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--school-text);
    font-size: 1.06rem;
    line-height: 1.4;
}
[data-bs-theme="dark"] .card-title a { color: #fff; }
.card-title a:hover { color: var(--school-primary); }
.news-card .btn-read-more { margin-top: 1rem; }

/* Empty state */
.empty-state-wrapper { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-icon {
    font-size: 3.4rem; color: var(--school-light-2);
    margin-bottom: 1rem;
}
[data-bs-theme="dark"] .empty-icon { color: var(--border-color); }

/* --------------------------------------------------------------------------
   12. CTA SECTION
   -------------------------------------------------------------------------- */
.cta-section {
    position: relative;
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
    padding: 4.5rem 0;
    overflow: hidden;
}
.cta-section::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1.6px, transparent 1.6px);
    background-size: 26px 26px;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin-bottom: .8rem;
}
.cta-section p { color: rgba(255, 255, 255, .92); font-size: 1.08rem; max-width: 640px; margin: 0 auto 2rem; }
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    color: var(--school-primary);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1rem;
    padding: .9rem 2.2rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.btn-cta:hover { color: var(--school-dark); transform: translateY(-3px) scale(1.03); }
/* Dekorasi mengambang CTA */
.cta-deco-1, .cta-deco-2, .cta-deco-3 {
    position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12);
    animation: floatY 9s ease-in-out infinite;
}
.cta-deco-1 { width: 130px; height: 130px; top: -40px; left: 8%; }
.cta-deco-2 { width: 90px; height: 90px; bottom: -30px; right: 14%; animation-delay: 2s; }
.cta-deco-3 { width: 60px; height: 60px; top: 30%; right: 30%; animation-delay: 4s; }

/* --------------------------------------------------------------------------
   13. PAGE TITLE / BREADCRUMBS
   -------------------------------------------------------------------------- */
.page-title {
    background: var(--gradient-dark);
    color: #fff;
    padding: 3.2rem 0 2.8rem;
    position: relative;
    overflow: hidden;
}
.page-title::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1.4px, transparent 1.4px);
    background-size: 24px 24px;
}
.page-title > .container { position: relative; z-index: 1; }
.page-title h1 {
    color: #fff;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    margin-bottom: .5rem;
}
.breadcrumbs ol {
    list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
    padding: 0; margin: 0; font-size: .9rem;
}
.breadcrumbs li { color: rgba(255, 255, 255, .7); }
.breadcrumbs li.current { color: #fff; font-weight: 600; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: rgba(255, 255, 255, .4); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs a:hover { color: var(--school-accent); }

/* --------------------------------------------------------------------------
   14. VISI & MISI
   -------------------------------------------------------------------------- */
.vision-mission-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--school-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.vision-mission-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.vision-mission-card.light { border-top-color: var(--school-accent); }
.vision-mission-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    display: flex; align-items: center;
}
.vision-mission-card h3 i { color: var(--school-secondary); }
.vision-mission-card.light h3 i { color: var(--school-accent); }

/* Article body (HTML rich content dari konten_berita / visi / misi) */
.article-body { color: var(--body-text); line-height: 1.85; }
.article-body p { margin-bottom: 1.1rem; }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.6rem 0 .8rem; }
.article-body img { border-radius: var(--radius); margin: 1.2rem 0; box-shadow: var(--shadow-sm); }
.article-body a { color: var(--school-primary); text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.article-body blockquote {
    border-left: 4px solid var(--school-secondary);
    padding: .5rem 1.2rem;
    margin: 1.4rem 0;
    background: var(--school-light);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-muted);
}

/* Dark mode: konten Summernote tetap terbaca.
   Summernote / paste dari Word menyisipkan warna teks & latar eksplisit
   (hitam) lewat inline style maupun tag <font color>. Selector universal (*)
   memaksa SEMUA elemen di dalam .article-body jadi putih + latar transparan,
   apa pun tag-nya, agar tidak ada teks gelap tak terbaca di mode gelap.
   Link di-override setelahnya (specificity lebih tinggi) agar tetap brand. */
[data-bs-theme="dark"] .article-body,
[data-bs-theme="dark"] .article-body * {
    color: #ffffff !important;
    background-color: transparent !important;
}
[data-bs-theme="dark"] .article-body a {
    color: var(--school-secondary) !important;
}
[data-bs-theme="dark"] .article-body table,
[data-bs-theme="dark"] .article-body td,
[data-bs-theme="dark"] .article-body th {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* --------------------------------------------------------------------------
   15. ARTICLE DETAIL (showKonten)
   -------------------------------------------------------------------------- */
.article-detail {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    box-shadow: var(--shadow-sm);
}
.article-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.25;
    margin-bottom: 1.1rem;
}
.article-meta {
    display: flex; flex-wrap: wrap; gap: 1.3rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: .9rem;
}
.meta-item { display: inline-flex; align-items: center; gap: .4rem; }
.meta-item i { color: var(--school-secondary); font-size: 1rem; }
.article-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.8rem; box-shadow: var(--shadow); }
.article-tags { display: flex; align-items: center; gap: .6rem; margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.article-tags a {
    background: var(--school-light-2);
    color: var(--school-primary);
    padding: .35rem .9rem;
    border-radius: var(--radius-pill);
    font-size: .82rem;
    font-weight: 600;
}
[data-bs-theme="dark"] .article-tags a { color: var(--school-secondary); }
.article-tags a:hover { background: var(--gradient-primary); color: #fff; }

/* Sidebar */
.sidebar-widget {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: 1.15rem;
    margin-bottom: 1.1rem;
    padding-bottom: .8rem;
    border-bottom: 2px solid var(--school-light-2);
    position: relative;
}
.sidebar-news-item {
    display: flex; gap: .9rem;
    padding: .8rem 0;
    border-bottom: 1px dashed var(--border-color);
}
.sidebar-news-item:last-child { border-bottom: none; }
.news-number {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: .85rem;
}
.sidebar-news-item a { display: block; font-weight: 600; color: var(--school-text); font-size: .92rem; line-height: 1.4; }
[data-bs-theme="dark"] .sidebar-news-item a { color: #fff; }
.sidebar-news-item a:hover { color: var(--school-primary); }
.sidebar-news-item .news-date { font-size: .78rem; color: var(--text-muted); }
.category-tag-link {
    display: inline-block;
    background: var(--school-light);
    color: var(--school-primary);
    padding: .4rem .9rem;
    border-radius: var(--radius-pill);
    font-size: .84rem;
    font-weight: 600;
    margin: 0 .35rem .5rem 0;
    transition: var(--transition);
}
[data-bs-theme="dark"] .category-tag-link { color: var(--school-secondary); }
.category-tag-link:hover { background: var(--gradient-primary); color: #fff; }

/* --------------------------------------------------------------------------
   16. TEAM CARDS
   -------------------------------------------------------------------------- */
.team-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.4rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.team-img-wrap {
    width: 120px; height: 120px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--school-light-2);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
[data-bs-theme="dark"] .team-img-wrap { border-color: var(--border-color); }
.team-card:hover .team-img-wrap { border-color: var(--school-secondary); transform: scale(1.04); }
.team-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.team-name {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--school-text);
    margin-bottom: .2rem;
}
[data-bs-theme="dark"] .team-name { color: #fff; }
.team-role {
    display: inline-block;
    background: var(--school-light);
    color: var(--school-primary);
    font-weight: 600;
    font-size: .8rem;
    padding: .25rem .85rem;
    border-radius: var(--radius-pill);
    margin-bottom: .6rem;
}
[data-bs-theme="dark"] .team-role { color: var(--school-secondary); background: rgba(255, 255, 255, .06); }
.team-nip { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }
.team-bio { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   17. GALERI
   -------------------------------------------------------------------------- */
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(11, 58, 55, .85) 0%, rgba(11, 58, 55, .1) 55%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h5 { color: #fff; margin: 0; font-size: 1rem; }
.gallery-zoom-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.6);
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--school-primary);
    font-size: 1.3rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}
.gallery-item:hover .gallery-zoom-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-zoom-btn:hover { background: var(--gradient-primary); color: #fff; }

/* --------------------------------------------------------------------------
   18. DOWNLOAD / TABLE (Unduhan)
   -------------------------------------------------------------------------- */
.download-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.card-header-school {
    background: var(--gradient-primary);
    color: #fff;
    padding: 1.1rem 1.6rem;
}
.card-header-school h5 { color: #fff; margin: 0; font-size: 1.1rem; }
.card-header-school i { color: #fff; }
.download-table { margin: 0; }
.download-table thead th {
    background: var(--school-light);
    color: var(--school-primary);
    font-family: var(--heading-font);
    font-weight: 700;
    border: none;
    padding: 1rem;
}
[data-bs-theme="dark"] .download-table thead th { background: rgba(255, 255, 255, .04); color: var(--school-secondary); }
.download-table tbody td { padding: .9rem 1rem; vertical-align: middle; border-color: var(--border-color); }
.download-table tbody tr:hover { background: var(--school-light); }
[data-bs-theme="dark"] .download-table tbody tr:hover { background: rgba(255, 255, 255, .03); }

/* Tombol unduh pada tabel */
.download-table .btn-download {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    padding: .35rem 1rem;
    font-size: .85rem;
    transition: var(--transition);
}
.download-table .btn-download:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); color: #fff; }

/* DataTables search box (Unduhan) */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: .35rem .6rem;
    background: var(--surface-card);
    color: var(--body-text);
}
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: var(--radius-sm) !important; }

/* Pagination (Laravel default bootstrap-4 view) */
.pagination .page-item .page-link {
    color: var(--school-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) !important;
    margin: 0 .2rem;
}
.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.footer-wave-separator { line-height: 0; margin-bottom: -1px; }
.footer-wave-separator svg { display: block; width: 100%; height: 80px; }

#footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, .75);
    padding: 4rem 0 0;
    position: relative;
}
#footer::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .05) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    pointer-events: none;
}
#footer > .container { position: relative; z-index: 1; }
.footer-brand img { height: 64px; margin-bottom: 1rem; }
.footer-brand h4 { color: #fff; font-size: 1.2rem; margin-bottom: .6rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-heading {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.3rem;
    position: relative;
    padding-bottom: .6rem;
}
.footer-heading::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 36px; height: 3px; border-radius: 50rem;
    background: var(--school-accent);
}
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer ul li { margin-bottom: .6rem; }
#footer ul a, .footer-contact-item span { color: rgba(255, 255, 255, .75); font-size: .92rem; }
#footer ul a:hover { color: #fff; padding-left: .35rem; }
.footer-contact-item { display: flex; gap: .7rem; margin-bottom: 1rem; align-items: flex-start; }
.footer-contact-item i { color: var(--school-accent); margin-top: .25rem; }
.footer-news-item { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.footer-news-item:last-child { border-bottom: none; margin-bottom: 0; }
.footer-news-item a { display: block; color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.45; }
.footer-news-item a:hover { color: var(--school-accent); }
.news-date { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: rgba(255, 255, 255, .6); margin-top: .3rem; }

.social-links-footer { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links-footer a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}
.social-links-footer a:hover { transform: translateY(-3px); }
.social-links-footer a.wa:hover { background: #25D366; }
.social-links-footer a.ig:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.social-links-footer a.fb:hover { background: #1877F2; }
.social-links-footer a.tw:hover { background: #000; }
.social-links-footer a.tt:hover { background: #000; }

.footer-bottom {
    margin-top: 3rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
    font-size: .88rem;
    color: rgba(255, 255, 255, .6);
}
.footer-bottom strong { color: #fff; }

/* --------------------------------------------------------------------------
   20. SCROLLTOP & PRELOADER
   -------------------------------------------------------------------------- */
.scroll-top {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 46px; height: 46px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 996;
}
.scroll-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { color: #fff; transform: translateY(-4px); }

#preloader {
    position: fixed;
    inset: 0;
    background: var(--gradient-dark);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}
#preloader::after {
    content: "";
    width: 48px; height: 48px;
    border: 4px solid rgba(255, 255, 255, .2);
    border-top-color: var(--school-secondary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#preloader.loaded { opacity: 0; visibility: hidden; }

/* AOS fallback: bila JS AOS tidak load, pastikan elemen tetap tampak */
.no-js [data-aos], [data-aos]:not(.aos-init) { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    /* Mobile nav: ubah navmenjadi panel geser */
    .mobile-nav-toggle { display: inline-flex; }
    .navmenu {
        position: fixed;
        top: 0; right: -340px;
        width: 320px; max-width: 85vw;
        height: 100vh;
        background: var(--surface-card);
        border-left: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        padding: calc(var(--header-h) + 1rem) 1.2rem 1.2rem;
        transition: right .35s cubic-bezier(.4, 0, .2, 1);
        overflow-y: auto;
        z-index: 998;
    }
    .navmenu.show { right: 0; }
    .navmenu > ul {
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        width: 100%;
    }
    .navmenu > ul > li > a { padding: .8rem 1rem; font-size: 1rem; }
    .navmenu > ul > li > a.active::after { display: none; }
    .navmenu .dropdown > ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--school-light);
        margin: .3rem 0 .3rem .8rem;
        display: none;
    }
    [data-bs-theme="dark"] .navmenu .dropdown > ul { background: rgba(255, 255, 255, .04); }
    .navmenu .dropdown.open > ul { display: block; }
    .fullbanner-content { text-align: center; }
    .fullbanner-content p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 767.98px) {
    .fullbanner-hero { min-height: 90vh; }
    .article-detail { padding: 1.5rem; }
    .page-title { padding: 2.4rem 0 2rem; }
    .footer-wave-separator svg { height: 45px; }
    #topbar .social-links { display: none !important; }
}

/* Overlay gelap saat mobile nav terbuka. z-index sengaja di bawah header
   (997) karena #header (sticky + backdrop-filter) membentuk stacking context
   yang "menjebak" .navmenu fixed — backdrop harus di bawahnya agar menu bisa diklik. */
.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 996;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* End of file site.css */
/* Modern public design — SMA Negeri Banyumas */
