/*
 * Spesifikasi ukuran tata letak & tipografi halaman utama.
 * Dimuat setelah style.css dan Tailwind agar dimensi berikut yang berlaku.
 */

:root {
  /* Palet utama dipertahankan; aksen referensi ditambahkan untuk kemiripan. */
  --site-green: #059669;
  --site-green-dark: #065f46;
  --site-accent: #ff6d00;
  --ref-topbar: #246832;
  --ref-section: #258353;
  --ref-heading: #227453;
  --ref-deep: #156f31;
  --ref-yellow: #fff900;
  --ref-button: #138149;
  --ref-footer: #ddffbe;
  --site-container: 1200px;
  --site-header-total: 106px;
}

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

html {
  scroll-behavior: smooth;
}

.hidden {
  display: none !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 13px;
  color: #374151;
}

.site-container {
  width: 100%;
  max-width: var(--site-container);
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

section[id] {
  scroll-margin-top: calc(var(--site-header-total) + 12px);
}

/* ============================================================
   2. HEADER / NAVIGASI (fixed di atas halaman)
   ============================================================ */
.site-header-wrap {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
}

.site-main {
  padding-top: var(--site-header-total);
}

/* ---------- 2A. Top bar ---------- */
.site-topbar {
  width: 100%;
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--site-container);
  margin: 0 auto;
  padding: 8px 15px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
}

.site-topbar__contact {
  display: flex;
  flex: 0 0 60%;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
}

.site-topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-decoration: none;
}

.site-topbar__divider {
  opacity: 0.5;
}

.site-topbar__social {
  display: flex;
  flex: 0 0 25%;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

.site-topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 6px;
  line-height: 28px;
  font-size: 12px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.site-topbar__langs {
  display: flex;
  flex: 0 0 14.66%;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 15px;
}

.site-flag {
  flex: 0 0 20px;
  width: 20px !important;
  height: 14px !important;
  padding: 0;
  border-width: 1px;
  cursor: pointer;
}

/* ---------- 2B. Header desktop & tablet ---------- */
.site-header {
  width: 100%;
  border-bottom: 4px solid #2ECC40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--site-container);
  min-height: 60px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-logo {
  flex: 0 0 20%;
  min-width: 0;
  max-width: 200px;
  text-decoration: none;
}

.site-logo__img {
  width: 210px !important;
  height: auto !important;
  object-fit: contain;
}

.site-logo__tagline {
  font-size: 9px !important;
  font-weight: 600 !important;
}

.site-logo__name {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.site-nav {
  display: none;
  flex: 0 0 54.67%;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 10px;
  padding: 15px 0;
  border: 0;
  background: none;
  color: #1f2937;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  background: transparent;
}

.site-nav__link:hover,
.site-nav__link.is-active,
.site-nav__link:focus {
  color: #1e965f;
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after,
.site-nav__link:focus::after {
  background: var(--ref-yellow);
}

.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: none;
  min-width: 208px;
  margin-top: 8px;
  padding: 0;
  border: 1px solid #e8e8e8;
  border-top: 2px solid var(--ref-section);
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
}

.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
  display: block;
}

.site-nav__dropdown--lang {
  min-width: 132px;
}

.site-nav__sublink {
  display: block;
  padding: 12px 15px;
  color: #374151;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

a.site-nav__sublink:hover,
button.site-nav__sublink:hover {
  background: #1e8f5b;
  color: #fff;
}

.site-nav__lang {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.site-nav__dropdown .site-flag {
  flex-basis: 24px;
  width: 24px !important;
  height: 16px !important;
}

.site-search {
  position: relative;
  display: none;
  flex: 0 0 25%;
  align-items: stretch;
  min-width: 0;
}

.site-search__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  outline: none;
  background: #f9fafb;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
}

.site-search__input:focus {
  border-color: var(--site-green);
  background: #fff;
}

.site-search__button {
  flex: 0 0 40px;
  min-width: 40px;
  padding: 7px 10px;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: var(--site-green);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.site-search__results {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.site-mobile-controls {
  display: none;
}

/* ---------- 2C. Mobile ---------- */
.site-mobile-panel {
  display: none;
}

@media (min-width: 768px) {
  .site-nav,
  .site-search {
    display: flex;
  }

  .site-header__inner {
    min-height: 58px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-logo {
    flex-basis: 9%;
    max-width: 190px;
  }

  .site-nav {
    flex-basis: 68%;
  }

  .site-search {
    flex-basis: 23%;
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  :root {
    --site-header-total: 104px;
  }

  .site-logo {
    flex-basis: 20%;
    max-width: 190px;
  }

  .site-nav {
    flex-basis: 60%;
  }

  .site-nav__link {
    margin-right: 8px;
    margin-left: 8px;
  }

  .site-nav__sublink {
    padding: 9px 10px;
  }

  .site-search {
    flex-basis: 20%;
  }

  .site-topbar__contact {
    flex-basis: 60%;
  }

  .site-topbar__social {
    flex-basis: 25%;
  }

  .site-topbar__langs {
    flex-basis: 15%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --site-header-total: 96px;
  }

  .site-container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-topbar__inner {
    padding: 4px 20px;
    font-size: 13px;
  }

  .site-topbar__contact {
    flex: 1 1 70%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-topbar__social {
    flex: 1 1 30%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-topbar__langs {
    flex: 1 1 30%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-topbar__social a {
    font-size: 12px;
  }
}

@media (min-width: 1367px) {
  .site-logo {
    flex-basis: 20%;
    max-width: 200px;
  }

  .site-nav {
    flex-basis: 54.67%;
  }

  .site-search {
    flex-basis: 25%;
  }
}

@media (min-width: 1440px), (min-width: 1600px) {
  .site-container,
  .site-topbar__inner,
  .site-header__inner {
    max-width: var(--site-container);
  }
}

@media (max-width: 767px) {
  :root {
    --site-header-total: 80px;
  }

  .site-container {
    padding-right: 15px;
    padding-left: 15px;
  }

  .site-topbar__inner {
    padding: 4px 15px;
    font-size: 9px;
  }

  .site-topbar__contact {
    display: none !important;
  }

  .site-topbar__social {
    flex: 0 0 55%;
    justify-content: flex-start;
    padding-right: 6px;
    padding-left: 15px;
  }

  .site-topbar__social a {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    line-height: 16px;
    font-size: 14px;
  }

  .site-topbar__langs {
    flex: 0 0 45%;
    padding-right: 15px;
    padding-left: 6px;
  }

  .site-header__inner {
    min-height: 56px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .site-logo {
    flex: 0 0 50%;
    max-width: 211px;
  }

  .site-nav,
  .site-search {
    display: none !important;
  }

  .site-mobile-controls {
    display: flex;
    flex: 0 0 50%;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .site-mobile-search {
    display: flex;
    flex: 0 0 60%;
    align-items: center;
    justify-content: center;
    max-width: 67px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #f3f4f6;
    color: #374151;
    font-size: 20px;
    cursor: pointer;
  }

  .site-menu-toggle {
    display: flex;
    flex: 0 0 40%;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    max-width: 42px;
    height: 40px;
    padding: 0 6px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .site-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: #1f2937;
  }

  .site-mobile-panel:not(.hidden) {
    display: block;
    width: 100%;
    padding: 14px 15px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
  }

  .site-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    list-style: none;
  }

  .site-mobile-link::-webkit-details-marker {
    display: none;
  }

  .site-mobile-link.is-active {
    color: #1c9c6f;
  }

  .site-mobile-submenu {
    padding: 10px 0 10px 12px;
  }

  .site-mobile-submenu a,
  .site-mobile-submenu button {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: 0;
    background: none;
    color: #4b5563;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
  }

  .site-mobile-submenu--lang {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .site-mobile-submenu--lang a,
  .site-mobile-submenu--lang button {
    display: inline-block;
    width: auto;
    padding: 10px 0;
  }

  .site-mobile-search-form {
    display: flex;
    align-items: stretch;
  }

  .site-mobile-search-form__button {
    flex: 0 0 64px;
    min-width: 64px;
    padding: 7px 12px;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: var(--site-green);
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .site-mobile-search {
    max-width: 100px;
  }
}

@media (min-width: 768px) {
  .site-mobile-controls,
  .site-mobile-panel {
    display: none !important;
  }
}

/* ============================================================
   3. KONTEN UTAMA
   ============================================================ */

/* ---------- 3.1 Hero slider: 1200 x 500 (12:5) ---------- */
.hero-banner {
  height: auto !important;
  max-height: 500px;
  aspect-ratio: 12 / 5;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 13px;
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-nav:hover {
  background: var(--site-green);
}

.hero-nav--prev {
  left: 12px;
}

.hero-nav--next {
  right: 12px;
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
}

/* ---------- 3.2 Sambutan: 50/50, foto rasio 4:5 ---------- */
.sambutan-section {
  padding: 56px 0 64px;
  background: #fff;
}

.sambutan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.sambutan-text {
  order: 1;
}

.sambutan-photo {
  display: flex;
  order: 2;
  flex-direction: column;
  align-items: center;
}

.sambutan-photo__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74%;
  max-width: 768px;
  aspect-ratio: 768 / 953;
  background: transparent;
}

.sambutan-photo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sambutan-heading {
  margin: 0 0 14px;
  color: var(--ref-heading);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.sambutan-judul {
  margin: 0 0 6px;
  color: #1f2933;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.25;
}

.sambutan-sub {
  margin: 0 0 16px;
  color: #157e30;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 58px;
  font-weight: 900;
  line-height: 1.05;
}

.sambutan-salam {
  margin: 0 0 6px;
  color: #000;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.7;
}

.sambutan-isi {
  max-width: 560px;
  margin: 0;
  color: #000;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.7;
}

.sambutan-aksi {
  margin-top: 20px;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--ref-button);
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.4s ease;
}

.site-button:hover {
  background: #f9ce08;
  color: #111827;
}

.site-button--small {
  padding: 6px 14px;
  font-size: 13px;
}

.site-button--outline {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.site-button--outline:hover {
  background: #f9fafb;
  color: var(--site-green);
}

.site-modal-title {
  color: var(--site-green);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.site-modal-body {
  color: #374151;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- 3.3 Legalitas madrasah: 4 item ---------- */
.mh-showcase-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 72px 24px 78px;
  background-color: #247b4b;
  border-radius: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.mh-showcase-wrapper *,
.mh-showcase-wrapper *::before,
.mh-showcase-wrapper *::after {
  box-sizing: border-box;
}

/* Header bagian */
.mh-section-header {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.mh-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 18px;
  background-color: #1a5c38;
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 999px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mh-header-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.mh-section-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(18, 61, 37, 0.4);
}

.mh-header-divider {
  width: 72px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.45);
}

/* Grid 4 kolom responsif */
.mh-cards-grid {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Kartu putih melayang */
.mh-pillar-card {
  position: relative;
  overflow: hidden;
  padding: 30px 22px 32px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 18px 36px -10px rgba(11, 41, 24, 0.35), 0 6px 14px -4px rgba(11, 41, 24, 0.18);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

/* Garis aksen bawah emas saat hover */
.mh-pillar-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 48px -12px rgba(9, 34, 20, 0.48), 0 0 0 2px rgba(251, 191, 36, 0.65);
}

.mh-pillar-card:hover::after {
  transform: scaleX(1);
}

/* Nomor watermark di pojok kanan atas */
.mh-watermark-num {
  position: absolute;
  top: 14px;
  right: 18px;
  color: rgba(36, 123, 75, 0.08);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  transition: color 0.35s ease, transform 0.35s ease;
}

.mh-pillar-card:hover .mh-watermark-num {
  color: rgba(245, 158, 11, 0.18);
  transform: scale(1.06);
}

/* Wadah ikon gradasi hijau dengan cincin emas */
.mh-icon-badge {
  position: relative;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #247b4b 0%, #165231 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 2px solid #fbbf24;
  box-shadow: 0 10px 20px -5px rgba(36, 123, 75, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-icon-badge svg {
  display: block;
  width: 28px;
  height: 28px;
}

.mh-pillar-card:hover .mh-icon-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #247b4b 100%);
  border-color: #fde68a;
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 12px 24px -4px rgba(245, 158, 11, 0.4);
}

/* Label kategori kecil */
.mh-category-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 11px;
  background: linear-gradient(90deg, rgba(36, 123, 75, 0.12) 0%, rgba(251, 191, 36, 0.18) 100%);
  border: 1px solid rgba(36, 123, 75, 0.2);
  border-radius: 999px;
  color: #165231;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.mh-pillar-card:hover .mh-category-tag {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(245, 158, 11, 0.45);
  color: #123d25;
}

/* Judul & deskripsi kartu */
.mh-card-title {
  margin: 0 0 10px;
  color: #123d25;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.mh-card-desc {
  margin: 0;
  color: #475569;
  font-size: 14.2px;
  line-height: 1.65;
}

/* Responsif tablet & mobile */
@media (max-width: 1024px) {
  .mh-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .mh-showcase-wrapper {
    padding: 48px 16px 54px;
    border-radius: 0;
  }

  .mh-section-header {
    margin-bottom: 34px;
  }

  .mh-section-title {
    font-size: 24px;
  }

  .mh-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mh-pillar-card {
    padding: 26px 20px 28px;
  }
}

/* ---------- 3.3b Program unggulan: 6 kartu interaktif ---------- */
.program-section {
  padding: 80px 24px;
  background: #fff;
  color: #334155;
}

.program-container {
  max-width: 1120px;
  margin: 0 auto;
}

.program-header {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.program-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 18px;
  border-radius: 9999px;
  background: #eaf5ef;
  color: #258353;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.program-title {
  margin: 0 0 14px;
  color: #334155;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.program-title span {
  color: #258353;
}

.program-subtitle {
  margin: 0;
  color: #64748b;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

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

.program-card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 34px;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1),
              box-shadow .28s cubic-bezier(.22, 1, .36, 1),
              border-color .28s ease;
}

.program-card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 3.5px;
  background: #258353;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}

.program-card:hover,
.program-card:active,
.program-card:focus-visible {
  transform: translateY(-4px);
  border-color: #a7d7be;
  box-shadow: 0 12px 28px rgba(37, 131, 83, .12);
}

.program-card:hover::after,
.program-card:active::after,
.program-card:focus-visible::after {
  transform: scaleX(1);
}

.program-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: #eaf5ef;
  color: #258353;
  transition: background-color .28s ease,
              color .28s ease,
              transform .28s cubic-bezier(.22, 1, .36, 1);
}

.program-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}

.program-card:hover .program-icon,
.program-card:active .program-icon,
.program-card:focus-visible .program-icon {
  background: #258353;
  color: #fff;
  transform: scale(1.06);
}

.program-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #334155;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}

.program-card__desc {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #64748b;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13.75px;
  font-weight: 400;
  line-height: 1.65;
}

.program-card__watermark {
  position: absolute;
  right: -12px;
  bottom: -12px;
  z-index: 0;
  width: 110px;
  height: 110px;
  color: #258353;
  opacity: 0;
  pointer-events: none;
  transform: translate(10px, 12px) scale(.92);
  transition: opacity .32s ease,
              transform .36s cubic-bezier(.22, 1, .36, 1);
}

.program-card__watermark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.program-card:hover .program-card__watermark,
.program-card:active .program-card__watermark,
.program-card:focus-visible .program-card__watermark {
  opacity: .08;
  transform: translate(0, 0) scale(1);
}

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

@media (max-width: 600px) {
  .program-section {
    padding: 56px 16px;
  }

  .program-header {
    margin-bottom: 36px;
  }

  .program-title {
    font-size: 28px;
  }

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

/* ---------- 3.4 Trending + berita + sidebar ---------- */
.news-section {
  padding: 60px 0 50px;
  border-top: 1px solid #ededed;
  background: #fff;
}

/* ---------- Trending ticker TagDiv style ---------- */
.td-trending-now-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #e6ece8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.06);
}

.td-trending-now-wrapper::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #15803d 0%, #eab308 55%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

.td-trending-now-title {
  display: inline-flex;
  z-index: 2;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.td-dot-ping {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.td-dot-ping::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #fde047;
  animation: tdTickerPing 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.td-dot-ping::after {
  content: "";
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fef08a;
}

@keyframes tdTickerPing {
  75%,
  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

.td-trending-now-display-area {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 36px;
  overflow: hidden;
}

.td_module_trending_now {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: 100%;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.td_module_trending_now.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.td-module-title {
  overflow: hidden;
  width: 100%;
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-module-title a {
  color: #14532d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.td-module-title a:hover {
  color: #15803d;
}

.td_animated_xlong {
  animation-duration: 0.65s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes td_fadeInRight {
  0% {
    opacity: 0;
    transform: translate3d(32px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes td_fadeOutLeft {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(-32px, 0, 0);
  }
}

@keyframes td_fadeInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-32px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes td_fadeOutRight {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(32px, 0, 0);
  }
}

.td_fadeInRight {
  animation-name: td_fadeInRight;
}

.td_fadeOutLeft {
  animation-name: td_fadeOutLeft;
}

.td_fadeInLeft {
  animation-name: td_fadeInLeft;
}

.td_fadeOutRight {
  animation-name: td_fadeOutRight;
}

.td-next-prev-wrap {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

.td-trending-now-nav-left,
.td-trending-now-nav-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background-color: #f8fafc;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
}

.td-trending-now-nav-left:hover,
.td-trending-now-nav-right:hover {
  border-color: #bbf7d0;
  background-color: #dcfce7;
  color: #15803d;
}

@media (max-width: 640px) {
  .td-trending-now-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 14px 14px;
    border-radius: 14px;
    text-align: center;
  }

  .td-trending-now-title {
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
  }

  .td-trending-now-display-area {
    display: block;
    flex: none;
    width: 100%;
    height: 42px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  }

  .td_module_trending_now {
    justify-content: center;
    padding: 0 10px;
  }

  .td-module-title {
    display: -webkit-box;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .td-module-title a {
    color: #0f172a;
  }

  .td-next-prev-wrap {
    display: none;
  }
}

.news-layout {
  display: grid;
  grid-template-columns: 66.66% 33.33%;
  gap: 0;
}

.news-main {
  min-width: 0;
  padding-right: 28px;
}

.news-sidebar {
  min-width: 0;
  padding-left: 4px;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 751px;
  height: 101px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.12);
}

.home-banner,
.banner-sisipan {
  display: block;
  width: 100%;
  max-width: 751px;
  margin-bottom: 24px;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.12);
}

.home-banner img,
.banner-sisipan img {
  display: block;
  width: 100%;
  height: auto;
}

.home-banner--mitra {
  margin: 28px 0 0;
}

.promo-banner--ppdb {
  background: linear-gradient(90deg, #047857 0%, #059669 55%, #65a30d 100%);
}

.promo-banner--mitra {
  margin: 28px 0 0;
  background: linear-gradient(90deg, #047857 0%, #059669 55%, #f59e0b 100%);
}

.promo-banner__eyebrow {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-banner__text {
  margin: 6px 0 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.promo-banner__badge {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 3px;
  background: #fbbf24;
  color: #111827;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.section-heading {
  margin-bottom: 18px;
}

.heading-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  color: var(--ref-heading);
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

.heading-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--ref-heading);
}

/* Judul "Terbaru" memakai garis pendek di kiri dan kanan seperti referensi. */
.heading-underline--terbaru {
  font-size: 28px !important;
}

.heading-underline--terbaru::before,
.heading-underline--terbaru::after {
  top: 50%;
  bottom: auto;
  width: 32px;
  height: 1px;
  background: var(--ref-heading);
  transform: translateY(-50%);
}

.heading-underline--terbaru::before {
  left: auto;
  right: calc(100% + 12px);
}

.heading-underline--terbaru::after {
  left: calc(100% + 12px);
}

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

.news-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.news-card__thumb {
  width: 100%;
  height: 160px !important;
  overflow: hidden;
  border-radius: 4px;
  background: #e5e7eb;
}

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

.news-card__title {
  margin: 0;
  color: #111827;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--site-green);
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.news-card__label {
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--site-green);
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.news-card__date {
  padding-left: 8px;
  color: #9ca3af;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
}

.news-card__date i {
  margin-right: 5px;
}

.news-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: #6b7280;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
  text-align: center;
}

.news-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- 6. Terbaru: heading & grid kartu ---------- */
.latest-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.latest-news-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.latest-news-title {
  margin: 0;
  color: #15803d;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.latest-news-accent {
  width: 56px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #eab308 0%, #15803d 100%);
}

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

.latest-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6ece8;
  border-radius: 20px;
  background-color: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: latestNewsFadeUp 0.35s ease both;
}

@keyframes latestNewsFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.latest-news-card:hover {
  transform: translateY(-6px);
  border-color: #bbf7d0;
  box-shadow: 0 20px 36px -12px rgba(21, 128, 61, 0.14);
}

.latest-news-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #e2e8f0;
}

.latest-news-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.latest-news-card:hover .latest-news-card__thumb img {
  transform: scale(1.07);
}

.latest-news-card__date-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.latest-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 22px;
}

.latest-news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.latest-news-card__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #dcfce7;
  color: #15803d;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.latest-news-card:hover .latest-news-card__tag:first-child {
  background-color: #15803d;
  color: #ffffff;
}

.latest-news-card__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #0f172a;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color 0.2s ease;
}

.latest-news-card:hover .latest-news-card__title {
  color: #15803d;
}

.latest-news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.latest-news-card__read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #15803d;
  font-weight: 700;
  font-size: 12px;
}

.latest-news-card__read svg {
  transition: transform 0.2s ease;
}

.latest-news-card:hover .latest-news-card__read svg {
  transform: translateX(3px);
}

.latest-news-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  background: #ffffff;
  color: #64748b;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  text-align: center;
}

.latest-news-footer {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.latest-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px -4px rgba(21, 128, 61, 0.35);
  transition: all 0.25s ease;
}

.latest-news-btn:hover {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(21, 128, 61, 0.45);
}

@media (max-width: 1024px) {
  .latest-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .latest-news-grid {
    grid-template-columns: 1fr;
  }

  .latest-news-title {
    font-size: 24px;
  }
}

/* ---------- Sidebar: Agenda Kegiatan ---------- */
.sidebar-agenda {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
}

.sidebar-agenda__head {
  margin-bottom: 16px;
}

.sidebar-agenda__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #e4f2eb;
  color: #198754;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agenda-dot-wrapper {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.agenda-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #22c55e;
  opacity: 0.75;
  animation: agenda-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.agenda-dot-core {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #16a34a;
}

@keyframes agenda-ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.sidebar-agenda__title {
  margin: 0;
  color: #0f172a;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.sidebar-agenda__title span {
  color: #168049;
}

.sidebar-agenda__underline {
  width: 58px;
  height: 4px;
  margin-top: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #eab308 0%, #168049 100%);
}

.sidebar-agenda__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-agenda__card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid #eaefec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-agenda__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.agenda-date {
  flex: 0 0 56px;
  width: 56px;
  overflow: hidden;
  border-radius: 11px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(22, 101, 52, 0.18);
}

.agenda-date__month {
  padding: 4px 0;
  background-color: #e4b624;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agenda-date__body {
  padding: 5px 0 7px;
  background: linear-gradient(180deg, #1b7843 0%, #145c33 100%);
  color: #ffffff;
}

.agenda-date__day {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

.agenda-date__year {
  margin-top: 1px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
}

.sidebar-agenda__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.agenda-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid #ccebd8;
  border-radius: 999px;
  background-color: #ecfdf3;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
}

.agenda-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
}

.sidebar-agenda__item-title {
  margin: 0;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.sidebar-agenda__location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 500;
}

.sidebar-agenda__location svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

.sidebar-agenda__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.sidebar-agenda__more:hover {
  border-color: #168049;
  color: #168049;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 128, 73, 0.1);
}

.popular-box {
  padding: 18px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
}

.popular-box__title {
  margin: 0 0 14px;
  color: #111827;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.popular-box__list {
  color: #374151;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
}

.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}

.popular-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.popular-item__thumb {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: #e9ecef;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}

.popular-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.popular-item:hover .popular-item__thumb img {
  transform: scale(1.05);
}

.popular-item__body {
  flex: 1 1 auto;
  min-width: 0;
}

.popular-item__title {
  display: -webkit-box;
  overflow: hidden;
  color: #1f2937;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.popular-item__title:hover {
  color: var(--site-green);
}

.popular-item__meta {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #9ca3af;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-empty {
  margin: 0;
  padding: 12px 0;
  color: #6b7280;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
}

/* ---------- 3.5 Tiga kategori: Kegiatan, Artikel & Pengumuman ---------- */
.home-cat-section {
  --cat-primary: #15803d;
  --cat-primary-dark: #14532d;
  --cat-primary-light: #dcfce7;
  --cat-accent-gold: #eab308;
  --cat-text-main: #0f172a;
  --cat-text-muted: #64748b;
  --cat-border-soft: #e2e8f0;
  padding: 56px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f4f7f5;
  color: var(--cat-text-main);
  font-family: 'Poppins', Arial, sans-serif;
}

/* Samakan lebar konten dengan section Tausiyah/Agenda (8) dan Grid Rubrik (8b). */
.home-cat-section .site-container {
  max-width: 1240px;
  padding-right: 0;
  padding-left: 0;
}

.home-cat-header {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.home-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: #e6f4ec;
  color: var(--cat-primary);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.home-cat-pill__dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.home-cat-pill__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #22c55e;
  animation: home-cat-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.home-cat-pill__dot::after {
  content: "";
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cat-primary);
}

@keyframes home-cat-ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.home-cat-title {
  margin: 0;
  color: var(--cat-text-main);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.home-cat-title span {
  color: var(--cat-primary);
}

.home-cat-desc {
  margin-top: 8px;
  color: var(--cat-text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.home-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid #e7ece9;
  border-radius: 22px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -12px rgba(15, 23, 42, 0.09);
}

.home-cat-card--featured {
  border: 1px solid #fde68a;
  background: linear-gradient(180deg, #fffdf5 0%, #fefce8 100%);
}

.home-cat-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 4px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, var(--cat-accent-gold), var(--cat-primary));
}

.home-cat-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.home-cat-card__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cat-text-main);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.home-cat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--cat-primary-light);
  color: var(--cat-primary);
  flex-shrink: 0;
}

.home-cat-card--featured .home-cat-card__icon {
  background-color: #fef08a;
  color: #854d0e;
}

.home-cat-card__count {
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #f1f5f9;
  color: var(--cat-text-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.home-cat-card--featured .home-cat-card__count {
  background-color: rgba(254, 240, 138, 0.7);
  color: #713f12;
}

.home-cat-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
}

.home-cat-post {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 -10px;
  padding: 10px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-cat-post:hover {
  background-color: rgba(22, 163, 74, 0.06);
}

.home-cat-card--featured .home-cat-post:hover {
  background-color: rgba(234, 179, 8, 0.12);
}

.home-cat-post__thumb {
  flex: 0 0 82px;
  width: 82px;
  min-width: 82px;
  height: 64px;
  overflow: hidden;
  border-radius: 11px;
  background-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.home-cat-post__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-cat-post:hover .home-cat-post__img {
  transform: scale(1.08);
}

.home-cat-post__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.home-cat-post__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--cat-text-main);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color 0.2s ease;
}

.home-cat-post:hover .home-cat-post__title {
  color: var(--cat-primary);
}

.home-cat-post__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cat-text-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.home-cat-empty {
  flex: 1;
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.home-cat-card__footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.home-cat-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-cat-btn--primary {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.22);
}

.home-cat-btn--primary:hover {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.3);
}

.home-cat-btn--gold {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #422006;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
}

.home-cat-btn--gold:hover {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(202, 138, 4, 0.32);
}

.home-cat-btn--emerald {
  border: 1px solid #bbf7d0;
  background-color: #ecfdf5;
  color: #15803d;
}

.home-cat-btn--emerald:hover {
  border-color: #15803d;
  background-color: #15803d;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.22);
}

.home-cat-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.home-cat-btn:hover svg {
  transform: translateX(3px);
}

@media (max-width: 1080px) {
  .home-cat-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .home-cat-title {
    font-size: 26px;
  }
}

@media (max-width: 576px) {
  .home-cat-section {
    padding: 40px 20px;
  }

  .home-cat-card {
    padding: 20px 16px;
  }

  .home-cat-card--featured::before {
    right: 18px;
    left: 18px;
  }

  .home-cat-post__thumb {
    flex-basis: 72px;
    width: 72px;
    height: 56px;
  }
}

.category-empty,
.info-empty {
  color: #6b7280;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
}

/* ---------- 3.7 Carousel quotes: 50/50 di layar besar ---------- */
.quote-section {
  padding: 100px 0;
  background: var(--ref-section);
  color: #fff;
}

.quote-section__title {
  margin: 0 0 32px;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 45px;
  font-weight: 600;
  text-align: center;
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  max-width: 560px;
  margin: 0 auto;
}

.quote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quote-bubble {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 25px 25px 27px;
  border-radius: 5px;
  background: #fff;
  color: #444;
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.2);
}

.quote-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 0;
  height: 0;
  border-width: 12px 12px 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  transform: translateX(-50%);
}

.quote-bubble i {
  display: block;
  margin-bottom: 10px;
  color: #c1c1c1;
  font-size: 35px;
}

.quote-bubble p {
  margin: 0 0 15px;
  color: #444;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.quote-card__photo {
  width: 65px;
  height: 65px;
  margin-top: 22px;
  border-radius: 3px;
  object-fit: cover;
}

.quote-card__name {
  margin: 10px 0 0;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.quote-card__role {
  margin: 0 0 5px;
  color: #ffdf00;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
}

/* ============================================================
   4. FOOTER — hijau pastel (template yang diberikan user)
   ============================================================ */
.footer {
  position: relative;
  width: 100%;
  background: #ddffbe;
  color: #3a5443;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.45fr 1.25fr 0.75fr 0.75fr;
  gap: 40px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 64px 24px 56px;
}

/* Brand & deskripsi */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #132a1c;
  text-decoration: none;
}

.footer-brand svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  fill: #15803d;
}

.footer-brand span {
  color: #132a1c;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-desc {
  max-width: 315px;
  margin: 0 0 20px;
  color: #3a5443;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.65;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #3a5443;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
}

.footer-contact i {
  flex: 0 0 14px;
  width: 14px;
  margin-top: 3px;
  color: #15803d;
  font-size: 13px;
  text-align: center;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #132a1c;
}

/* Ikon sosial media */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: rgba(19, 42, 28, 0.08);
  color: #132a1c;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  background-color: #15803d;
  color: #fff;
  transform: translateY(-2px);
}

.social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Kolom link */
.footer-title {
  margin: 0 0 20px;
  color: #132a1c;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 13px 24px;
}

.footer-links a {
  color: #3a5443;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #132a1c;
}

/* Bagian bawah / copyright */
.footer-bottom {
  padding: 24px 20px 28px;
  background-color: #156f31;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.75;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

/* Tombol scroll ke atas */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background-color: #15803d;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.scroll-top:hover {
  background-color: #166534;
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Responsif Tablet & Mobile */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 16px 32px;
  }

  .footer-brand {
    margin-bottom: 12px;
  }

  .footer-desc {
    margin-bottom: 14px;
  }

  .footer-title {
    margin-bottom: 12px;
  }

  .footer-links {
    gap: 10px;
  }
}

/* Hook lightbox galeri (jika dipakai) */
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}

.site-lightbox__counter {
  color: #fff;
  font-size: 14px;
}

.site-lightbox__icon {
  color: #fff;
  font-size: 24px;
}

.site-lightbox__arrow {
  color: #fff;
  font-size: 35px;
}

/* ============================================================
   BREAKPOINT TAMBAHAN
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-main {
    padding-right: 20px;
  }

  .services-grid {
    gap: 16px;
  }

  .sambutan-grid {
    gap: 32px;
  }

  .sambutan-heading {
    font-size: 24px;
  }

  .sambutan-judul {
    font-size: 30px;
  }

  .sambutan-sub {
    font-size: 44px;
  }
}

@media (min-width: 1025px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero-banner {
    min-height: 0;
  }

  .hero-nav {
    width: 30px;
    height: 30px;
  }

  .sambutan-section {
    display: flow-root;
    padding: 0 0 48px;
  }

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

  .sambutan-photo {
    order: 1;
  }

  .sambutan-text {
    order: 2;
  }

  .sambutan-photo__frame {
    width: 74%;
    max-width: 320px;
  }

  .sambutan-heading {
    font-size: 24px;
  }

  .sambutan-judul {
    font-size: 18px;
  }

  .sambutan-sub {
    font-size: 31px;
  }

  .site-button {
    font-size: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .news-main {
    padding-right: 0;
  }

  .news-sidebar {
    padding-left: 0;
  }

  .sidebar-agenda {
    padding: 16px;
  }

  .sidebar-agenda__card {
    gap: 11px;
    padding: 12px;
  }

  .popular-box {
    padding: 16px;
  }

  .popular-item {
    gap: 10px;
  }

  .popular-item__thumb {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

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

  .promo-banner {
    height: auto;
    min-height: 101px;
    padding: 12px 14px;
  }

  .promo-banner__badge {
    display: none;
  }

  .info-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    gap: 32px;
  }

  .info-col:first-child,
  .info-col + .info-col {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .quote-section {
    padding: 60px 0;
  }

  .quote-section__title {
    font-size: 40px;
  }

  .quote-bubble p {
    font-size: 20px;
  }
}

/* ============================================================
   11. HEADER & HERO — template yang diberikan user
   ============================================================
   Gaya top bar, navbar, brand, pencarian, dan hero dua panel
   mengikuti template statis. Identitas tetap MTs Mambaul Hikmah
   dan seluruh teks kontak/berita tetap berasal dari database.
   */
:root {
  --site-container: 1240px;
  --site-header-total: 115px;
}

body {
  font-family: 'Poppins', Arial, sans-serif !important;
}

.site-container,
.site-topbar__inner,
.site-header__inner {
  max-width: var(--site-container);
  padding-right: 24px;
  padding-left: 24px;
}

.site-topbar {
  padding: 8px 0;
  background: #195227;
  font-size: 12px;
}

.site-topbar__inner {
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 12px;
}

.site-topbar__contact {
  flex: 1 1 auto;
  gap: 14px;
  padding: 0;
}

.site-topbar__contact a {
  gap: 0;
}

.site-topbar__divider {
  width: 1px;
  height: 14px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.site-topbar__right {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
}

.site-topbar__social {
  flex: 0 0 auto;
  gap: 16px;
  padding: 0;
  font-size: 13px;
}

.site-topbar__social a {
  width: auto;
  height: auto;
  margin: 0;
  font-size: 13px;
  line-height: 1;
}

.site-topbar__langs {
  flex: 0 0 auto;
  gap: 6px;
  padding: 0;
}

.site-flag {
  width: 18px !important;
  height: 12px !important;
}

.site-header {
  padding: 12px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  min-height: 56px;
  gap: 20px;
  padding-top: 0;
  padding-bottom: 0;
}

.site-logo {
  flex: 0 1 auto;
  gap: 10px;
  max-width: none;
}

.site-logo__img {
  width: 210px !important;
  height: auto !important;
  object-fit: contain;
}

.site-logo__text {
  display: none;
}

.site-logo__tagline,
.site-logo__name {
  display: none;
}

.site-logo__sub {
  color: #1f2937;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
}

.site-logo__main {
  margin-top: 1px;
  color: #1c6e32;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.site-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 24px;
}

.site-nav__link {
  margin: 0;
  padding: 8px 0;
  color: #222;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.site-nav__link i {
  font-size: 10px;
}

.site-nav__link::after {
  display: none;
}

.site-nav__link:hover,
.site-nav__link.is-active,
.site-nav__link:focus {
  color: #1c6e32;
}

.site-nav__dropdown {
  min-width: 190px;
  margin-top: 0;
  border: 0;
  border-top: 3px solid #1c6e32;
}

.site-nav__sublink {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f1f1;
  color: #333;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
}

.site-nav__dropdown .site-nav__sublink:last-child {
  border-bottom: 0;
}

a.site-nav__sublink:hover,
button.site-nav__sublink:hover {
  background: #f4f9f5;
  color: #1c6e32;
}

.site-search {
  flex: 0 0 245px;
  width: 245px;
}

.site-search__input {
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 3px 0 0 3px;
  background: #fafafa;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12.5px;
}

.site-search__input::placeholder {
  color: #888;
}

.site-search__button {
  flex: 0 0 42px;
  min-width: 42px;
  border-radius: 0 3px 3px 0;
  background: #217336;
}

.site-search__button:hover {
  background: #185828;
}

/* Hero dua panel */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: auto;
  aspect-ratio: 1862 / 931;
  overflow: hidden;
  background: #1e3a5f;
}

.hero-split__panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-split__panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-split__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16, 52, 96, 0.12), rgba(16, 52, 96, 0.25));
  pointer-events: none;
}

.hero-split__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.hero-split__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-split__panel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.hero-split__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-split__dot.is-active {
  background: #fff;
}

/* Hero carousel: struktur Bootstrap, gaya lokal agar tidak bergantung Bootstrap JS/CSS */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1862 / 931;
  overflow: hidden;
  background: #1e3a5f;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel .carousel-item {
  display: none;
}

.hero-carousel .carousel-item.active {
  display: block;
}

.hero-carousel .carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


@media (max-width: 767px) {
  .hero-carousel {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 14px;
  }

  .site-search {
    flex-basis: 185px;
    width: 185px;
  }
}

@media (max-width: 860px) {
  :root {
    --site-header-total: 180px;
  }

  .site-topbar__inner {
    flex-direction: column;
    gap: 6px;
  }

  .site-topbar__contact,
  .site-topbar__right {
    justify-content: center;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #eee;
  }

  .hero-split {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .hero-split__panel {
    height: auto;
    aspect-ratio: 1862 / 931;
  }
}

@media (max-width: 767px) {
  :root {
    --site-header-total: 112px;
  }

  .site-container,
  .site-topbar__inner,
  .site-header__inner {
    padding-right: 15px;
    padding-left: 15px;
  }

  .site-topbar__inner {
    flex-direction: row;
    justify-content: center;
  }

  .site-topbar__right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .site-logo__img {
    width: 165px !important;
    height: auto !important;
  }

  .site-logo__main {
    font-size: 18px;
  }
}

/* ============================================================
   8. PORTAL SECTION — Tausiyah, Agenda Kegiatan & Info Pengumuman
   Mengikuti desain baru pengguna; isi tetap dinamis dari CMS.
   ============================================================ */
.mh-portal-section {
  width: 100%;
  padding: 56px 20px;
  background-color: #f6f8f7;
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

.mh-portal-section *,
.mh-portal-section *::before,
.mh-portal-section *::after {
  box-sizing: border-box;
}

.mh-portal-section a {
  text-decoration: none;
}

/* Container utama grid 3 kolom */
.mh-portal-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 1.48fr 0.96fr;
  gap: 26px;
  align-items: start;
}

/* ---------- Kolom 1: Tausiyah Terbaru ---------- */
.mh-tausiyah-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  background: linear-gradient(155deg, #185233 0%, #113b24 55%, #0c2b1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px -15px rgba(16, 56, 34, 0.35);
}

.mh-tausiyah-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.16) 0%, rgba(250, 204, 21, 0) 70%);
  pointer-events: none;
}

.mh-tausiyah-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mh-tausiyah-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mh-tausiyah-title {
  margin: 0;
  color: #facc15;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mh-tausiyah-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 24px;
}

.mh-tausiyah-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-tausiyah-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(250, 204, 21, 0.45);
  transform: translateX(4px);
}

.mh-quote-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #143d27;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 6px 14px rgba(234, 179, 8, 0.28);
  transition: transform 0.28s ease;
}

.mh-tausiyah-item:hover .mh-quote-box {
  transform: scale(1.06);
}

.mh-tausiyah-content {
  flex: 1;
  min-width: 0;
}

.mh-tausiyah-item-title {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.25s ease;
}

.mh-tausiyah-item:hover .mh-tausiyah-item-title {
  color: #fef08a;
}

.mh-tausiyah-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

.mh-tausiyah-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  color: #113b24;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px -6px rgba(245, 158, 11, 0.45);
  transition: all 0.28s ease;
}

.mh-tausiyah-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -6px rgba(250, 204, 21, 0.55);
  filter: brightness(1.04);
}

.mh-tausiyah-card .info-empty {
  color: #d1d5db;
}

/* ---------- Kolom 2: Agenda Kegiatan ---------- */
.mh-agenda-col {
  display: flex;
  flex-direction: column;
}

.mh-agenda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mh-agenda-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(36, 123, 75, 0.1);
  color: #247b4b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mh-agenda-heading {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mh-agenda-heading span {
  color: #247b4b;
}

.mh-agenda-underline {
  width: 44px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #247b4b 0%, #eab308 100%);
}

.mh-agenda-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.mh-agenda-all-btn:hover {
  background: #247b4b;
  border-color: #247b4b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(36, 123, 75, 0.3);
}

.mh-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.mh-agenda-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.06);
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-agenda-item:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 123, 75, 0.45);
  box-shadow: 0 14px 28px -10px rgba(36, 123, 75, 0.18);
}

.mh-date-badge {
  width: 68px;
  min-width: 68px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(160deg, #247b4b 0%, #195936 100%);
  color: #ffffff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 16px -4px rgba(36, 123, 75, 0.35);
}

.mh-date-badge-top {
  padding: 3px 0;
  background: #eab308;
  color: #143d27;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mh-date-day {
  padding-top: 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mh-date-year {
  padding-bottom: 7px;
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 600;
}

.mh-agenda-body {
  flex: 1;
  min-width: 0;
}

.mh-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
}

.mh-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.mh-agenda-item-title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
  transition: color 0.25s ease;
}

.mh-agenda-item:hover .mh-agenda-item-title {
  color: #247b4b;
}

.mh-agenda-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
}

.mh-agenda-location svg {
  color: #e11d48;
  flex-shrink: 0;
}

.mh-agenda-col .info-empty {
  color: #64748b;
}

/* ---------- Kolom 3: Info Pengumuman ---------- */
.mh-info-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.08);
}

.mh-info-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #247b4b 0%, #247b4b 72%, #eab308 100%);
}

.mh-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.mh-info-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #247b4b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mh-info-title {
  margin: 0;
  color: #143d27;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mh-info-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mh-info-item {
  display: block;
  padding: 15px 6px;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.25s ease;
}

.mh-info-item:first-child {
  padding-top: 4px;
}

.mh-info-item:last-child {
  border-bottom: none;
}

.mh-info-item:hover {
  transform: translateX(4px);
}

.mh-info-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.mh-info-item-title {
  margin: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.48;
  transition: color 0.25s ease;
}

.mh-info-item:hover .mh-info-item-title {
  color: #247b4b;
}

.mh-info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #247b4b;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.mh-info-btn:hover {
  background: #247b4b;
  border-color: #247b4b;
  color: #ffffff;
  box-shadow: 0 8px 16px -4px rgba(36, 123, 75, 0.28);
}

.mh-info-card .info-empty {
  color: #64748b;
}

/* ---------- Responsif tablet & smartphone ---------- */
@media (max-width: 1080px) {
  .mh-portal-container {
    grid-template-columns: 1fr 1fr;
  }

  .mh-info-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .mh-portal-section {
    padding: 36px 16px;
  }

  .mh-portal-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mh-agenda-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mh-agenda-heading {
    font-size: 22px;
  }

  .mh-agenda-item {
    padding: 14px 16px;
    gap: 14px;
  }

  .mh-date-badge {
    width: 60px;
    min-width: 60px;
  }

  .mh-date-day {
    font-size: 20px;
  }
}

/* ============================================================
   8b. GRID KATEGORI ARTIKEL & BERITA
   Desain kartu rubrik dengan aksen warna + modal pratinjau.
   Isi tetap dinamis dari CMS.
   ============================================================ */
.mh-rubrik-portal {
  --mh-green: #247b4b;
  --mh-green-dark: #165231;
  --mh-gold: #eab308;
  --mh-gold-light: #fef08a;
  width: 100%;
  padding: 48px 20px 64px;
  background-color: #f3f6f4;
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

.mh-rubrik-portal *,
.mh-rubrik-portal *::before,
.mh-rubrik-portal *::after {
  box-sizing: border-box;
}

.mh-rubrik-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* ---------- Grid 6 kartu rubrik ---------- */
.mh-rubrik-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

@keyframes mhRubrikStaggerIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mh-rubrik-card {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.08);
  animation: mhRubrikStaggerIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--stagger-idx, 0) * 60ms);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.mh-rubrik-card:hover {
  transform: translateY(-5px);
  border-color: var(--cat-border);
  box-shadow: 0 22px 40px -14px rgba(15, 23, 42, 0.14);
}

.mh-rubrik-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4.5px;
  background: var(--cat-gradient);
}

.mh-rubrik-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.mh-rubrik-title-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.mh-rubrik-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background-color: var(--cat-soft);
  border: 1px solid var(--cat-border);
  color: var(--cat-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}

.mh-rubrik-card:hover .mh-rubrik-icon-badge {
  background-color: var(--cat-color);
  color: #ffffff;
  transform: scale(1.07) rotate(-3deg);
}

.mh-rubrik-name {
  overflow: hidden;
  margin: 0;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mh-rubrik-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  background-color: var(--cat-soft);
  border: 1px solid var(--cat-border);
  color: var(--cat-color);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Daftar artikel ---------- */
.mh-rubrik-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mh-rubrik-post {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}

.mh-rubrik-post:first-child {
  margin-bottom: 6px;
  padding: 12px 10px;
  background: linear-gradient(135deg, var(--cat-soft) 0%, #ffffff 100%);
  border: 1px solid var(--cat-border);
}

.mh-rubrik-post:last-child {
  border-bottom: none;
}

.mh-rubrik-post:hover {
  background-color: #f8fafc;
  transform: translateX(5px);
}

.mh-rubrik-post:first-child:hover {
  background: var(--cat-soft);
  box-shadow: 0 8px 18px -8px var(--cat-shadow);
}

.mh-rubrik-thumb {
  width: 66px;
  height: 54px;
  min-width: 66px;
  overflow: hidden;
  position: relative;
  margin-top: 1px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background-color: #f1f5f9;
}

.mh-rubrik-thumb svg,
.mh-rubrik-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-rubrik-post:hover .mh-rubrik-thumb svg,
.mh-rubrik-post:hover .mh-rubrik-thumb img {
  transform: scale(1.12);
}

.mh-rubrik-post-body {
  flex: 1;
  min-width: 0;
}

.mh-rubrik-new-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background-color: var(--cat-color);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mh-rubrik-post-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 6px;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.22s ease;
}

.mh-rubrik-post:hover .mh-rubrik-post-title {
  color: var(--cat-color);
}

.mh-rubrik-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mh-rubrik-post-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 500;
}

.mh-rubrik-post-arrow {
  color: var(--cat-color);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mh-rubrik-post:hover .mh-rubrik-post-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Empty state ---------- */
.mh-rubrik-empty {
  flex: 1;
  min-height: 205px;
  margin: 4px 0 6px;
  padding: 26px 18px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 11px;
}

.mh-rubrik-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mh-rubrik-empty-text {
  margin: 0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.mh-rubrik-write-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #247b4b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px -4px rgba(36, 123, 75, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mh-rubrik-write-cta:hover {
  background: #165231;
  transform: translateY(-2px);
}

/* ---------- Tombol lihat semua ---------- */
.mh-rubrik-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
  padding: 11px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  background-color: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mh-rubrik-btn:hover {
  background-color: var(--cat-color);
  border-color: var(--cat-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -6px var(--cat-shadow);
}

/* ---------- Variasi aksen warna ---------- */
.mh-rubrik-theme-berita {
  --cat-color: #2563eb;
  --cat-soft: #eff6ff;
  --cat-border: #bfdbfe;
  --cat-gradient: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  --cat-shadow: rgba(37, 99, 235, 0.42);
}

.mh-rubrik-theme-artikel {
  --cat-color: #247b4b;
  --cat-soft: #f0fdf4;
  --cat-border: #bbf7d0;
  --cat-gradient: linear-gradient(90deg, #247b4b 0%, #34d399 100%);
  --cat-shadow: rgba(36, 123, 75, 0.42);
}

.mh-rubrik-theme-pengumuman {
  --cat-color: #dc2626;
  --cat-soft: #fef2f2;
  --cat-border: #fecaca;
  --cat-gradient: linear-gradient(90deg, #dc2626 0%, #f87171 100%);
  --cat-shadow: rgba(220, 38, 38, 0.42);
}

.mh-rubrik-theme-prestasi {
  --cat-color: #d97706;
  --cat-soft: #fffbeb;
  --cat-border: #fde68a;
  --cat-gradient: linear-gradient(90deg, #d97706 0%, #fbbf24 100%);
  --cat-shadow: rgba(217, 119, 6, 0.42);
}

.mh-rubrik-theme-agenda {
  --cat-color: #0891b2;
  --cat-soft: #ecfeff;
  --cat-border: #a5f3fc;
  --cat-gradient: linear-gradient(90deg, #0891b2 0%, #22d3ee 100%);
  --cat-shadow: rgba(8, 145, 178, 0.42);
}

.mh-rubrik-theme-pena {
  --cat-color: #475569;
  --cat-soft: #f8fafc;
  --cat-border: #cbd5e1;
  --cat-gradient: linear-gradient(90deg, #475569 0%, #94a3b8 100%);
  --cat-shadow: rgba(71, 85, 105, 0.38);
}

/* ---------- Modal pratinjau cepat ---------- */
.mh-rubrik-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

.mh-rubrik-modal-backdrop.is-open {
  display: flex;
  animation: mhRubrikFadeBackdrop 0.22s ease;
}

@keyframes mhRubrikFadeBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mh-rubrik-modal-box {
  width: 100%;
  max-width: 530px;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  animation: mhRubrikPopModal 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mhRubrikPopModal {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.mh-rubrik-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(135deg, #165231 0%, #247b4b 100%);
  color: #ffffff;
}

.mh-rubrik-modal-cat {
  color: #fde047;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mh-rubrik-modal-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mh-rubrik-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.mh-rubrik-modal-body {
  padding: 24px 22px;
}

.mh-rubrik-modal-title {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.38;
}

.mh-rubrik-modal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 12.5px;
}

.mh-rubrik-modal-excerpt {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3.5px solid #247b4b;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
}

.mh-rubrik-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.mh-rubrik-modal-btn-secondary {
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mh-rubrik-modal-btn-secondary:hover {
  background: #f1f5f9;
}

.mh-rubrik-modal-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #247b4b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px -4px rgba(36, 123, 75, 0.45);
  transition: background 0.2s ease;
}

.mh-rubrik-modal-btn-primary:hover {
  background: #165231;
}

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .mh-rubrik-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .mh-rubrik-portal {
    padding: 24px 14px 48px;
  }

  .mh-rubrik-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mh-rubrik-card {
    padding: 18px 16px;
  }
}

/* ---------- Sambutan dari tabel principal_welcomes ---------- */
.cms-sambutan-section {
  background: #fff;
}

.cms-sambutan-copy {
  max-width: 640px;
}

.sambutan-eyebrow {
  margin: 0 0 12px;
  color: #16803c;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 30px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: none;
}

.cms-sambutan-heading {
  display: flex;
  flex-direction: column;
  margin: 0 0 10px;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.18;
  letter-spacing: -.015em;
  text-transform: none;
}

.cms-sambutan-heading-line {
  display: block;
}

.cms-sambutan-highlight {
  margin: 0 0 16px;
  color: #16a34a;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

/* Animasi rotate 3D per kata, diadaptasi dari pola wpr-advanced-text. */
.cms-sambutan-highlight .wpr-anim-text.wpr-anim-text-type-rotate-1 {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.cms-sambutan-highlight .wpr-anim-text-type-rotate-1 .wpr-anim-text-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .32em;
  white-space: nowrap;
  perspective: 700px;
  transform-style: preserve-3d;
}

.cms-sambutan-highlight .wpr-anim-text-type-rotate-1 .wpr-anim-text-inner b {
  display: inline-block;
  color: inherit;
  font-weight: inherit;
  white-space: nowrap;
  backface-visibility: hidden;
  transform-origin: 50% 100%;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1), opacity .55s ease;
  will-change: transform, opacity;
}

.cms-sambutan-highlight
  .wpr-anim-text-type-rotate-1
  .wpr-anim-text-inner.wpr-anim-text-exit b {
  transition: transform .45s cubic-bezier(.55, 0, 1, .45), opacity .45s ease;
}

.cms-sambutan-highlight
  .wpr-anim-text-type-rotate-1
  .wpr-anim-text-inner b.wpr-anim-text-hidden {
  opacity: 0;
  transform: rotateX(-90deg);
}

.cms-sambutan-highlight
  .wpr-anim-text-type-rotate-1
  .wpr-anim-text-inner b.wpr-anim-text-visible {
  opacity: 1;
  transform: rotateX(0deg);
}

.cms-sambutan-greeting {
  margin: 0 0 10px;
  color: #1f2937;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.7;
}

.cms-sambutan-excerpt {
  max-width: 560px;
  margin: 0;
  color: #374151;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.75;
  text-align: justify;
  white-space: pre-line;
}

.cms-sambutan-cta,
.cms-sambutan-cta:hover {
  background: #16803c;
  color: #fff;
  text-decoration: none;
}

.cms-sambutan-cta:hover {
  background: #1e7e34;
}

.cms-sambutan-photo {
  gap: 14px;
}

.cms-sambutan-photo__frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: #f3f4f6;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .1);
}

.cms-sambutan-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cms-sambutan-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.cms-sambutan-caption__name {
  color: #111827;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.cms-sambutan-caption__title {
  color: #6b7280;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px;
}

@media (max-width: 767px) {
  .cms-sambutan-heading {
    font-size: 24px;
  }

  .cms-sambutan-highlight {
    font-size: 32px;
  }

  .cms-sambutan-photo__frame {
    max-width: 320px;
  }

  .cms-sambutan-excerpt {
    text-align: left;
  }
}

/* ---------- Kartu sambutan: desktop 2 kolom, mobile kartu melayang ---------- */
.sambutan-section .sambutan-grid {
  display: block;
}

.sambutan-section .sambutan-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 767px) {
  .sambutan-section .sambutan-grid {
    max-width: 430px;
    margin: 0 auto;
    padding-right: 0;
    padding-left: 0;
  }

  .sambutan-section .sambutan-card {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: -22px 16px 0;
    padding: 24px 20px 30px;
    border-radius: 4.579mm 4.579mm 0 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  }

  .sambutan-card .sambutan-photo {
    order: 0;
    width: 100%;
  }

  .sambutan-card .sambutan-photo__frame {
    width: 156px;
    height: 196px;
    max-width: 100%;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background: #c8141c;
    box-shadow: none;
    overflow: hidden;
  }

  .sambutan-card .sambutan-photo__img {
    object-fit: cover;
    object-position: top center;
  }

  .sambutan-card .cms-sambutan-caption {
    width: fit-content;
    max-width: 100%;
    margin: 8px auto 0;
    padding: 6px 14px;
    border-radius: 4px;
    background: #085e2e;
    box-shadow: none;
    letter-spacing: .1px;
  }

  .sambutan-card .cms-sambutan-caption__name {
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
  }

  .sambutan-card .cms-sambutan-caption__title {
    display: none;
  }

  .sambutan-card .sambutan-text {
    order: 1;
    width: 100%;
    padding-top: 0;
  }

  .sambutan-card .sambutan-eyebrow {
    margin: 14px 0 8px;
    font-size: clamp(14px, 4.2vw, 18px);
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .sambutan-card .sambutan-heading.cms-sambutan-heading {
    align-items: center;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    margin: 14px 0 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .sambutan-card .cms-sambutan-highlight {
    text-align: center;
    font-size: clamp(18px, 5.5vw, 26px);
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .sambutan-card .cms-sambutan-highlight .wpr-anim-text-inner {
    gap: .22em;
    max-width: 100%;
  }

  .sambutan-card .sambutan-card__body,
  .sambutan-card .cms-sambutan-greeting,
  .sambutan-card .cms-sambutan-excerpt {
    text-align: left;
  }

  .sambutan-card .cms-sambutan-greeting,
  .sambutan-card .cms-sambutan-excerpt {
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.6;
  }

  .sambutan-card .sambutan-aksi {
    margin-top: 12px;
    text-align: left;
  }

  .sambutan-card .cms-sambutan-cta {
    padding: 10px 18px;
    border-radius: 4px;
    background: #0c7c3d;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
  }

  .sambutan-card .cms-sambutan-cta:hover {
    background: #09612f;
  }
}

/* Judul sambutan: Arial 38px/400 normal di semua ukuran layar. */
.sambutan-heading.cms-sambutan-heading {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
}

/* ============================================================
   HEADER & NAVIGASI — struktur dari kode yang diberikan pengguna.
   Font tetap Poppins self-hosted (tanpa Google Fonts / Plus Jakarta Sans).
   ============================================================ */
.site-header {
  position: relative;
  width: 100%;
  padding: 0;
  background-color: #ffffff;
  border-bottom: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

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

/* ---------- TOP BAR (HIJAU TUA) ---------- */
.top-bar {
  background-color: #185831;
  color: #ffffff;
  font-size: 13px;
  padding: 9px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-contact a {
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.top-contact a:hover {
  text-decoration: underline;
}

.top-contact .divider {
  color: rgba(255, 255, 255, 0.45);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-social a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.top-social a:hover {
  opacity: 0.8;
}

.language-flags {
  display: flex;
  align-items: center;
  gap: 7px;
}

.flag-btn {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.flag-btn:hover {
  transform: scale(1.08);
}

/* ---------- MAIN NAVBAR (PUTIH) ---------- */
.main-nav {
  background-color: #ffffff;
  padding: 16px 0;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-logo {
  width: 210px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

/* LOGO.png sudah memuat identitas tertulis, jadi teks brand disembunyikan
   agar tidak dobel dengan tulisan pada gambar. */
.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}

.brand-sub {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.brand-title {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #167936;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #266b3a;
}

.caret {
  font-size: 10px;
  line-height: 1;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  min-width: 180px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #185831;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #f0fdf4;
  color: #185831;
}

.search-form {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-input {
  width: 215px;
  height: 40px;
  padding: 0 14px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-right: none;
  border-radius: 5px 0 0 5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-input:focus {
  border-color: #29703d;
}

.search-btn {
  width: 44px;
  height: 40px;
  background-color: #29703d;
  border: none;
  border-radius: 0 5px 5px 0;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-btn:hover {
  background-color: #1d542d;
}

/* ---------- GARIS ANIMASI & EFEK CAHAYA (LEBIH LAMBAT) ---------- */
.header-line {
  position: relative;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, #185831, #2ecc40, #4ade80, #2ecc40, #185831);
  background-size: 200% 100%;
  overflow: hidden;
  transform-origin: left center;
  box-shadow:
    0 1px 3px rgba(46, 204, 64, 0.3),
    0 2px 6px rgba(46, 204, 64, 0.18);
  animation:
    lineExpand 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    lineShimmer 6s linear infinite,
    lineGlow 4s ease-in-out infinite alternate;
}

.header-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -25%;
  width: 25%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(187, 247, 208, 0.65) 35%,
    #ffffff 50%,
    rgba(187, 247, 208, 0.65) 65%,
    transparent 100%
  );
  filter: blur(0.4px);
  animation: lightSweep 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes lineExpand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes lineShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

@keyframes lineGlow {
  from {
    box-shadow:
      0 1px 2px rgba(46, 204, 64, 0.18),
      0 1px 5px rgba(46, 204, 64, 0.1);
  }
  to {
    box-shadow:
      0 1px 5px rgba(74, 222, 128, 0.4),
      0 2px 8px rgba(46, 204, 64, 0.22);
  }
}

@keyframes lightSweep {
  0% { left: -25%; }
  70%, 100% { left: 125%; }
}

/* ---------- RESPONSIVE (MOBILE/TABLET) ---------- */
@media (max-width: 1024px) {
  .main-nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-menu {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hdr-container {
    padding-right: 15px;
    padding-left: 15px;
  }

  .main-nav {
    padding: 10px 0;
  }

  .main-nav-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-menu,
  .search-form {
    display: none !important;
  }

  .site-mobile-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  .site-mobile-search {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    max-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #185831;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.12s ease;
  }

  .site-mobile-search i {
    font-size: 16px;
    line-height: 1;
  }

  .site-mobile-search:active {
    background: #0f3d20;
    transform: scale(0.95);
  }

  .site-menu-toggle {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    max-width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: #185831;
    transition: background-color 0.2s ease, transform 0.12s ease;
  }

  .site-menu-toggle span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
  }

  .site-menu-toggle:active {
    background: #0f3d20;
    transform: scale(0.95);
  }

  .site-mobile-panel:not(.hidden) {
    max-height: 65vh;
    overflow-y: auto;
    padding: 12px 15px;
  }

  .site-mobile-search-form .search-input {
    flex: 1 1 auto;
    width: 100%;
    border-radius: 5px 0 0 5px;
  }

  .site-mobile-link {
    padding: 12px 0;
    font-size: 14px;
  }

  .site-mobile-submenu a,
  .site-mobile-submenu button {
    padding: 9px 0;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .top-bar {
    font-size: 12px;
    padding: 7px 0;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .top-right {
    width: 100%;
    justify-content: center;
    gap: 18px;
  }

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

  .search-input {
    width: 180px;
  }
}

/* Layar sangat sempit: jaga area sentuh tetap nyaman tanpa memaksa logo melebar. */
@media (max-width: 380px) {
  .brand-logo {
    width: 140px;
    height: 42px;
  }

  .site-mobile-controls {
    gap: 6px;
  }

  .site-mobile-search,
  .site-menu-toggle {
    flex-basis: 40px;
    width: 40px;
    max-width: 40px;
    height: 40px;
  }

  .site-mobile-search,
  .site-mobile-search i {
    font-size: 15px;
  }

  .site-menu-toggle {
    gap: 4px;
    padding: 0 9px;
  }

  .site-menu-toggle span {
    height: 2px;
    border-radius: 2px;
  }
}

/* Tinggi header baru: top bar + navbar + garis animasi. */
:root {
  --site-header-total: 128px;
}

@media (min-width: 1025px) and (max-width: 1366px) {
  :root { --site-header-total: 128px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  :root { --site-header-total: 148px; }
}

@media (max-width: 860px) {
  :root { --site-header-total: 180px; }
}

@media (max-width: 767px) {
  :root { --site-header-total: 112px; }
}

@media (max-width: 640px) {
  :root { --site-header-total: 150px; }
}

/* ============================================================
   HALAMAN BACA / HALAMAN PUBLIK LAIN (layout main.php)
   Kembalikan tipografi Bootstrap yang ditekan oleh aturan beranda.
   ============================================================ */
body.portal-page {
  font-size: 16px;
  line-height: 1.6;
}

.portal-page .site-main {
  padding-bottom: 24px;
}

/* Samakan lebar konten dengan container header/footer (1280px). */
.portal-page .site-main .container {
  max-width: 1280px;
}

.portal-page .section {
  padding: 40px 0 64px;
}

.portal-page .article-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.portal-page .article-content {
  font-size: 16px;
  line-height: 1.85;
}

.portal-page .article-content p,
.portal-page .article-content ul,
.portal-page .article-content ol {
  margin-bottom: 1.1rem;
}

.portal-page .article-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.portal-page .article-content table {
  width: 100%;
  font-size: 15px;
}

.portal-page .article-meta {
  font-size: 14px;
}

.portal-page .side-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}

.portal-page .mini-item-title {
  font-size: 14px;
}

.portal-page .mini-item-meta {
  font-size: 12px;
}

.portal-page .breadcrumb {
  font-size: 14px;
}

@media (max-width: 767px) {
  .portal-page .section {
    padding: 28px 0 48px;
  }

  .portal-page .article-title {
    font-size: 26px;
  }

  .portal-page .article-content {
    font-size: 15px;
    line-height: 1.8;
  }
}


