:root {
  --site-blue: #1a56b8;
  --site-blue-dark: #0b3d91;
  --site-blue-deep: #0a2d6b;
  --site-cyan: #06b6d4;
  --site-cyan-light: #22d3ee;
  --site-gold: #f5b800;
  --site-gold-dark: #e5a800;
  --site-gold-deep: #c99700;
  --site-orange: #f97316;
  --site-orange-dark: #ea580c;
  --site-white: #ffffff;
  --site-text: #1a56b8;
  --site-muted: #64748b;
  --site-shadow: 0 12px 40px rgba(10, 45, 107, 0.12);
  --site-radius: 4px;
  --site-font: "Poppins", "Segoe UI", sans-serif;
}

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

body.esantri-site {
  margin: 0;
  font-family: var(--site-font);
  color: #334155;
  background: var(--site-white);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.site-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: relative;
  z-index: 50;
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 100%);
}

.site-header--solid {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: box-shadow .2s ease;
}

.site-header--solid.is-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 104px;
  padding: 10px 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.site-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.page-inner .site-logo-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(10, 45, 107, 0.08);
}

.site-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand-text small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
}

.site-brand-text strong {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-home .site-header--overlay .site-brand-text,
.page-home .site-header--overlay .site-nav a {
  color: #fff;
}

.page-home .site-header--overlay .site-brand-text strong,
.page-home .site-header--overlay .site-brand-text .site-brand-line3 {
  color: #fff;
}

.site-nav-toggle {
  display: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(10, 45, 107, 0.72);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 55;
  position: relative;
}

.site-nav-toggle.is-open {
  background: rgba(10, 45, 107, 0.92);
}

.page-inner .site-nav-toggle {
  background: var(--site-blue);
  border-color: var(--site-blue);
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: center;
  align-items: center;
  gap: 8px 6px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 300px);
}

.site-nav > ul > li {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
  line-height: 1.35;
  min-height: 34px;
}

/* EN / AR — teks lebih panjang, muat 2 baris */
html[lang="en"] .site-nav > ul > li > a,
html[lang="ar"] .site-nav > ul > li > a,
body.esantri-site.is-rtl .site-nav > ul > li > a {
  font-size: 11px;
  padding: 6px 8px;
  letter-spacing: 0;
  min-height: 32px;
}

@media (min-width: 1100px) {
  html[lang="en"] .site-nav > ul > li > a,
  html[lang="ar"] .site-nav > ul > li > a,
  body.esantri-site.is-rtl .site-nav > ul > li > a {
    font-size: 12px;
    padding: 7px 9px;
  }

  .site-nav > ul {
    max-width: calc(100% - 340px);
    gap: 10px 8px;
  }
}

@media (min-width: 1280px) {
  .site-header-inner {
    min-height: 96px;
  }

  html[lang="en"] .site-nav > ul,
  html[lang="ar"] .site-nav > ul,
  body.esantri-site.is-rtl .site-nav > ul {
    max-width: calc(100% - 360px);
  }
}

.page-inner .site-nav > ul > li > a {
  color: var(--site-blue);
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li > a.is-active {
  color: var(--site-orange) !important;
}

.site-nav .has-children { position: relative; }

.site-nav .has-children::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 6px;
  z-index: 59;
}

.site-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--site-shadow);
  z-index: 60;
  flex-direction: column;
  overflow: hidden;
}

.site-nav .has-children:hover > .site-submenu,
.site-nav .has-children:focus-within > .site-submenu {
  display: flex;
}

.site-submenu li + li {
  border-top: 1px solid #e2e8f0;
}

.site-submenu a {
  display: block;
  padding: 11px 16px;
  color: var(--site-blue) !important;
  text-decoration: none;
  font-size: 13px;
  border-radius: 0;
  transition: background .2s, color .2s;
}

.site-submenu a:hover { background: #f1f5f9; }

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: 4px;
  flex: 0 0 auto;
  align-self: center;
}

.site-login-menu {
  position: relative;
}

.site-login-menu::before,
.site-lang-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 6px;
  z-index: 69;
}

.site-lang-menu {
  position: relative;
}

.site-btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}

.page-inner .site-btn-lang {
  border-color: rgba(26, 86, 184, 0.22);
  background: #fff;
  color: var(--site-blue);
  box-shadow: 0 4px 14px rgba(10, 45, 107, 0.08);
}

.site-btn-lang:hover,
.site-lang-menu.is-open .site-btn-lang {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.7);
}

.page-inner .site-btn-lang:hover,
.page-inner .site-lang-menu.is-open .site-btn-lang {
  background: #f8fafc;
  border-color: rgba(26, 86, 184, 0.35);
}

.site-btn-lang-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.site-lang-menu.is-open .site-btn-lang .site-btn-login-caret {
  transform: rotate(180deg);
}

.site-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .2s;
  max-width: 200px;
  text-decoration: none;
}

a.site-btn-login--direct:hover {
  color: #fff;
  text-decoration: none;
}

.page-inner .site-btn-login {
  border-color: rgba(26, 86, 184, 0.22);
  background: #fff;
  color: var(--site-blue);
  box-shadow: 0 4px 14px rgba(10, 45, 107, 0.08);
}

.site-btn-login:hover,
.site-login-menu.is-open .site-btn-login {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.7);
}

.page-inner .site-btn-login:hover,
.page-inner .site-login-menu.is-open .site-btn-login,
.page-inner a.site-btn-login--direct:hover {
  background: #f8fafc;
  border-color: rgba(26, 86, 184, 0.35);
}

.site-btn-login-icon {
  font-size: 18px;
  line-height: 1;
}

.site-btn-login-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--site-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.page-inner .site-btn-login-avatar {
  background: linear-gradient(135deg, var(--site-blue), var(--site-blue-dark));
}

.site-btn-login-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-btn-login-caret {
  font-size: 12px;
  opacity: .85;
  transition: transform .2s;
}

.site-login-menu.is-open .site-btn-login-caret {
  transform: rotate(180deg);
}

.site-login-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 230px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10, 45, 107, 0.18);
  z-index: 70;
  overflow: hidden;
}

.site-login-menu.is-open .site-login-dropdown {
  display: block;
}

.site-lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10, 45, 107, 0.18);
  z-index: 70;
  overflow: hidden;
}

.site-lang-menu.is-open .site-lang-dropdown {
  display: block;
}

.site-login-dropdown li + li,
.site-lang-dropdown li + li {
  border-top: 1px solid #e2e8f0;
}

.site-login-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--site-blue) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0;
  transition: background .2s, color .2s;
}

.site-lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--site-blue) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0;
  transition: background .2s, color .2s;
}

.site-lang-dropdown a i {
  width: 16px;
  text-align: center;
  font-size: 12px;
  color: transparent;
}

.site-lang-dropdown a.is-active i {
  color: var(--site-orange);
}

.site-lang-dropdown a.is-active {
  background: #eff6ff;
}

.site-login-dropdown a i {
  width: 18px;
  text-align: center;
  color: var(--site-orange);
}

.site-login-dropdown a:hover {
  background: #eff6ff;
  color: var(--site-blue-dark) !important;
}

.site-btn-admisi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  margin-left: 0;
  background: var(--site-blue);
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .2s;
}

.site-btn-admisi--toggle {
  width: 100%;
}

.site-btn-admisi-caret {
  font-size: 12px;
  transition: transform .2s;
}

.site-ppdb-menu {
  position: relative;
}

.site-ppdb-menu.is-open .site-btn-admisi-caret {
  transform: rotate(180deg);
}

.site-ppdb-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  border: 1px solid #e2e8f0;
  z-index: 1200;
}

.site-ppdb-menu.is-open .site-ppdb-dropdown {
  display: block;
}

.site-ppdb-dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--site-blue) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.site-ppdb-dropdown a:hover {
  background: #eff6ff;
  color: var(--site-blue-dark) !important;
}

.site-btn-admisi:hover {
  background: var(--site-blue-dark);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.site-hero-shell {
  position: relative;
}

.site-hero {
  position: relative;
  min-height: 88vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.site-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.55) 100%);
}

.site-hero-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 20px;
  padding: 0 0 64px;
}

.site-hero-copy {
  max-width: 920px;
  margin: 0 auto;
}

.site-hero-copy h1 {
  margin: 0 auto;
  max-width: 900px;
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
}

.site-hero-lead {
  margin: 16px auto 0;
  max-width: 720px;
  color: rgba(255,255,255,.92);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.site-hero-more {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255,255,255,.55);
  transition: border-color .2s;
}

.site-hero-more:hover { border-color: #fff; }

/* ===== INTRO ===== */
.site-intro {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.site-intro-deco {
  position: absolute;
  width: 280px;
  height: 420px;
  opacity: .85;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(26, 86, 184, 0.18) 0%, transparent 70%);
}

.site-intro-deco--left {
  left: -80px;
  top: 20px;
  transform: rotate(-12deg);
  border-left: 8px solid rgba(26, 86, 184, 0.25);
  border-radius: 50% 0 0 50%;
}

.site-intro-deco--right {
  right: -80px;
  top: 20px;
  transform: rotate(12deg);
  border-right: 8px solid rgba(26, 86, 184, 0.25);
  border-radius: 0 50% 50% 0;
}

.site-intro-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
}

.site-intro-logo {
  width: 110px;
  height: auto;
  margin: 0 auto 24px;
}

.site-intro-text {
  margin: 0;
  color: var(--site-blue);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.7;
}

/* ===== WHAT WE OFFER ===== */
.site-offer {
  padding: 56px 0 64px;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.site-offer-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.site-offer-head h2 {
  margin: 0;
  color: var(--site-blue);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
}

.site-offer-head p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.85;
  max-width: 640px;
}

.site-link-more {
  color: var(--site-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: color .2s, transform .2s;
}

.site-link-more--center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(26, 86, 184, 0.08);
  border: 1px solid rgba(26, 86, 184, 0.14);
}

.site-link-more--center:hover {
  color: #fff;
  background: var(--site-blue);
  border-color: var(--site-blue);
  transform: translateY(-1px);
}

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

.site-gallery-grid--modern {
  margin-bottom: 8px;
}

.site-gallery-item {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(10, 45, 107, 0.12);
  border: 3px solid #fff;
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.site-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(10, 45, 107, 0.16);
}

.site-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.site-gallery-item:hover img { transform: scale(1.06); }

.site-gallery-placeholder,
.site-program-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 55%, #ecfeff 100%);
  color: var(--site-blue);
  font-size: 42px;
}

/* ===== PROGRAMS ===== */
.site-programs {
  padding: 32px 0 72px;
  background: #fff;
}

.site-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.site-program-card {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 22px;
  padding: 24px 22px 26px;
  box-shadow: 0 10px 32px rgba(10, 45, 107, 0.07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.site-program-card:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 86, 184, 0.18);
  box-shadow: 0 18px 42px rgba(10, 45, 107, 0.12);
}

.site-program-card h3 {
  margin: 0 0 18px;
  text-align: center;
  color: var(--site-blue);
  font-size: 1.12rem;
  font-weight: 700;
}

.site-program-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(10, 45, 107, 0.1);
  border: 3px solid #fff;
  background: linear-gradient(145deg, #dbeafe, #ecfeff);
}

.site-program-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.site-program-card:hover .site-program-media img {
  transform: scale(1.04);
}

.site-program-card p {
  margin: 0;
  text-align: center;
  color: #334155;
  font-size: 14px;
  line-height: 1.85;
}

/* ===== INFORMASI TERKINI (homepage) ===== */
.site-info-latest {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.site-info-latest-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.site-info-latest-head h2 {
  margin: 0 0 10px;
  color: var(--site-blue-deep);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-info-latest-head p {
  margin: 0;
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.7;
}

.site-info-latest-line {
  display: block;
  width: 72px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--site-blue), var(--site-cyan));
}

.site-info-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.site-info-latest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.site-info-latest-media {
  display: block;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 14px 36px rgba(10, 45, 107, 0.12);
}

.site-info-latest-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.site-info-latest-card:hover .site-info-latest-media img {
  transform: scale(1.06);
}

.site-info-latest-body {
  position: relative;
  z-index: 2;
  margin: -42px 18px 0;
  padding: 22px 22px 24px;
  background: var(--site-white);
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 40px rgba(10, 45, 107, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}

.site-info-latest-card:hover .site-info-latest-body {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(10, 45, 107, 0.14);
}

.site-info-latest-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.site-info-latest-meta time {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.site-info-latest-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-info-latest-badge--berita {
  background: rgba(26, 86, 184, 0.12);
  color: var(--site-blue);
}

.site-info-latest-badge--artikel {
  background: rgba(6, 182, 212, 0.14);
  color: #0891b2;
}

.site-info-latest-badge--pengumuman {
  background: rgba(249, 115, 22, 0.14);
  color: var(--site-orange-dark);
}

.site-info-latest-body h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 700;
}

.site-info-latest-body h3 a {
  color: var(--site-blue-deep);
  text-decoration: none;
  transition: color .2s ease;
}

.site-info-latest-body h3 a:hover {
  color: var(--site-cyan);
}

.site-info-latest-body p {
  margin: 0 0 16px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.75;
  flex: 1;
}

.site-info-latest-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--site-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, gap .2s ease;
}

.site-info-latest-more:hover {
  color: var(--site-cyan);
  gap: 12px;
}

.site-info-latest-foot {
  margin-top: 40px;
  text-align: center;
}

/* ===== PROMO (gb2-style) ===== */
.site-promo {
  padding: 56px 0 64px;
  background: #fff;
}

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

.site-promo-title {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.35;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.site-promo-accent {
  color: var(--site-cyan);
}

.site-promo-text {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--site-muted);
}

.site-promo-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-promo-visual img {
  width: min(100%, 480px);
  height: auto;
  object-fit: contain;
}

.site-btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--site-cyan), #0891b2);
  color: var(--site-white) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.38);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.site-btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.48);
  color: var(--site-white) !important;
}

.site-btn-modern i {
  font-size: 18px;
  transition: transform .25s ease;
}

.site-btn-modern:hover i {
  transform: translateX(4px);
}

.site-btn-modern--light {
  background: var(--site-white);
  color: var(--site-blue-deep) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.site-btn-modern--light:hover {
  background: #f8fafc;
  color: var(--site-blue-deep) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

/* ===== CTA BANNER ===== */
.site-cta-banner {
  background: linear-gradient(135deg, var(--site-gold-dark), var(--site-gold-deep));
  padding: 36px 0;
}

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

.site-cta-inner h2 {
  margin: 0 0 6px;
  color: var(--site-white);
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: .02em;
}

.site-cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}

.site-btn-cta {
  background: var(--site-blue);
  color: var(--site-white) !important;
  box-shadow: 0 8px 24px rgba(10, 45, 107, 0.25);
}

.site-btn-cta:hover {
  background: var(--site-blue-dark);
  color: var(--site-white) !important;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  background: var(--site-blue-deep) url('../images/bg_login.jpg') center/cover no-repeat;
  background-image: var(--footer-bg-image, none), linear-gradient(var(--site-blue-deep), var(--site-blue-deep));
  background-size: cover;
  background-position: center;
}

.site-footer-overlay {
  background: rgba(10, 45, 107, 0.88);
  padding: 48px 0 0;
}

.site-footer-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

.site-footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.site-footer-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-footer-brand small {
  font-size: 12px;
  opacity: .9;
}

.site-footer-brand strong {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #fff !important;
  border-radius: 10px;
  font-size: 18px;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

.site-footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.22);
}

.site-icon-tiktok {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.site-footer-middle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.site-footer-follow {
  min-width: 180px;
}

.site-footer-follow-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}

.site-footer-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 0;
  border-bottom: 0;
}

.site-footer-contact-item {
  display: flex;
  gap: 14px;
  color: #fff;
}

.site-footer-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--site-gold);
  color: var(--site-blue-deep);
  border-radius: 8px;
  font-size: 18px;
}

.site-footer-contact-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.site-footer-contact-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  opacity: .92;
}

.site-footer-contact-item a {
  color: #fff;
  text-decoration: none;
}

.site-footer-bottom {
  text-align: center;
  padding: 18px 0 22px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}

/* ===== WHATSAPP FLOAT ===== */
.site-wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  z-index: 999;
  transition: transform .2s;
}

.site-wa-float:hover { transform: scale(1.08); }

/* ===== INNER PAGES ===== */
.site-page-hero {
  background: linear-gradient(to bottom, var(--site-blue) 0%, var(--site-blue-dark) 45%, var(--site-cyan) 100%);
  color: #fff;
  padding: 48px 0 40px;
  margin-top: 0;
}

.site-page-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.site-page-hero p {
  margin: 10px 0 0;
  opacity: .9;
}

.site-section-page { padding: 48px 0 64px; }

.site-page-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(15, 76, 129, 0.08);
}

.site-content {
  max-width: none;
  font-size: 15px;
  line-height: 1.85;
  color: #334155;
}

.site-content h2, .site-content h3 { color: var(--site-blue); }

.site-content p,
.site-content li {
  text-align: inherit;
}

.site-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.text-center { text-align: center; }

.alert {
  padding: 16px 20px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--site-blue);
}

.alert-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* ===== MODULE PAGES ===== */
.site-module-block { margin-bottom: 48px; }
.site-module-block:last-child { margin-bottom: 0; }
.site-module-title,
.site-module-head h2 {
  margin: 0 0 24px;
  color: var(--site-blue);
  font-size: 1.35rem;
  font-weight: 800;
}
.site-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.site-module-head h2 { margin: 0; }
.site-module-intro { color: var(--site-muted); margin: 0 0 24px; }

.site-info-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.site-info-tab {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #fff;
  color: var(--site-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.site-info-tab:hover,
.site-info-tab.is-active {
  background: var(--site-blue);
  border-color: var(--site-blue);
  color: #fff;
}

.site-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.site-post-card {
  background: #fff;
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.site-post-card-media {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.site-post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.site-post-card:hover .site-post-card-media img { transform: scale(1.05); }
.site-post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.site-post-card-date {
  font-size: 12px;
  color: var(--site-muted);
  font-weight: 600;
}
.site-post-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}
.site-post-card-body h3 a {
  color: var(--site-blue);
  text-decoration: none;
}
.site-post-card-body h3 a:hover { color: var(--site-orange); }
.site-post-card-body p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}

.site-news {
  padding: 56px 0;
  border-top: 1px solid #e2e8f0;
}

.site-post-cover {
  margin: 0 0 28px;
  border-radius: var(--site-radius);
  overflow: hidden;
  box-shadow: var(--site-shadow);
}
.site-post-cover img { width: 100%; height: auto; }
.site-post-lead {
  font-size: 1.1rem;
  color: var(--site-blue);
  font-weight: 500;
  margin-bottom: 24px;
}
.site-post-body { margin-bottom: 32px; }
.site-post-back { margin-top: 32px; }

.site-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.site-card {
  background: #fff;
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  overflow: hidden;
}
.site-card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.site-card-media img,
.site-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-card-body { padding: 20px; }
.site-card-body h3 {
  margin: 0 0 10px;
  color: var(--site-blue);
  font-size: 1.05rem;
}
.site-card-body p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}
.site-card-meta {
  color: var(--site-muted);
  font-size: 13px;
  margin-bottom: 8px !important;
}
.site-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--site-blue);
  font-size: 12px;
  font-weight: 700;
}

.site-gallery-grid--page .site-gallery-item figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--site-blue);
  background: #fff;
}

/* Unified gallery page */
.site-gallery-page {
  padding-top: 8px;
}

.site-gallery-section + .site-gallery-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #e8eef8;
}

.site-gallery-section-head {
  margin-bottom: 24px;
}

.site-gallery-section-head h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: var(--site-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-gallery-section-head p {
  margin: 0;
  color: #64748b;
}

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

.site-gallery-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 45, 107, 0.1);
  border: 1px solid #e8eef8;
  transition: transform .28s ease, box-shadow .28s ease;
}

.site-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 45, 107, 0.14);
}

.site-gallery-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eff6ff;
}

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

.site-gallery-card:hover .site-gallery-card-media img {
  transform: scale(1.06);
}

.site-gallery-card-zoom,
.site-gallery-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 45, 107, 0.35);
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transition: opacity .25s ease;
}

.site-gallery-card-play {
  font-size: 22px;
}

.site-gallery-card-play i {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--site-blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.site-gallery-card:hover .site-gallery-card-zoom,
.site-gallery-card:hover .site-gallery-card-play {
  opacity: 1;
}

.site-gallery-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.site-gallery-card-body strong {
  color: var(--site-blue);
  font-size: 0.98rem;
  line-height: 1.35;
}

.site-gallery-card-body span {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.site-gallery-lightbox[hidden] {
  display: none !important;
}

.site-gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
}

.site-gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.site-gallery-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
}

.site-gallery-lightbox-media {
  background: #0f172a;
}

.site-gallery-lightbox-media img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin: 0 auto;
}

.site-gallery-lightbox-media iframe,
.site-gallery-lightbox-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  background: #000;
}

.site-gallery-lightbox-caption {
  padding: 18px 20px 22px;
}

.site-gallery-lightbox-caption h3 {
  margin: 0 0 8px;
  color: var(--site-blue);
  font-size: 1.15rem;
}

.site-gallery-lightbox-caption p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

body.site-gallery-lightbox-open {
  overflow: hidden;
}

.site-ustadz-page {
  padding-top: 8px;
}

.site-ustadz-empty {
  margin: 0;
}

.site-ustadz-leader {
  text-align: center;
  margin-bottom: 56px;
}

.site-ustadz-leader-label {
  margin: 0 0 20px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--site-orange);
}

.site-ustadz-leader-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.site-ustadz-leader-card:hover,
.site-ustadz-leader-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.site-ustadz-leader-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 12px 32px rgba(15, 76, 129, 0.18);
  background: #eff6ff;
}

.site-ustadz-leader-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.site-ustadz-leader-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--site-blue);
  line-height: 1.35;
}

.site-ustadz-leader-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--site-orange);
}

.site-ustadz-leader-subject {
  font-size: 0.9rem;
  color: var(--site-muted);
}

.site-ustadz-leader-hint {
  font-size: 0.82rem;
  color: #94a3b8;
}

.site-ustadz-section + .site-ustadz-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #e8eef8;
}

.site-ustadz-section-head {
  text-align: center;
  margin-bottom: 28px;
}

.site-ustadz-section-head h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: var(--site-blue);
}

.site-ustadz-section-head p {
  margin: 0;
  color: #64748b;
}

.site-ustadz-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  --ustadz-visible: 5;
  --ustadz-gap: 20px;
}

.site-ustadz-slider-viewport {
  container-type: inline-size;
  overflow: hidden;
  min-width: 0;
}

.site-ustadz-slider-track {
  display: flex;
  gap: var(--ustadz-gap);
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0 16px;
}

.site-ustadz-slider-track::-webkit-scrollbar {
  display: none;
}

.site-ustadz-slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #dbeafe;
  background: #fff;
  color: var(--site-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 76, 129, 0.08);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.site-ustadz-slider-btn:hover:not(:disabled),
.site-ustadz-slider-btn:focus-visible {
  background: var(--site-blue);
  color: #fff;
  outline: none;
}

.site-ustadz-slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.site-ustadz-circle-card {
  flex: 0 0 calc((100cqi - (var(--ustadz-visible) - 1) * var(--ustadz-gap)) / var(--ustadz-visible));
  width: calc((100cqi - (var(--ustadz-visible) - 1) * var(--ustadz-gap)) / var(--ustadz-visible));
  min-width: 0;
  max-width: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease;
}

.site-ustadz-circle-card:hover,
.site-ustadz-circle-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.site-ustadz-circle-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.12);
  background: #eff6ff;
  flex-shrink: 0;
}

.site-ustadz-circle-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.site-ustadz-circle-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--site-blue);
  line-height: 1.35;
}

.site-ustadz-circle-subject {
  font-size: 0.82rem;
  color: var(--site-muted);
  line-height: 1.4;
}

.site-ustadz-circle-subject--muted {
  font-style: italic;
}

.site-ustadz-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.site-ustadz-modal[hidden] {
  display: none !important;
}

.site-ustadz-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.site-ustadz-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: var(--site-radius);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  text-align: center;
}

.site-ustadz-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--site-blue);
  cursor: pointer;
  z-index: 2;
}

.site-ustadz-modal-photo {
  width: 160px;
  height: 160px;
  margin: 28px auto 0;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #eff6ff;
  background: #eff6ff;
}

.site-ustadz-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-ustadz-modal-body {
  padding: 20px 24px 28px;
}

.site-ustadz-modal-body h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--site-blue);
}

.site-ustadz-modal-role {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--site-orange);
  font-size: 0.92rem;
}

.site-ustadz-modal-subject {
  margin: 0 0 12px;
  color: var(--site-muted);
  font-size: 0.88rem;
}

.site-ustadz-modal-bio {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: left;
}

body.site-ustadz-modal-open {
  overflow: hidden;
}

/* Informasi PSB */
.site-psb-info-page {
  padding-top: 8px;
}

.site-psb-info-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.site-psb-info-section {
  margin-bottom: 36px;
}

.site-psb-info-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.site-psb-info-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111827;
  text-transform: uppercase;
}

.site-psb-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.site-psb-icon--red {
  color: #dc2626;
  background: #fef2f2;
}

.site-psb-icon--yellow {
  color: #ca8a04;
  background: #fefce8;
}

.site-psb-info-body {
  padding-left: 46px;
  color: #334155;
  font-size: 15px;
  line-height: 1.85;
}

.site-psb-info-body ol,
.site-psb-info-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.site-psb-info-body li + li {
  margin-top: 6px;
}

.site-psb-info-body ol ol {
  margin-top: 8px;
}

.site-psb-info-body p,
.site-psb-info-body li {
  text-align: inherit;
}

.site-psb-info-body a {
  color: var(--site-blue);
  font-weight: 700;
}

.site-psb-info-actions {
  margin-top: 40px;
  text-align: center;
}

.site-psb-info-actions .site-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--site-blue);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.site-psb-info-actions .site-btn-primary:hover {
  background: var(--site-blue-dark);
}

.site-ustadz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.site-ustadz-card {
  background: #fff;
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  overflow: hidden;
  text-align: center;
}
.site-ustadz-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: #eff6ff;
}
.site-ustadz-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-ustadz-body { padding: 20px; }
.site-ustadz-body h3 {
  margin: 0 0 6px;
  color: var(--site-blue);
  font-size: 1.05rem;
}
.site-ustadz-role {
  color: var(--site-orange);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px !important;
}
.site-ustadz-meta {
  color: var(--site-muted);
  font-size: 13px;
}

.site-kontak-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.site-kontak-info h2,
.site-kontak-form-wrap h2 {
  margin: 0 0 20px;
  color: var(--site-blue);
  font-size: 1.25rem;
}
.site-kontak-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  color: #334155;
}
.site-kontak-item i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--site-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-kontak-map {
  margin-top: 20px;
  border-radius: var(--site-radius);
  overflow: hidden;
}
.site-kontak-map iframe { width: 100%; min-height: 220px; border: 0; }
.site-kontak-form {
  background: #fff;
  padding: 24px;
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
}
.site-field { margin-bottom: 16px; }
.site-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--site-blue);
}
.site-field input,
.site-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}
.site-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.site-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.site-testimoni-section {
  padding: 56px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

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

.site-testimoni-grid--home .site-testimoni-card {
  background: #fff;
}

.site-testimoni-card {
  background: #fff;
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  padding: 24px;
}

.site-testimoni-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.site-testimoni-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.site-testimoni-top h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--site-blue);
}

.site-testimoni-role {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--site-muted);
}

.site-testimoni-city {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.site-testimoni-city .fa {
  margin-right: 4px;
  color: #94a3b8;
}

.site-testimoni-grid--page .site-testimoni-card {
  margin: 0;
}

.site-testimoni-stars {
  color: var(--site-gold-dark);
  font-size: 13px;
}

.site-testimoni-text {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.75;
  font-style: italic;
}

.site-beasiswa-syarat {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
}

.site-ppdb-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.site-ppdb-info h2 {
  margin: 0 0 10px;
  color: var(--site-blue);
}

.site-ppdb-info h3 {
  margin: 24px 0 12px;
  color: var(--site-blue);
  font-size: 1.05rem;
}

.site-ppdb-list {
  margin: 0;
  padding-left: 20px;
  color: #475569;
  line-height: 1.8;
}

.site-ppdb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.site-ppdb-table td {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.site-ppdb-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--site-blue);
}

/* ===== PPDB PAGE (gb1 + gb2) ===== */
.site-ppdb-page {
  padding-top: 32px;
  padding-bottom: 64px;
}

.site-ppdb-alert {
  margin-bottom: 24px;
}

.site-ppdb-promo {
  margin-bottom: 40px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 55%, #fff 100%);
  border: 1px solid rgba(26, 86, 184, 0.1);
  box-shadow: var(--site-shadow);
}

.site-ppdb-promo-meta {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: #475569;
  font-size: 14px;
}

.site-ppdb-promo-meta li i {
  color: var(--site-cyan);
  margin-right: 6px;
}

.site-ppdb-promo-visual img {
  max-height: 220px;
  width: auto;
  margin: 0 auto;
}

.site-ppdb-info-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--site-shadow);
  border: 1px solid #e8eef8;
  position: sticky;
  top: 120px;
}

.site-ppdb-info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-ppdb-info-card h3 i {
  color: var(--site-cyan);
}

.site-ppdb-form-wrap {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(10, 45, 107, 0.1);
  border: 1px solid #e8eef8;
  overflow: hidden;
}

.site-ppdb-form-head {
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--site-blue), var(--site-blue-dark));
  color: #fff;
}

.site-ppdb-form-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.site-ppdb-form-head p {
  margin: 0;
  opacity: 0.92;
  font-size: 14px;
}

.site-ppdb-form {
  padding: 8px 28px 28px;
}

.site-ppdb-form-section {
  padding: 24px 0;
  border-bottom: 1px solid #e8eef8;
}

.site-ppdb-form-section--last {
  border-bottom: 0;
  padding-bottom: 8px;
}

.site-ppdb-form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 1.05rem;
  color: var(--site-blue);
}

.site-ppdb-form-section-title span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--site-cyan), var(--site-blue));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.site-ppdb-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 20px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.site-ppdb-agree input {
  margin-top: 3px;
}

.site-ppdb-submit {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px;
}

.site-ppdb-closed {
  text-align: center;
  max-width: 520px;
  margin: 40px auto;
  padding: 48px 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--site-shadow);
}

.site-ppdb-closed-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--site-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.site-ppdb-closed h2 {
  margin: 0 0 10px;
  color: var(--site-blue);
}

.site-ppdb-closed p {
  margin: 0;
  color: #64748b;
}

/* PPDB reference form (horizontal layout) */
.site-ppdb-ref-container {
  max-width: 860px;
  padding-top: 32px;
  padding-bottom: 48px;
}

.site-ppdb-ref-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: var(--site-shadow);
  padding: 28px 32px 32px;
}

.site-ppdb-ref-head {
  text-align: center;
  margin-bottom: 24px;
}

.site-ppdb-ref-head h1 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  color: var(--site-blue);
}

.site-ppdb-ref-login-top,
.site-ppdb-ref-login-bottom {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.site-ppdb-ref-login-top a,
.site-ppdb-ref-login-bottom a {
  color: var(--site-blue);
  font-weight: 600;
}

.site-ppdb-ref-divider {
  text-align: center;
  margin: 8px 0 20px;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.site-ppdb-ref-divider span {
  font-weight: 600;
  color: #334155;
}

.site-ppdb-ref-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px 20px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.site-ppdb-ref-label {
  text-align: right;
  padding-top: 10px;
  font-weight: 500;
  color: #334155;
}

.site-ppdb-ref-label .required {
  color: #dc2626;
}

.site-ppdb-ref-field input[type="text"],
.site-ppdb-ref-field input[type="email"],
.site-ppdb-ref-field input[type="password"],
.site-ppdb-ref-field input[type="date"],
.site-ppdb-ref-field select,
.site-ppdb-ref-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.site-ppdb-ref-help {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.site-ppdb-ref-help a {
  color: var(--site-blue);
}

.site-ppdb-pw-wrap {
  position: relative;
}

.site-ppdb-pw-wrap input {
  padding-right: 44px;
}

.site-ppdb-pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.site-ppdb-ref-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.site-ppdb-ref-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  cursor: pointer;
}

.site-ppdb-ref-ref-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-ppdb-ref-ref-wrap select {
  flex: 1 1 200px;
}

.site-ppdb-ref-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}

.site-ppdb-ref-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  line-height: 1.5;
}

.site-ppdb-ref-agree input {
  margin-top: 4px;
}

.site-ppdb-ref-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 8px;
}

.site-ppdb-login-card .site-ppdb-ref-head p {
  color: #64748b;
}

.site-ppdb-status-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.site-ppdb-status-box h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: var(--site-blue);
}

.site-ppdb-status-table {
  width: 100%;
  border-collapse: collapse;
}

.site-ppdb-status-table th,
.site-ppdb-status-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.site-ppdb-status-table th {
  width: 38%;
  background: #f8fafc;
}

.site-ppdb-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .site-header {
    z-index: 65;
  }

  .site-header-inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 80px;
    padding: 8px 0;
    z-index: 66;
  }

  body.site-nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 52;
  }

  .page-home .site-header.site-nav-open {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  }

  .page-inner .site-header.site-nav-open {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  }

  .site-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 52px);
    align-items: center;
  }

  .site-brand-text {
    min-width: 0;
  }

  .site-brand-text strong,
  .site-brand-text .site-brand-line3 {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.15;
    font-size: 12px;
  }

  .site-brand-text .site-brand-line3 {
    margin-top: 1px;
  }

  .site-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 94px;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    width: min(340px, 82vw);
    max-height: calc(100dvh - 106px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: rgba(10, 45, 107, 0.98);
    padding: 4px 12px 10px;
    gap: 2px;
    overflow-y: auto;
    z-index: 58;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .page-inner .site-nav {
    background: #fff;
    box-shadow: 0 18px 48px rgba(10, 45, 107, 0.18);
    border-color: #e2e8f0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav > ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    gap: 2px;
    margin: 0;
    padding: 0;
  }

  .site-nav > ul > li {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-nav > ul > li > a {
    color: #fff !important;
    justify-content: center;
    width: 100%;
    max-width: none;
    text-align: center;
    padding: 6px 8px;
    font-size: 14px;
    min-height: 0;
  }

  .page-inner .site-nav > ul > li > a {
    color: var(--site-blue) !important;
  }

  .site-nav .has-children > .site-submenu {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    display: none !important;
    margin-top: 0;
    width: 100%;
    max-width: none;
    align-items: center;
    border-radius: 8px;
  }

  .site-nav .has-children.is-open > .site-submenu {
    display: flex !important;
  }

  .page-inner .site-nav .has-children > .site-submenu {
    background: #f8fafc;
  }

  .site-submenu a {
    color: #fff !important;
    text-align: center;
    padding: 7px 10px;
    font-size: 13px;
  }

  .page-inner .site-submenu a {
    color: var(--site-blue) !important;
  }

  .site-btn-admisi {
    margin: 0;
    width: 100%;
  }

  .site-header-actions {
    margin: 0;
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .site-btn-admisi,
  .site-btn-login,
  .site-btn-login--direct,
  .site-btn-lang {
    padding: 8px 12px !important;
    font-size: 13px !important;
    min-height: 0;
  }

  .site-login-menu,
  .site-lang-menu,
  .site-ppdb-menu,
  .site-btn-login,
  .site-btn-lang {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .site-login-dropdown,
  .site-lang-dropdown,
  .site-ppdb-dropdown {
    position: static;
    margin-top: 8px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
  }

  .page-inner .site-login-dropdown,
  .page-inner .site-lang-dropdown,
  .page-inner .site-ppdb-dropdown {
    background: #f8fafc;
  }

  .site-login-dropdown a,
  .site-lang-dropdown a,
  .site-ppdb-dropdown a {
    color: #fff !important;
  }

  .page-inner .site-login-dropdown a,
  .page-inner .site-lang-dropdown a,
  .page-inner .site-ppdb-dropdown a {
    color: var(--site-blue) !important;
  }

  .site-psb-info-body {
    padding-left: 0;
  }

  .site-page-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  body.site-nav-open {
    overflow: hidden;
  }

  .site-offer-head {
    max-width: 100%;
    padding: 0 8px;
  }
  .site-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-gallery-grid--cards { grid-template-columns: repeat(2, 1fr); }
  .site-programs-grid { grid-template-columns: 1fr; }
  .site-info-latest-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .site-promo-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .site-promo-text { max-width: none; margin-left: auto; margin-right: auto; }
  .site-footer-middle { grid-template-columns: 1fr; }
  .site-footer-contact { grid-template-columns: 1fr; }
  .site-cta-inner { flex-direction: column; text-align: center; }
  .site-post-grid,
  .site-card-grid,
  .site-ustadz-grid { grid-template-columns: repeat(2, 1fr); }
  .site-kontak-layout { grid-template-columns: 1fr; }
  .site-ppdb-layout { grid-template-columns: 1fr; }
  .site-ppdb-info-card { position: static; }
  .site-ppdb-promo { padding: 24px 20px; }
  .site-ppdb-ref-row { grid-template-columns: 1fr; }
  .site-ppdb-ref-label { text-align: left; padding-top: 0; }
  .site-ppdb-ref-inline { grid-template-columns: 1fr; }
  .site-ppdb-ref-card { padding: 20px 16px; }
  .site-testimoni-grid { grid-template-columns: repeat(2, 1fr); }
  .site-ustadz-slider {
    --ustadz-visible: 2;
  }
  .site-ustadz-leader-photo {
    width: 190px;
    height: 190px;
  }
}

@media (max-width: 768px) {
  .site-hero { min-height: 72vh; }
  .site-hero-bottom { padding-bottom: 40px; }
  .site-header-inner { min-height: 72px; }
  .site-footer-top { flex-direction: column; align-items: flex-start; }
  .site-post-grid,
  .site-card-grid,
  .site-ustadz-grid,
  .site-info-latest-grid { grid-template-columns: 1fr; }
  .site-field-row { grid-template-columns: 1fr; }
  .site-testimoni-grid { grid-template-columns: 1fr; }
  .site-gallery-grid--cards { grid-template-columns: 1fr; }
  .site-ustadz-slider {
    --ustadz-visible: 1;
  }
  .site-ustadz-slider-btn {
    width: 36px;
    height: 36px;
  }
  .site-ustadz-leader-photo {
    width: 168px;
    height: 168px;
  }
}

/* --- Pimpinan, Struktur, Legalitas --- */
.site-pimpinan-page .site-pimpinan-block { margin-bottom: 40px; }
.site-pimpinan-block-title {
  font-size: 1.35rem;
  color: var(--site-blue);
  margin: 0 0 20px;
  font-weight: 700;
}
.site-pimpinan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.site-pimpinan-card {
  text-align: center;
  padding: 28px 22px;
  margin: 0;
}
.site-pimpinan-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(15, 76, 129, 0.12);
  box-shadow: 0 6px 18px rgba(15, 76, 129, 0.12);
}
.site-pimpinan-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-pimpinan-name {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: #0f172a;
}
.site-pimpinan-role {
  margin: 0;
  color: var(--site-blue);
  font-weight: 600;
  font-size: 0.92rem;
}

.site-struktur-card { overflow-x: auto; padding: 36px 28px; }
.site-struktur-tree { display: flex; justify-content: center; min-width: min-content; }
.site-struktur-level {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
  position: relative;
}
.site-struktur-level--0 { margin-bottom: 8px; }
.site-struktur-level:not(.site-struktur-level--0) {
  margin-top: 28px;
  padding-top: 28px;
  width: 100%;
}
.site-struktur-level:not(.site-struktur-level--0)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 18px;
  background: #cbd5e1;
  transform: translateX(-50%);
}
.site-struktur-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}
.site-struktur-box {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 22px rgba(15, 76, 129, 0.08);
  text-align: center;
}
.site-struktur-label {
  font-weight: 700;
  color: var(--site-blue);
  font-size: 0.95rem;
  line-height: 1.4;
}
.site-struktur-level--0 > .site-struktur-node > .site-struktur-box {
  background: linear-gradient(180deg, var(--site-blue) 0%, #1e5f9a 100%);
  border-color: transparent;
}
.site-struktur-level--0 > .site-struktur-node > .site-struktur-box .site-struktur-label {
  color: #fff;
}

.site-legalitas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.site-legalitas-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  overflow: hidden;
}
.site-legalitas-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 76, 129, 0.14);
  color: inherit;
}
.site-legalitas-preview {
  aspect-ratio: 4/3;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.site-legalitas-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-legalitas-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  font-size: 2.4rem;
}
.site-legalitas-pdf span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.site-legalitas-title {
  margin: 0;
  padding: 18px 20px 6px;
  font-size: 1rem;
  color: #0f172a;
}
.site-legalitas-hint {
  padding: 0 20px 18px;
  font-size: 0.82rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .site-pimpinan-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .site-legalitas-grid { grid-template-columns: 1fr; }
}
