/* ---------------------------------------------------------------
   MA Muhammadiyah Plus Cisaat — stylesheet
   Palette: hijau madrasah, emas, latar kertas
---------------------------------------------------------------- */

:root {
    --green: #0b5a3c;
    --green-dark: #083f2a;
    --green-soft: #e8f0eb;
    --gold: #d9a404;
    --gold-dark: #a97d02;
    --ink: #1d2b24;
    --muted: #5d6b62;
    --line: #e0e4dd;
    --line-dark: #cfd6cd;
    --paper: #f6f5f0;
    --white: #ffffff;
    --radius: 3px;
    --shadow: 0 1px 2px rgba(21, 38, 29, .06);
    --font-head: Georgia, "Times New Roman", serif;
    --font-body: "Segoe UI", Tahoma, Arial, sans-serif;
}

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

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

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

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

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

a:hover {
    color: var(--gold-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 .5em;
    font-weight: 700;
}

h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

button {
    font-family: inherit;
}

svg {
    flex-shrink: 0;
}

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

.section-gap {
    padding: 32px 20px 48px;
}

.sr-only {
    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: -9999px;
    top: 0;
    background: var(--gold);
    color: var(--green-dark);
    padding: 10px 16px;
    z-index: 999;
    font-weight: 700;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

/* ---------------------------------------------------------------
   Topbar
---------------------------------------------------------------- */

.topbar {
    background: var(--green-dark);
    color: #cfe0d5;
    font-size: 12.5px;
}

.topbar a {
    color: #e7f0e9;
}

.topbar a:hover {
    color: var(--gold);
}

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

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

.topbar-contact a,
.topbar-hours {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.topbar-social {
    display: flex;
    align-items: center;
    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);
    border-radius: 50%;
}

.topbar-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green-dark);
}

/* ---------------------------------------------------------------
   Header
---------------------------------------------------------------- */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 96px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

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

.brand:hover {
    color: var(--ink);
}

.brand img {
    width: 62px;
    height: 60px;
    object-fit: contain;
}

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

.brand-name {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .2px;
}

.brand-tagline {
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.header-search {
    display: flex;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
}

.header-search input {
    border: 0;
    outline: 0;
    padding: 9px 12px;
    width: 220px;
    font-size: 13.5px;
    color: var(--ink);
    background: transparent;
}

.header-search input::placeholder {
    color: #8b968e;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--green);
    background: var(--green);
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13.5px;
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green-dark);
}

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

.btn-block {
    display: flex;
    width: 100%;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 40px;
    border: 1px solid var(--line-dark);
    background: var(--white);
    color: var(--green);
    border-radius: var(--radius);
    cursor: pointer;
}

/* ---------------------------------------------------------------
   Navigasi utama
---------------------------------------------------------------- */

.main-nav {
    background: var(--green);
    border-bottom: 3px solid var(--gold);
    position: relative;
    z-index: 40;
}

.nav-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 17px;
    color: #eaf2ec;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1.2;
    height: 100%;
}

.nav-link:hover,
.nav-link.is-active,
.has-dropdown:hover > .nav-link {
    background: var(--green-dark);
    color: #fff;
}

.has-dropdown.is-open > .nav-link {
    background: var(--green-dark);
    color: #fff;
}

.dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 232px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    box-shadow: 0 8px 22px rgba(16, 40, 28, .12);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: none;
    z-index: 50;
}

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

.dropdown a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 13.5px;
    color: var(--ink);
}

.dropdown a:hover {
    background: var(--green-soft);
    color: var(--green-dark);
}

.submenu-toggle {
    display: none;
}

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

.hero {
    background: var(--green-dark);
    padding: 24px 0;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #0f2a1e;
}

.hero-track {
    position: relative;
}

.hero-slide {
    display: none;
    position: relative;
}

.hero-slide.is-active {
    display: block;
}

.hero-image-link {
    display: block;
    position: relative;
}

.hero-image-link img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 32px 24px;
    background: linear-gradient(to top, rgba(6, 26, 17, .88), rgba(6, 26, 17, .55) 55%, rgba(6, 26, 17, 0));
    color: #fff;
}

.hero-kicker {
    display: inline-block;
    font-size: 11.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 7px;
}

.hero-caption h2 {
    margin: 0 0 6px;
    font-size: 27px;
    max-width: 780px;
}

.hero-caption h2 a,
.hero-caption h2 {
    color: #fff;
}

.hero-caption h2 a:hover {
    color: var(--gold);
}

.hero-caption p {
    margin: 0;
    font-size: 14px;
    color: #dbe6de;
    max-width: 720px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 52px;
    border: 0;
    background: rgba(8, 40, 26, .6);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}

.hero-arrow:hover {
    background: var(--gold);
    color: var(--green-dark);
}

.hero-prev { left: 0; }
.hero-next { right: 0; }

.hero-dots {
    position: absolute;
    right: 22px;
    bottom: 16px;
    display: flex;
    gap: 7px;
    z-index: 6;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--gold);
    border-color: var(--gold);
}

/* ---------------------------------------------------------------
   Fakta singkat + ticker
---------------------------------------------------------------- */

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

.facts-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.facts-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 18px 10px;
    text-align: center;
    border-left: 1px solid var(--line);
}

.facts-list li:first-child {
    border-left: 0;
}

.facts-list strong {
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--green);
    line-height: 1.1;
}

.facts-list span {
    font-size: 12.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
}

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

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
}

.ticker-label {
    background: var(--gold);
    color: var(--green-dark);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius);
    white-space: nowrap;
}

.ticker-viewport {
    overflow: hidden;
    flex: 1;
}

.ticker-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 13.5px;
    animation: ticker 26s linear infinite;
}

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

.ticker-text svg {
    color: var(--gold-dark);
}

@keyframes ticker {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* ---------------------------------------------------------------
   Tata letak isi
---------------------------------------------------------------- */

.layout-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
    align-items: start;
}

.content-column,
.page-column,
.article-column {
    min-width: 0;
}

.section {
    margin-bottom: 30px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 2px solid var(--green);
    margin-bottom: 18px;
    padding-bottom: 8px;
}

.section-head h2 {
    position: relative;
    margin: 0;
    font-size: 20px;
    letter-spacing: .2px;
}

.section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 46px;
    height: 2px;
    background: var(--gold);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.section-more:hover {
    color: var(--green);
}

.section-head-spaced {
    margin-top: 28px;
}

/* Berita utama */

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 8px;
}

.news-lead {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.news-lead-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--green-soft);
    overflow: hidden;
}

.news-lead-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.news-lead:hover .news-lead-image img {
    transform: scale(1.03);
}

.news-lead-body {
    padding: 16px 18px 18px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.badge {
    display: inline-block;
    background: var(--green-soft);
    color: var(--green-dark);
    border-left: 3px solid var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 9px;
    margin-bottom: 8px;
}

.news-lead-body h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

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

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

.news-lead-body p {
    margin: 0;
    font-size: 13.8px;
    color: var(--muted);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.news-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-item-thumb {
    display: block;
    width: 96px;
    height: 68px;
    overflow: hidden;
    background: var(--green-soft);
    border-radius: 2px;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item time {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.news-item h4 {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.35;
}

.news-item h4 a {
    color: var(--ink);
}

.news-item h4 a:hover {
    color: var(--green);
}

.post-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9fb2a5;
    background: var(--green-soft);
}

/* Dua kolom panel */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px 12px;
    margin-bottom: 26px;
}

.two-col .panel {
    margin-bottom: 0;
}

.panel-accent {
    border-top: 3px solid var(--gold);
}

.headline-list,
.blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.headline-list li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

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

.headline-list h3 {
    font-size: 15px;
    margin: 0 0 3px;
    line-height: 1.35;
}

.headline-list h3 a {
    color: var(--ink);
}

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

.headline-list p {
    margin: 0;
    font-size: 12.8px;
    color: var(--muted);
}

.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--green);
    color: #fff;
    border-radius: var(--radius);
    line-height: 1.05;
    flex-shrink: 0;
    padding-top: 2px;
}

.date-box span {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
}

.date-box small {
    font-size: 10.5px;
    letter-spacing: .8px;
    color: #cfe0d5;
}

.date-box-lg {
    width: 68px;
    height: 68px;
}

.date-box-lg span {
    font-size: 26px;
}

.blog-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
}

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

.blog-thumb {
    display: block;
    width: 64px;
    height: 54px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--green-soft);
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-list h3 {
    font-size: 14.5px;
    margin: 2px 0 0;
    line-height: 1.35;
}

.blog-list h3 a {
    color: var(--ink);
}

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

.byline {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .4px;
}

.accent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.accent-item:last-child {
    border-bottom: 0;
}

.accent-thumb {
    display: block;
    width: 92px;
    height: 66px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--green-soft);
}

.accent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accent-item h3 {
    font-size: 14.5px;
    margin: 2px 0 0;
    line-height: 1.35;
}

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

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

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 4px 0 8px;
}

.mini-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2px;
    background: var(--green-dark);
}

.mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
    transition: transform .25s ease, opacity .25s ease;
}

.mini-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 8px 6px;
    background: linear-gradient(to top, rgba(6, 26, 17, .85), transparent);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
}

.mini-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9fb2a5;
    background: var(--green-soft);
}

.mini-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Sambutan */

.welcome {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    background: var(--green);
    color: #e9f1eb;
    border-radius: var(--radius);
    padding: 26px 30px;
    margin-bottom: 28px;
}

.welcome-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
}

.eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.welcome-body h2 {
    color: #fff;
    margin-bottom: 10px;
}

.welcome-body p {
    font-size: 14px;
    color: #d8e5db;
    margin-bottom: 14px;
}

.welcome .text-link {
    color: var(--gold);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13.5px;
}

.text-link:hover {
    color: var(--gold-dark);
}

/* Agenda & galeri mini */

.agenda-item {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
}

.agenda-item:last-child {
    border-bottom: 0;
}

.agenda-item h3 {
    font-size: 15px;
    margin: 2px 0 2px;
}

.agenda-item p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
}

.gallery-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 4px 0 8px;
}

.gallery-mini a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 2px;
    background: var(--green-soft);
}

.gallery-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.gallery-mini a:hover img {
    transform: scale(1.07);
}

/* Editorial */

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-bottom: 8px;
}

.editorial-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px 18px 12px;
}

.quote-mark {
    position: absolute;
    right: 12px;
    top: 2px;
    font-family: var(--font-head);
    font-size: 46px;
    line-height: 1;
    color: #d9ddd4;
}

.editorial-card h3 {
    position: relative;
    font-size: 15.5px;
    margin-bottom: 6px;
    padding-right: 26px;
}

.editorial-card h3 a {
    color: var(--ink);
}

.editorial-card h3 a:hover {
    color: var(--green);
}

.editorial-card p {
    font-size: 12.8px;
    color: var(--muted);
    margin-bottom: 8px;
}

.editorial-card .byline {
    font-style: italic;
}

/* ---------------------------------------------------------------
   Sidebar
---------------------------------------------------------------- */

.sidebar {
    position: sticky;
    top: 16px;
}

.widget {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 20px;
}

.widget-title {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    letter-spacing: .2px;
}

.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 42px;
    height: 2px;
    background: var(--gold);
}

.widget-search {
    display: flex;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    overflow: hidden;
}

.widget-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 9px 11px;
    font-size: 13.5px;
}

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

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

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

.widget-posts li {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
}

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

.widget-thumb {
    display: block;
    width: 62px;
    height: 50px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--green-soft);
}

.widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-posts time {
    display: block;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.widget-posts a {
    font-size: 13.3px;
    line-height: 1.4;
    color: var(--ink);
    font-weight: 600;
}

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

.widget-agenda {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
}

.widget-agenda:last-of-type {
    border-bottom: 0;
}

.widget-agenda a {
    font-size: 13.3px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

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

.widget-agenda-place {
    display: block;
    font-size: 11.8px;
    color: var(--muted);
    margin-top: 2px;
}

.widget-empty {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.widget-contact {
    background: var(--green);
    border-color: var(--green);
    color: #dfeae2;
}

.widget-contact .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .2);
}

.widget-address {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 10px;
}

.widget-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 7px;
}

.widget-contact .btn-gold {
    margin-top: 8px;
}

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

.teacher-section {
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 38px 0 44px;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.teacher-grid-full {
    grid-template-columns: repeat(5, 1fr);
}

.teacher-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 12px 12px;
    text-align: center;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.teacher-card:hover {
    border-color: var(--line-dark);
    box-shadow: var(--shadow);
}

.teacher-photo {
    width: 96px;
    height: 96px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--line);
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-photo span {
    font-family: var(--font-head);
    font-size: 28px;
    color: var(--green);
    font-weight: 700;
}

.teacher-card h3 {
    font-size: 14.5px;
    margin: 0 0 3px;
    line-height: 1.3;
}

.teacher-card p {
    margin: 0;
    font-size: 12.3px;
    color: var(--muted);
    line-height: 1.35;
}

.teacher-card small {
    display: block;
    margin-top: 5px;
    font-size: 11.5px;
    color: #7c8a80;
}

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

.site-footer {
    background: var(--green-dark);
    color: #c9d9ce;
    margin-top: 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 34px;
    padding-top: 44px;
    padding-bottom: 34px;
}

.footer-col h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 8px;
    font-size: 13.3px;
    line-height: 1.5;
}

.footer-col a {
    color: #c9d9ce;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

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

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

.footer-brand span {
    display: block;
    font-size: 11.5px;
    color: #9fb5a6;
    margin-top: 2px;
}

.footer-about p {
    font-size: 13.3px;
    line-height: 1.6;
    color: #b9ccbf;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: #dfeae2;
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green-dark);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

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

.footer-contact span,
.footer-contact a {
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: #06311f;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    font-size: 12.5px;
    color: #9fb5a6;
}

.footer-bottom a {
    font-size: 12.5px;
    color: #9fb5a6;
}

.footer-bottom a:hover {
    color: var(--gold);
}

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

.page-hero {
    background: var(--green);
    color: #fff;
    padding: 30px 0 28px;
    border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
    color: #fff;
    margin: 8px 0 0;
    font-size: 28px;
    max-width: 860px;
}

.page-hero p {
    margin: 6px 0 0;
    color: #cfe0d5;
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 12.3px;
    color: #b9d0c1;
}

.breadcrumb a {
    color: #e2eee6;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.page-figure {
    margin: 0 0 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.page-figure img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

.page-profile {
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 26px;
}

.page-profile img {
    width: 150px;
    height: 170px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.page-profile h2 {
    margin-bottom: 6px;
}

.page-profile p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.page-content,
.article-body {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px;
    font-size: 15px;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 21px;
    margin: 1.5em 0 .6em;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.article-body h3 {
    font-size: 17.5px;
    margin: 1.4em 0 .5em;
}

.article-body p {
    margin-bottom: 1em;
}

.article-body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body img {
    border-radius: 2px;
    margin: 14px 0;
}

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

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

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

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

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

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

.article-body tr:nth-child(even) td {
    background: #fafaf7;
}

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

.article-body .wp-caption,
.article-body .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.article-body .alignleft {
    float: left;
    margin: 4px 18px 12px 0;
}

.article-body .alignright {
    float: right;
    margin: 4px 0 12px 18px;
}

.article-body::after {
    content: "";
    display: table;
    clear: both;
}

.is-poetry {
    font-family: var(--font-head);
    white-space: pre-line;
    line-height: 1.95;
    font-size: 16px;
    color: #33413a;
}

/* Daftar artikel */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 26px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.post-card:hover {
    border-color: var(--line-dark);
    box-shadow: var(--shadow);
}

.post-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--green-soft);
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.03);
}

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

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11.8px;
    color: var(--muted);
    margin-bottom: 6px;
}

.post-card-meta .badge {
    margin-bottom: 0;
}

.post-card-body h3 {
    font-size: 16px;
    margin: 0 0 6px;
    line-height: 1.35;
}

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

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

.post-card-body p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

/* Artikel tunggal */

.article-head {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 26px 0 24px;
}

.article-head .badge {
    margin-bottom: 10px;
}

.article-head h1 {
    font-size: 30px;
    max-width: 900px;
    margin: 0 0 12px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12.8px;
    color: var(--muted);
}

.article-meta time,
.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta svg {
    color: var(--gold-dark);
}

.article-image {
    margin: 0 0 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.article-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0 30px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.article-share a {
    display: inline-block;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 5px 12px;
    font-size: 12.5px;
    color: var(--ink);
}

.article-share a:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.related {
    margin-top: 8px;
}

/* ---------------------------------------------------------------
   Galeri, video, agenda, guru
---------------------------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.gallery-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--green-soft);
    border: 1px solid var(--line);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 10px 7px;
    background: linear-gradient(to top, rgba(6, 26, 17, .82), transparent);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
}

.video-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.video-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px 16px;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f2a1e;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 12px;
}

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

.video-item h2 {
    font-size: 17px;
    margin-bottom: 4px;
}

.video-item p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.agenda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.agenda-row {
    display: flex;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 14px;
}

.agenda-row-body h3 {
    font-size: 17px;
    margin: 2px 0 6px;
}

.agenda-row-body p {
    margin-bottom: 4px;
    font-size: 13.5px;
    color: var(--muted);
}

.agenda-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 12.5px !important;
    color: #6d7b72 !important;
}

.agenda-meta svg {
    color: var(--gold-dark);
}

.agenda-sep {
    color: #b3bdb6;
}

.agenda-past {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}

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

.simple-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
}

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

.simple-list time,
.simple-list li > span:first-child {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 12.3px;
    min-width: 76px;
}

.simple-list a {
    color: var(--ink);
    font-weight: 600;
}

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

.simple-list li > span:last-child {
    color: var(--muted);
    font-weight: 400;
}

.search-page-form {
    display: flex;
    gap: 8px;
    margin-bottom: 26px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 10px 13px;
    font-size: 14px;
}

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

.search-page .section-head:first-of-type {
    margin-top: 6px;
}

/* ---------------------------------------------------------------
   Pagination & empty state
---------------------------------------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-size: 13px;
}

a.page-link:hover {
    border-color: var(--green);
    color: var(--green);
}

.page-link.is-current {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 600;
}

.page-link.is-disabled {
    color: #aab4ac;
    background: #f2f3ef;
}

.empty-state {
    color: var(--muted);
    font-size: 13.8px;
    background: var(--white);
    border: 1px dashed var(--line-dark);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin: 0 0 14px;
}

.empty-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 34px 20px;
    color: #7e8c83;
}

.empty-state-box svg {
    color: #a9b6ac;
}

.empty-state-box p {
    margin: 0;
}

/* ---------------------------------------------------------------
   Lightbox
---------------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 20, 14, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green-dark);
}

body.lightbox-open {
    overflow: hidden;
}

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

@media (max-width: 1080px) {
    .layout-main {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 26px;
    }

    .header-search input {
        width: 170px;
    }

    .nav-link {
        padding: 13px 12px;
        font-size: 12.5px;
    }

    .teacher-grid-full {
        grid-template-columns: repeat(4, 1fr);
    }

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

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .header-inner {
        min-height: 78px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand img {
        width: 52px;
        height: 50px;
    }

    .header-actions {
        width: 100%;
        order: 3;
        justify-content: space-between;
    }

    .header-search {
        flex: 1;
    }

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

    .main-nav {
        display: none;
    }

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

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

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

    .nav-link {
        width: 100%;
        padding: 13px 16px;
        justify-content: space-between;
    }

    .has-dropdown > .nav-link svg {
        display: none;
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 52px;
        height: 46px;
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, .12);
        background: transparent;
        color: #dce9e0;
        cursor: pointer;
    }

    .submenu-toggle svg {
        transition: transform .2s ease;
    }

    .has-dropdown.is-open .submenu-toggle svg {
        transform: rotate(180deg);
    }

    .dropdown {
        position: static;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, .08);
        background: var(--green-dark);
        box-shadow: none;
        padding: 4px 0;
        min-width: 0;
    }

    .has-dropdown:hover > .dropdown {
        display: none;
    }

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

    .dropdown a {
        color: #d5e4da;
        padding: 10px 26px;
    }

    .dropdown a:hover {
        background: rgba(255, 255, 255, .08);
        color: #fff;
    }

    .layout-main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

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

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

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

    .video-list {
        grid-template-columns: 1fr;
    }

    .agenda-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-image-link img {
        height: 330px;
    }

    .hero-caption h2 {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .section-gap {
        padding: 22px 15px 34px;
    }

    .topbar-hours {
        display: none;
    }

    .topbar-contact {
        gap: 12px;
        font-size: 12px;
    }

    .site-header .header-inner {
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 10px;
        min-height: 0;
    }

    .brand {
        gap: 9px;
    }

    .brand img {
        width: 44px;
        height: 42px;
    }

    .brand-name {
        font-size: 15.5px;
    }

    .brand-tagline {
        font-size: 10px;
        letter-spacing: .2px;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding: 14px 0;
    }

    .hero-image-link img {
        height: 230px;
    }

    .hero-caption {
        padding: 18px 16px 16px;
    }

    .hero-caption h2 {
        font-size: 17px;
    }

    .hero-caption p {
        display: none;
    }

    .hero-arrow {
        width: 34px;
        height: 44px;
        font-size: 20px;
    }

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

    .facts-list li:nth-child(3) {
        border-left: 0;
    }

    .facts-list li {
        border-top: 1px solid var(--line);
    }

    .facts-list li:nth-child(-n+2) {
        border-top: 0;
    }

    .facts-list strong {
        font-size: 21px;
    }

    .ticker-text {
        animation-duration: 20s;
    }

    .page-hero {
        padding: 22px 0 20px;
    }

    .page-hero h1 {
        font-size: 22px;
    }

    .section-head h2 {
        font-size: 18px;
    }

    .news-item {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .news-item-thumb {
        width: 84px;
        height: 62px;
    }

    .welcome {
        grid-template-columns: 1fr;
        padding: 20px;
        text-align: left;
    }

    .welcome-photo {
        width: 150px;
        height: 170px;
        aspect-ratio: auto;
    }

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

    .gallery-mini {
        grid-template-columns: repeat(3, 1fr);
    }

    .teacher-grid,
    .teacher-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .teacher-photo {
        width: 76px;
        height: 76px;
    }

    .page-content,
    .article-body {
        padding: 20px 18px;
    }

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

    .article-image img {
        max-height: 300px;
    }

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

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

    .page-profile {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .page-profile img {
        width: 120px;
        height: 140px;
    }

    .agenda-row {
        padding: 15px;
    }

    .date-box-lg {
        width: 56px;
        height: 56px;
    }

    .date-box-lg span {
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding-top: 30px;
        padding-bottom: 22px;
        gap: 22px;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
        padding: 12px 0;
    }

    .search-page-form {
        flex-wrap: wrap;
    }

    .search-page-form button {
        width: 100%;
    }

    .lightbox {
        padding: 12px;
    }
}

/* ---------------------------------------------------------------
   Komponen di dalam isi halaman
---------------------------------------------------------------- */

.article-body .lead {
    font-size: 16.5px;
    line-height: 1.7;
    color: #3d4b43;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.article-body .btn,
.article-body .btn:hover {
    text-decoration: none;
    color: #fff;
}

.article-body .btn-outline {
    background: var(--white);
    color: var(--green);
    border-color: var(--green);
}

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

.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0;
}

.facility-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 2px;
    padding: 14px 16px;
}

.facility-card h3 {
    margin: 0 0 5px;
    font-size: 15.5px;
    padding: 0;
    border: 0;
}

.facility-card p {
    margin: 0;
    font-size: 13.4px;
    color: var(--muted);
    line-height: 1.55;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.contact-block {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: 2px;
    padding: 12px 14px;
}

.contact-block h3 {
    margin: 0 0 5px;
    font-size: 14px;
    padding: 0;
    border: 0;
}

.contact-block p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.map-frame {
    display: block;
    width: 100%;
    height: 420px;
    border: 1px solid var(--line);
    border-radius: 2px;
    margin: 16px 0 4px;
}

.org-chart {
    margin: 20px 0;
}

.org-level {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 22px;
}

.org-level::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 22px;
    background: var(--line-dark);
}

.org-level:first-child {
    padding-top: 0;
}

.org-level:first-child::before {
    display: none;
}

.org-box {
    min-width: 158px;
    background: var(--white);
    border: 1px solid var(--line-dark);
    border-top: 3px solid var(--green);
    border-radius: 2px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    color: var(--ink);
}

.org-box strong {
    color: var(--green-dark);
}

.org-box.org-top {
    background: var(--green-soft);
    border-top-color: var(--gold);
    font-weight: 600;
}

.link-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0;
}

.link-card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 2px;
    padding: 16px 18px;
}

.link-card:hover {
    background: var(--white);
    border-left-color: var(--gold);
}

.link-card h3 {
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    font-size: 16px;
    color: var(--green-dark);
}

.link-card p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 760px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .link-cards {
        grid-template-columns: 1fr;
    }

    .map-frame {
        height: 300px;
    }

    .org-box {
        min-width: 130px;
        font-size: 12.3px;
    }
}

/* Halaman galat */

.error-page {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-top: 4px solid var(--gold);
    padding: 40px 36px;
    max-width: 760px;
}

.error-code {
    display: block;
    font-family: var(--font-head);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    color: var(--green);
    margin-bottom: 8px;
}

.error-page h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.error-page p {
    color: var(--muted);
    font-size: 14px;
    max-width: 560px;
}

.error-page .btn {
    text-decoration: none;
}

.error-page .btn-outline {
    background: var(--white);
    color: var(--green);
}

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