/* ==========================================================================
   MI Al-Barkah — tema portal (mengikuti bahasa visual mialikhlas.com)
   Font Inter lokal, tanpa CDN bootstrap/fontawesome.
   ========================================================================== */

@import url('fonts/inter.css');

:root {
    --green: #007a53;
    --green-dark: #005439;
    --green-deep: #043927;
    --green-soft: #e8f5e9;
    --green-tint: #f0fdf4;
    --green-line: #dcebe2;
    --gold: #f2a900;
    --gold-light: #fbbf24;
    --ink: #1f2937;
    --body: #374151;
    --muted: #64748b;
    --line: #e5e7eb;
    --red: #dc2626;
    --blue: #0ea5e9;
    --surface: #ffffff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 8px 20px rgba(0, 56, 36, .10);
    --shadow-lg: 0 12px 28px rgba(0, 56, 36, .16);
    --container: 1360px;
    --pad: 40px;
    color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    background: #f7faf8;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container {
    width: min(100% - (var(--pad) * 2), var(--container));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--green); color: #fff;
    padding: .7rem 1.2rem; z-index: 999;
}
.skip-link:focus { left: 0; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.15em; }

/* ---------- Tombol ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .68rem 1.25rem; border-radius: 50px; border: 1px solid transparent;
    font-family: inherit; font-weight: 700; font-size: .9rem; line-height: 1.2;
    cursor: pointer; transition: all .2s ease; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(0, 122, 83, .22); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #1f2937; }
.btn-gold:hover { background: var(--gold-light); color: #1f2937; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: #fff; color: var(--green); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.btn-light:hover { background: #f8fffb; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .1); }
.btn-sm { padding: .45rem .9rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn .icon { width: 16px; height: 16px; }

/* ---------- Strip atas & header ---------- */

.topbar {
    background: var(--green);
    color: #fff;
    font-size: .8rem;
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 40px; gap: 1rem;
}
.topbar-info { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.topbar .icon { width: 14px; height: 14px; }
.topbar a { color: #fff; }
.social { display: flex; gap: .45rem; }
.social a {
    width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255, 255, 255, .16); color: #fff; font-size: .72rem;
}
.social a:hover { background: var(--gold); color: #1f2937; }
.social .icon { width: 14px; height: 14px; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 2px 10px rgba(0, 56, 36, .04);
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 46px; height: 46px; border-radius: 50%;
    background: #fff; border: 2px solid var(--green-soft);
    display: grid; place-items: center; overflow: hidden; flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark span {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--green), var(--green-deep));
    color: #fff; font-weight: 800; font-size: .8rem;
}
.brand-text strong {
    display: block; font-size: .95rem; font-weight: 800; letter-spacing: .03em;
    text-transform: uppercase; color: var(--green-dark); line-height: 1.2;
}
.brand-text small { display: block; font-size: .7rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav ul { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav ul a, .nav .nav-parent {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .5rem .75rem; border-radius: 8px;
    color: var(--ink); font-size: .84rem; font-weight: 600;
    background: none; border: 0; cursor: pointer; font-family: inherit;
    white-space: nowrap;
}
.nav ul a:hover, .nav .nav-parent:hover,
.nav li.is-active > a, .nav li.is-active > .nav-parent {
    background: var(--green-soft); color: var(--green-dark);
}
.nav .caret { width: 14px; height: 14px; opacity: .7; transition: transform .2s; }
.nav .submenu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 16px 34px rgba(0, 56, 36, .16); padding: .5rem; display: none;
    flex-direction: column; align-items: stretch; gap: 2px; list-style: none;
    margin: 0; z-index: 70;
}
.nav li.open > .submenu { display: flex; }
.nav .submenu a {
    display: block; padding: .55rem .8rem; border-radius: 8px;
    font-size: .85rem; font-weight: 500; text-align: left; white-space: nowrap;
}
.nav .submenu a:hover { background: var(--green-soft); color: var(--green-dark); }

.nav-toggle {
    display: none; flex: none; width: 44px; height: 44px; min-width: 44px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; cursor: pointer;
    place-items: center; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 2px; background: var(--green-dark);
    border-radius: 2px; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { position: relative; height: 500px; overflow: hidden; background: #0b3d2a; }
.hero-track { position: relative; height: 100%; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center right;
}
.hero-slide::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, .97) 0%,
        rgba(255, 255, 255, .90) 24%,
        rgba(255, 255, 255, .52) 34%,
        rgba(255, 255, 255, .10) 47%,
        rgba(255, 255, 255, 0) 56%);
}
.hero-content {
    position: relative; z-index: 2; max-width: 640px;
    padding-top: 62px; padding-left: 26px;
}
.hero-eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
    margin-bottom: .5rem;
}
.hero h1,
.hero .hero-title {
    color: var(--green-dark);
    font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.5rem);
    line-height: 1.12;
    font-weight: 800; letter-spacing: -.01em; margin: 0 0 .8rem;
    text-wrap: balance;
}
.hero-title-bar {
    width: 190px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    margin: 0 0 1rem;
}
.hero-date { font-size: .95rem; color: #374151; margin: 0 0 1.4rem; }
.hero-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; color: #475569; margin: 0 0 1.2rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.hero-phone {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #fff; border: 1px solid var(--line); border-radius: 50px;
    padding: .6rem 1.1rem; font-weight: 700; font-size: .9rem; color: var(--ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
.hero-phone .icon { color: #25d366; width: 18px; height: 18px; }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .92); color: var(--green-dark);
    display: grid; place-items: center; cursor: pointer; font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.hero-arrow:hover { background: #fff; color: var(--green); }
.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }

.hero-dots {
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    z-index: 3; display: flex; gap: .35rem;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
    background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer;
    transition: width .2s;
}
.hero-dot.is-active { background: var(--gold); width: 26px; border-radius: 6px; }

/* ---------- Band layanan ---------- */

.services-band {
    background: transparent;
    border-top: 0;
    padding: 0 0 16px;
    margin-top: -56px;
    position: relative;
    z-index: 6;
}
.services-grid {
    display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px;
}
.svc-card {
    background: #fff; border-radius: 14px; padding: 14px 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; text-align: center; color: var(--ink);
    box-shadow: 0 8px 20px rgba(0, 56, 36, .14);
    transition: transform .2s ease, box-shadow .2s ease;
    min-height: 108px;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.svc-ico {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; flex: none;
}
.svc-ico .icon { width: 22px; height: 22px; }
.svc-label { font-size: .8rem; font-weight: 700; line-height: 1.25; }
.ico-teal { background: #e6f7f1; color: var(--green); }
.ico-blue { background: #e8f1ff; color: #2563eb; }
.ico-orange { background: #fff3e0; color: #ea580c; }
.ico-gold { background: #fef3c7; color: #b45309; }
.ico-red { background: #fee2e2; color: var(--red); }
.ico-violet { background: #ede9fe; color: #7c3aed; }
.ico-sky { background: #e0f2fe; color: #0284c7; }
.ico-green { background: #dcfce7; color: #16a34a; }

/* ---------- Cuaca ---------- */

.weather-strip {
    background: var(--green-dark); border-bottom: 3px solid var(--gold);
    font-size: .84rem; color: #eaf5ef;
}
.weather-item { color: #eaf5ef; }
.weather-item b { color: #fff; }
.weather-sep { color: rgba(255, 255, 255, .45); }
.weather-item .icon { color: var(--gold-light); }
.weather-inner {
    display: flex; align-items: center; gap: .9rem;
    min-height: 62px; overflow: hidden;
}
.weather-badge {
    display: inline-flex; align-items: center; gap: .5rem; flex: none;
    background: var(--gold); color: #1f2937; font-weight: 800;
    padding: .5rem .9rem; border-radius: 8px; font-size: .78rem;
    letter-spacing: .05em; box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.weather-badge .icon { width: 17px; height: 17px; }
.weather-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); }
.weather-track {
    display: flex; align-items: center; width: max-content;
    animation: weather-run 46s linear infinite;
}
.weather-strip:hover .weather-track { animation-play-state: paused; }
.weather-set { display: flex; align-items: center; }
.weather-item {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: 0 1.4rem; white-space: nowrap;
}
.weather-item .icon { width: 18px; height: 18px; }
.weather-item b { font-weight: 800; color: #fff; }
.weather-item .ico-sun { color: #f2a900; }
.weather-item .ico-cloud { color: #0284c7; }
.weather-item .ico-rain { color: #2563eb; }
.weather-item .ico-drop { color: #0ea5e9; }
.weather-item .ico-wind { color: #64748b; }
.weather-item .ico-pin { color: var(--red); }
.weather-sep { color: #cbd5e1; font-size: .7rem; }
@keyframes weather-run {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .weather-track { animation: none; }
    .weather-viewport { overflow-x: auto; }
}

/* ---------- Judul section ---------- */

.section { padding: 40px 0; }
.section-tight { padding: 26px 0; }
.bg-white { background: #fff; }
.bg-tint { background: var(--green-tint); }

.kemenag-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; border-bottom: 1px solid var(--line);
    margin-bottom: 24px; padding-bottom: 10px; flex-wrap: wrap;
}
.kemenag-head h2 {
    position: relative; margin: 0; font-size: 1.25rem; font-weight: 800;
    letter-spacing: 0; color: var(--green);
}
.kemenag-head h2::after {
    content: ""; position: absolute; left: 0; bottom: -11px; width: 100%;
    height: 3px; background: var(--green);
}
.kemenag-head .head-link {
    font-size: .84rem; font-weight: 700; color: var(--green);
    display: inline-flex; align-items: center; gap: .3rem;
}

/* ---------- Sorotan ---------- */

.sorotan-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 18px; flex-wrap: wrap; }
.sorotan-title { display: flex; align-items: center; gap: .6rem; }
.sorotan-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.sorotan-title h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: 0; color: var(--green); }

.tabs { display: inline-flex; align-items: center; gap: 6px; background: #f1f7f4; padding: 4px; border-radius: 50px; }
.tab-btn {
    border: 0; background: transparent; color: #4b5563; font-family: inherit;
    font-size: .82rem; font-weight: 700; padding: 6px 16px; border-radius: 50px;
    cursor: pointer; transition: all .2s;
}
.tab-btn:hover { color: var(--green); }
.tab-btn.is-active { background: var(--green); color: #fff; box-shadow: 0 3px 8px rgba(0, 122, 83, .22); }

.sorotan-side { display: flex; align-items: center; gap: .5rem; }
.sorotan-side .quick {
    display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .85rem;
    border-radius: 8px; font-size: .78rem; font-weight: 700;
}
.sorotan-side .quick.berita { background: #e7f5ee; color: var(--green-dark); }
.sorotan-side .quick.artikel { background: #fdf3d8; color: #8a5a06; }
.sorotan-side .quick:hover { filter: brightness(.96); }
.sorotan-nav {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--ink); display: grid; place-items: center;
    cursor: pointer; font-size: .9rem; transition: all .18s;
}
.sorotan-nav:hover:not(:disabled) { background: var(--green); border-color: var(--green); color: #fff; }
.sorotan-nav:disabled { opacity: .35; cursor: default; }

.sorotan-viewport {
    overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
}
.sorotan-viewport::-webkit-scrollbar { display: none; }
.sorotan-track { display: flex; gap: 14px; }
.sorotan-card {
    flex: 0 0 calc((100% - 56px) / 5);
    scroll-snap-align: start;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden; transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.sorotan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sorotan-media { position: relative; aspect-ratio: 16 / 10; background: var(--green-soft); overflow: hidden; }
.sorotan-media img { width: 100%; height: 100%; object-fit: cover; }
.sorotan-badge {
    position: absolute; left: 8px; bottom: 8px; z-index: 2;
    font-size: .66rem; font-weight: 800; text-transform: uppercase;
    padding: .22rem .55rem; border-radius: 5px; background: var(--green); color: #fff;
    letter-spacing: .04em;
}
.sorotan-badge.artikel { background: var(--gold); color: #1f2937; }
.sorotan-body { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.sorotan-meta { display: flex; align-items: center; gap: .4rem; font-size: .68rem; color: var(--muted); margin-bottom: .35rem; text-transform: uppercase; font-weight: 700; letter-spacing: .03em; }
.sorotan-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.sorotan-body h3 { font-size: .84rem; margin: 0 0 .5rem; line-height: 1.35; font-weight: 700; }
.sorotan-body h3 a { color: var(--ink); }
.sorotan-body h3 a:hover { color: var(--green); }
.sorotan-more { margin-top: auto; font-size: .72rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Jadwal sholat ---------- */

.sholat-section { background: #f7faf8; padding: 34px 0; }
.sholat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 24px; box-shadow: 0 4px 16px rgba(0, 84, 57, .05);
}
.sholat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 16px; }
.sholat-head h2 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #111827; }
.sholat-date { font-size: .8rem; color: var(--muted); font-weight: 600; }
.sholat-search { display: flex; align-items: center; gap: .5rem; }
.sholat-select {
    border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem;
    font-family: inherit; font-size: .82rem; color: var(--ink); background: #fff;
}
.sholat-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; text-align: center; }
.sholat-item { padding: 12px 6px; border-radius: 10px; background: #f8fcfa; border: 1px solid #edf4f0; }
.sholat-item span { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .2rem; }
.sholat-item strong { font-size: 1.12rem; color: var(--green-dark); font-weight: 800; }

/* ---------- Terkini & terpopuler ---------- */

.split-news { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 34px; }
.news-list { display: grid; gap: 16px; }
.news-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; }
.news-thumb { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--green-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-cat { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.news-item h3 { font-size: .98rem; margin: .2rem 0 .35rem; line-height: 1.35; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--green); }
.news-date { font-size: .74rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }

.popular-list { display: grid; gap: 14px; counter-reset: pop; }
.popular-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.popular-num { font-size: 1.5rem; font-weight: 800; color: #c9dfd4; line-height: 1; }
.popular-item h4 { margin: 0 0 .15rem; font-size: .86rem; line-height: 1.35; }
.popular-item h4 a { color: var(--ink); }
.popular-item span { font-size: .7rem; color: var(--muted); }

/* ---------- Banner ---------- */

.banner-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    min-height: 240px; display: flex; align-items: center;
    background: var(--green-deep);
}
.banner-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4, 57, 39, .92) 0%, rgba(4, 57, 39, .7) 45%, rgba(4, 57, 39, .15) 100%);
}
.banner-body { position: relative; z-index: 2; padding: 30px 34px; color: #fff; max-width: 720px; }
.banner-body small { display: block; font-size: .8rem; opacity: .85; margin-bottom: .3rem; }
.banner-body h2 { color: #fff; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); margin: 0 0 .35rem; }
.banner-body p { margin: 0; color: rgba(255, 255, 255, .88); font-size: .9rem; }
.banner-body .badge-achv {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem;
    background: var(--gold); color: #1f2937; font-weight: 800; font-size: .78rem;
    padding: .35rem .8rem; border-radius: 6px;
}

/* ---------- PTSP ---------- */

.ptsp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: center; }
.ptsp-eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.ptsp-grid h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); margin: .3rem 0 .6rem; }
.ptsp-check { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.ptsp-check li { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; }
.ptsp-check .icon { color: var(--green); width: 16px; height: 16px; margin-top: 3px; }
.doc-slider { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.doc-slider figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--green-soft); }
.doc-slider img { width: 100%; height: 150px; object-fit: cover; }
.doc-slider figcaption { font-size: .7rem; padding: .4rem .5rem; background: #fff; border: 1px solid var(--line); border-top: 0; color: var(--muted); }
.doc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.doc-head strong { font-size: .9rem; }

/* ---------- Artikel & opini ---------- */

.artikel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.artikel-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.artikel-media { aspect-ratio: 16 / 9; background: var(--green-soft); overflow: hidden; }
.artikel-media img { width: 100%; height: 100%; object-fit: cover; }
.artikel-body { padding: 14px 16px 16px; }
.artikel-body .tag { font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--green-soft); color: var(--green-dark); padding: .2rem .5rem; border-radius: 4px; }
.artikel-body h3 { font-size: .95rem; margin: .5rem 0 .35rem; line-height: 1.35; }
.artikel-body h3 a { color: var(--ink); }
.artikel-body .meta { font-size: .72rem; color: var(--muted); }

/* ---------- Mitra ---------- */

.partners-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; overflow-x: auto; padding: 8px 2px 14px; }
.partner-item { flex: 0 0 96px; text-align: center; color: var(--ink); }
.partner-logo {
    width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line); display: grid; place-items: center;
    overflow: hidden; font-weight: 800; color: var(--green); font-size: .8rem;
    box-shadow: 0 4px 12px rgba(0, 56, 36, .08);
}
.partner-logo img { width: 70%; height: 70%; object-fit: contain; }
.partner-item span { display: block; font-size: .65rem; font-weight: 700; text-transform: uppercase; color: var(--muted); line-height: 1.25; }

/* ---------- Program & pengumuman ---------- */

.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hub-box { background: #fff; border: 1px solid rgba(0, 122, 83, .12); border-radius: 12px; padding: 20px 22px; box-shadow: 0 4px 16px rgba(0, 84, 57, .05); }
.hub-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #e7f0eb; }
.hub-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; }
.hub-head .head-link { font-size: .76rem; font-weight: 700; color: var(--green); }
.prog-list { display: grid; gap: 8px; }
.prog-tile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f7fbf8; border: 1px solid #e2efe7; border-radius: 10px; }
.prog-tile:hover { background: #ecf7f0; border-color: rgba(0, 122, 83, .35); }
.prog-ico { width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1px solid #dcebe2; color: var(--green); display: grid; place-items: center; flex: none; }
.prog-ico .icon { width: 18px; height: 18px; }
.prog-title { font-size: .86rem; font-weight: 600; color: var(--ink); flex: 1; line-height: 1.3; }
.prog-num { font-size: .76rem; font-weight: 800; color: #a8cab8; }

.info-list { display: grid; gap: 6px; }
.info-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: #fbfdfc; border: 1px solid #eef4f0; }
.info-row:hover { background: #f4faf6; }
.info-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.info-ico.red { background: #fee2e2; color: var(--red); }
.info-ico.blue { background: #e0f2fe; color: #0284c7; }
.info-ico.gold { background: #fef3c7; color: #b45309; }
.info-ico .icon { width: 16px; height: 16px; }
.info-title { flex: 1; font-size: .84rem; font-weight: 600; color: var(--ink); }
.info-badge { font-size: .66rem; font-weight: 800; background: var(--red); color: #fff; border-radius: 4px; padding: .15rem .4rem; }

/* ---------- Video ---------- */

.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.video-card { display: flex; flex-direction: column; gap: .5rem; color: var(--ink); }
.video-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.video-card:hover .video-thumb img { opacity: 1; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video-play span {
    width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .55);
    border: 2px solid rgba(255, 255, 255, .85); display: grid; place-items: center;
    font-size: .92rem; padding-left: 3px;
}
.video-title { font-size: .8rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.video-card:hover .video-title { color: var(--green); }

/* ---------- Peta ---------- */

.map-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
#peta-sebaran { height: 420px; width: 100%; background: #eef4f0; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- Halaman dalam ---------- */

.page-head {
    background: linear-gradient(120deg, var(--green-dark), var(--green));
    color: #fff; padding: 42px 0 36px;
}
.page-head h1 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: .3rem; }
.page-head p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 70ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 .7rem; font-size: .78rem; color: rgba(255, 255, 255, .72); }
.breadcrumb a { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; height: 100%; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card-media { aspect-ratio: 16 / 10; background: var(--green-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-title { font-size: .95rem; margin: .5rem 0 .4rem; line-height: 1.35; }
.card-title a { color: var(--ink); }
.card-text { font-size: .84rem; color: var(--muted); margin: 0; }
.card-meta { margin-top: auto; padding-top: .8rem; font-size: .72rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 4px; background: var(--green-soft); color: var(--green-dark); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.badge-gold { background: #fef3c7; color: #92400e; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.chip {
    display: inline-flex; align-items: center; padding: .35rem .9rem; border-radius: 50px;
    border: 1px solid var(--line); background: #fff; color: var(--body);
    font-size: .8rem; font-weight: 600;
}
.chip:hover, .chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; align-items: center; }

.article { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; font-size: .8rem; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; align-items: center; }
.article-cover { border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; }
.article-body { font-size: 1rem; line-height: 1.75; }
.article-body h3 { margin-top: 1.5rem; }
.article-body blockquote { margin: 1.2rem 0; padding: 1rem 1.2rem; background: var(--green-tint); border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; color: var(--green-dark); }
.article-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.sidebar { display: grid; gap: 16px; position: sticky; top: 96px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.panel h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.share-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); align-items: center; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 12px; }
.empty-state strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .25rem; }

/* ---------- Formulir ---------- */

.form-shell { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.form-section + .form-section { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--line); }
.form-section h3 { font-size: .95rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.form-section h3 .step { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .72rem; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px;
    font: inherit; font-size: .88rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field textarea { min-height: 100px; resize: vertical; }
.field .hint { font-size: .72rem; color: var(--muted); }
.field .error { font-size: .74rem; color: var(--red); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.check-row { display: flex; gap: .55rem; align-items: flex-start; font-size: .86rem; }
.check-row input { width: 18px; height: 18px; margin-top: .1rem; flex: none; accent-color: var(--green); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 10px; font-size: .86rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert .icon { width: 18px; height: 18px; margin-top: 2px; }
.alert-success { background: #ecfdf5; border-color: #bbf7d0; color: #065f46; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--green-tint); border-color: var(--green-line); color: var(--green-dark); }

.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; counter-reset: step; }
.steps-list li { display: grid; grid-template-columns: 26px 1fr; gap: .6rem; font-size: .84rem; }
.steps-list li::before { counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-weight: 800; font-size: .72rem; }

/* ---------- Bukti / tiket ---------- */

.receipt { max-width: 860px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.receipt-head { background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; padding: 22px 24px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.receipt-head h1 { color: #fff; font-size: 1.25rem; margin: .2rem 0 0; }
.receipt-head span { font-size: .78rem; opacity: .85; }
.receipt-body { padding: 22px 24px 26px; }
.receipt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 0; }
.receipt-grid .full { grid-column: 1 / -1; }
.receipt-grid dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .1rem; }
.receipt-grid dd { margin: 0 0 .5rem; font-weight: 700; color: var(--ink); font-size: .9rem; }
.status-pill { display: inline-flex; padding: .25rem .7rem; border-radius: 50px; font-size: .74rem; font-weight: 800; }
.status-baru { background: #e0f2fe; color: #0c4a6e; }
.status-diverifikasi, .status-diproses { background: #fef3c7; color: #92400e; }
.status-diterima, .status-selesai { background: #dcfce7; color: #166534; }
.status-ditolak { background: #fee2e2; color: #991b1b; }

/* ---------- Guru ---------- */

.teacher-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 12px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .7rem; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: 1.3rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card h3 { font-size: .92rem; margin-bottom: .1rem; }
.teacher-role { color: var(--green); font-size: .76rem; font-weight: 700; }
.teacher-subject { display: block; color: var(--muted); font-size: .72rem; margin-top: .15rem; }

/* ---------- Galeri ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: var(--green-soft); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-tile:hover img { transform: scale(1.05); }

/* ---------- Paginasi ---------- */

.pagination { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin-top: 2rem; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 .6rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--body); font-size: .82rem; font-weight: 600; }
.pagination .active span { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .disabled span { opacity: .45; }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-deep); color: rgba(255, 255, 255, .72); margin-top: 30px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 40px; padding: 40px 0 26px; }
.footer-brand { display: flex; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.footer-brand .brand-mark { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1); }
.footer-brand strong { color: #fff; display: block; font-size: .95rem; letter-spacing: .03em; }
.footer-brand small { color: rgba(255, 255, 255, .6); font-size: .72rem; }
.site-footer h3 { color: var(--gold-light); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .84rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact .icon { width: 15px; height: 15px; margin-top: 3px; opacity: .8; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: .9rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .74rem; color: rgba(255, 255, 255, .55); }

/* ---------- Lightbox & utilitas ---------- */

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 20, 14, .92); display: none; place-items: center; padding: 2rem; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(100%, 1100px); max-height: 88vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; cursor: pointer; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--green); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 80; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; } .mt-3 { margin-top: 2rem; }

/* ---------- Responsif ---------- */

@media (max-width: 1200px) {
    :root { --pad: 28px; }
    .sorotan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sorotan-grid .sorotan-card:nth-child(5) { display: none; }
    .services-grid { grid-template-columns: repeat(9, minmax(86px, 1fr)); overflow-x: auto; }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ptsp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .nav-toggle { display: grid; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        flex-direction: column; align-items: stretch; padding: .8rem 1.2rem 1.2rem;
        display: none; max-height: calc(100vh - 80px); overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
    .nav ul a, .nav .nav-parent { width: 100%; justify-content: space-between; padding: .7rem .6rem; font-size: .92rem; }
    .nav .submenu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 .8rem; min-width: 0; }
    .nav li.open > .submenu { display: flex; }
    .nav .btn { width: 100%; justify-content: center; margin-top: .4rem; }

    .hero { height: auto; }
    .hero-track { height: auto; }
    .hero-slide { position: relative; display: none; background: #fff; }
    .hero-slide.is-active { display: block; }
    .hero-slide::before { display: none; }
    .hero-content { background: #fff; padding-left: 0; }
    .hero-slide-bg { position: relative; inset: auto; height: 240px; background-position: center; }
    .hero-content { padding: 20px 0 26px; max-width: none; }
    .hero-title-bar { width: 120px; margin-bottom: .8rem; }
    .hero-arrow { top: 120px; width: 40px; height: 40px; }
    .hero-arrow.prev { left: 10px; }
    .hero-arrow.next { right: 10px; }
    .hero-dots { position: static; transform: none; justify-content: center; padding: 10px 0 16px; }
    .hero-dot { background: var(--line); box-shadow: none; }
    .hero-dot.is-active { background: var(--gold); }

    .split-news, .article-layout, .form-shell, .artikel-grid, .hub-grid, .footer-main { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .sholat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .news-item { grid-template-columns: 120px minmax(0, 1fr); }
    .doc-slider { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    :root { --pad: 18px; }
    .topbar { font-size: .72rem; }
    .topbar-info span:nth-child(2) { display: none; }
    .brand-text small { display: none; }
    .brand-text strong { font-size: .8rem; }
    .brand-mark { width: 38px; height: 38px; }
    .services-grid { grid-template-columns: repeat(9, 78px); }
    .svc-card { min-height: 92px; padding: 10px 6px; }
    .svc-ico { width: 40px; height: 40px; }
    .svc-label { font-size: .7rem; }
    .weather-inner { gap: .8rem; padding: .5rem 0; min-height: 48px; }
    .weather-item:nth-of-type(n+4) { display: none; }
    .section { padding: 30px 0; }
    .kemenag-head h2 { font-size: 1rem; }
    .sorotan-grid { grid-template-columns: 1fr 1fr; }
    .sorotan-grid .sorotan-card:nth-child(5) { display: flex; }
    .sorotan-card:nth-child(n+5) { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .sholat-card { padding: 16px; }
    .sholat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .video-grid { grid-template-columns: 1fr; }
    .banner-body { padding: 22px; }
    .article { padding: 18px; }
    .form-card { padding: 18px; }
    .receipt-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .topbar, .site-header, .site-footer, .to-top, .receipt-actions, .alert { display: none !important; }
    body { background: #fff; }
    .receipt { border: 1px solid #999; }
}

.video-fallback {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(135deg, #0b5c3b 0%, #043927 100%);
}


/* ---------- Navigasi ringkas (tablet ke bawah) ---------- */
@media (max-width: 1150px) {
    .nav-toggle { display: grid; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        flex-direction: column; align-items: stretch; padding: .8rem 1.2rem 1.2rem;
        display: none; max-height: calc(100vh - 80px); overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
    .nav ul a, .nav .nav-parent { width: 100%; justify-content: space-between; padding: .7rem .6rem; font-size: .92rem; }
    .nav .submenu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 .8rem; min-width: 0; }
    .nav li.open > .submenu { display: flex; }
    .nav .btn { width: 100%; justify-content: center; margin-top: .4rem; }
}

@media (max-width: 480px) {
    .topbar .social { display: none; }
    .topbar-info span { max-width: 82vw; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Halaman dalam: profil, program, pencarian ---------- */

.prose { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.prose h2 { font-size: 1.28rem; margin-top: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4rem; }
.prose p:last-child { margin-bottom: 0; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 18px; flex-wrap: wrap; }
.eyebrow { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: .2rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.info-item { background: #f8fcfa; border: 1px solid var(--green-line); border-radius: 10px; padding: 10px 12px; }
.info-item span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .15rem; }
.info-item strong { display: block; font-size: .88rem; color: var(--ink); font-weight: 700; word-break: break-word; }

.vision-card { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; border-radius: 12px; padding: 22px 24px; }
.vision-card h2 { color: var(--gold-light); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem; }
.vision-card p { color: #fff; font-size: 1.02rem; margin: 0; }

.program-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; height: 100%; }
.program-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: .8rem; }
.program-icon .icon { width: 22px; height: 22px; }
.program-card h3 { font-size: .95rem; margin-bottom: .3rem; }
.program-card p { font-size: .84rem; color: var(--muted); margin: 0; }

.news-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid transparent; border-radius: 10px; }
.news-row:hover { background: #fff; border-color: var(--line); }
.news-row img, .thumb-fallback { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--green-soft); }
.thumb-fallback { display: block; }
.news-row h3 { font-size: .9rem; margin: 0 0 .15rem; }
.news-row small { font-size: .72rem; color: var(--muted); }

.album-card .card-media { aspect-ratio: 4 / 3; }

.agenda-item { display: flex; gap: 10px; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.agenda-item:last-child { border-bottom: 0; padding-bottom: 0; }
.agenda-date { flex: none; width: 46px; text-align: center; background: var(--green-soft); color: var(--green-dark); border-radius: 8px; padding: .3rem 0; line-height: 1.1; }
.agenda-date b { display: block; font-size: 1.1rem; }
.agenda-date small { font-size: .6rem; text-transform: uppercase; }
.agenda-item h4 { font-size: .84rem; margin: 0 0 .1rem; }
.agenda-item h4 a { color: var(--ink); }
.agenda-item span { font-size: .72rem; color: var(--muted); }

/* ---------- Carousel sorotan: responsif ---------- */
@media (max-width: 1200px) {
    .sorotan-card { flex-basis: calc((100% - 42px) / 4); }
}
@media (max-width: 980px) {
    .sorotan-card { flex-basis: calc((100% - 28px) / 3); }
    .sorotan-head { align-items: flex-start; }
    .sorotan-side { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .sorotan-card { flex-basis: 82%; }
    .sorotan-side .quick { display: none; }
    .sorotan-title h2 { font-size: .92rem; }
}

/* ==========================================================================
   Halaman dalam � mengikuti pola portal: page bar emas, konten + sidebar
   ========================================================================== */

body.inner-page { background: #f2f8f4; }

.page-bar {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding: 26px 0 16px;
    border-bottom: 1px solid var(--green-line);
    margin-bottom: 22px;
}
.page-bar-main { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.page-bar-main h1,
.page-bar-main .page-bar-title {
    position: relative; margin: 0; padding-left: 16px;
    font-size: 1.32rem; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: #111827;
}
.page-bar-main h1::before,
.page-bar-main .page-bar-title::before {
    content: ""; position: absolute; left: 0; top: 2px; bottom: 2px;
    width: 5px; border-radius: 3px; background: var(--gold);
}
.page-bar-sub {
    font-size: .72rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--green); padding-bottom: 3px;
}
.page-bar-sub::before { content: "/ "; color: #9db8aa; }
.page-bar-right { font-size: .8rem; }

.inner-layout {
    display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(290px, 1fr);
    gap: 26px; align-items: start;
    padding-bottom: 34px;
}
.inner-main { display: grid; gap: 22px; }
.inner-card {
    background: #fff; border: 1px solid var(--green-line); border-radius: 14px;
    padding: 24px; box-shadow: 0 2px 10px rgba(0, 84, 57, .04);
}

/* daftar berita 2 kolom */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.news-card {
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    background: #fff; display: flex; flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.news-card-cat { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--green); }
.news-card h3 { font-size: .88rem; line-height: 1.4; margin: 0; font-weight: 700; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--green); }
.news-card-date { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--muted); margin-top: auto; padding-top: .4rem; }
.news-card-date .icon { width: 13px; height: 13px; }

/* paginasi portal */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin-top: 6px; list-style: none; padding: 0; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 .8rem; border-radius: 6px; border: 1px solid var(--green-line); background: #fff; color: var(--body); font-size: .78rem; font-weight: 700; }
.pager .active span { background: var(--green); border-color: var(--green); color: #fff; }
.pager .disabled span { opacity: .45; }
.pager a:hover { border-color: var(--green); color: var(--green); }

/* sidebar */
.inner-sidebar { display: grid; gap: 20px; position: sticky; top: 96px; }
.side-card {
    background: #fff; border: 1px solid var(--green-line); border-left: 3px solid var(--gold);
    border-radius: 12px; padding: 18px 18px 20px; box-shadow: 0 2px 10px rgba(0, 84, 57, .04);
}
.side-title {
    font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: #111827; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: .45rem;
}
.side-title::before { content: ""; width: 6px; height: 14px; background: var(--gold); border-radius: 2px; display: inline-block; }
.archive-list { display: grid; gap: 8px; }
.archive-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .55rem .8rem; border: 1px solid var(--green-line); border-radius: 8px;
    font-size: .82rem; font-weight: 600; color: var(--ink); background: #fff;
}
.archive-row:hover { border-color: var(--green); color: var(--green); }
.archive-count { background: var(--green); color: #fff; border-radius: 6px; font-size: .7rem; font-weight: 800; padding: .1rem .45rem; }

.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: r; }
.rank-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
.rank-num { font-size: 1.35rem; font-weight: 800; color: #cfe3d8; line-height: 1; }
.rank-list a { display: block; }
.rank-list strong { display: block; font-size: .8rem; line-height: 1.35; color: var(--ink); font-weight: 600; }
.rank-list a:hover strong { color: var(--green); }
.rank-list small { font-size: .68rem; color: var(--muted); }

.side-news { display: grid; gap: 12px; }
.side-news-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; }
.side-news-row img { width: 76px; height: 56px; object-fit: cover; border-radius: 8px; }
.side-news-row strong { display: block; font-size: .78rem; line-height: 1.35; font-weight: 600; color: var(--ink); }
.side-news-row:hover strong { color: var(--green); }
.side-news-row small { font-size: .68rem; color: var(--muted); display: inline-flex; gap: .25rem; align-items: center; }
.side-news-row small .icon { width: 12px; height: 12px; }

.side-service { display: grid; gap: .55rem; }
.side-service-label { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-service-row { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 700; color: var(--green); }
.side-service-row .icon { width: 18px; height: 18px; }
.side-service-mail { font-size: .82rem; font-weight: 600; color: var(--ink); word-break: break-word; }

/* hero halaman (guru, program, profil, galeri) */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    border-bottom: 3px solid var(--gold);
    padding: 44px 0 40px; text-align: center; color: #fff;
}
.page-hero h1 {
    color: var(--gold-light); font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.15rem);
    font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .5rem;
}
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 70ch; margin: 0 auto; font-size: .92rem; }

/* detail berita */
.detail-title { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); color: var(--green-dark); margin: 0 0 .6rem; line-height: 1.35; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.detail-meta .pill-cat { background: #dff3e7; color: var(--green-dark); font-weight: 800; padding: .18rem .55rem; border-radius: 4px; font-size: .7rem; }
.detail-cover { border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.detail-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.detail-body { font-size: .95rem; line-height: 1.85; color: #374151; }
.detail-body p { margin-bottom: 1rem; }
.detail-body h3 { margin: 1.4rem 0 .5rem; }
.detail-body blockquote { margin: 1.2rem 0; padding: .9rem 1.1rem; border-left: 3px solid var(--gold); background: #f7fbf8; }
.detail-sign { margin-top: 1.2rem; font-style: italic; font-size: .85rem; color: var(--muted); }
.share-box { margin-top: 1.4rem; padding: 14px; border: 1px solid var(--green-line); border-radius: 10px; background: #f8fcfa; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.share-box strong { font-size: .8rem; margin-right: .4rem; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 6px; font-size: .76rem; font-weight: 700; color: #fff; }
.share-btn.wa { background: #25d366; }
.share-btn.fb { background: #1877f2; }

.comment-box { margin-top: 20px; }
.comment-box h2 { font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: .5rem; }
.comment-box h2::before { content: ""; width: 4px; height: 15px; background: var(--gold); border-radius: 2px; }

/* guru */
.teacher-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.t-card { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(0, 56, 36, .10); }
.t-photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #b91c1c, #7f1d1d); display: grid; place-items: center; overflow: hidden; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-photo span { color: rgba(255,255,255,.92); font-size: 2.4rem; font-weight: 800; letter-spacing: .04em; }
.t-info { background: var(--green-deep); color: #fff; padding: 14px 12px 16px; text-align: center; border-top: 2px solid var(--gold); }
.t-name { color: var(--gold-light); font-size: .8rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 .4rem; line-height: 1.3; }
.t-role { display: inline-block; background: #fff; color: var(--green-dark); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .6rem; border-radius: 50px; }
.t-mail { display: inline-flex; margin-top: .5rem; color: var(--gold-light); }
.t-mail .icon { width: 14px; height: 14px; }

/* galeri album blok */
.album-block { border: 1px solid var(--green-line); border-radius: 12px; background: #fff; padding: 18px; }
.album-block h2 { font-size: .86rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; color: #111827; }
.album-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 96px; gap: 8px; }
.album-mosaic a { display: block; overflow: hidden; border-radius: 6px; background: var(--green-soft); }
.album-mosaic a:first-child { grid-column: span 2; grid-row: span 1; }
.album-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.album-desc { margin-top: 12px; border: 1px dashed var(--green-line); border-radius: 8px; padding: 10px 12px; font-size: .78rem; color: var(--muted); }
.album-desc strong { color: var(--green-dark); }

.album-list-side { display: grid; gap: 6px; }
.album-list-side a { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem .6rem; border-radius: 6px; font-size: .78rem; color: var(--ink); }
.album-list-side a:hover { background: #f1f8f3; color: var(--green); }

/* konten umum */
.prose-card { font-size: .95rem; line-height: 1.85; }
.prose-card h2 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card ul { padding-left: 1.2rem; }
.prose-card li { margin-bottom: .35rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.info-block { display: grid; gap: 10px; }
.info-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; }
.info-row .icon { color: var(--green); width: 16px; height: 16px; margin-top: 3px; }
.info-row strong { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.info-row span { color: var(--ink); }

/* program */
.program-list { display: grid; gap: 14px; }
.program-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--green-line); border-radius: 10px; background: #fff; }
.program-row .prog-ico { width: 54px; height: 54px; border-radius: 12px; }
.program-row h2 { font-size: .92rem; margin: 0 0 .25rem; }
.program-row p { margin: 0; font-size: .8rem; color: var(--muted); }

@media (max-width: 1150px) {
    .inner-layout, .contact-grid { grid-template-columns: 1fr; }
    .inner-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teacher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .news-grid, .teacher-grid, .inner-sidebar { grid-template-columns: 1fr; }
    .inner-card { padding: 16px; }
    .page-bar { padding-top: 18px; }
    .page-bar-main h1,
.page-bar-main .page-bar-title { font-size: 1.05rem; }
    .page-hero { padding: 30px 0; }
    .album-mosaic { grid-template-columns: repeat(2, 1fr); }
    .album-mosaic a:first-child { grid-column: span 2; }
}

/* ---------- Running text ---------- */
.ticker-bar { background: #fdf7e6; border-bottom: 1px solid rgba(242, 169, 0, .28); }
.ticker-inner { display: flex; align-items: center; gap: .7rem; min-height: 38px; overflow: hidden; }
.ticker-label {
    background: var(--gold); color: #1f2937; font-weight: 800; font-size: .66rem;
    letter-spacing: .08em; padding: .25rem .55rem; border-radius: 4px; flex: none;
}
.ticker-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 20px), transparent 100%); }
.ticker-track { display: flex; width: max-content; animation: ticker-run 40s linear infinite; }
.ticker-track span { padding-right: 3rem; white-space: nowrap; font-size: .82rem; color: #5a4308; }
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Posisi banner ---------- */
.banner-card.banner-center .banner-body { margin: 0 auto; text-align: center; }
.banner-card.banner-right .banner-body { margin-left: auto; text-align: right; }

/* ---------- Footer tambahan ---------- */
.footer-links a { display: inline-flex; align-items: center; gap: .35rem; }
.footer-links a::before { content: "\203A"; color: var(--gold-light); font-weight: 800; }
.footer-bottom-links { display: inline-flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255, 255, 255, .6); font-size: .72rem; }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- Aplikasi layanan (PTSP) ---------- */
.apps-hero { padding: 46px 0 26px; text-align: center; }
.apps-hero h1 {
    font-size: clamp(1.1rem, .9rem + 1vw, 1.55rem); font-weight: 700; letter-spacing: .02em;
    color: #1f2937; margin: 0 0 .35rem; text-transform: uppercase;
}
.apps-hero p { color: var(--muted); font-size: .86rem; margin: 0 0 .8rem; }
.apps-underline { display: inline-block; width: 42px; height: 3px; background: var(--green); border-radius: 2px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-card {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    background: #fff; border: 1px solid var(--green-line); border-radius: 10px;
    transition: transform .16s, box-shadow .16s, border-color .16s;
}
.app-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 84, 57, .10); border-color: rgba(0, 122, 83, .35); }
.app-ico {
    width: 46px; height: 46px; border-radius: 50%; flex: none;
    display: grid; place-items: center; background: #e7f5ee; color: var(--green);
}
.app-ico .icon { width: 21px; height: 21px; }
.app-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.app-body strong { font-size: .88rem; color: var(--ink); font-weight: 700; line-height: 1.3; }
.app-body small { font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cat-sim-kesiswaan { color: var(--green); }
.cat-sim-alumni { color: #b45309; }
.cat-sim-pengaduan { color: #2563eb; }
.cat-layanan-umum { color: #0284c7; }
.apps-foot { display: flex; gap: .6rem; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.app-card:nth-child(3n+2) .app-ico { background: #fef3c7; color: #b45309; }
.app-card:nth-child(3n) .app-ico { background: #e0f2fe; color: #0284c7; }

@media (max-width: 980px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .apps-grid { grid-template-columns: 1fr; } }

/* ---------- Komentar ---------- */
.comment-list { display: grid; gap: 12px; margin-bottom: 18px; }
.comment-item { border: 1px solid var(--green-line); border-radius: 10px; padding: 12px 14px; background: #f9fcfa; }
.comment-head { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; }
.comment-head strong { font-size: .82rem; color: var(--green-dark); }
.comment-head span { font-size: .68rem; color: var(--muted); }
.comment-item p { margin: 0; font-size: .83rem; line-height: 1.6; }
.comment-form { border-top: 1px dashed var(--green-line); padding-top: 16px; }
/* ---------- Remah roti + judul polos ---------- */
.crumbs { display: flex; gap: .4rem; align-items: center; font-size: .74rem; color: var(--muted); padding: 18px 0 4px; flex-wrap: wrap; }
.crumbs a { color: var(--green); font-weight: 600; }
.crumbs span { color: #9ca3af; }

.plain-head { padding: 6px 0 18px; }
.plain-head h1 { margin: 0 0 .2rem; font-size: 1.45rem; font-weight: 800; color: #111827; }
.plain-head p { margin: 0; font-size: .78rem; color: var(--muted); }

/* ---------- Kartu pengumuman ---------- */
.announcement-card {
    background: #fff; border: 1px solid var(--green-line); border-radius: 12px;
    padding: 16px 18px 18px; margin-bottom: 16px;
}
.announcement-tag {
    display: inline-flex; align-items: center; gap: .35rem;
    color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; margin-bottom: .45rem;
}
.announcement-tag .icon { width: 14px; height: 14px; }
.announcement-card h2 { margin: 0 0 .4rem; font-size: .95rem; line-height: 1.4; }
.announcement-card h2 a { color: #111827; }
.announcement-card h2 a:hover { color: var(--green); }
.announcement-card p { margin: 0 0 .7rem; font-size: .82rem; line-height: 1.6; color: #4b5563; }
.announcement-foot { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .7rem; color: var(--muted); margin-bottom: .7rem; }
.announcement-foot .icon { width: 13px; height: 13px; vertical-align: -2px; }
.announcement-actions { display: flex; gap: .5rem; flex-wrap: wrap; border-top: 1px dashed var(--green-line); padding-top: .7rem; }
.btn-ghost { background: #f3f8f5; color: var(--green); border: 1px solid var(--green-line); }
.btn-ghost:hover { background: #e8f4ee; color: var(--green-dark); }

/* ---------- Baris prestasi ---------- */
.prestasi-row {
    display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 18px;
    background: #fff; border: 1px solid var(--green-line); border-radius: 12px;
    padding: 14px; margin-bottom: 16px; align-items: start;
}
.prestasi-media { border-radius: 8px; overflow: hidden; background: var(--green-soft); aspect-ratio: 3 / 4; }
.prestasi-media img { width: 100%; height: 100%; object-fit: cover; }
.prestasi-body h2 { margin: 0 0 .45rem; font-size: .92rem; line-height: 1.4; }
.prestasi-body h2 a { color: #111827; }
.prestasi-body h2 a:hover { color: var(--green); }
.prestasi-date { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; color: var(--muted); margin-right: .7rem; }
.prestasi-date .icon { width: 13px; height: 13px; }
.prestasi-scale { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--green-dark); background: #eef7f1; border-radius: 4px; padding: .12rem .45rem; }
.prestasi-note { margin: .55rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 640px) {
    .prestasi-row { grid-template-columns: 1fr; }
    .prestasi-media { aspect-ratio: 16 / 9; }
}


/* ---------- Kartu kepala madrasah ---------- */
.headmaster-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.hm-photo {
    width: 132px; height: 168px; flex: none; border-radius: 10px; overflow: hidden;
    background: linear-gradient(160deg, #8f1d1d, #b91c1c); display: grid; place-items: center;
    border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0, 56, 36, .18);
}
.hm-photo img { width: 100%; height: 100%; object-fit: cover; }
.hm-photo span { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: .04em; }
.hm-meta { display: flex; flex-direction: column; gap: .2rem; padding-top: .4rem; }
.hm-label { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hm-meta strong { font-size: 1.02rem; color: var(--green-dark); }
.hm-role { font-size: .76rem; color: var(--muted); }

.hm-quote { border-left: 3px solid var(--gold); background: #f8fcfa; border-radius: 0 8px 8px 0; padding: 12px 16px; margin-bottom: 1rem; }
.hm-quote .icon { color: var(--gold); width: 18px; height: 18px; }
.hm-quote strong { display: block; margin: .2rem 0 .3rem; font-size: .92rem; color: var(--green-dark); }
.hm-quote p { margin: 0; font-size: .86rem; color: #4b5563; }

/* prestasi: judul kapital & skala polos */
.prestasi-body h2 { text-transform: uppercase; font-size: .85rem; }
.prestasi-scale { background: none; padding: 0; color: var(--muted); font-weight: 600; }

/* ---------- SPMB ---------- */
.spmb-head {
    background: linear-gradient(135deg, #043927, #0a5a3d 60%, #0b6b49);
    border-bottom: 3px solid var(--gold);
    text-align: center; padding: 30px 0 26px; margin-bottom: 24px; color: #fff;
}
.spmb-mark {
    display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: #fff; color: var(--green-dark); font-weight: 800; overflow: hidden; margin-bottom: .5rem;
}
.spmb-mark img { width: 100%; height: 100%; object-fit: contain; }
.spmb-head h1 { font-size: clamp(1rem, .85rem + .8vw, 1.35rem); letter-spacing: .06em; font-weight: 800; margin: 0 0 .2rem; color: #fff; }
.spmb-head p { margin: 0 0 .8rem; font-size: .8rem; color: rgba(255, 255, 255, .82); }
.spmb-login {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800;
    letter-spacing: .05em; color: #fff; background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35); padding: .45rem .9rem; border-radius: 50px;
}
.spmb-login:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.spmb-login .icon { width: 15px; height: 15px; }

.spmb-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.spmb-note {
    display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem;
    background: #f1faf4; border: 1px solid var(--green-line); border-radius: 8px;
    padding: 10px 12px; margin-bottom: 14px; color: #2f4a3e;
}
.spmb-note .icon { color: var(--gold); width: 16px; height: 16px; margin-top: 2px; }
.spmb-form { background: #fff; border: 1px solid var(--green-line); border-radius: 12px; overflow: hidden; }
.spmb-sec { border: 0; margin: 0; padding: 0; border-bottom: 1px solid var(--green-line); }
.spmb-sec legend {
    width: 100%; display: flex; gap: .45rem; align-items: center;
    background: #f3faf6; border-bottom: 1px solid var(--green-line);
    padding: 10px 16px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--green-dark);
}
.spmb-sec .roman { color: var(--gold); }
.spmb-body { padding: 16px; }
.spmb-submit {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; border: 0; cursor: pointer; background: var(--green);
    color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .06em;
    padding: .95rem 1rem;
}
.spmb-submit:hover { background: var(--green-dark); }
.spmb-submit .icon { width: 16px; height: 16px; }
.check-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .82rem; }
.check-bullets li { position: relative; padding-left: 1.1rem; }
.check-bullets li::before { content: "\\2022"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

@media (max-width: 980px) { .spmb-layout { grid-template-columns: 1fr; } }

/* ---------- Halaman kontak ---------- */
.map-shell { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--green-line); margin-bottom: 18px; }
#peta-kontak { height: 380px; width: 100%; }
.map-overlay {
    position: absolute; top: 14px; left: 14px; z-index: 500; max-width: 320px;
    background: #fff; border-radius: 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
    padding: 12px 14px;
}
.map-overlay strong { display: block; font-size: .82rem; color: var(--green-dark); margin-bottom: .2rem; }
.map-overlay p { margin: 0 0 .55rem; font-size: .74rem; color: var(--muted); line-height: 1.45; }
.map-overlay .icon { width: 14px; height: 14px; }

.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.contact-info-card {
    display: flex; gap: 12px; align-items: flex-start; background: #fff;
    border: 1px solid var(--green-line); border-radius: 12px; padding: 16px 18px;
}
.ci-icon {
    width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: #e7f5ee; color: var(--green);
}
.ci-icon.gold { background: #fef3c7; color: #b45309; }
.ci-icon .icon { width: 19px; height: 19px; }
.contact-info-card strong { display: block; font-size: .82rem; color: #111827; margin-bottom: .25rem; }
.contact-info-card p { margin: 0 0 .2rem; font-size: .78rem; color: var(--muted); }
.contact-info-card a { color: var(--green); font-weight: 600; }

@media (max-width: 760px) {
    .contact-cards { grid-template-columns: 1fr; }
    #peta-kontak { height: 300px; }
    .map-overlay { position: static; max-width: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--green-line); }
}

/* ---------- Lacak status PTSP ---------- */
.trace-shell {
    max-width: 720px; margin: 40px auto 56px; background: #fff;
    border: 1px solid var(--green-line); border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 84, 57, .07);
    padding: 30px 26px 22px;
}
.trace-head { text-align: center; margin-bottom: 20px; }
.trace-icon {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    border-radius: 50%; background: #eef7f2; color: var(--gold); margin-bottom: .5rem;
}
.trace-icon .icon { width: 22px; height: 22px; }
.trace-head h1 { font-size: 1.08rem; letter-spacing: .06em; font-weight: 800; color: #111827; margin: 0 0 .35rem; }
.trace-head p { margin: 0 auto; max-width: 52ch; font-size: .8rem; color: var(--muted); }
.trace-fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
.trace-form .field label { font-size: .72rem; }
.trace-btn { width: 100%; justify-content: center; margin-top: 14px; font-weight: 800; letter-spacing: .06em; }
.trace-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 16px; font-size: .76rem; }
.trace-foot a { color: var(--green); font-weight: 600; }
@media (min-width: 720px) { .trace-fields { grid-template-columns: 1.4fr 1fr; } }

/* ---------- Katalog program (tema gelap) ---------- */
.program-catalog {
    background: radial-gradient(circle at 20% 0%, #0b5d40 0, #043927 55%, #032a1d 100%);
    padding: 46px 0 54px; color: #fff;
}
.program-catalog .container { text-align: center; }
.pr-badge {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .66rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light);
    border: 1px solid rgba(242, 169, 0, .45); background: rgba(242, 169, 0, .10);
    padding: .35rem .8rem; border-radius: 50px; margin-bottom: .9rem;
}
.program-catalog h1 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; margin: 0 0 .5rem; color: #fff; }
.program-catalog > .container > p { max-width: 62ch; margin: 0 auto 30px; color: rgba(255, 255, 255, .78); font-size: .88rem; }

.program-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: left; }
.pr-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px; padding: 22px 18px 18px;
    display: flex; flex-direction: column; gap: .55rem;
    transition: transform .2s, border-color .2s, background .2s;
}
.pr-card:hover { transform: translateY(-3px); border-color: rgba(242, 169, 0, .45); background: rgba(255, 255, 255, .07); }
.pr-ico {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(242, 169, 0, .14); color: var(--gold-light); margin: 0 auto;
}
.pr-ico .icon { width: 21px; height: 21px; }
.pr-card h2 { font-size: .92rem; font-weight: 800; margin: 0; text-align: center; color: #fff; }
.pr-card p { margin: 0; font-size: .78rem; line-height: 1.6; color: rgba(255, 255, 255, .72); text-align: center; flex: 1; }
.pr-pill {
    align-self: center; margin-top: .4rem; font-size: .6rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--green-dark); background: var(--gold-light);
    padding: .28rem .65rem; border-radius: 50px;
}

@media (max-width: 1150px) { .program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .program-grid { grid-template-columns: 1fr; } }

/* ---------- Halaman artikel ---------- */
.art-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; padding: 6px 0 18px;
}
.art-head h1 { margin: 0 0 .2rem; font-size: 1.7rem; font-weight: 800; color: #111827; }
.art-head p { margin: 0; font-size: .78rem; color: var(--muted); }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
    padding: .35rem .8rem; border-radius: 50px; font-size: .72rem; font-weight: 700;
    background: #fff; border: 1px solid var(--green-line); color: var(--body);
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 26px; }
.art-card { background: #fff; border: 1px solid var(--green-line); border-radius: 12px; overflow: hidden; }
.art-media { display: block; aspect-ratio: 16 / 10; background: var(--green-soft); }
.art-media img { width: 100%; height: 100%; object-fit: cover; }
.art-body { padding: 12px 14px 16px; }
.art-cat { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.art-body h2 { margin: .3rem 0 .4rem; font-size: .86rem; line-height: 1.45; font-weight: 700; }
.art-body h2 a { color: #111827; }
.art-body h2 a:hover { color: var(--green); }
.art-date { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; color: var(--muted); }
.art-date .icon { width: 13px; height: 13px; }

@media (max-width: 980px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .art-grid { grid-template-columns: 1fr; } .art-head h1 { font-size: 1.3rem; } }

/* ---------- Jembatan hover submenu (beri waktu kursor turun) ---------- */
.nav li.has-menu > .submenu::before {
    content: ""; position: absolute; left: -10px; right: -10px; top: -18px; height: 18px;
}
.nav li.has-menu > .submenu { pointer-events: auto; }
