/* ==========================================================================
   MTsN Kota Cimahi — tema portal madrasah
   ========================================================================== */

:root {
    --green: #17623f;
    --green-dark: #0e4630;
    --green-darker: #093424;
    --green-soft: #e9f0eb;
    --green-line: #cbd9cf;
    --gold: #b78b1e;
    --gold-soft: #f6efdc;
    --ink: #1d2722;
    --muted: #5d6a63;
    --line: #d9dfd9;
    --bg: #f4f5f2;
    --paper: #ffffff;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 10px;
}

p {
    margin: 0 0 14px;
}

ul, ol {
    margin: 0 0 14px;
    padding-left: 20px;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    left: 10px;
    top: 10px;
    z-index: 999;
    background: #fff;
    color: var(--green);
    padding: 8px 14px;
    border: 2px solid var(--green);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    border: 1px solid var(--green);
    padding: 9px 18px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: #fff;
    color: var(--green);
    border-color: var(--green);
}

.btn-outline:hover {
    background: var(--green-soft);
    color: var(--green-dark);
    border-color: var(--green);
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.btn-gold:hover {
    background: #9c7414;
    border-color: #9c7414;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.link-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
}

.link-more svg {
    vertical-align: -2px;
}

/* Topbar and masthead ---------------------------------------------------- */
.topbar {
    background: var(--green-darker);
    color: #d7e3da;
    font-size: 12.5px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    gap: 12px;
}

.topbar a {
    color: #eaf1ec;
}

.topbar-contact {
    display: flex;
    gap: 18px;
    align-items: center;
}

.topbar-contact svg,
.topbar-hours svg {
    vertical-align: -2px;
    margin-right: 4px;
    opacity: .85;
}

.topbar-side {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-social {
    display: flex;
    gap: 6px;
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, .25);
}

.topbar-social a:hover {
    background: rgba(255, 255, 255, .15);
}

.masthead {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    min-width: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text strong {
    font-family: var(--serif);
    font-size: 25px;
    line-height: 1.15;
    color: var(--green-dark);
    letter-spacing: .2px;
}

.brand-text span {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 2px;
}

.brand-text em {
    font-style: normal;
    font-size: 11px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 3px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search {
    display: flex;
    border: 1px solid var(--line);
    background: #fbfbf9;
}

.header-search input {
    border: 0;
    background: transparent;
    padding: 8px 12px;
    font-family: var(--sans);
    font-size: 13.5px;
    width: 250px;
    outline: none;
}

.header-search button {
    border: 0;
    background: var(--green);
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-search button:hover {
    background: var(--green-dark);
}

.header-ministry {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.4;
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.header-ministry span:first-child {
    color: var(--gold);
    font-weight: 600;
}

/* Navigation ------------------------------------------------------------- */
.navwrap {
    background: var(--green);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navwrap.is-scrolled {
    box-shadow: 0 2px 8px rgba(10, 28, 18, .22);
}

.nav-inner {
    display: flex;
    align-items: stretch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    color: #fff;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 2px;
    cursor: pointer;
}

.main-nav {
    width: 100%;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a,
.nav-parent {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px 13px;
    color: #fff;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .2px;
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 1.3;
    white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-parent:hover,
.nav-list > li.is-active > a,
.has-sub.is-active > .nav-parent {
    background: var(--green-dark);
    text-decoration: none;
    color: #fff;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 245px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: none;
    box-shadow: 0 8px 18px rgba(16, 40, 28, .12);
}

.has-sub:hover > .submenu,
.has-sub.is-open > .submenu {
    display: block;
}

.submenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13.5px;
    color: #2a352e;
    border-bottom: 1px solid #eef0ec;
}

.submenu li:last-child a {
    border-bottom: 0;
}

.submenu a:hover,
.submenu a.active {
    background: var(--green-soft);
    color: var(--green-dark);
    text-decoration: none;
}

/* Ticker ----------------------------------------------------------------- */
.ticker {
    background: #eef0ea;
    border-bottom: 1px solid var(--line);
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.ticker-label {
    flex: 0 0 auto;
    background: var(--gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 3px 9px;
}

.ticker-window {
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 45s linear infinite;
}

.ticker-window:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.ticker-list li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
    padding-right: 36px;
}

.ticker-list li::after {
    content: "•";
    color: var(--gold);
    margin-left: 36px;
}

.ticker-list a {
    color: #37423b;
}

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

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
}

/* Page header ------------------------------------------------------------ */
.pagehead {
    background: var(--green-soft);
    border-bottom: 1px solid var(--green-line);
    padding: 22px 0 20px;
}

.crumbs {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
}

.crumbs a {
    color: var(--green);
}

.crumbs span[aria-hidden] {
    margin: 0 6px;
    color: #97a49b;
}

.pagehead h1 {
    font-size: 30px;
    color: var(--green-dark);
    margin: 0;
}

.pagehead-sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Sections --------------------------------------------------------------- */
.section {
    padding: 38px 0;
}

.section-tight {
    padding: 28px 0 40px;
}

.section-alt {
    background: #edefe9;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 9px;
}

.section-head h2 {
    font-size: 22px;
    margin: 0;
    padding-left: 11px;
    border-left: 4px solid var(--gold);
    color: var(--green-dark);
}

.center {
    text-align: center;
    margin-top: 22px;
}

.empty {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    padding: 18px 20px;
    color: var(--muted);
}

/* Home lead -------------------------------------------------------------- */
.home-lead {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 26px 0 30px;
}

.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 26px;
}

.lead-photo {
    display: block;
    background: #e6e9e3;
    overflow: hidden;
}

.lead-photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.lead-body {
    padding-top: 14px;
}

.kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.lead-title {
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 9px;
}

.lead-title a {
    color: var(--ink);
}

.lead-title a:hover {
    color: var(--green-dark);
    text-decoration: none;
}

.lead-body p {
    color: #414d46;
    font-size: 14.5px;
    margin-bottom: 12px;
}

.lead-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--muted);
    flex-wrap: wrap;
}

.lead-meta time svg {
    vertical-align: -2px;
    margin-right: 4px;
}

.lead-cat {
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 9px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.lead-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--line);
    padding-left: 22px;
}

.side-story {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8ebe6;
}

.side-story:first-child {
    padding-top: 0;
}

.side-story-media img {
    width: 96px;
    height: 68px;
    object-fit: cover;
    background: #e6e9e3;
}

.side-story-body time {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 3px;
}

.side-story-body h3 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    font-family: var(--sans);
    font-weight: 600;
}

.side-story-body h3 a {
    color: var(--ink);
}

.side-story-body h3 a:hover {
    color: var(--green);
}

.side-agenda {
    margin-top: 14px;
    background: var(--green);
    color: #fff;
    padding: 14px 16px;
    border-left: 4px solid var(--gold);
    display: block;
}

.side-agenda:hover {
    background: var(--green-dark);
    text-decoration: none;
    color: #fff;
}

.side-agenda-label {
    display: block;
    font-size: 10.5px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #e7d39a;
    margin-bottom: 3px;
}

.side-agenda strong {
    display: block;
    font-family: var(--serif);
    font-size: 16.5px;
    line-height: 1.35;
}

.side-agenda-link {
    display: inline-block;
    font-size: 12.5px;
    margin-top: 7px;
    color: #d9e8de;
}

/* Facts strip ------------------------------------------------------------ */
.facts {
    background: var(--green-dark);
    border-bottom: 3px solid var(--gold);
}

.facts-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fact {
    padding: 16px 18px;
    border-right: 1px solid rgba(255, 255, 255, .16);
    display: flex;
    flex-direction: column;
}

.fact:last-child {
    border-right: 0;
}

.fact span {
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #a9c4b3;
}

.fact strong {
    font-family: var(--serif);
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}

/* News layout ------------------------------------------------------------ */
.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 30px;
    align-items: start;
}

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

.post-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.post-card-media {
    display: block;
    position: relative;
    overflow: hidden;
    background: #e6e9e3;
}

.post-card-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-card-media:hover img {
    opacity: .92;
}

.post-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--green);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 3px 9px;
}

.post-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.post-date {
    font-size: 11.5px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}

.post-card-title {
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.42;
    font-weight: 600;
    margin: 0 0 7px;
}

.post-card-title a {
    color: var(--ink);
}

.post-card-title a:hover {
    color: var(--green);
}

.post-card-excerpt {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 10px;
    flex: 1 1 auto;
}

.post-card .link-more {
    font-size: 12.5px;
}

/* Post rows (archive lists) --------------------------------------------- */
.post-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 12px;
    margin-bottom: 14px;
}

.post-row-media img {
    width: 200px;
    height: 128px;
    object-fit: cover;
    background: #e6e9e3;
}

.post-row-title {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    margin: 2px 0 6px;
}

.post-row-title a {
    color: var(--ink);
}

.post-row-title a:hover {
    color: var(--green);
}

.post-row-body p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
}

/* Category bar ----------------------------------------------------------- */
.cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.cat-bar a {
    font-size: 12.5px;
    padding: 4px 11px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: #3a463e;
}

.cat-bar a:hover {
    border-color: var(--green);
    color: var(--green-dark);
    text-decoration: none;
}

.cat-bar a.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

/* Sidebar ---------------------------------------------------------------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    padding: 0 16px 15px;
}

.widget-title {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--green-dark);
    margin: 0 -16px 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: #fafbf8;
}

.widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: wlist;
}

.widget-list li {
    counter-increment: wlist;
    position: relative;
    padding: 8px 0 8px 26px;
    border-bottom: 1px dotted #dfe4dc;
}

.widget-list li:last-child {
    border-bottom: 0;
}

.widget-list li::before {
    content: counter(wlist);
    position: absolute;
    left: 0;
    top: 9px;
    width: 17px;
    height: 17px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
    line-height: 17px;
}

.widget-list a {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #26312a;
    line-height: 1.45;
}

.widget-list a:hover {
    color: var(--green);
}

.widget-list time {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.widget-popular {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-popular li {
    border-bottom: 1px dotted #dfe4dc;
}

.widget-popular li:last-child {
    border-bottom: 0;
}

.widget-popular a {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #26312a;
    line-height: 1.45;
}

.widget-popular a:hover {
    color: var(--green);
}

.widget-popular img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    background: #e6e9e3;
}

.widget-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.widget-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e6e9e3;
}

.widget-gallery a:hover img {
    opacity: .9;
}

.widget-gallery + .link-more {
    display: inline-block;
    font-size: 12.5px;
}

.widget-ppdb p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.widget-ppdb .btn {
    width: 100%;
    text-align: center;
}

.widget-contact .widget-address {
    font-size: 13px;
    color: #3c4841;
    margin-bottom: 10px;
}

.widget-contact ul {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.widget-contact li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    padding: 4px 0;
    color: #3c4841;
    word-break: break-word;
}

.widget-contact li svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--green);
}

/* Prestasi --------------------------------------------------------------- */
.prestasi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.prestasi-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 14px;
}

.prestasi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gold-soft);
    color: var(--gold);
    border: 1px solid #eadfbc;
}

.prestasi-item h3 {
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.45;
    font-weight: 600;
    margin: 0 0 4px;
}

.prestasi-item h3 a {
    color: var(--ink);
}

.prestasi-item h3 a:hover {
    color: var(--green);
}

.prestasi-item time {
    font-size: 11.5px;
    color: var(--muted);
}

/* Albums ----------------------------------------------------------------- */
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.album {
    position: relative;
    display: block;
    background: #dfe3dc;
    overflow: hidden;
}

.album img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.album:hover img {
    opacity: .9;
}

.album-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 40, 28, .85);
    color: #fff;
    padding: 8px 11px 9px;
    display: flex;
    flex-direction: column;
}

.album-caption strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.album-caption small {
    font-size: 11px;
    color: #c3d4c9;
    margin-top: 1px;
}

.album:hover {
    text-decoration: none;
}

.album-grid-lg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Video ------------------------------------------------------------------ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.video-card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    padding-bottom: 12px;
}

.video-card:hover {
    text-decoration: none;
}

.video-thumb {
    position: relative;
    display: block;
    background: #1a231d;
}

.video-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: .92;
}

.video-card:hover .video-thumb img {
    opacity: 1;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, .94);
    color: var(--green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play svg {
    margin-left: 2px;
}

.video-title {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
    padding: 10px 12px 0;
}

.video-card:hover .video-title {
    color: var(--green);
}

.video-date {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    padding: 2px 12px 0;
}

.video-grid-lg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* CTA band --------------------------------------------------------------- */
.cta-band {
    background: var(--green);
    border-top: 4px solid var(--gold);
    padding: 30px 0;
    color: #fff;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-inner h2 {
    color: #fff;
    font-size: 23px;
    margin: 0 0 6px;
}

.cta-inner p {
    margin: 0;
    color: #cfe0d6;
    max-width: 640px;
    font-size: 14px;
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

/* Article ---------------------------------------------------------------- */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 30px;
    align-items: start;
}

.article {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 26px 30px 24px;
    min-width: 0;
}

.article-head h1 {
    font-size: 29px;
    line-height: 1.3;
    margin: 0 0 10px;
    color: var(--ink);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.article-meta time svg,
.article-meta span svg {
    vertical-align: -2px;
    margin-right: 4px;
}

.article-meta a {
    color: var(--green);
    font-weight: 600;
}

.article-photo {
    margin: 0 0 20px;
    background: #e6e9e3;
}

.article-photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body {
    font-size: 15.5px;
    line-height: 1.8;
    color: #26312a;
    overflow-wrap: break-word;
}

.article-body p {
    margin: 0 0 16px;
}

.article-body h2 {
    font-size: 22px;
    margin: 26px 0 10px;
    color: var(--green-dark);
}

.article-body h3 {
    font-size: 18.5px;
    margin: 22px 0 8px;
}

.article-body h4 {
    font-size: 16px;
    margin: 18px 0 6px;
    font-family: var(--sans);
}

.article-body ul,
.article-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body img {
    margin: 8px auto 16px;
    height: auto;
}

.article-body a {
    color: var(--green);
    text-decoration: underline;
}

.article-body blockquote {
    margin: 20px 0;
    padding: 10px 18px;
    border-left: 4px solid var(--gold);
    background: #faf8f1;
    font-style: italic;
    color: #3c4841;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
    font-size: 14px;
}

.article-body th,
.article-body td {
    border: 1px solid var(--line);
    padding: 7px 10px;
    text-align: left;
    vertical-align: top;
}

.article-body th {
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 600;
}

.article-body iframe {
    max-width: 100%;
    border: 0;
}

.article-body figure {
    margin: 0 0 16px;
}

.article-body figcaption {
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
    margin-top: 6px;
}

.article-intro {
    margin-bottom: 18px;
}

.article-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.share {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--muted);
}

.share a {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--line);
    background: #fafbf8;
    color: #37423b;
}

.share a:hover {
    text-decoration: none;
    color: #fff;
}

.share-fb:hover {
    background: #2b4b87;
    border-color: #2b4b87;
}

.share-wa:hover {
    background: #1c7c46;
    border-color: #1c7c46;
}

.share-x:hover {
    background: #25292c;
    border-color: #25292c;
}

.link-back {
    font-size: 13px;
    font-weight: 600;
}

/* Gallery page ----------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.gallery-item {
    display: block;
    background: #e2e6df;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-item:hover img {
    opacity: .9;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 18, 13, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: #fff;
    border: 0;
    width: 38px;
    height: 38px;
    font-size: 20px;
    cursor: pointer;
    color: var(--ink);
    line-height: 1;
}

.lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    text-align: center;
    color: #e8efe9;
    font-size: 13px;
    padding: 0 20px;
}

/* Video page ------------------------------------------------------------- */
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #101712;
    margin-bottom: 18px;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Download --------------------------------------------------------------- */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 14px 16px;
}

.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid var(--green-line);
}

.download-body h3 {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 3px;
}

.download-body p {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--muted);
}

.download-meta {
    font-size: 11.5px;
    color: var(--muted);
}

.download-box {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    background: #fafbf8;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    padding: 18px;
    margin-bottom: 20px;
}

.download-box .download-icon {
    width: 56px;
    height: 56px;
}

.download-box p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}

/* Archives (prestasi / ekskul) ------------------------------------------ */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.prestasi-card,
.ekskul-card {
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.archive-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e6e9e3;
}

.archive-body {
    padding: 14px 16px 16px;
}

.archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gold-soft);
    color: #7d5c0d;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    margin-bottom: 7px;
}

.archive-body h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 7px;
}

.archive-body h3 a {
    color: var(--ink);
}

.archive-body h3 a:hover {
    color: var(--green);
}

.archive-body p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 8px;
}

.archive-body time {
    font-size: 11.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--paper);
    border: 1px solid var(--line);
}

.related-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid #e8ebe6;
    font-size: 14px;
}

.related-list li:last-child {
    border-bottom: 0;
}

.related-list time {
    color: var(--muted);
    font-size: 12px;
    flex: 0 0 auto;
}

/* Forms ------------------------------------------------------------------ */
.form-wrap {
    margin-top: 26px;
    border-top: 2px solid var(--green);
    padding-top: 20px;
}

.form-wrap h2 {
    font-size: 20px;
    margin-bottom: 14px;
}

.site-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2e3933;
    margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid #c9d1c9;
    background: #fdfdfc;
    padding: 8px 11px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 2px solid var(--green-soft);
    border-color: var(--green);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.req {
    color: #a4342a;
}

.form-trap {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.alert {
    border: 1px solid var(--line);
    padding: 11px 14px;
    font-size: 13.5px;
    margin-bottom: 14px;
}

.alert-success {
    background: #eef6f0;
    border-color: #bcd7c4;
    color: #1c5b37;
}

.alert-error {
    background: #fbf0ee;
    border-color: #e3c2bb;
    color: #8e2f22;
}

.alert ul {
    margin: 6px 0 0;
}

/* Search ----------------------------------------------------------------- */
.search-page-form {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.search-page-form input {
    flex: 1 1 auto;
    border: 1px solid #c9d1c9;
    padding: 10px 12px;
    font-family: var(--sans);
    font-size: 14.5px;
    background: var(--paper);
}

.search-summary {
    font-size: 14px;
    color: var(--muted);
}

.search-heading {
    font-size: 19px;
    margin: 24px 0 10px;
    color: var(--green-dark);
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
}

.search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-list li {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 13px 16px;
    margin-bottom: 10px;
}

.search-list a {
    font-size: 15.5px;
    font-weight: 600;
}

.search-type {
    display: inline-block;
    font-size: 11.5px;
    color: var(--muted);
    margin-left: 8px;
}

.search-list p {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: var(--muted);
}

/* Pagination ------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.page-link {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 6px 14px;
    font-weight: 600;
    color: var(--green);
}

.page-link:hover {
    border-color: var(--green);
    text-decoration: none;
}

.page-link.is-disabled {
    color: #a3aca5;
    background: #f6f7f4;
}

.page-status {
    color: var(--muted);
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
    background: var(--green-dark);
    color: #c9dacf;
    font-size: 13.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 34px;
    padding-top: 34px;
    padding-bottom: 28px;
}

.footer-about p {
    margin: 12px 0 0;
    color: #b9cdbf;
    line-height: 1.65;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.footer-brand:hover {
    text-decoration: none;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

.footer-brand strong {
    display: block;
    font-family: var(--serif);
    font-size: 19px;
    color: #fff;
    line-height: 1.25;
}

.footer-brand small {
    display: block;
    font-size: 12.5px;
    color: #a9c4b3;
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.footer-address svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--gold);
}

.site-footer h2 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    padding-bottom: 7px;
    margin: 0 0 12px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    padding: 3px 0;
}

.footer-links a {
    color: #c9dacf;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 3px 0;
    color: #c9dacf;
    word-break: break-word;
}

.footer-contact li svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--gold);
}

.footer-contact a {
    color: #c9dacf;
}

.footer-social {
    display: flex;
    gap: 7px;
    margin-top: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #e4eee8;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, .12);
}

.footer-bottom {
    background: var(--green-darker);
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 12px;
    color: #a9bfb2;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
}

.footer-bottom p {
    margin: 0;
}

/* Back to top ------------------------------------------------------------ */
.back-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    width: 38px;
    height: 38px;
    border: 1px solid var(--green-dark);
    background: var(--green);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    display: none;
    line-height: 1;
}

.back-top.is-visible {
    display: block;
}

.back-top:hover {
    background: var(--green-dark);
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1060px) {
    .post-grid,
    .video-grid,
    .video-grid-lg {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-ministry {
        display: none;
    }

    .nav-list > li > a,
    .nav-parent {
        padding: 10px 10px;
        font-size: 13px;
    }
}

@media (max-width: 920px) {
    .lead-grid,
    .news-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .lead-side {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 14px;
    }

    .article-layout .sidebar,
    .news-layout .sidebar {
        margin-top: 4px;
    }

    .facts-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .fact:nth-child(2) {
        border-right: 0;
    }

    .fact:nth-child(1),
    .fact:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

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

    .footer-about {
        grid-column: 1 / -1;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 760px) {
    .topbar-hours,
    .topbar-email {
        display: none;
    }

    .masthead-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .brand-text span {
        font-size: 12px;
    }

    .header-tools {
        width: 100%;
    }

    .header-search {
        width: 100%;
    }

    .header-search input {
        width: 100%;
        flex: 1 1 auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-inner {
        flex-direction: column;
    }

    .main-nav {
        display: none;
        border-top: 1px solid rgba(255, 255, 255, .18);
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .nav-list > li > a,
    .nav-parent {
        width: 100%;
        justify-content: space-between;
        padding: 11px 4px;
        font-size: 14px;
    }

    .submenu {
        position: static;
        display: none;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, .1);
        background: rgba(0, 0, 0, .16);
        box-shadow: none;
        min-width: 0;
        padding: 2px 0;
        border-left: 0;
        border-top-color: transparent;
    }

    .has-sub.is-open > .submenu {
        display: block;
    }

    .has-sub:hover > .submenu {
        display: none;
    }

    .has-sub.is-open:hover > .submenu {
        display: block;
    }

    .submenu a {
        color: #e3eee7;
        border-bottom-color: rgba(255, 255, 255, .08);
        padding: 8px 14px;
    }

    .submenu a:hover,
    .submenu a.active {
        background: rgba(255, 255, 255, .1);
        color: #fff;
    }

    .ticker-inner {
        gap: 8px;
    }

    .lead-title {
        font-size: 24px;
    }

    .pagehead h1 {
        font-size: 24px;
    }

    .section {
        padding: 28px 0;
    }

    .post-grid,
    .video-grid,
    .video-grid-lg,
    .prestasi-grid {
        grid-template-columns: 1fr;
    }

    .album-grid,
    .album-grid-lg {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-row {
        grid-template-columns: 1fr;
    }

    .post-row-media img {
        width: 100%;
        height: 190px;
    }

    .article {
        padding: 18px 16px;
    }

    .article-head h1 {
        font-size: 23px;
    }

    .article-meta {
        gap: 10px;
    }

    .download-item,
    .download-box {
        grid-template-columns: 1fr;
    }

    .download-item .btn,
    .download-box .btn {
        justify-self: start;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-bottom-inner {
        flex-direction: column;
    }

    .search-page-form {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .facts-inner {
        grid-template-columns: 1fr;
    }

    .fact {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    .fact:last-child {
        border-bottom: 0;
    }

    .album-grid,
    .album-grid-lg {
        grid-template-columns: 1fr;
    }

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