/* ===========================
   CMS SEKOLAH — FRONTEND CSS
   Premium School Website
   =========================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --primary: #15803d;
    --primary-dark: #14532d;
    --primary-light: #22c55e;
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --accent: #0ea5e9;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-2: #f8fafc;
    --bg-3: #f1f5f9;
    --radius: .75rem;
    --radius-lg: 1.25rem;
    --shadow: 0 4px 24px rgba(15,23,42,.08);
    --shadow-lg: 0 12px 48px rgba(15,23,42,.15);
    --nav-height: 70px;
    --ticker-h: 0px; /* set by body.has-ticker — tinggi bar pengumuman */
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* Bar pengumuman aktif: geser navbar + progress (fixed) agar tidak menindih ticker */
body.has-ticker {
    --ticker-h: 3.125rem; /* 50px — sejajar dengan .announce-bar min-height */
}
body.has-ticker .site-nav {
    top: var(--ticker-h);
}
body.has-ticker #scroll-progress {
    top: var(--ticker-h);
}
/* Setelah bar pengumuman ter-scroll keluar: navbar + progress menempel ke atas viewport */
body.has-ticker.ticker-passed .site-nav {
    top: 0;
}
body.has-ticker.ticker-passed #scroll-progress {
    top: 0;
}

/* --- Reset & Base --- */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
    font-family:'Poppins',sans-serif;
    color:var(--text);
    background:var(--bg);
    line-height:1.65;
    font-size:15px;
    overflow-x:hidden;
}
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
ul,ol { list-style:none; }
h1,h2,h3,h4,h5,h6 { line-height:1.25; font-weight:700; }
button { cursor:pointer; font-family:inherit; border:none; background:none; }

/* --- Scroll Progress Bar --- */
#scroll-progress { position:fixed; top:0; left:0; width:0; height:3px; background:linear-gradient(90deg,var(--primary),var(--primary-light)); z-index:9999; transition:width .1s; }

/* ============ NAVBAR ============ */
.site-nav {
    position:fixed;
    top:0; left:0; right:0;
    z-index:1000;
    width:100%;
    min-height:var(--nav-height);
    height:var(--nav-height);
    transition:background var(--transition), box-shadow var(--transition);
    background:transparent;
    /* padding disamakan saat scroll — hindari "melorot" / lompatan vertikal */
    padding:0;
    transform:translate3d(0,0,0);
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden;
}
.site-nav.scrolled {
    background:#fff;
    box-shadow:0 2px 20px rgba(15,23,42,.1);
}
.site-nav.scrolled .nav-logo-text,
.site-nav.scrolled .nav-link-item { color:var(--text); }
.site-nav.scrolled .nav-brand-sub { color:var(--text-light); }
.site-nav.scrolled .nav-link-item:hover { background:var(--bg-3); color:var(--primary); }

.nav-container { max-width:1200px; margin:0 auto; padding:0 1.5rem; height:100%; display:flex; align-items:center; gap:1.5rem; }
.nav-brand { display:flex; align-items:center; gap:.75rem; flex-shrink:0; }
.nav-logo { height:42px; width:auto; border-radius:.375rem; object-fit:contain; }
.nav-logo-placeholder {
    width:42px; height:42px; border-radius:.5rem;
    background:var(--primary);
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-weight:800; font-size:1.25rem;
    flex-shrink:0;
}
.nav-logo-text { color:#fff; font-weight:700; font-size:1rem; line-height:1.15; transition:color var(--transition); }
.nav-brand-sub { color:rgba(255,255,255,.75); font-size:.67rem; font-weight:400; display:block; text-transform:uppercase; letter-spacing:.04em; transition:color var(--transition); }

.nav-links { display:flex; align-items:center; gap:.25rem; margin-left:auto; }
.nav-link-item {
    color:rgba(255,255,255,.9);
    font-weight:500; font-size:.875rem;
    padding:.45rem .85rem;
    border-radius:.5rem;
    transition:all var(--transition);
}
.nav-link-item:hover { color:#fff; background:rgba(255,255,255,.15); }
/* Active nav item — orange pill */
.nav-link-item.nav-active {
    color:#fff !important;
    background:#f97316;
    font-weight:700;
    box-shadow:0 2px 10px rgba(249,115,22,.35);
}
.nav-link-item.nav-active:hover { background:#ea580c !important; color:#fff !important; }
.site-nav.scrolled .nav-link-item.nav-active {
    color:#fff !important;
    background:#f97316;
}
.nav-mobile-link.nav-active { color:#fff !important; background:#f97316; border-radius:.5rem; font-weight:700; }
.nav-cta-group { display:flex; align-items:center; gap:.5rem; margin-left:.5rem; }
.btn-nav-login {
    color:#fff; border:1.5px solid rgba(255,255,255,.6);
    padding:.4rem 1rem; border-radius:2rem;
    font-size:.82rem; font-weight:500;
    transition:all var(--transition);
}
.site-nav.scrolled .btn-nav-login { color:var(--primary); border-color:var(--primary); }
.btn-nav-login:hover { background:rgba(255,255,255,.15); }
.site-nav.scrolled .btn-nav-login:hover { background:var(--primary-50); }
.btn-nav-daftar {
    background:var(--primary); color:#fff;
    padding:.4rem 1.1rem; border-radius:2rem;
    font-size:.82rem; font-weight:600;
    box-shadow:0 2px 8px rgba(21,128,61,.35);
    transition:all var(--transition);
}
.btn-nav-daftar:hover { background:var(--primary-dark); transform:translateY(-1px); box-shadow:0 4px 16px rgba(21,128,61,.4); }

/* Mobile hamburger */
.nav-hamburger {
    display:none; flex-direction:column; gap:5px;
    width:36px; height:36px; padding:6px;
    border-radius:.5rem; margin-left:auto;
    cursor:pointer; transition:background var(--transition);
}
.nav-hamburger span { display:block; height:2px; background:#fff; border-radius:2px; transition:all var(--transition); }
.site-nav.scrolled .nav-hamburger span { background:var(--text); }
.nav-hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity:0; }
.nav-hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer (z-index di atas .site-nav:1000 agar tidak menumpuk / double close) */
.nav-mobile-overlay { display:none; position:fixed; inset:0; background:rgba(15,23,42,.5); z-index:1100; }
.nav-mobile-overlay.open { display:block; }
.nav-mobile-drawer {
    position:fixed; top:0; right:-320px; width:300px; height:100vh;
    background:#fff; z-index:1110; padding:1rem 1.25rem 1.5rem;
    box-shadow:-4px 0 32px rgba(0,0,0,.15);
    transition:right var(--transition);
    display:flex; flex-direction:column; gap:.75rem;
    overflow-y:auto;
}
.nav-mobile-drawer.open { right:0; }
.nav-mobile-drawer-top {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    flex-shrink:0;
    min-height:40px;
}
.nav-mobile-close {
    width:40px; height:40px; border-radius:.5rem; background:var(--bg-3);
    display:flex; align-items:center; justify-content:center; color:var(--text); font-size:1.15rem;
    flex-shrink:0;
}
.nav-mobile-links { display:flex; flex-direction:column; gap:.25rem; }
.nav-mobile-link { padding:.75rem 1rem; border-radius:.5rem; font-weight:500; color:var(--text); transition:background var(--transition); }
.nav-mobile-link:hover { background:var(--bg-3); color:var(--primary); }
.nav-mobile-btns { display:flex; flex-direction:column; gap:.5rem; margin-top:auto; }
.nav-mobile-btns .btn-nav-daftar, .nav-mobile-btns .btn-nav-login { text-align:center; display:block; padding:.65rem; border-radius:2rem; }
.nav-mobile-btns .btn-nav-login { color:var(--primary); border-color:var(--primary); }
.nav-mobile-btns .btn-nav-login:hover { background:var(--primary-50); }

/* ============ HERO SLIDER — PREMIUM ============ */
.hero-section {
    position:relative;
    height: calc(100svh - var(--ticker-h));
    min-height: 580px;
    max-height: 920px;
    overflow:hidden; background:#0a1628;
}
/* Ken Burns zoom on active slide image */
@keyframes heroKenBurns {
    0%   { transform:scale(1.0); }
    100% { transform:scale(1.13) translate(-1%,-1%); }
}
.hero-slides { position:absolute; inset:0; }
.hero-slide { position:absolute; inset:0; opacity:0; transition:opacity 1.1s ease; }
.hero-slide.active { opacity:1; }
.hero-slide img { width:100%; height:100%; object-fit:cover; transform-origin:center; }
.hero-slide.active img { animation:heroKenBurns 10s ease-out forwards; }
.hero-slide-fallback { width:100%; height:100%; background:linear-gradient(135deg,#14532d 0%,#0f172a 100%); }
/* Layered overlay — heavy left, lighter right for drama */
.hero-overlay {
    position:absolute; inset:0;
    background:
        linear-gradient(105deg,
            rgba(10,22,40,.96) 0%,
            rgba(20,83,45,.82) 28%,
            rgba(20,83,45,.48) 58%,
            rgba(10,22,40,.2) 100%);
}
/* Green radial spotlight right side */
.hero-spotlight {
    position:absolute; inset:0; pointer-events:none;
    background:radial-gradient(ellipse 52% 68% at 76% 50%, rgba(21,128,61,.22) 0%, transparent 65%);
}
/* Subtle dot grid texture */
.hero-grid {
    position:absolute; inset:0; pointer-events:none;
    background-image:radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size:36px 36px;
}
/* Animated decorative rings */
.hero-ring-a, .hero-ring-b, .hero-ring-c { position:absolute; border-radius:50%; pointer-events:none; z-index:2; }
.hero-ring-a { top:-120px; right:-120px; width:520px; height:520px; border:1px solid rgba(255,255,255,.07); animation:heroRingSpin 32s linear infinite; }
.hero-ring-b { top:-55px;  right:-55px;  width:350px; height:350px; border:1px solid rgba(34,197,94,.12); animation:heroRingSpin 22s linear infinite reverse; }
.hero-ring-c { top:20px;   right:20px;   width:210px; height:210px; border:1px solid rgba(255,255,255,.05); animation:heroRingSpin 15s linear infinite; }
@keyframes heroRingSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
/* Content */
.hero-content {
    position:absolute; inset:0;
    display:flex; flex-direction:column; justify-content:center;
    padding:0 6% 110px;
    max-width:1280px; margin:0 auto; left:0; right:0; z-index:5;
}
/* Eyebrow chip */
.hero-eyebrow {
    display:inline-flex; align-items:center; gap:.5rem;
    background:rgba(21,128,61,.22); backdrop-filter:blur(10px);
    border:1px solid rgba(34,197,94,.3);
    color:var(--primary-light); font-size:.75rem; font-weight:700;
    letter-spacing:.1em; text-transform:uppercase;
    padding:.3rem 1rem; border-radius:2rem;
    width:fit-content; margin-bottom:1.25rem;
    opacity:0; transform:translateY(18px); transition:all .7s .2s ease;
}
.hero-slide.active .hero-eyebrow { opacity:1; transform:translateY(0); }
/* Title */
.hero-title {
    color:#fff; font-size:clamp(2.1rem,4.8vw,3.8rem); font-weight:800;
    line-height:1.07; max-width:660px; letter-spacing:-.02em;
    opacity:0; transform:translateY(32px); transition:all .85s .4s ease;
    text-shadow:0 4px 32px rgba(0,0,0,.4);
}
.hero-slide.active .hero-title { opacity:1; transform:translateY(0); }
.hero-title-link {
    color:inherit;
    text-decoration:none;
    text-shadow:inherit;
    transition:opacity .15s ease, color .15s ease;
}
@media (min-width:769px) {
    .hero-title-link {
        pointer-events:none;
        cursor:default;
    }
}
/* Accent line under title */
.hero-line {
    width:52px; height:3px;
    background:linear-gradient(90deg,var(--primary-light),var(--primary));
    border-radius:2px; margin:1.2rem 0;
    opacity:0; transform:scaleX(0); transform-origin:left;
    transition:all .6s .62s ease;
}
.hero-slide.active .hero-line { opacity:1; transform:scaleX(1); }
/* Subtitle */
.hero-subtitle {
    color:rgba(255,255,255,.78); font-size:1rem; max-width:470px;
    margin-bottom:2.25rem; line-height:1.8;
    opacity:0; transform:translateY(22px); transition:all .7s .72s ease;
}
.hero-slide.active .hero-subtitle { opacity:1; transform:translateY(0); }
/* CTA */
.hero-actions {
    display:flex; gap:1rem; flex-wrap:wrap; align-items:center;
    opacity:0; transform:translateY(22px); transition:all .7s .88s ease;
}
.hero-slide.active .hero-actions { opacity:1; transform:translateY(0); }
/* Primary button */
.btn-hero-primary {
    background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);
    color:#fff; padding:.82rem 2.1rem; border-radius:2rem;
    font-weight:700; font-size:.95rem;
    box-shadow:0 6px 28px rgba(21,128,61,.45);
    transition:all var(--transition);
    display:inline-flex; align-items:center; gap:.6rem; border:none;
}
.btn-hero-primary:hover {
    background:linear-gradient(135deg,var(--primary-light) 0%,var(--primary) 100%);
    transform:translateY(-3px); box-shadow:0 12px 36px rgba(21,128,61,.55);
}
.btn-hero-outline {
    background:rgba(255,255,255,.1); color:#fff;
    padding:.82rem 2.1rem; border-radius:2rem;
    font-weight:600; font-size:.95rem;
    border:1.5px solid rgba(255,255,255,.4); backdrop-filter:blur(8px);
    transition:all var(--transition); display:inline-flex; align-items:center; gap:.6rem;
}
.btn-hero-outline:hover { background:rgba(255,255,255,.22); border-color:#fff; }
/* Floating achievement cards */
.hero-stats {
    position:absolute; right:6%; top:50%; transform:translateY(-50%) translateX(50px);
    display:flex; flex-direction:column; gap:.9rem; z-index:6;
    opacity:0; transition:opacity .9s 1.1s ease, transform .9s 1.1s ease;
}
.hero-section.loaded .hero-stats { opacity:1; transform:translateY(-50%) translateX(0); }
.hero-stat-card {
    background:rgba(255,255,255,.09); backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,.16);
    border-radius:1rem; padding:.9rem 1.35rem;
    color:#fff; min-width:136px; text-align:center;
    transition:background var(--transition);
}
.hero-stat-card:hover { background:rgba(255,255,255,.16); }
.hero-stat-icon { font-size:1.1rem; color:var(--primary-light); margin-bottom:.2rem; }
.hero-stat-num { font-size:1.5rem; font-weight:800; line-height:1.1; }
.hero-stat-label { font-size:.68rem; color:rgba(255,255,255,.65); letter-spacing:.07em; text-transform:uppercase; margin-top:.15rem; }
/* Scroll hint */
.hero-scroll {
    position:absolute; bottom:92px; left:50%; transform:translateX(-50%);
    display:flex; flex-direction:column; align-items:center; gap:.25rem;
    color:rgba(255,255,255,.4); font-size:.65rem; letter-spacing:.12em; text-transform:uppercase;
    z-index:6; animation:heroScrollPulse 2.2s ease-in-out infinite;
}
@keyframes heroScrollPulse {
    0%,100%{ opacity:.4; transform:translateX(-50%) translateY(0); }
    55%    { opacity:.75; transform:translateX(-50%) translateY(8px); }
}
/* ── BOTTOM NAV BAR ── */
.hero-bottom { position:absolute; bottom:0; left:0; right:0; z-index:15; }
.hero-progress { height:3px; background:rgba(255,255,255,.15); }
.hero-progress-fill {
    height:100%;
    background:linear-gradient(90deg,var(--primary),var(--primary-light));
    width:0%;
}
.hero-nav-bar {
    display:flex; align-items:center; justify-content:space-between; gap:1.5rem;
    padding:.9rem 2rem 1.1rem;
    background:linear-gradient(0deg,rgba(10,22,40,.88) 0%,transparent 100%);
}
/* Counter */
.hero-counter { display:flex; align-items:baseline; gap:.15rem; min-width:52px; }
.hero-counter-cur { font-size:1.9rem; font-weight:800; color:#fff; line-height:1; font-variant-numeric:tabular-nums; }
.hero-counter-sep { color:rgba(255,255,255,.35); font-size:.82rem; margin:0 .1rem; }
.hero-counter-total { color:rgba(255,255,255,.42); font-size:.82rem; font-weight:600; }
/* Dots */
.hero-dots { display:flex; align-items:center; gap:.55rem; flex:1; justify-content:center; }
.hero-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.3); transition:all .4s ease; cursor:pointer; border:none; }
.hero-dot.active { background:#fff; width:28px; border-radius:3px; }
.hero-dot:hover:not(.active) { background:rgba(255,255,255,.6); }
/* Arrows */
.hero-nav-arrows { display:flex; gap:.5rem; }
.hero-prev, .hero-next {
    width:42px; height:42px; border-radius:50%;
    background:rgba(255,255,255,.1); color:#fff;
    border:1px solid rgba(255,255,255,.22); backdrop-filter:blur(8px);
    display:flex; align-items:center; justify-content:center;
    font-size:.95rem; transition:all var(--transition); cursor:pointer;
}
.hero-prev:hover, .hero-next:hover { background:var(--primary); border-color:var(--primary); box-shadow:0 4px 18px rgba(21,128,61,.5); }
/* Responsive */
@media(max-width:900px){ .hero-stats { display:none; } }
@media(max-width:640px){
    .hero-content { padding:0 5% 6.75rem; }
    .hero-nav-bar { padding:.75rem 1.25rem 1rem; gap:1rem; }
    .hero-counter-cur { font-size:1.4rem; }
    .hero-ring-a,.hero-ring-b,.hero-ring-c { display:none; }
}
/* Desktop lebar: navbar fixed menindih atas hero (hero sudah di bawah bar ticker di alur dokumen) */
@media (min-width:769px) {
    .hero-content {
        top:calc(var(--nav-height) + 1.25rem);
        bottom:0;
    }
}

/* ============ SUBMENU ============ */
.nav-item-wrap { position:relative; }
/* Bridge the gap between nav link and dropdown so hover is not lost mid-travel */
.nav-item-wrap::after { content:''; position:absolute; top:100%; left:-12px; right:-12px; height:14px; }
.nav-item-wrap:hover .nav-dropdown { opacity:1; visibility:visible; transform:translateY(0); pointer-events:all; }
.nav-dropdown {
    position:absolute; top:calc(100% + 8px); left:0;
    background:#fff; border-radius:.75rem;
    box-shadow:0 8px 32px rgba(15,23,42,.15);
    min-width:200px; padding:.4rem;
    opacity:0; visibility:hidden; transform:translateY(-8px);
    transition:all .2s ease; pointer-events:none; z-index:100;
    border:1px solid var(--border);
}
.nav-dropdown-item {
    display:flex; align-items:center; justify-content:space-between;
    padding:.55rem .9rem; border-radius:.5rem;
    color:var(--text); font-size:.85rem; font-weight:500;
    transition:all .15s; position:relative;
}
.nav-dropdown-item:hover { background:var(--primary-50); color:var(--primary); }
.nav-dropdown-item.nav-active {
    background:#f97316 !important;
    color:#fff !important;
}
.nav-dropdown-item.nav-active:hover { background:#ea580c !important; color:#fff !important; }
.nav-dropdown-item.nav-active .sub-arrow { color:rgba(255,255,255,.85) !important; }
.nav-dropdown-item--current-branch { background:var(--primary-50); }
.nav-dropdown-item-link {
    flex:1;
    min-width:0;
    color:inherit;
    text-decoration:none;
    align-self:center;
}
.nav-dropdown-item.nav-active > .nav-dropdown-item-link { color:#fff !important; }
.nav-dropdown-item .sub-arrow { font-size:.65rem; color:var(--text-muted); transition:transform .15s; }
.nav-dropdown-item:hover .sub-arrow { transform:rotate(-90deg); }
.nav-sub-dropdown {
    position:absolute; left:100%; top:0;
    background:#fff; border-radius:.75rem;
    box-shadow:0 8px 32px rgba(15,23,42,.15);
    min-width:190px; padding:.4rem;
    opacity:0; visibility:hidden; transform:translateX(-8px);
    transition:all .2s ease; pointer-events:none; z-index:101;
    border:1px solid var(--border);
}
.nav-dropdown-item:hover .nav-sub-dropdown { opacity:1; visibility:visible; transform:translateX(0); pointer-events:all; }
.nav-sub-dropdown a { display:block; padding:.5rem .9rem; border-radius:.5rem; color:var(--text); font-size:.83rem; font-weight:500; transition:background .15s; }
.nav-sub-dropdown a:hover { background:var(--primary-50); color:var(--primary); }
.nav-sub-dropdown a.nav-active {
    background:#f97316 !important;
    color:#fff !important;
    font-weight:600;
}
.nav-sub-dropdown a.nav-active:hover { background:#ea580c !important; color:#fff !important; }

/* Mobile submenus */
.mobile-sub-toggle { display:flex; justify-content:space-between; align-items:center; width:100%; }
.mobile-sub-toggle .sub-indicator { transition:transform .2s; color:var(--primary); font-size:.75rem; }
.mobile-sub-toggle.open .sub-indicator { transform:rotate(180deg); }
.mobile-sub-list { display:none; padding-left:1rem; margin-top:.25rem; }
.mobile-sub-list.open { display:block; }
.mobile-sub-list a { display:block; padding:.4rem .75rem; border-radius:.5rem; font-size:.83rem; color:var(--text-light); }
.mobile-sub-list a:hover { color:var(--primary); background:var(--primary-50); }
.mobile-sub-list a.nav-active {
    color:#fff !important;
    background:#f97316;
    font-weight:700;
}
.mobile-sub-list a.nav-active:hover { background:#ea580c; color:#fff !important; }
.mobile-sub-group { margin:.35rem 0 .5rem; padding-left:.35rem; border-left:2px solid var(--primary-100); }
.mobile-sub-group-label {
    display:block;
    font-size:.72rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:var(--text-muted);
    padding:.35rem .75rem .25rem;
}

/* ============ SECTIONS ============ */
.section-pad { padding:5rem 0; }
.section-pad-sm { padding:3.5rem 0; }
.container { max-width:1200px; margin:0 auto; padding:0 1.5rem; }
.section-label { color:var(--primary); font-size:.8rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; display:flex; align-items:center; gap:.5rem; margin-bottom:.5rem; }
.section-label::before { content:''; display:block; width:28px; height:2px; background:var(--primary); }
.section-title { font-size:clamp(1.5rem,3vw,2.25rem); color:var(--text); margin-bottom:1rem; }
.section-subtitle { color:var(--text-light); font-size:.95rem; max-width:560px; margin:0 auto 2.5rem; line-height:1.7; }
.text-center { text-align:center; }
.why-section .section-subtitle { max-width:42rem; }
.text-center .section-label { justify-content:center; }
.text-center .section-label::before { display:none; }
.text-center .section-label::after { content:''; display:block; width:28px; height:2px; background:var(--primary); }

/* ============ FEATURES / WHY SECTION ============ */
.why-section {
    background:#fff;
    position:relative;
}
/* Subtle dot-grid pattern */
.why-section::before {
    content:'';
    position:absolute; inset:0;
    background-image:radial-gradient(circle, var(--primary-100) 1.5px, transparent 1.5px);
    background-size:28px 28px;
    opacity:.55;
    pointer-events:none;
}
.features-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; position:relative; z-index:1; }
.feature-card {
    background:#fff;
    border-radius:var(--radius-lg);
    padding:2rem 1.5rem;
    text-align:center;
    border:1px solid var(--border);
    transition:all var(--transition);
    position:relative; overflow:hidden;
    box-shadow:0 2px 12px rgba(15,23,42,.05);
}
.feature-card::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,var(--primary-50),transparent 60%); opacity:0; transition:opacity var(--transition); }
.feature-card::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:0; height:3px; background:var(--primary); border-radius:2px; transition:width var(--transition); }
.feature-card:hover { transform:translateY(-7px); box-shadow:0 16px 48px rgba(21,128,61,.15); border-color:var(--primary-100); }
.feature-card:hover::before { opacity:1; }
.feature-card:hover::after { width:60%; }
.feature-icon-wrap {
    width:70px; height:70px; border-radius:1rem;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 1.25rem;
    font-size:1.65rem; color:#fff;
    box-shadow:0 8px 24px rgba(21,128,61,.25);
    position:relative;
    transition:transform var(--transition);
}
.feature-card:hover .feature-icon-wrap { transform:scale(1.08) rotate(-3deg); }
.feature-card h3 { font-size:1rem; font-weight:700; color:var(--text); margin-bottom:.5rem; }
.feature-card p { color:var(--text-light); font-size:.85rem; line-height:1.6; }

/* ============ NEWS GRID ============ */
.news-section { background:var(--bg-2); }
.news-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.75rem; }
.news-card {
    border-radius:var(--radius-lg);
    overflow:hidden;
    border:1px solid var(--border);
    background:#fff;
    transition:all var(--transition);
    display:flex; flex-direction:column;
}
.news-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:transparent; }
.news-card-image {
    position:relative; height:200px; overflow:hidden;
    background:linear-gradient(135deg,var(--primary-100),var(--bg-3));
}
.news-card-image img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.news-card:hover .news-card-image img { transform:scale(1.07); }
.news-card-image .news-placeholder-icon { display:flex; align-items:center; justify-content:center; height:100%; font-size:3rem; color:var(--primary); opacity:.4; }
.news-badge {
    position:absolute; top:.75rem; left:.75rem;
    background:var(--primary); color:#fff;
    font-size:.7rem; font-weight:600; padding:.2rem .65rem;
    border-radius:2rem; text-transform:uppercase; letter-spacing:.04em;
}
.news-card-body { padding:1.25rem 1.5rem 1.5rem; flex:1; display:flex; flex-direction:column; }
.news-card-date { color:var(--text-muted); font-size:.78rem; display:flex; align-items:center; gap:.35rem; margin-bottom:.6rem; }
.news-card-title { font-size:1rem; font-weight:700; color:var(--text); margin-bottom:.75rem; line-height:1.4; flex:1; }
.news-card-title a:hover { color:var(--primary); }
.news-card-excerpt { color:var(--text-light); font-size:.83rem; line-height:1.6; margin-bottom:1rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.news-card-link { color:var(--primary); font-size:.83rem; font-weight:600; display:flex; align-items:center; gap:.3rem; margin-top:auto; }
.news-card-link:hover { gap:.5rem; }

/* Section header with "Lihat Semua" link */
.section-head { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:2.5rem; flex-wrap:wrap; gap:1rem; }
.btn-see-all { color:var(--primary); font-weight:600; font-size:.875rem; display:flex; align-items:center; gap:.35rem; padding:.5rem 1.25rem; border-radius:2rem; border:1.5px solid var(--primary); transition:all var(--transition); }
.btn-see-all:hover { background:var(--primary); color:#fff; }

/* ============ SAMBUTAN SECTION ============ */
.sambutan-section {
    background:linear-gradient(150deg, #f0fdf4 0%, #dcfce7 40%, #f0fdf4 100%);
    position:relative; overflow:hidden;
}
/* Decorative diagonal stripe */
.sambutan-section::before {
    content:'';
    position:absolute; top:0; right:0;
    width:45%; height:100%;
    background:linear-gradient(135deg, var(--primary-100) 0%, transparent 60%);
    pointer-events:none;
}
.sambutan-section::after {
    content:'';
    position:absolute; bottom:-80px; left:-80px;
    width:300px; height:300px; border-radius:50%;
    border:60px solid rgba(21,128,61,.07);
    pointer-events:none;
}
.sambutan-grid { display:grid; grid-template-columns:280px 1fr; gap:3.5rem; align-items:center; position:relative; z-index:1; }
.sambutan-photo-wrap { text-align:center; }
.sambutan-photo {
    width:220px; height:220px; border-radius:50%; object-fit:cover;
    margin:0 auto 1rem;
    border:5px solid #fff;
    box-shadow:0 12px 40px rgba(21,128,61,.2), 0 0 0 10px var(--primary-100);
}
.sambutan-photo-placeholder { width:220px; height:220px; border-radius:50%; background:linear-gradient(135deg,var(--primary-100),var(--bg-3)); display:flex; align-items:center; justify-content:center; margin:0 auto 1rem; font-size:4rem; color:var(--primary); opacity:.5; }
.sambutan-name { font-weight:700; color:var(--text); font-size:1.05rem; margin-bottom:.15rem; }
.sambutan-title { font-size:.8rem; color:var(--primary); font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
.sambutan-content { position:relative; }
.sambutan-quote { font-size:6rem; color:var(--primary); opacity:.2; line-height:.8; margin-bottom:-.25rem; font-family:Georgia,serif; }
.sambutan-text { color:var(--text-light); line-height:1.9; font-size:.95rem; font-style:italic; margin-bottom:1.5rem; }
.sambutan-signature { display:flex; align-items:center; gap:.75rem; }
.sambutan-sig-line { width:40px; height:2px; background:var(--primary); border-radius:2px; }
.sambutan-sig-name { font-weight:700; color:var(--primary); font-size:.9rem; }
.sambutan-h2-mobile-short { display:none; }
.sambutan-text-clip { overflow:visible; }
.sambutan-readmore {
    display:none;
    align-items:center;
    gap:.4rem;
    margin-top:.35rem;
    padding:.35rem 0;
    border:none;
    background:transparent;
    color:var(--primary);
    font-weight:600;
    font-size:.88rem;
    cursor:pointer;
    font-family:inherit;
}
.sambutan-readmore-icon { font-size:.72rem; transition:transform .35s ease; }
.sambutan-readmore.is-expanded .sambutan-readmore-icon { transform:rotate(180deg); }

/* ============ GALLERY SECTION ============ */
.gallery-section {
    background:linear-gradient(160deg, var(--dark) 0%, #14532d 100%);
    position:relative; overflow:hidden;
}
.gallery-section::before {
    content:'';
    position:absolute; inset:0;
    background-image:radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size:24px 24px;
    pointer-events:none;
}
.gallery-section::after { content:''; position:absolute; right:-120px; top:-80px; width:350px; height:350px; border-radius:50%; border:70px solid rgba(255,255,255,.04); pointer-events:none; }
.gallery-section .section-label { color:var(--primary-light); }
.gallery-section .section-label::before { background:var(--primary-light); }
.gallery-section .section-title { color:#fff; }
.gallery-section .section-head { position:relative; z-index:1; }
.gallery-section .btn-see-all { color:#fff; border-color:rgba(255,255,255,.4); }
.gallery-section .btn-see-all:hover { background:var(--primary); border-color:var(--primary); }
.gallery-section--page { padding-top:2rem; }

/* Halaman ?page=galeri — latar putih (body + area grid) */
body.page-galeri { background:#fff; }
body.page-galeri .gallery-section.gallery-section--page {
    background:#fff;
}
body.page-galeri .gallery-section.gallery-section--page::before,
body.page-galeri .gallery-section.gallery-section--page::after { display:none; }

.gallery-empty { text-align:center; padding:4rem 1.5rem; color:rgba(255,255,255,.88); }
body.page-galeri .gallery-empty { color:var(--text-light); }
body.page-galeri .gallery-empty i { color:var(--text-muted); opacity:.55; }
body.page-galeri .gallery-empty .btn-see-all {
    color:var(--primary); border-color:var(--primary);
}
body.page-galeri .gallery-empty .btn-see-all:hover {
    background:var(--primary); color:#fff; border-color:var(--primary);
}
.gallery-empty i { font-size:3rem; opacity:.45; display:block; margin-bottom:1rem; }
.gallery-empty p { margin:0; font-size:.95rem; line-height:1.65; max-width:26rem; margin-left:auto; margin-right:auto; }
.gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.gallery-item { border-radius:var(--radius); overflow:hidden; position:relative; aspect-ratio:4/3; cursor:pointer; background:var(--dark); }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.gallery-item:hover img { transform:scale(1.08); }
.gallery-item-overlay { position:absolute; inset:0; background:linear-gradient(180deg,transparent 50%,rgba(15,23,42,.8)); opacity:0; transition:opacity var(--transition); display:flex; flex-direction:column; justify-content:flex-end; padding:.75rem; }
.gallery-item:hover .gallery-item-overlay { opacity:1; }
.gallery-item-title { color:#fff; font-size:.8rem; font-weight:600; line-height:1.3; }
.gallery-item-type { position:absolute; top:.5rem; right:.5rem; background:rgba(15,23,42,.7); color:#fff; border-radius:.35rem; width:28px; height:28px; display:flex; align-items:center; justify-content:center; font-size:.8rem; }
.gallery-play-btn { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.gallery-play-btn i { width:48px; height:48px; background:rgba(255,255,255,.9); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--primary); font-size:1.1rem; box-shadow:0 4px 20px rgba(0,0,0,.3); transition:transform var(--transition); }
.gallery-item:hover .gallery-play-btn i { transform:scale(1.1); }
/* Lightbox */
.lightbox-overlay { position:fixed; inset:0; background:rgba(0,0,0,.92); z-index:2000; display:none; align-items:center; justify-content:center; padding:1.5rem; }
.lightbox-overlay.open { display:flex; }
.lightbox-close { position:absolute; top:1rem; right:1.25rem; color:#fff; font-size:1.6rem; cursor:pointer; z-index:10; opacity:.8; transition:opacity .2s; }
.lightbox-close:hover { opacity:1; }
.lightbox-media { max-width:900px; width:100%; max-height:90vh; border-radius:.75rem; overflow:hidden; }
.lightbox-media img { width:100%; height:auto; max-height:85vh; object-fit:contain; }
.lightbox-media iframe { width:100%; aspect-ratio:16/9; border:0; }

/* ============ FEATURED CATEGORY SECTIONS — CARD GRID STYLE ============ */

/* ── Section shell ── */
.fcs-section { position:relative; overflow:hidden; }
.fcs-v1 { background:#fff; }
.fcs-v2 { background:linear-gradient(160deg, #f0fdf4 0%, #f8fafc 60%, #f0fdf4 100%); }

/* ── Decorative layer ── */
.fcs-deco { position:absolute; inset:0; pointer-events:none; }
.fcs-deco-svg { position:absolute; }
.fcs-deco-tl { top:-80px; left:-80px; width:260px; height:260px; opacity:.55; }
.fcs-deco-br { bottom:-60px; right:-60px; width:180px; height:180px; opacity:.5; }
.fcs-deco-tr { top:-70px; right:-70px; width:240px; height:240px; opacity:.5; }
.fcs-deco-bl { bottom:-60px; left:-60px; width:160px; height:160px; opacity:.6; }

/* Dot grid (v1) */
.fcs-dot-grid {
    position:absolute; inset:0;
    background-image:radial-gradient(circle, var(--primary-100) 1.5px, transparent 1.5px);
    background-size:30px 30px; opacity:.4;
}
/* Dot grid (v2) — light green dots, no stripes */
.fcs-stripe-grid {
    position:absolute; inset:0;
    background-image:radial-gradient(circle, #bbf7d0 1.5px, transparent 1.5px);
    background-size:30px 30px; opacity:.45;
}

/* ── Section label overrides per variant ── */
.fcs-v1 .fcs-label { color:var(--primary); }
.fcs-v1 .fcs-label::before { background:var(--primary); }
.fcs-v2 .fcs-label { color:#6366f1; }
.fcs-v2 .fcs-label::before { background:#6366f1; }

/* Title accent word */
.fcs-v1 .fcs-title-accent { color:var(--primary); }
.fcs-v2 .fcs-title-accent { color:#6366f1; }

/* See-all button per variant */
.fcs-v1 .fcs-see-all { color:var(--primary); border-color:var(--primary); }
.fcs-v1 .fcs-see-all:hover { background:var(--primary); color:#fff; }
.fcs-v2 .fcs-see-all { color:#6366f1; border-color:#6366f1; }
.fcs-v2 .fcs-see-all:hover { background:#6366f1; color:#fff; }

/* ── Card grid ── */
.fcs-grid {
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:1.75rem;
}
/* If only 1 post: full width. 2 posts: 2-col */
.fcs-grid:has(.fcs-card:only-child) { grid-template-columns:1fr; max-width:480px; }
.fcs-grid:has(.fcs-card:nth-child(2):last-child) { grid-template-columns:repeat(2,1fr); }

/* ── Card ── */
.fcs-card {
    border-radius:var(--radius-lg);
    overflow:hidden;
    background:#fff;
    border:1px solid var(--border);
    transition:all var(--transition);
    display:flex; flex-direction:column;
    box-shadow:0 2px 8px rgba(15,23,42,.05);
}
.fcs-v2 .fcs-card { background:#fff; }
.fcs-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(15,23,42,.12); border-color:transparent; }

/* Featured first card — taller image */
.fcs-card--featured .fcs-card-img { height:240px; }

/* Image area */
.fcs-card-img {
    display:block; position:relative;
    height:200px; overflow:hidden;
    background:linear-gradient(135deg, var(--primary-100), var(--bg-3));
}
.fcs-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.fcs-card:hover .fcs-card-img img { transform:scale(1.07); }
.fcs-card-placeholder { display:flex; align-items:center; justify-content:center; height:100%; font-size:2.5rem; color:var(--primary); opacity:.3; }

/* Category badge on image */
.fcs-card-badge {
    position:absolute; top:.75rem; left:.75rem;
    font-size:.68rem; font-weight:700; padding:.22rem .65rem;
    border-radius:2rem; text-transform:uppercase; letter-spacing:.05em;
    color:#fff;
}
.fcs-v1 .fcs-card-badge { background:var(--primary); }
.fcs-v2 .fcs-card-badge { background:#6366f1; }

/* Card body */
.fcs-card-body { padding:1.1rem 1.25rem 1.35rem; flex:1; display:flex; flex-direction:column; }
.fcs-card-date { font-size:.75rem; color:var(--text-muted); display:flex; align-items:center; gap:.35rem; margin-bottom:.55rem; }
.fcs-card-title { font-size:.975rem; font-weight:700; color:var(--text); line-height:1.4; flex:1; margin-bottom:.85rem; }
.fcs-card-title a:hover { color:var(--primary); }
.fcs-v2 .fcs-card-title a:hover { color:#6366f1; }
.fcs-card-link {
    font-size:.8rem; font-weight:600;
    display:inline-flex; align-items:center; gap:.3rem;
    margin-top:auto; transition:gap var(--transition);
}
.fcs-v1 .fcs-card-link { color:var(--primary); }
.fcs-v2 .fcs-card-link { color:#6366f1; }
.fcs-card:hover .fcs-card-link { gap:.5rem; }

/* Responsive */
@media(max-width:900px){ .fcs-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .fcs-grid { grid-template-columns:1fr; } }

/* ============ STATS SECTION ============ */
.stats-section { background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 100%); padding:3rem 0; position:relative; overflow:hidden; }
.stats-section::before { content:''; position:absolute; right:-5%; top:-50%; width:400px; height:400px; border-radius:50%; border:80px solid rgba(255,255,255,.05); }
.stats-section::after { content:''; position:absolute; left:-3%; bottom:-60%; width:300px; height:300px; border-radius:50%; border:60px solid rgba(255,255,255,.05); }
.stats-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:1.5rem; position:relative; z-index:1; }
.stat-item { text-align:center; }
.stat-number { font-size:2.25rem; font-weight:800; color:#fff; display:block; line-height:1; }
.stat-label { font-size:.78rem; color:rgba(255,255,255,.75); margin-top:.35rem; font-weight:500; text-transform:uppercase; letter-spacing:.06em; }
.stat-divider { width:1px; background:rgba(255,255,255,.2); }

/* ============ MAPS SECTION ============ */
.maps-section { background:var(--bg-2); }
.maps-grid { display:grid; grid-template-columns:1fr 360px; gap:2.5rem; align-items:start; }
.map-embed-wrap { border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow); }
.map-embed-wrap iframe { display:block; width:100%; height:400px; border:0; }
.map-info-card { background:#fff; border-radius:var(--radius-lg); padding:2rem; box-shadow:var(--shadow); border:1px solid var(--border); }
.map-info-title { font-size:1.25rem; font-weight:700; color:var(--text); margin-bottom:1.25rem; padding-bottom:1rem; border-bottom:2px solid var(--primary-100); }
.map-info-row { display:flex; gap:.75rem; margin-bottom:1rem; }
.map-info-row:last-child { margin-bottom:0; }
.map-info-icon { width:36px; height:36px; border-radius:.5rem; background:var(--primary-50); display:flex; align-items:center; justify-content:center; color:var(--primary); flex-shrink:0; font-size:.9rem; }
.map-info-text strong { display:block; font-size:.83rem; color:var(--text); font-weight:600; }
.map-info-text span { font-size:.8rem; color:var(--text-light); line-height:1.5; }
.map-directions-btn { display:block; text-align:center; margin-top:1.25rem; padding:.7rem; border-radius:.625rem; background:var(--primary); color:#fff; font-weight:600; font-size:.875rem; transition:all var(--transition); }
.map-directions-btn:hover { background:var(--primary-dark); }

/* ============ PAGE HERO ============ */
/* Offset navbar dari .main-content; bar ticker (bila aktif) sudah di alur dokumen sebelum nav. */
.page-hero {
    padding:1.35rem 1.25rem 3.5rem;
    background:linear-gradient(135deg, #14532d 0%, #15803d 55%, #16a34a 100%);
    color:#fff; text-align:center;
    position:relative; overflow:hidden;
}
/* Dot-grid overlay */
.page-hero::before {
    content:'';
    position:absolute; inset:0;
    background-image:radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size:22px 22px;
    pointer-events:none;
}
/* Decorative ring top-left */
.page-hero::after {
    content:'';
    position:absolute; left:-120px; top:-120px;
    width:340px; height:340px; border-radius:50%;
    border:56px solid rgba(255,255,255,.05);
    pointer-events:none;
}
/* Decorative ring bottom-right */
.page-hero-ring {
    position:absolute; right:-100px; bottom:-90px;
    width:280px; height:280px; border-radius:50%;
    border:52px solid rgba(255,255,255,.05);
    pointer-events:none;
}
/* Wave divider at bottom */
.page-hero-wave {
    position:absolute; bottom:-1px; left:0; right:0;
    line-height:0; pointer-events:none;
}
.page-hero-wave svg { display:block; width:100%; height:36px; }
.page-hero-inner { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:.45rem; max-width:44rem; margin:0 auto; }
.page-hero-breadcrumb {
    display:inline-flex; align-items:center; gap:.4rem;
    background:rgba(255,255,255,.14); backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,.22);
    padding:.22rem .75rem; border-radius:2rem;
    font-size:.72rem; font-weight:500;
    color:rgba(255,255,255,.92);
    margin-bottom:0; transition:all var(--transition);
    text-align:center;
}
.page-hero-breadcrumb:hover { background:rgba(255,255,255,.22); color:#fff; }
.page-hero-icon {
    width:44px; height:44px; border-radius:.85rem;
    background:rgba(255,255,255,.16); backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,.26);
    display:flex; align-items:center; justify-content:center;
    font-size:1.15rem; color:#fff;
    margin:0.15rem auto 0;
}
.page-hero h1 { font-size:clamp(1.35rem,3.2vw,2rem); font-weight:800; margin:0; letter-spacing:-.02em; line-height:1.2; }
.page-hero p { opacity:.85; font-size:.86rem; margin:.35rem 0 0; line-height:1.5; max-width:36rem; }

.berita-layout { display:grid; grid-template-columns:260px 1fr; gap:2.5rem; padding:2.25rem 0 3rem; }
.berita-sidebar {}
.sidebar-card { background:#fff; border-radius:var(--radius-lg); padding:1.5rem; border:1px solid var(--border); margin-bottom:1.5rem; }
.sidebar-card-title { font-size:.9rem; font-weight:700; color:var(--text); margin-bottom:1rem; padding-bottom:.75rem; border-bottom:2px solid var(--primary-100); display:flex; align-items:center; gap:.5rem; }
.sidebar-card-title i { color:var(--primary); }
.sidebar-cat-list { display:flex; flex-direction:column; gap:.25rem; }
.sidebar-cat-link { padding:.5rem .75rem; border-radius:.5rem; font-size:.85rem; color:var(--text-light); transition:all var(--transition); display:flex; align-items:center; justify-content:space-between; }
.sidebar-cat-link:hover, .sidebar-cat-link.active { background:var(--primary-50); color:var(--primary); font-weight:600; }
.sidebar-cat-link .cat-count { background:var(--primary-100); color:var(--primary); font-size:.72rem; font-weight:700; padding:.1rem .45rem; border-radius:2rem; }
.sidebar-recent-item { display:flex; gap:.75rem; padding:.6rem 0; border-bottom:1px solid var(--border); }
.sidebar-recent-item:last-child { border-bottom:none; }
.sidebar-recent-thumb { width:56px; height:56px; border-radius:.5rem; object-fit:cover; flex-shrink:0; background:var(--bg-3); }
.sidebar-recent-title { font-size:.82rem; font-weight:600; color:var(--text); line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.sidebar-recent-date { font-size:.75rem; color:var(--text-muted); margin-top:.2rem; }

.berita-main {}
.berita-filter-bar { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.75rem; }
.filter-btn { padding:.45rem 1rem; border-radius:2rem; font-size:.82rem; font-weight:600; border:1.5px solid var(--border); color:var(--text-light); transition:all var(--transition); }
.filter-btn:hover, .filter-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); box-shadow:0 2px 8px rgba(21,128,61,.25); }

.berita-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }

/* ============ NEWS DETAIL ============ */
.detail-layout { display:grid; grid-template-columns:1fr 300px; gap:2.5rem; padding:1.75rem 0 3.5rem; }
.detail-article {}
.detail-featured { border-radius:var(--radius-lg); overflow:hidden; margin-bottom:2rem; }
.detail-featured img { width:100%; height:380px; object-fit:cover; }
.detail-featured-placeholder { width:100%; height:380px; background:linear-gradient(135deg,var(--primary-100),var(--bg-3)); display:flex; align-items:center; justify-content:center; font-size:4rem; color:var(--primary); opacity:.4; border-radius:var(--radius-lg); }
.detail-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; margin-bottom:1rem; }
.detail-badge { background:var(--primary); color:#fff; font-size:.72rem; font-weight:600; padding:.25rem .75rem; border-radius:2rem; }
.detail-date { color:var(--text-muted); font-size:.82rem; display:flex; align-items:center; gap:.35rem; }
.detail-title { font-size:clamp(1.4rem,3vw,2rem); color:var(--text); margin-bottom:1.25rem; line-height:1.25; }
.detail-divider { height:3px; width:60px; background:var(--primary); border-radius:2px; margin-bottom:2rem; }
.detail-body { color:var(--text); line-height:1.8; font-size:.95rem; }
.detail-body p { margin-bottom:1rem; }
.detail-body h2,
.detail-body h3 { margin:1.5rem 0 .75rem; }
.detail-body img { border-radius:.5rem; max-width:100%; margin:1rem 0; }
.detail-body a { color:var(--primary); text-decoration:underline; }
.detail-body ul,
.detail-body ol { padding-left:1.5rem; margin-bottom:1rem; list-style:disc; }
.detail-body ol { list-style:decimal; }
.detail-body blockquote { border-left:4px solid var(--primary); padding:.75rem 1.25rem; background:var(--primary-50); border-radius:0 .5rem .5rem 0; margin:1.25rem 0; color:var(--text-light); font-style:italic; }

.detail-sidebar {}
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; margin-top:2.5rem; padding-top:2.5rem; border-top:2px solid var(--border); }
.related-card { border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); background:#fff; transition:all var(--transition); }
.related-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.related-card-img { height:140px; overflow:hidden; background:var(--bg-3); }
.related-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.related-card:hover .related-card-img img { transform:scale(1.07); }
.related-card-img .related-placeholder { height:100%; display:flex; align-items:center; justify-content:center; font-size:2rem; color:var(--primary); opacity:.3; }
.related-card-body { padding:.85rem 1rem; }
.related-card-date { font-size:.72rem; color:var(--text-muted); margin-bottom:.3rem; }
.related-card-title { font-size:.83rem; font-weight:700; color:var(--text); line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ============ STATIC PAGE (with sidebar) ============ */
.page-layout { display:grid; grid-template-columns:1fr 288px; gap:2.5rem; padding:2.5rem 0 5rem; align-items:start; }
@media(max-width:860px){ .page-layout { grid-template-columns:1fr; } }
.page-main-content {}
.page-sidebar { position:sticky; top: calc(var(--nav-height) + var(--ticker-h) + 1.5rem); display:flex; flex-direction:column; gap:1.25rem; }

.static-page-wrap { padding:0; max-width:760px; }
.static-page-title { font-size:1.75rem; margin-bottom:.5rem; }
.static-page-divider { height:3px; width:60px; background:var(--primary); border-radius:2px; margin-bottom:1.75rem; }
.static-page-body { color:var(--text); line-height:1.85; font-size:.95rem; }
.static-page-body p { margin-bottom:1rem; }
.static-page-body h2,
.static-page-body h3 { margin:1.5rem 0 .75rem; }
.static-page-body img { border-radius:.5rem; max-width:100%; margin:1rem 0; }
.static-page-body a { color:var(--primary); text-decoration:underline; }
.static-page-body ul { padding-left:1.5rem; margin-bottom:1rem; list-style:disc; }
.static-page-body ol { padding-left:1.5rem; margin-bottom:1rem; list-style:decimal; }

/* Page sidebar cards */
.page-sidebar-card { background:#fff; border-radius:var(--radius-lg); padding:1.25rem 1.5rem; border:1px solid var(--border); box-shadow:0 2px 12px rgba(15,23,42,.05); }
.page-sidebar-title { font-size:.875rem; font-weight:700; color:var(--text); margin-bottom:1rem; padding-bottom:.6rem; border-bottom:2px solid var(--primary-100); display:flex; align-items:center; gap:.5rem; }
.page-sidebar-title i { color:var(--primary); }
.page-sidebar-links { display:flex; flex-direction:column; gap:.2rem; }
.page-sidebar-link { display:flex; align-items:center; gap:.5rem; padding:.5rem .6rem; border-radius:.5rem; font-size:.83rem; color:var(--text-light); transition:all var(--transition); }
.page-sidebar-link:hover, .page-sidebar-link.active { background:var(--primary-50); color:var(--primary); font-weight:600; }
.page-sidebar-link i { font-size:.65rem; color:var(--primary); flex-shrink:0; }
.page-sidebar-news { display:flex; flex-direction:column; gap:.1rem; }
.page-sidebar-news-item { display:flex; gap:.65rem; padding:.55rem 0; border-bottom:1px solid var(--border); }
.page-sidebar-news-item:last-child { border-bottom:none; }
.page-sidebar-news-thumb { width:50px; height:50px; border-radius:.4rem; object-fit:cover; flex-shrink:0; background:var(--bg-3); display:flex; align-items:center; justify-content:center; color:var(--primary); font-size:.9rem; overflow:hidden; }
.page-sidebar-news-thumb img { width:100%; height:100%; object-fit:cover; }
.page-sidebar-news-title { font-size:.79rem; font-weight:600; color:var(--text); line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.page-sidebar-news-date { font-size:.72rem; color:var(--text-muted); margin-top:.2rem; }

/* ============ FOOTER ============ */
.site-footer {
    background:linear-gradient(180deg,var(--dark-2) 0%,var(--dark) 100%);
    color:rgba(255,255,255,.75);
    padding:4rem 0 0;
}
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:2.5rem; padding-bottom:3rem; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand-logo { height:44px; width:auto; border-radius:.375rem; object-fit:contain; margin-bottom:1rem; }
.footer-brand-name { color:#fff; font-size:1.05rem; font-weight:700; margin-bottom:.5rem; }
.footer-brand-desc { font-size:.83rem; line-height:1.7; margin-bottom:1.25rem; color:rgba(255,255,255,.6); }
.footer-contact-item { display:flex; gap:.6rem; align-items:flex-start; margin-bottom:.6rem; font-size:.82rem; }
.footer-contact-item i { color:var(--primary-light); margin-top:.15rem; flex-shrink:0; }
.footer-contact-item span { color:rgba(255,255,255,.7); line-height:1.5; }
.footer-col-title { color:#fff; font-size:.92rem; font-weight:700; margin-bottom:1.25rem; letter-spacing:.02em; }
.footer-col-title::after { content:''; display:block; width:32px; height:2px; background:var(--primary); margin-top:.5rem; }
.footer-link-list { display:flex; flex-direction:column; gap:.5rem; }
.footer-link-list a { color:rgba(255,255,255,.6); font-size:.83rem; transition:all var(--transition); display:flex; align-items:center; gap:.4rem; }
.footer-link-list a:hover { color:#fff; padding-left:.4rem; }
.footer-link-list a::before { content:'›'; color:var(--primary-light); font-size:1rem; }
.social-list { display:flex; gap:.75rem; margin-top:.25rem; }
.social-icon-btn {
    width:38px; height:38px; border-radius:50%;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.15);
    display:flex; align-items:center; justify-content:center;
    color:rgba(255,255,255,.7); font-size:.9rem;
    transition:all var(--transition);
}
.social-icon-btn:hover { background:var(--primary); border-color:var(--primary); color:#fff; transform:translateY(-2px); }
.footer-bottom { text-align:center; padding:1.25rem 0 1.5rem; font-size:.8rem; color:rgba(255,255,255,.4); }
.footer-bottom-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.35rem .65rem; }
.footer-bottom-sep { opacity:.45; user-select:none; }
.footer-bottom-link { color:rgba(255,255,255,.35); transition:color .2s; text-decoration:none; }
.footer-bottom-link:hover { color:rgba(255,255,255,.65); }
.footer-powered { margin-top:.75rem; font-size:.72rem; color:rgba(255,255,255,.32); line-height:1.55; }
.footer-powered a { color:rgba(129,140,248,.95); text-decoration:none; font-weight:600; }
.footer-powered a:hover { text-decoration:underline; color:#a5b4fc; }
.footer-powered-ver { opacity:.8; font-weight:500; }

/* ============ BUTTONS ============ */
.btn { display:inline-flex; align-items:center; gap:.4rem; padding:.6rem 1.4rem; border-radius:2rem; font-weight:600; font-size:.875rem; cursor:pointer; transition:all var(--transition); }
.btn-primary { background:var(--primary); color:#fff; box-shadow:0 2px 10px rgba(21,128,61,.3); }
.btn-primary:hover { background:var(--primary-dark); transform:translateY(-1px); }
.btn-outline { background:transparent; color:var(--primary); border:1.5px solid var(--primary); }
.btn-outline:hover { background:var(--primary); color:#fff; }

/* ============ UTILITIES ============ */
/* Hanya tinggi navbar: bar pengumuman (jika ada) sudah di alur dokumen di atas, jangan tambahkan --ticker-h lagi. */
.main-content { margin-top: var(--nav-height); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.not-found { text-align:center; padding:4rem 2rem; }
.not-found-icon { font-size:4rem; color:var(--primary); opacity:.4; margin-bottom:1rem; }
.not-found h2 { color:var(--text); margin-bottom:.5rem; }
.not-found p { color:var(--text-light); }
.back-link { display:inline-flex; align-items:center; gap:.4rem; color:var(--primary); font-weight:600; font-size:.875rem; margin-bottom:1.5rem; }
.back-link:hover { text-decoration:underline; }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeLeft { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeRight { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn { from { opacity:0; transform:scale(.9); } to { opacity:1; transform:scale(1); } }
@keyframes countUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.fade-up   { opacity:0; transform:translateY(30px); transition:opacity .65s ease, transform .65s ease; }
.fade-left { opacity:0; transform:translateX(-30px); transition:opacity .65s ease, transform .65s ease; }
.fade-right{ opacity:0; transform:translateX(30px);  transition:opacity .65s ease, transform .65s ease; }
.scale-in  { opacity:0; transform:scale(.92);        transition:opacity .65s ease, transform .65s ease; }
.fade-up.visible, .fade-left.visible, .fade-right.visible, .scale-in.visible { opacity:1; transform:none; }

/* stagger delays */
.delay-1 { transition-delay:.1s; }
.delay-2 { transition-delay:.2s; }
.delay-3 { transition-delay:.3s; }
.delay-4 { transition-delay:.4s; }
.delay-5 { transition-delay:.5s; }

/* ============ RESPONSIVE ============ */
@media(max-width:1024px) {
    .features-grid { grid-template-columns:repeat(2,1fr); }
    .news-grid { grid-template-columns:repeat(2,1fr); }
    .maps-grid { grid-template-columns:1fr; }
    .map-info-card { max-width:100%; }
    .berita-layout { grid-template-columns:220px 1fr; }
    .berita-grid { grid-template-columns:repeat(2,1fr); }
    .detail-layout { grid-template-columns:1fr; }
    .footer-grid { grid-template-columns:1fr 1fr; }
    .related-grid { grid-template-columns:repeat(3,1fr); }
    .sambutan-grid { grid-template-columns:220px 1fr; gap:2.5rem; }
    .gallery-grid { grid-template-columns:repeat(3,1fr); }
    .feat-cat-grid { grid-template-columns:1fr 1fr; }
    .feat-cat-main { grid-row:span 1; }
    .stats-grid { grid-template-columns:repeat(3,1fr); }
}
@media(max-width:768px) {
    /* Brand 2 baris + logo sering >64px; min-height dipakai agar hero tidak menempel */
    :root { --nav-height:80px; }
    .nav-links, .nav-cta-group { display:none; }
    .nav-hamburger { display:flex; }
    .site-nav { height:auto; min-height:var(--nav-height); }
    .nav-container { height:auto; min-height:var(--nav-height); padding-top:.4rem; padding-bottom:.4rem; box-sizing:border-box; }
    .hero-section { height:90vw; max-height:620px; min-height:420px; }
    /* Navbar + brand 2 baris: floor agar teks slider tidak menempel walaupun nav melar */
    .hero-content {
        top: max(6rem, calc(var(--nav-height) + 1.75rem));
        bottom: 0;
        left: 1.5rem;
        right: 1.5rem;
        justify-content: flex-start;
        padding-top: 0.35rem;
        padding-bottom: 6.75rem;
    }
    .hero-eyebrow { margin-bottom:0.85rem; font-size:0.7rem; padding:0.25rem 0.85rem; }
    .hero-title { font-size:1.6rem; line-height:1.12; max-width:none; }
    .hero-line { margin:0.65rem 0; }
    .hero-subtitle { font-size:0.86rem; margin-bottom:1.15rem; line-height:1.65; max-width:none; }
    .hero-actions { display:none !important; }
    .hero-title-link { -webkit-tap-highlight-color:rgba(255,255,255,.12); }
    .hero-title-link:focus-visible { outline:2px solid rgba(255,255,255,.65); outline-offset:3px; border-radius:2px; }
    .section-pad { padding:3.5rem 0; }
    .features-grid { grid-template-columns:repeat(2,1fr); gap:1rem; }
    .news-grid { grid-template-columns:1fr; }
    .berita-layout { grid-template-columns:1fr; }
    .berita-sidebar { order:-1; }
    .berita-grid { grid-template-columns:1fr; }
    .detail-layout { grid-template-columns:1fr; }
    .related-grid { grid-template-columns:1fr 1fr; }
    .footer-grid { grid-template-columns:1fr; gap:2rem; }
    .maps-grid { grid-template-columns:1fr; }
    .section-head { flex-direction:column; align-items:flex-start; }
    .sambutan-grid { grid-template-columns:1fr; text-align:center; }
    .sambutan-photo { width:180px; height:180px; }
    .sambutan-photo-placeholder { width:180px; height:180px; }
    .sambutan-content .sambutan-eyebrow { display:none !important; }
    .sambutan-h2-full { display:none; }
    .sambutan-h2-mobile-short { display:block; }
    .sambutan-quote { display:none; }
    .sambutan-content #sambutan-title.section-title { margin-bottom:.75rem !important; }
    .sambutan-text-clip {
        max-height:6.75rem;
        overflow:hidden;
        transition:max-height .45s ease;
        text-align:left;
    }
    .sambutan-text-clip.is-expanded { max-height:120rem; }
    .sambutan-text-clip .sambutan-text { margin-bottom:.35rem; }
    .sambutan-readmore { display:inline-flex; }
    .gallery-grid { grid-template-columns:repeat(2,1fr); }
    .feat-cat-grid { grid-template-columns:1fr; }
    .stats-grid { grid-template-columns:repeat(2,1fr); gap:1rem; }
    .stat-divider { display:none; }
}
@media(max-width:480px) {
    .features-grid { grid-template-columns:1fr 1fr; gap:.75rem; }
    .feature-card { padding:1.25rem 1rem; }
    .feature-icon-wrap { width:52px; height:52px; font-size:1.3rem; }
    .news-card-image { height:170px; }
    .related-grid { grid-template-columns:1fr; }
    .hero-actions { flex-direction:column; }
    .hero-content { top: max(6.35rem, calc(var(--nav-height) + 1.85rem)); }
    .hero-title { font-size:1.42rem; line-height:1.1; }
    .gallery-grid { grid-template-columns:repeat(2,1fr); }
    .stats-grid { grid-template-columns:1fr 1fr; }
}

/* ============================================================
   ANNOUNCEMENT TICKER BAR (Module: pengumuman)
   Bar di alur dokumen; navbar fixed di-offset lewat body.has-ticker + --ticker-h
   ============================================================ */
.announce-bar {
    width: 100%;
    min-height: 3.125rem;
    box-sizing: border-box;
    padding: 0.65rem 1.25rem 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.announce-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}
.announce-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 1.5em;
    mask-image: linear-gradient(90deg, transparent 0%, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
}
.announce-marquee {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3.5rem;
    animation: announceLoop var(--announce-dur, 40s) linear infinite;
    will-change: transform;
}
.announce-duplicate {
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}
.announce-bar--news .ticker-sep {
    display: inline-block;
    margin: 0 0.45rem;
    opacity: 0.65;
    user-select: none;
}
.ticker-item-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}
.ticker-item-link:hover {
    border-bottom-color: currentColor;
    opacity: 0.92;
}
@keyframes announceLoop {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 640px) {
    .announce-bar {
        padding: 0.55rem 0.9rem 0.6rem 0.85rem;
        font-size: 0.78rem;
        gap: 0.65rem;
    }
    .announce-icon { width: 1.75rem; height: 1.75rem; font-size: 0.72rem; }
    .announce-marquee { gap: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .announce-marquee { animation: none; }
    .announce-track {
        mask-image: none;
        -webkit-mask-image: none;
    }
}
