/* =============================================================
   MODERN PORTAL — header/navigasi memakai utilitas Tailwind CDN,
   stylesheet lokal untuk breadcrumb, footer, dan halaman baca artikel.
   ============================================================= */
:root {
  --modern-page-bg: #f4f6f8;
  --modern-card-bg: #ffffff;
  --modern-soft: #f8fafc;
  --modern-text: #1e293b;
  --modern-body: #334155;
  --modern-muted: #64748b;
  --modern-border: #e2e8f0;
  --modern-emerald: #065f46;
  --modern-emerald-deep: #043927;
  --modern-emerald-soft: #ecfdf5;
  --modern-gold: #d97706;
  --modern-gold-bright: #eab308;
  --modern-article-font: 1.0625rem;
}

html.dark {
  --modern-page-bg: #0b1120;
  --modern-card-bg: #111827;
  --modern-soft: #1e293b;
  --modern-text: #f8fafc;
  --modern-body: #cbd5e1;
  --modern-muted: #94a3b8;
  --modern-border: #1f2937;
  --modern-emerald: #10b981;
  --modern-emerald-deep: #059669;
  --modern-emerald-soft: rgba(6, 95, 70, 0.22);
  --modern-gold: #f59e0b;
  --modern-gold-bright: #facc15;
}

body.modern-portal {
  background: var(--modern-page-bg) !important;
  color: var(--modern-text);
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}

.modern-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;
}

/* Layout SPEC lama memakai header fixed + padding-top. Header baru sticky. */
body.modern-portal .site-main {
  padding-top: 0 !important;
  min-height: 45vh;
}

body.modern-portal section[id] {
  scroll-margin-top: 96px;
}

.modern-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

/* -------------------------------------------------------------
   1. TOP UTILITY BAR
   ------------------------------------------------------------- */
.top-bar,
.modern-topbar {
  width: 100%;
  background-color: #022c22;
  color: #ecfdf5;
  border-bottom: 1px solid #064e3b;
  border-radius: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 12px;
}

.top-bar-inner,
.top-bar-inner.modern-container {
  width: 100%;
  max-width: 1240px;
  min-height: 40px;
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

/* Grup kontak kiri (Telepon & Email) */
.contact-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d1fae5;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.contact-info:hover {
  color: #fbbf24;
  text-decoration: none;
}

.icon-contact {
  width: 14px;
  height: 14px;
  stroke: #fbbf24;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.email-info {
  padding-left: 16px;
  border-left: 1px solid rgba(16, 185, 129, 0.35);
}

/* Bagian kanan: akreditasi, bahasa, mode gelap */
.header-actions,
.modern-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.accreditation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.accreditation-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  animation: mhTopPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes mhTopPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.action-btn {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: #064e3b;
  color: #ecfdf5;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.action-btn:hover {
  background: #047857;
  border-color: rgba(251, 191, 36, 0.55);
}

.lang-btn { padding: 0 10px; }

.icon-globe {
  width: 14px;
  height: 14px;
  stroke: #6ee7b7;
  fill: none;
  stroke-width: 1.9;
  flex-shrink: 0;
}

.lang-dropdown { position: relative; }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 138px;
  padding: 5px;
  display: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  z-index: 120;
}

.lang-menu.show { display: block; }

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.active {
  background: #ecfdf5;
  color: #065f46;
}

.theme-btn {
  width: 28px;
  padding: 0;
}

.icon-moon {
  width: 14px;
  height: 14px;
  stroke: #fbbf24;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.modern-theme-btn__label,
.dm-text {
  display: none !important;
}

/* -------------------------------------------------------------
   2. HEADER / NAVBAR
   ------------------------------------------------------------- */
.modern-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

html.dark .modern-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(51, 65, 85, 0.8);
}

.modern-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.modern-header__inner.modern-container {
  max-width: 1240px;
  padding-left: 16px;
  padding-right: 16px;
}

.modern-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.modern-brand__emblem {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #047857 0%, #022c22 100%);
  box-shadow: 0 4px 10px rgba(6, 78, 59, 0.25);
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.modern-brand:hover .modern-brand__emblem {
  transform: scale(1.05);
}

.modern-brand__emblem-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #064e3b;
  border: 1px solid rgba(251, 191, 36, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modern-brand__emblem svg {
  width: 24px;
  height: 24px;
  color: #fbbf24;
}

.modern-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.modern-brand__title {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #022c22;
  white-space: nowrap;
}

html.dark .modern-brand__title { color: #d1fae5; }

.modern-brand__tagline {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.modern-nav__item { position: relative; }

.modern-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modern-nav__link:hover,
.modern-nav__item.is-active > .modern-nav__link,
.modern-nav > .modern-nav__link.is-active {
  color: #065f46;
  background: #ecfdf5;
}

html.dark .modern-nav__link { color: #cbd5e1; }

html.dark .modern-nav__link:hover,
html.dark .modern-nav__item.is-active > .modern-nav__link,
html.dark .modern-nav > .modern-nav__link.is-active {
  color: #6ee7b7;
  background: rgba(6, 95, 70, 0.28);
}

.modern-caret {
  width: 13px;
  height: 13px;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.modern-nav__item:hover .modern-caret,
.modern-nav__item:focus-within .modern-caret {
  transform: rotate(180deg);
  color: #065f46;
}

.modern-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

.modern-nav__item:hover > .modern-dropdown,
.modern-nav__item:focus-within > .modern-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modern-dropdown__inner {
  min-width: 208px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

html.dark .modern-dropdown__inner {
  background: #111827;
  border-color: #1f2937;
}

.modern-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

html.dark .modern-dropdown a { color: #cbd5e1; }

.modern-dropdown a:hover {
  background: #ecfdf5;
  color: #065f46;
}

html.dark .modern-dropdown a:hover {
  background: rgba(6, 95, 70, 0.28);
  color: #6ee7b7;
}

.modern-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #f59e0b;
  color: #022c22;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modern-nav__cta:hover {
  background: #d97706;
  color: #022c22;
  transform: translateY(-1px);
}

.modern-nav__ping {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
  flex-shrink: 0;
}

.modern-nav__ping span:first-child {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #065f46;
  opacity: 0.75;
  animation: mhNavPing 1.6s ease-out infinite;
}

.modern-nav__ping span:last-child {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #022c22;
}

@keyframes mhNavPing {
  0% { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

.modern-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
}

.modern-menu-btn svg {
  width: 20px;
  height: 20px;
}

.modern-drawer {
  display: none;
  padding: 12px 16px 18px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

html.dark .modern-drawer {
  background: #111827;
  border-top-color: #1f2937;
}

.modern-drawer a,
.modern-drawer button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

html.dark .modern-drawer a,
html.dark .modern-drawer button { color: #cbd5e1; }

.modern-drawer a.modern-drawer__active {
  background: #ecfdf5;
  color: #065f46;
}

.modern-drawer a:hover,
.modern-drawer button:hover {
  background: #f8fafc;
  color: #065f46;
}

html.dark .modern-drawer a:hover,
html.dark .modern-drawer button:hover {
  background: rgba(6, 95, 70, 0.28);
  color: #6ee7b7;
}

.modern-drawer button svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.modern-accordion-panel {
  margin: 2px 0 6px 12px;
  padding-left: 12px;
  border-left: 2px solid #a7f3d0;
}

.modern-accordion-panel a {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.modern-drawer__cta {
  margin-top: 6px;
  background: #f59e0b !important;
  color: #022c22 !important;
  justify-content: center !important;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.28);
}

.modern-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  overflow: hidden;
}

.modern-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--modern-gold), var(--modern-gold-bright), #fbbf24);
  transition: width 0.1s ease-out;
}

/* -------------------------------------------------------------
   3. BREADCRUMB
   ------------------------------------------------------------- */
.breadcrumb-nav {
  display: block;
  padding: 10px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  color: #64748b;
}

.breadcrumb-nav__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  /* Mencegah turun ke baris kedua */
  white-space: nowrap;
  overflow: hidden;
}

html.dark .breadcrumb-nav {
  background-color: #0f172a;
  border-bottom-color: #1f2937;
}

.bc-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0a7a3e;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0; /* Mencegah teks menu ikut terpotong */
}

.bc-item:hover { text-decoration: underline; }

.bc-sep {
  color: #f59e0b;
  font-weight: 700;
  flex-shrink: 0;
}

.bc-current {
  min-width: 0;
  color: #374151;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.dark .bc-current { color: #f8fafc; }

/* Optimasi khusus layar HP (< 576px) */
@media (max-width: 576px) {
  .breadcrumb-nav {
    padding: 8px 0;
    font-size: 12.5px;
  }

  .breadcrumb-nav__inner {
    padding: 0 1.5rem;
  }

  /* Sembunyikan judul panjang di breadcrumb HP karena H1 sudah ada tepat di bawahnya */
  .bc-current,
  .bc-current-sep {
    display: none;
  }
}

/* -------------------------------------------------------------
   4. HALAMAN BACA ARTIKEL
   ------------------------------------------------------------- */
.modern-reader {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.modern-reader__main {
  order: 2;
  min-width: 0;
}

.modern-reader__side {
  order: 1;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modern-card {
  padding: 20px;
  background: var(--modern-card-bg);
  border: 1px solid var(--modern-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

.modern-card__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--modern-border);
}

.modern-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modern-card__accent {
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--modern-emerald), var(--modern-gold-bright));
}

.modern-card__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--modern-text);
}

/* Header kartu sidebar: judul dan badge tetap bold sesuai permintaan. */
.modern-card__head {
  font-weight: 400;
}

.modern-reader__side .modern-card__head .modern-card__title {
  font-weight: 800;
}

.modern-reader__side .modern-card__head .modern-card__badge {
  font-weight: 700;
}

/* Seluruh isi teks sidebar reader juga tidak memakai bold. */
.modern-reader__side .modern-card__title,
.modern-reader__side .modern-card__badge,
.modern-reader__side .modern-side-item__label,
.modern-reader__side .modern-side-item__title,
.modern-reader__side .modern-side-item__meta,
.modern-reader__side .modern-side-item__fallback,
.modern-reader__side .modern-rank,
.modern-reader__side .modern-share__btn {
  font-weight: 400;
}

/* Judul di sidebar dipotong beberapa baris; label kategori tetap di atasnya. */
.modern-reader__side .modern-side-item__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.modern-card__badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--modern-emerald-soft);
  color: var(--modern-emerald);
  border: 1px solid rgba(5, 150, 105, .25);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.modern-card__underline {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  border-radius: 2px;
  background: var(--modern-gold);
}

.modern-side-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--modern-border);
}

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

.modern-side-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.modern-side-item__thumb,
.modern-side-item__fallback {
  width: 80px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--modern-border);
  object-fit: cover;
  flex-shrink: 0;
}

.modern-side-item__fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--modern-emerald), var(--modern-emerald-deep));
  color: #facc15;
  font-size: 20px;
  font-weight: 800;
}

.modern-side-item__body {
  min-width: 0;
  flex: 1;
}

.modern-side-item__label {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--modern-emerald-soft);
  color: var(--modern-emerald);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.modern-side-item__title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--modern-text);
}

.modern-side-item__title:hover {
  color: var(--modern-emerald);
}

.modern-side-item__meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--modern-muted);
}

.modern-rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--modern-emerald), #0b532c);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, .5);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.modern-rank--soft {
  background: var(--modern-emerald-soft);
  color: var(--modern-emerald);
  border-color: rgba(5, 150, 105, .2);
}

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

.modern-side-item--rank {
  gap: 10px;
}

.modern-side-item--rank .modern-rank {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 11px;
}

.modern-side-item--rank .modern-side-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}

.modern-side-item--rank .modern-side-item__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.modern-article {
  padding: 24px;
  background: var(--modern-card-bg);
  border: 1px solid var(--modern-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

.modern-article__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modern-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  min-width: 0;
  font-size: 13px;
  color: var(--modern-muted);
}

.modern-meta svg {
  width: 14px;
  height: 14px;
  color: var(--modern-gold);
}

.modern-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--modern-emerald);
  color: #facc15;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.modern-label__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #facc15;
}

.modern-font-controls {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: var(--modern-soft);
  border: 1px solid var(--modern-border);
}

.modern-font-controls__label {
  padding: 0 6px;
  font-size: 11px;
  color: var(--modern-muted);
}

.modern-font-controls button {
  border: 0;
  border-radius: 8px;
  padding: 5px 10px;
  background: transparent;
  color: var(--modern-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.modern-font-controls button:hover:not(:disabled) {
  background: var(--modern-emerald-soft);
}

.modern-font-controls button.is-active {
  background: var(--modern-emerald);
  color: #fff;
}

.modern-font-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modern-article__title {
  margin: 0 0 20px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--modern-text);
}

.modern-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--modern-soft);
  border: 1px solid var(--modern-border);
}

.modern-share__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--modern-text);
}

.modern-share__label svg {
  width: 16px;
  height: 16px;
  color: var(--modern-emerald);
}

.modern-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modern-share__btn {
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.modern-share__btn--wa { background: #16a34a; }
.modern-share__btn--fb { background: #1d4ed8; }
.modern-share__btn--x { background: #0f172a; }
.modern-share__btn--tg { background: #0284c7; }
.modern-share__btn--copy { background: var(--modern-gold-bright); color: #0f172a; }

.modern-share--bottom {
  margin-top: 1.75rem;
  border-radius: 16px;
}

.modern-figure {
  margin: 0 0 24px;
}

.modern-figure img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--modern-border);
}

.modern-figure figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: var(--modern-muted);
}

.modern-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
  border-radius: 16px;
  border: 1px solid rgba(5, 150, 105, .25);
  background: linear-gradient(90deg, rgba(236, 253, 245, .9), var(--modern-soft), rgba(255, 251, 235, .7));
}

html.dark .modern-author {
  background: linear-gradient(90deg, rgba(6, 95, 70, .25), var(--modern-soft), rgba(120, 53, 15, .2));
}

.modern-author__avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--modern-emerald), var(--modern-emerald-deep));
  border: 2px solid var(--modern-gold-bright);
  color: #fef3c7;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.modern-author__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--modern-emerald);
}

html.dark .modern-author__name {
  color: #34d399;
}

.modern-author__role {
  margin-top: 2px;
  font-size: 12px;
  color: var(--modern-muted);
}

.modern-prose {
  font-size: var(--modern-article-font);
  line-height: 1.8;
  color: var(--modern-body);
}

.modern-prose p,
.modern-prose li {
  margin: 0 0 1.25em;
}

.modern-prose p {
  text-align: justify;
}

/* -------------------------------------------------------------
   Model halaman baca: judul hijau, metadata lengkap, gambar utama,
   dan paragraf rata kiri seperti contoh yang diberikan pengguna.
   ------------------------------------------------------------- */
.article-container {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.article-title {
  color: #0a7a3e;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

html.dark .article-title {
  color: #34d399;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem 0.9rem;
  min-width: 0;
  font-size: 0.8125rem;
  color: #6b7280;
  padding-bottom: 0.9rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

html.dark .article-meta {
  color: var(--modern-muted);
  border-bottom-color: var(--modern-border);
}

.article-meta-list {
  gap: 0.3rem 0.45rem;
  min-width: 0;
  font-size: inherit;
  color: inherit;
}

.meta-dot {
  color: #9ca3af;
  font-weight: 700;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-item svg {
  width: 16px;
  height: 16px;
  stroke: #6b7280;
  flex-shrink: 0;
}

html.dark .meta-item svg {
  stroke: var(--modern-muted);
}

.meta-author {
  color: #374151;
  font-weight: 500;
}

html.dark .meta-author {
  color: var(--modern-text);
}

.meta-author svg {
  stroke: #4b5563;
}

html.dark .meta-author svg {
  stroke: var(--modern-muted);
}

.category-badge {
  display: inline-block;
  background-color: #047857;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  line-height: 1.2;
  text-decoration: none;
}

.category-badge:hover {
  background-color: #0a7a3e;
  color: #ffffff;
}

.modern-article__badge {
  margin-bottom: 0.75rem;
}

.featured-image {
  margin-bottom: 1.75rem;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f3f4f6;
}

.featured-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 490px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.featured-image figcaption {
  margin-top: 10px;
}

.article-content p {
  font-size: 1.03rem;
  color: #262626;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 1.35rem;
}

html.dark .article-content p {
  color: var(--modern-body);
}

/* Kotak "Baca Juga"/"Baca Ini" otomatis maupun sisipan manual dari editor. */
.baca-juga-inline,
.baca-juga-box {
  background-color: #ededed;
  border-left: 4px solid #117a37;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 15.5px;
  line-height: 1.55;
  border-radius: 0 6px 6px 0;
}

.baca-juga-inline .baca-juga-label,
.baca-juga-box .baca-juga-label {
  color: #eab308;
  font-weight: 800;
  margin-right: 6px;
}

.baca-juga-inline .baca-juga-link,
.baca-juga-box .baca-juga-link {
  color: #117a37;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.baca-juga-inline .baca-juga-link:hover,
.baca-juga-box .baca-juga-link:hover {
  color: #0b532c;
}

.modern-prose h2,
.modern-prose h3,
.modern-prose h4 {
  color: var(--modern-text);
  font-weight: 800;
  line-height: 1.3;
}

.modern-prose h2 {
  margin: 1.8em 0 .6em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--modern-border);
  font-size: 22px;
}

.modern-prose h3 {
  margin: 1.5em 0 .5em;
  font-size: 19px;
}

.modern-prose h4 {
  margin: 1.3em 0 .5em;
  font-size: 17px;
}

.modern-prose ul,
.modern-prose ol {
  padding-left: 1.4em;
  margin: 0 0 1.25em;
}

/* Tailwind Preflight menghapus marker daftar; kembalikan untuk isi artikel. */
.modern-prose ul {
  list-style: disc outside;
}

.modern-prose ol {
  list-style: decimal outside;
}

.modern-prose ul ul {
  list-style: circle outside;
}

.modern-prose ul ul ul {
  list-style: square outside;
}

.modern-prose ol ol {
  list-style: lower-alpha outside;
}

.modern-prose ol ol ol {
  list-style: lower-roman outside;
}

.modern-prose li {
  display: list-item;
}

.modern-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25em 0;
  border-radius: 12px;
}

.modern-prose blockquote {
  margin: 1.5em 0;
  padding: 18px 20px;
  border-left: 4px solid var(--modern-gold);
  border-radius: 12px;
  background: var(--modern-emerald-soft);
}

.modern-prose blockquote p {
  margin: 0;
  font-style: italic;
}

.modern-prose a {
  color: var(--modern-emerald);
  text-decoration: underline;
}

.modern-prose table {
  width: 100%;
  margin: 1.25em 0;
  border-collapse: collapse;
  font-size: 15px;
}

.modern-prose th,
.modern-prose td {
  padding: 8px 10px;
  border: 1px solid var(--modern-border);
}

.modern-article__note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--modern-border);
  font-size: 13px;
  font-style: italic;
  color: var(--modern-muted);
}

.modern-article-banner {
  margin: 25px 0;
}

.modern-article-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.modern-postnav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--modern-border);
}

.modern-postnav a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--modern-border);
  background: var(--modern-soft);
  text-decoration: none;
  transition: border-color .2s ease;
}

.modern-postnav a:hover {
  border-color: var(--modern-emerald);
}

.modern-postnav span {
  display: block;
}

.modern-postnav__label {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--modern-gold);
}

.modern-postnav__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--modern-text);
}

.modern-postnav__right {
  text-align: right;
}

/* -------------------------------------------------------------
   5. TOAST
   ------------------------------------------------------------- */
.modern-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--modern-emerald-deep);
  color: #fff;
  border: 1px solid rgba(234, 179, 8, .5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.modern-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modern-toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--modern-gold-bright);
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   6. FOOTER HIJAU GELAP
   ------------------------------------------------------------- */
.modern-footer {
  background: #043927;
  color: rgb(209 250 229 / 0.9);
  border-top: 4px solid #fcd34d;
}

.modern-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 16px;
}

.modern-footer__map {
  margin-top: 20px;
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(252, 211, 77, .35);
  background: #0b4d35;
}

.modern-footer__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.modern-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}

.modern-footer__logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

/* Sama seperti header: logo horizontal hanya menampilkan lambangnya. */
.modern-footer__logo--wide {
  width: 48px;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  border-radius: 8px;
}

.modern-footer__brand > span {
  display: flex;
  flex-direction: column;
}

.modern-footer__name {
  color: rgb(209 250 229 / 0.95);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.modern-footer__tagline {
  color: #fcd34d;
  font-size: 11px;
  font-weight: 600;
}

.modern-footer__desc {
  margin-bottom: 20px;
  color: rgb(209 250 229 / 0.9);
  font-size: 13px;
  line-height: 1.8;
}

.modern-footer__title {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(252, 211, 77, .35);
  color: #fcd34d;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.modern-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.modern-footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.modern-footer__list svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #fcd34d;
  flex-shrink: 0;
}

.modern-footer__list a {
  color: inherit;
  text-decoration: none;
}

.modern-footer__list a:hover {
  color: #fcd34d;
  text-decoration: underline;
}

.modern-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modern-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(209, 250, 229, .1);
  border: 1px solid rgba(252, 211, 77, .55);
  color: rgb(209 250 229 / 0.9);
  transition: background-color .2s ease, color .2s ease;
}

.modern-social a:hover {
  background: #fcd34d;
  color: #043927;
}

.modern-social svg {
  width: 16px;
  height: 16px;
}

.modern-footer__bottom {
  background: rgba(4, 57, 39, .92);
  border-top: 1px solid rgba(252, 211, 77, .3);
}

.modern-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 12px;
  text-align: center;
}

/* -------------------------------------------------------------
   7. RESPONSIF
   ------------------------------------------------------------- */
@media (min-width: 640px) {
  .modern-article { padding: 32px; }
}

@media (min-width: 1024px) {
  .modern-article { padding: 40px; }
  .modern-postnav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  .modern-nav { display: none; }
  .modern-menu-btn { display: inline-flex; }
  .modern-drawer:not(.hidden) { display: block; }
  .modern-reader { grid-template-columns: 1fr; gap: 24px; }
  .modern-reader__main { order: 1; }
  .modern-reader__side { order: 2; position: static; }
  .modern-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Tampilan Tablet & Mobile (lebar layar <= 768px): sembunyikan email */
@media (max-width: 768px) {
  .top-bar-inner.modern-container { padding: 8px 16px; }
  .email-info { display: none; }
  .contact-info { font-size: 12px; }
  .icon-contact { width: 14px; height: 14px; }
  .accreditation-badge { font-size: 10px; padding: 3px 9px; }
  .action-btn { height: 26px; }
  .lang-btn { font-size: 11px; }
  .theme-btn { width: 26px; }
}

@media (max-width: 767.98px) {
  .modern-container { padding: 0 14px; }
  .modern-header__inner.modern-container { min-height: 62px; padding-left: 14px; padding-right: 14px; }
  .modern-brand__emblem { width: 38px; height: 38px; }
  .modern-brand__emblem svg { width: 20px; height: 20px; }
  .modern-brand__title { font-size: 15px; }
  .modern-brand__tagline { font-size: 10px; max-width: 165px; }
  .modern-reader { padding: 20px 12px 40px; }
  .modern-article { padding: 18px; border-radius: 14px; }
  .modern-article__title { font-size: 24px; }
  .modern-card { padding: 16px; }
  .modern-share { padding: 12px; }
  .modern-share__label { width: 100%; }
  .modern-font-controls__label { display: none; }
  .modern-author { padding: 14px; gap: 12px; }
  .modern-author__avatar { width: 48px; height: 48px; }
  .modern-prose { font-size: 1rem; }
  .modern-footer__inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 14px 32px; }
  .modern-footer__map { margin-top: 16px; height: 200px; border-radius: 12px; }
  .modern-footer__logo { height: 42px; }
  .modern-footer__logo--wide { width: 42px; height: 42px; max-width: none; }
  .modern-footer__bottom-inner { justify-content: center; }
}

/* Tampilan Mobile / HP (lebar layar <= 480px) */
@media (max-width: 480px) {
  .top-bar-inner.modern-container { padding: 6px 14px; gap: 8px; }
  .contact-info { font-size: 12px; gap: 6px; }
  .icon-contact { width: 14px; height: 14px; }
  .header-actions { gap: 6px; }
  .accreditation-badge { font-size: 9.5px; padding: 3px 8px; }
  .action-btn { height: 26px; border-radius: 8px; }
  .lang-btn { padding: 0 8px; gap: 4px; font-size: 11px; }
  .icon-globe,
  .icon-moon { width: 13px; height: 13px; }
  .theme-btn { width: 26px; }
  .article-container { padding: 16px; }
  .article-title { font-size: 1.25rem; }
  .article-meta { gap: 0.45rem 0.6rem; font-size: 0.78rem; }
  .modern-font-controls button { padding: 4px 8px; }
  .modern-share--bottom { margin-top: 1.25rem; }
  .modern-share__btn { padding: 7px 10px; }
  .modern-toast { right: 14px; left: 14px; bottom: 14px; justify-content: center; }
}

/* Tampilan Mobile Sangat Kecil (lebar layar <= 350px) */
@media (max-width: 350px) {
  .contact-info { font-size: 11px; }
  .accreditation-badge { display: none; }
  .icon-globe { display: none; }
}

@media (max-width: 600px) {
  .article-container { margin-top: 1.5rem; }
  .article-meta { gap: 0.5rem 0.75rem; font-size: 0.82rem; }
  .article-content p { font-size: inherit; }
}

/* Animasi hero slider sesuai kode desain pengguna */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.dropdown-menu {
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.ken-burns-active {
  animation: kenBurns 7s ease-out forwards;
}

@keyframes slideTextUp {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-slide-text {
  animation: slideTextUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-text-delay-1 {
  opacity: 0;
  animation: slideTextUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.animate-slide-text-delay-2 {
  opacity: 0;
  animation: slideTextUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.24s forwards;
}

.animate-slide-text-delay-3 {
  opacity: 0;
  animation: slideTextUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.36s forwards;
}

/* layout-spec.css memakai .hidden { display:none !important; }. Kompensasi ini
   mempertahankan markup Tailwind persis pada header tanpa mengubah helper lama. */
@media (min-width: 768px) {
  #slideThumbnails.hidden.md\:flex { display: flex !important; }
}

@media (min-width: 1024px) {
  .hidden.lg\:flex { display: flex !important; }
  #mobileMenu { display: none !important; }
}

@media (min-width: 769px) {
  .hidden.md\:flex.email-info { display: flex !important; }
}

@media (max-width: 1023px) {
  #mobileMenu:not(.hidden) { display: block !important; }
}

/* ==========================================================================
   4. SAMBUTAN KEPALA MADRASAH — desain full-width, foto kiri / teks kanan.
   Semua selector diawali #sambutan agar menang atas aturan lama layout-spec.css.
   ========================================================================== */
#sambutan.sambutan-section {
  --primary-green: #0f5c33;
  --secondary-green: #167a44;
  --accent-gold: #f59e0b;
  --bg-light: #f4f7f5;
  --text-dark: #1e293b;
  --text-muted: #475569;

  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  border-top: 1px solid rgba(15, 92, 51, 0.08);
  border-bottom: 1px solid rgba(15, 92, 51, 0.08);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}

/* Dekorasi latar radial halus di sudut */
#sambutan.sambutan-section::before,
#sambutan.sambutan-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

#sambutan.sambutan-section::before {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(22, 122, 68, 0.07) 0%, transparent 70%);
}

#sambutan.sambutan-section::after {
  bottom: -140px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 70%);
}

/* Container konten proporsional di tengah layar */
#sambutan .sambutan-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
  align-items: center;
}

/* Kolom kiri: foto kepala madrasah */
#sambutan .kepsek-photo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#sambutan .photo-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #f1f5f9;
  background-color: #c8102e;
}

#sambutan .photo-frame img,
#sambutan .photo-frame svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

#sambutan .photo-frame:hover img,
#sambutan .photo-frame:hover svg {
  transform: scale(1.04);
}

/* Badge nama mengambang di bawah foto */
#sambutan .kepsek-badge {
  margin-top: -24px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 92, 51, 0.22);
  border: 3px solid #ffffff;
  position: relative;
  z-index: 2;
}

#sambutan .kepsek-badge h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffffff;
  line-height: 1.4;
}

#sambutan .kepsek-badge span {
  display: block;
  font-size: 0.78rem;
  color: #fbbf24;
  font-weight: 600;
  margin-top: 2px;
}

/* Kolom kanan: teks sambutan */
#sambutan .sambutan-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#sambutan .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 92, 51, 0.08);
  color: var(--primary-green);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

#sambutan .section-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
}

#sambutan .school-subtitle {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

#sambutan .school-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

#sambutan .quote-box {
  position: relative;
  padding-left: 22px;
  border-left: 4px solid var(--accent-gold);
  margin-bottom: 28px;
}

#sambutan .salam-text {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.08rem;
  margin-bottom: 10px;
}

#sambutan .body-text,
#sambutan .extra-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

#sambutan .extra-text p:last-child {
  margin-bottom: 0;
}

/* Teks tambahan yang dibuka/tutup */
#sambutan .extra-text {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.3s ease;
}

#sambutan .extra-text.show {
  max-height: 700px;
  opacity: 1;
  margin-top: 14px;
}

/* Tombol interaktif */
#sambutan .btn-selengkapnya {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 92, 51, 0.22);
  transition: all 0.3s ease;
}

#sambutan .btn-selengkapnya:hover {
  background: var(--secondary-green);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(15, 92, 51, 0.3);
}

#sambutan .btn-selengkapnya:active {
  transform: translateY(0);
}

#sambutan .btn-selengkapnya svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s ease;
}

#sambutan .btn-selengkapnya.active svg {
  transform: rotate(180deg);
}

/* Tablet & mobile (< 860px) */
@media (max-width: 860px) {
  #sambutan.sambutan-section {
    padding: 48px 20px;
  }

  #sambutan .sambutan-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  #sambutan .sambutan-content {
    align-items: center;
  }

  #sambutan .school-title {
    font-size: 1.65rem;
  }

  #sambutan .quote-box {
    text-align: left;
  }
}

/* -------------------------------------------------------------
   DROPDOWN NAVBAR DESKTOP
   Tidak memakai utility hover Tailwind agar tidak bergantung CDN
   dan tidak bentrok dengan class .dropdown-menu Bootstrap.
   ------------------------------------------------------------- */
.nav-dd {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dd__trigger {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.4rem 0.5rem 0.85rem;
  border-radius: 0.75rem;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-dd__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 2rem;
  margin-left: -0.15rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-dd__toggle svg {
  transition: transform 0.2s ease;
}

.nav-dd:hover .nav-dd__trigger,
.nav-dd.is-open .nav-dd__trigger {
  color: #047857;
  background-color: #f8fafc;
}

.nav-dd:hover .nav-dd__toggle,
.nav-dd.is-open .nav-dd__toggle {
  color: #047857;
}

.nav-dd:hover .nav-dd__toggle svg,
.nav-dd.is-open .nav-dd__toggle svg {
  transform: rotate(180deg);
}

.nav-dd__panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.35rem;
  width: 13rem;
  padding: 0.5rem 0;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-dd:hover .nav-dd__panel,
.nav-dd:focus-within .nav-dd__panel,
.nav-dd.is-open .nav-dd__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dd__link {
  display: block;
  padding: 0.62rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dd__link:hover {
  background-color: #ecfdf5;
  color: #047857;
}

/* Navigasi publik hasil tabel menus: izinkan turun baris di desktop sempit. */
.nav-public-desktop {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.25rem;
}

.nav-public-desktop > a {
  white-space: nowrap;
}

.nav-dd__trigger.is-active {
  color: #047857;
  background-color: #ecfdf5;
}

/* Tautan "Baca Lebih Lengkap" yang muncul setelah sambutan dibuka */
#sambutan .baca-lengkap {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--primary-green);
  color: var(--primary-green);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

#sambutan .baca-lengkap.show {
  display: inline-flex;
}

#sambutan .baca-lengkap:hover {
  background: var(--primary-green);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 92, 51, 0.25);
}

#sambutan .baca-lengkap svg {
  width: 16px;
  height: 16px;
}

/* -------------------------------------------------------------
   6b. FOOTER MADRASAH (4 kolom: profil, tautan, kontak, maps)
   ------------------------------------------------------------- */
.footer-madrasah,
.footer-madrasah * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-madrasah {
  background-color: #0b3b24;
  color: #ffffff;
  border-top: 4px solid #f4c430;
  padding: 50px 20px 25px;
}

.footer-madrasah .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr 1.1fr;
  gap: 35px;
  align-items: start;
}

.footer-madrasah .footer-col h3 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  padding-left: 12px;
  border-left: 3px solid #f4c430;
  line-height: 1.2;
}

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

.footer-madrasah .brand-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-madrasah .brand-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.footer-madrasah .brand-header span {
  font-size: 12px;
  color: #f4c430;
  display: block;
  margin-top: 2px;
}

.footer-madrasah .brand-desc {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-madrasah .brand-address {
  font-size: 13px;
  color: #b8c4be;
  line-height: 1.6;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-madrasah .brand-address .icon {
  color: #f4c430;
  flex-shrink: 0;
}

.footer-madrasah .social-links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-madrasah .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  transition: 0.2s;
}

.footer-madrasah .social-links a:hover {
  background-color: #f4c430;
  color: #0b3b24;
  border-color: #f4c430;
}

.footer-madrasah .social-links svg {
  width: 14px;
  height: 14px;
}

.footer-madrasah .footer-links {
  display: block;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-madrasah .footer-links li {
  margin-bottom: 2px;
  line-height: 1.2;
}

.footer-madrasah .footer-links a {
  color: #b8c4be;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-madrasah .footer-links a:hover {
  color: #f4c430;
}

.footer-madrasah .contact-list {
  list-style: none;
}

.footer-madrasah .contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 13px;
  color: #b8c4be;
}

.footer-madrasah .contact-list a {
  color: #b8c4be;
  text-decoration: none;
}

.footer-madrasah .contact-list a:hover {
  color: #f4c430;
}

.footer-madrasah .contact-list .icon {
  color: #f4c430;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.footer-madrasah .contact-list .icon svg {
  width: 16px;
  height: 16px;
}

.footer-madrasah .map-wrapper {
  width: 100%;
  height: 165px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background: #ffffff;
}

.footer-madrasah .map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-madrasah .footer-bottom {
  max-width: 1200px;
  margin: 45px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  font-size: 12px;
  color: #b8c4be;
  text-align: center;
}

.footer-madrasah .footer-bottom strong {
  color: #ffffff;
}

@media (max-width: 992px) {
  .footer-madrasah .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-madrasah .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Kartu info di atas embed Google Maps */
.footer-madrasah .map-wrapper,
.contact-page .contact-map {
  position: relative;
}

.map-info-card {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: calc(100% - 20px);
  max-width: 350px;
  padding: 9px 11px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  color: #111827;
  pointer-events: none;
}

.map-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
}

.map-info-icon svg {
  width: 17px;
  height: 17px;
}

.map-info-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.map-info-body strong {
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.map-info-body > span {
  color: #4b5563;
  font-size: 10.5px;
  line-height: 1.35;
}

.map-info-reviews {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: #6b7280;
  font-size: 10.5px;
}

.map-info-reviews svg {
  width: 11px;
  height: 11px;
  color: #f4c430;
}
