:root {
  --font-sans: Inter, Lato, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --content-max: 1000px;
  --content-gutter: 32px;
  --content-max-default: 1000px;
  --content-gutter-default: 32px;
  --section-y: 25px;
  --card-padding: 18px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --green: #188446;
  --green-dark: #0f2d27;
  --nav-bg: rgba(6, 26, 18, 0.92);
  --nav-border: rgba(255, 255, 255, 0.10);
  --gold: #f1c84e;
  --site-header-space: 92px;
  --bg: #f6fbf7;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.35) transparent;
}
html, body { height: 100%; }
html { scrollbar-gutter: auto; }

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track { background: transparent; }

*::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.28);
  border-radius: 999px;
}

*:hover::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.38); }
*::-webkit-scrollbar-thumb:active { background: rgba(15, 23, 42, 0.50); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  line-height: 1.2;
  letter-spacing: -0.2px;
}

h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
h5 { font-size: 16px; font-weight: 600; }
h6 { font-size: 14px; font-weight: 600; letter-spacing: 0; }

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

html, body {
  overflow-x: hidden;
}

body.sd-landing {
  --content-max: 1280px;
  --content-gutter: 40px;
  --sd-hero-gutter: clamp(60px, 3vw, 90px);
}

body.masjid {
  --content-max: 1140px;
  --content-gutter: 32px;
  --masjid-featurecard-h: 360px;
}

body.masjid .site-header .container {
  width: min(var(--content-max-default), calc(100% - var(--content-gutter)));
}

@media (max-width: 860px) {
  body.sd-landing {
    --sd-hero-gutter: 18px;
    --content-gutter: 24px;
  }
  body.masjid {
    --content-gutter: 24px;
  }
}

body.sd-landing b,
body.sd-landing strong {
  font-weight: 600;
}

body.sd-landing .site-header .container {
  width: min(var(--content-max-default), calc(100% - var(--content-gutter-default)));
}

body.sd-landing .sd-welcome,
body.sd-landing .sd-nav-wrap {
  width: min(calc(100vw - (var(--sd-hero-gutter) * 2)), 100%);
  margin-left: auto;
  margin-right: auto;
}

.container {
  width: min(var(--content-max), calc(100% - var(--content-gutter)));
  margin: 0 auto;
}

body.sd-landing .sd-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  width: min(calc(100vw - (var(--sd-hero-gutter) * 2)), 100%);
  margin-left: auto;
  margin-right: auto;
}

body.sd-landing .sd-col-12 {
  grid-column: 1 / -1;
}

body.sd-landing .sd-module {
  padding: var(--section-y) 0;
}

body.sd-landing .sd-module + .sd-module {
  padding-top: 0;
}

body.sd-landing .sd-module--ppdb + .sd-module--tri {
  padding-top: var(--section-y);
}

body.sd-landing .sd-module:first-child {
  padding-top: 0;
}

body.sd-landing .sd-module:last-child {
  padding-bottom: 0;
}

body.sd-landing .sd-module--hero {
  padding-top: 0;
  padding-bottom: 0;
}

body.sd-landing .sd-module--hero + .section.section--plain {
  margin-top: 0;
}

body.sd-landing .sd-module--after-hero {
  padding-top: 12px;
  padding-bottom: var(--section-y);
}

body.sd-landing .sd-module--ppdb {
  padding-top: 0;
  padding-bottom: 0;
}

.sd-pk {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 861px) {
  .sd-pk {
    grid-template-columns: 7fr 5fr;
    align-items: stretch;
  }
}

.sd-rich {
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.7;
  text-align: left;
  max-width: 70ch;
}

.sd-rich p {
  margin: 0 0 12px;
}

.sd-rich p:last-child {
  margin-bottom: 0;
}

.sd-rich ul,
.sd-rich ol {
  margin: 0 0 12px 18px;
  padding: 0;
}

.sd-rich li {
  margin: 0 0 8px;
}

.sd-rich li:last-child {
  margin-bottom: 0;
}

.sd-program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sd-program-grid--quad {
  gap: 14px;
}

@media (min-width: 640px) {
  .sd-program-grid--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 861px) {
  .sd-program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sd-program-grid--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sd-program-card {
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  height: 100%;
}

.sd-program-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sd-program-card__head i {
  color: rgba(24, 132, 70, 0.95);
  font-size: 20px;
}

.sd-program-card__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.9);
}

.sd-program-card p {
  margin: 8px 0 0;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.72);
}

.sd-programs {
  margin-top: 16px;
}

.sd-programs__head {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

.sd-programs__title {
  position: relative;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(15, 45, 39, 0.96);
  padding-bottom: 10px;
}

.sd-programs__title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(24, 132, 70, 0.0), rgba(24, 132, 70, 0.90), rgba(24, 132, 70, 0.0));
}

.sd-programs .sd-program-card {
  padding: 16px 16px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.sd-programs .sd-program-card__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sd-programs .sd-program-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 10px 8px 18px rgba(15, 23, 42, 0.12);
  margin-top: 2px;
}

.sd-programs .sd-program-icon::after {
  content: '';
  position: absolute;
  inset: -10px -14px -10px 10px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 55%);
  filter: blur(6px);
  opacity: 0.9;
  pointer-events: none;
}

.sd-programs .sd-program-icon i {
  font-size: 26px;
  line-height: 1;
  color: rgba(15, 45, 39, 0.96);
}

.sd-programs .sd-program-card__text {
  min-width: 0;
}

.sd-programs .sd-program-card__text h3 {
  font-size: 15px;
  font-weight: 900;
  color: rgba(15, 45, 39, 0.96);
  margin: 0;
}

.sd-programs .sd-program-card__text p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: rgba(15, 23, 42, 0.72);
}

.sd-ekskul-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 861px) {
  .sd-ekskul-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sd-ekskul-card {
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.sd-ekskul-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.9);
}

.sd-ekskul-card__title i {
  color: rgba(24, 132, 70, 0.95);
}

.sd-ekskul-card__meta {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 700;
}

.sd-ekskul-card p {
  margin: 8px 0 0;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.72);
}

.curriculum-card--static {
  cursor: default;
}

body.sd-landing .curriculum-card--static {
  min-height: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  color: rgba(15, 23, 42, 0.92);
  padding: 12px 0;
  --header-surface: rgba(255, 255, 255, 0.70);
  --header-border: rgba(15, 23, 42, 0.08);
  --header-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --header-link: rgba(15, 23, 42, 0.86);
  --header-link-hover-bg: rgba(15, 23, 42, 0.06);
  --header-link-active-bg: rgba(15, 45, 39, 0.10);
  --header-focus: rgba(24, 132, 70, 0.30);
  transition: padding 200ms ease;
}

.site-header.is-scrolled {
  --header-surface: var(--nav-bg);
  --header-border: var(--nav-border);
  --header-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  --header-link: rgba(255, 255, 255, 0.88);
  --header-link-hover-bg: rgba(255, 255, 255, 0.10);
  --header-link-active-bg: rgba(241, 200, 78, 0.20);
  --header-focus: rgba(241, 200, 78, 0.38);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  gap: 18px;
  border-radius: 18px;
  background: var(--header-surface);
  border: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.site-brand__logo {
  height: 44px;
  width: auto;
  display: block;
  padding: 6px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.10));
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: inherit;
}

.site-brand__line1 {
  font-weight: 500;
  letter-spacing: 0.2px;
}

.site-brand__line2 {
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0.95;
}

.site-nav { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.site-nav__link {
  color: var(--header-link);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  user-select: none;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.site-nav__link:hover { background: var(--header-link-hover-bg); }
.site-nav__link.is-active { background: var(--header-link-active-bg); }
.site-nav__link:focus-visible { outline: 3px solid var(--header-focus); outline-offset: 2px; }

.site-nav__button {
  background: var(--green);
  color: white;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 120ms ease;
}
.site-nav__button:hover { background: var(--green-dark); }
.site-nav__button:focus-visible { outline: 3px solid rgba(24, 132, 70, 0.30); outline-offset: 2px; }
.site-nav__button:active { transform: translateY(1px); }

.site-nav__dropdown {
  position: relative;
}

.site-nav__dropdown::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 12px;
}

.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav__trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
}

.site-nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  display: none;
}

.site-nav__dropdown:hover > .site-nav__menu {
  display: block;
}

.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: var(--header-link-hover-bg);
  color: var(--header-link);
  cursor: pointer;
}

.site-nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
}

.site-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.site-mobile-nav[hidden] {
  display: none;
}

.site-mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.40);
  opacity: 0;
  transition: opacity 200ms ease;
}

.site-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 88vw);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 200ms ease;
  padding: 14px;
  outline: none;
}

.site-mobile-nav-open .site-mobile-nav__overlay {
  opacity: 1;
}

.site-mobile-nav-open .site-mobile-nav__panel {
  transform: translateX(0%);
}

.site-mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.site-mobile-nav__brand {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.85);
  line-height: 1.3;
}

.site-mobile-nav__close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.85);
  cursor: pointer;
}

.site-mobile-nav__close svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
}

.site-mobile-nav__links {
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.site-mobile-nav__link,
.site-mobile-nav__summary,
.site-mobile-nav__sublink {
  display: block;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.92);
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.60);
}

.site-mobile-nav__link:hover,
.site-mobile-nav__summary:hover,
.site-mobile-nav__sublink:hover {
  background: rgba(24, 132, 70, 0.08);
  color: var(--green);
}

.site-mobile-nav__group {
  border-radius: 12px;
}

.site-mobile-nav__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.site-mobile-nav__summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
  flex: 0 0 auto;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-mobile-nav__group[open] > .site-mobile-nav__summary::after {
  transform: rotate(-135deg);
  opacity: 0.92;
}

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

.site-mobile-nav__group-links {
  padding: 6px 0 0;
  display: grid;
  gap: 6px;
}

.site-mobile-nav__sublink {
  padding-left: 18px;
}

.site-nav__menu-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: 11px 12px;
  border-radius: 12px;
}

.site-nav__menu-item:hover {
  background: rgba(24, 132, 70, 0.08);
}

.site-main {
  padding: calc(var(--section-y) + var(--site-header-space)) 0 var(--section-y);
}

body.sd-landing .site-main {
  padding-top: 0;
}

.card {
  margin: var(--section-y) 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-md);
}
.card__title { margin: 0 0 6px; font-size: 22px; }
.card__text { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions { margin-top: 12px; }

.button {
  display: inline-block;
  background: var(--green);
  color: white;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 120ms ease;
}
.button:hover { background: var(--green-dark); }
.button:focus-visible { outline: 3px solid rgba(24, 132, 70, 0.30); outline-offset: 2px; }
.button:active { transform: translateY(1px); }
.button--secondary { background: white; color: var(--green-dark); border: 1px solid rgba(36, 190, 103, 0.35); }
.button--secondary:hover { background: rgba(34, 177, 96, 0.06); }
.button--secondary:focus-visible { outline: 3px solid rgba(24, 132, 70, 0.26); outline-offset: 2px; }

.alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(24, 132, 70, 0.08);
  border: 1px solid rgba(24, 132, 70, 0.22);
}

.hero {
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(24, 132, 70, 0.14), rgba(15, 45, 39, 0.06));
  border: 1px solid rgba(24, 132, 70, 0.22);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.hero__title { margin: 0 0 10px; font-size: clamp(28px, 4.8vw, 44px); line-height: 1.12; letter-spacing: -0.3px; }
.hero__text { margin: 0; color: var(--muted); line-height: 1.6; max-width: 56ch; }
.page-title { margin: 0 0 10px; font-size: 26px; }

.hero-slider {
  --hero-gutter: clamp(60px, 3vw, 90px);
  position: relative;
  overflow: visible;
  background: rgba(15, 23, 42, 0.04);
  width: calc(100vw - (var(--hero-gutter) * 2));
  margin-left: calc(50% - 50vw + var(--hero-gutter));
  margin-right: calc(50% - 50vw + var(--hero-gutter));
  margin-top: -24px;
  margin-bottom: 18px;
}

.hero-slider--featured {
  --hero-gutter: 0px;
  margin-top: calc(-1 * (var(--site-header-space) + var(--section-y)));
}

.hero-slider--featured::before {
  content: "";
  position: absolute;
  top: -140px;
  bottom: 30%;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: linear-gradient(135deg, rgba(15, 45, 39, 0.92), rgba(24, 132, 70, 0.60));
  border-radius: 0;
  z-index: 0;
}

.hero-slider__frame {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  height: 100vh;
  height: 100svh;
  z-index: 1;
}

.hero-slider__track {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}

.hero-slider[data-mode="slide"] .hero-slider__track {
  display: flex;
  transform: translateX(0%);
  transition: transform 800ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}

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

.hero-slider[data-mode="fade"] .hero-slider__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: none;
  transition: opacity 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.hero-slider[data-mode="fade"] .hero-slider__img.is-active {
  opacity: 1;
}

.hero-slider[data-mode="slide"] .hero-slider__img {
  position: relative;
  flex: 0 0 100%;
}

.hero-slider[data-mode="slide"] .hero-slider__img.is-active {
  opacity: 1;
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 45, 39, 0.76) 0%, rgba(24, 132, 70, 0.34) 100%),
    radial-gradient(circle at 52% 38%, rgba(24, 132, 70, 0.18), rgba(24, 132, 70, 0) 60%);
}

body.home .hero-slider__overlay {
  background:
    linear-gradient(90deg, rgba(15, 45, 39, 0.78) 0%, rgba(24, 132, 70, 0.36) 70%, rgba(24, 132, 70, 0.12) 100%),
    radial-gradient(circle at 52% 38%, rgba(24, 132, 70, 0.18), rgba(24, 132, 70, 0) 60%);
}

body.masjid .hero-slider__overlay {
  background:
    linear-gradient(90deg, rgba(15, 45, 39, 0.78) 0%, rgba(24, 132, 70, 0.36) 70%, rgba(24, 132, 70, 0.12) 100%),
    radial-gradient(circle at 52% 38%, rgba(24, 132, 70, 0.18), rgba(24, 132, 70, 0) 60%);
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: opacity 200ms ease, transform 200ms ease;
  animation: hero-scroll-bounce 1600ms ease-in-out infinite;
}

.hero-scroll-cue i { font-size: 26px; line-height: 1; }

.hero-slider.is-paused .hero-scroll-cue {
  animation-play-state: paused;
}

.hero-scroll-cue.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
  animation: none;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none !important; }
  .hero-slider[data-mode="slide"] .hero-slider__track { transition: none !important; }
  .hero-slider[data-mode="fade"] .hero-slider__img { transition: none !important; }
  .marquee__track { animation: none !important; }
}

.hero-slider__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  gap: 14px;
}

body.home .hero-slider__content {
  align-items: flex-start;
  text-align: left;
  padding-left: clamp(18px, 6vw, 92px);
  padding-right: clamp(18px, 4vw, 48px);
}

body.masjid .hero-slider__content {
  align-items: flex-start;
  text-align: left;
  padding-left: clamp(18px, 6vw, 92px);
  padding-right: clamp(18px, 4vw, 48px);
}

.hero-slider__content > * {
  max-width: 760px;
}

body.home .hero-slider__content > * {
  max-width: clamp(280px, 52vw, 640px);
}

body.masjid .hero-slider__content > * {
  max-width: clamp(280px, 52vw, 640px);
}

.hero-slider__content .hero__title {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  font-size: clamp(32px, 6.5vw, 68px);
  line-height: 1.05;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

body.home .hero-slider__content .hero__title {
  max-width: 20ch;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(34px, 5.6vw, 62px);
}

body.masjid .hero-slider__content .hero__title {
  max-width: 20ch;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(34px, 5.6vw, 62px);
}

.hero-slider__content .hero__text {
  margin-top: 0px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 2.6vw, 22px);
  line-height: 1.7;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.40);
  margin-left: auto;
  margin-right: auto;
}

body.home .hero-slider__content .hero__text {
  max-width: 56ch;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(15px, 2.2vw, 20px);
}

body.masjid .hero-slider__content .hero__text {
  max-width: 56ch;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(15px, 2.2vw, 20px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(24, 132, 70, 0.92);
  color: rgba(255, 255, 255, 0.98);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

body.home .hero-kicker {
  justify-content: flex-start;
}

body.masjid .hero-kicker {
  justify-content: flex-start;
}

.hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

body.home .hero-cta {
  align-items: flex-start;
}

body.masjid .hero-cta {
  align-items: flex-start;
}

.hero-cta__row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

body.home .hero-cta__row {
  align-items: flex-start;
  justify-content: flex-start;
}

body.masjid .hero-cta__row {
  align-items: flex-start;
  justify-content: flex-start;
}

body.home .hero-cta__button {
  border-radius: 999px;
  padding: 12px 18px;
}

body.masjid .hero-cta__button {
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  box-sizing: border-box;
}

body.home .hero-cta__button--secondary {
  align-self: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

body.masjid .hero-cta__button--secondary {
  align-self: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}

.masjid-prayerbar {
  padding: 0 clamp(14px, 3vw, 24px);
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.masjid-prayerbar__inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  background: #ffffff;
}

.masjid-prayerbar__left {
  flex: 0 0 360px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(135deg, rgba(15, 45, 39, 0.96), rgba(24, 132, 70, 0.92));
}

.masjid-prayerbar__clock {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.masjid-prayerbar__clock i {
  font-size: 22px;
  line-height: 1;
}

.masjid-prayerbar__info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.masjid-prayerbar__title {
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 14px;
  line-height: 1.2;
}

.masjid-prayerbar__date {
  font-weight: 600;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.25;
}

.masjid-prayerbar__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.25;
}

.masjid-prayerbar__loc i {
  font-size: 16px;
  line-height: 1;
}

.masjid-prayerbar__right {
  flex: 1 1 auto;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
}

.masjid-prayerbar__times {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.masjid-prayerbar__card {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(248, 250, 252, 0.96);
  display: grid;
  justify-items: center;
  gap: 4px;
}

.masjid-prayerbar__name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.62);
}

.masjid-prayerbar__time {
  font-size: 20px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.94);
  letter-spacing: 0.2px;
}

.masjid-prayerbar__now {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.62);
}

.masjid-prayerbar__card.is-active {
  border-color: rgba(24, 132, 70, 0.25);
  background: linear-gradient(135deg, rgba(15, 45, 39, 0.96), rgba(24, 132, 70, 0.92));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.masjid-prayerbar__card.is-active .masjid-prayerbar__name,
.masjid-prayerbar__card.is-active .masjid-prayerbar__time,
.masjid-prayerbar__card.is-active .masjid-prayerbar__now {
  color: rgba(255, 255, 255, 0.98);
}

@media (max-width: 820px) {
  .masjid-prayerbar {
    margin-top: -26px;
  }
  .masjid-prayerbar__inner {
    flex-direction: column;
  }
  .masjid-prayerbar__left {
    flex: 0 0 auto;
  }
}

.masjid-notifybar {
  padding: 0 clamp(14px, 3vw, 24px);
  margin-top: 12px;
}

.masjid-notifybar__inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(24, 132, 70, 0.14);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.86), rgba(236, 253, 245, 0.72));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.masjid-notifybar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.masjid-notifybar__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(24, 132, 70, 0.22);
  background: rgba(255, 255, 255, 0.60);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(24, 132, 70, 0.98);
}

.masjid-notifybar__icon i {
  font-size: 20px;
  line-height: 1;
}

.masjid-notifybar__text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.masjid-notifybar__title {
  font-weight: 900;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.90);
  line-height: 1.25;
}

.masjid-notifybar__desc {
  font-weight: 700;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.66);
  line-height: 1.25;
}

.masjid-notifybar__status {
  margin-top: 2px;
  font-weight: 800;
  font-size: 11px;
  color: rgba(15, 23, 42, 0.66);
  line-height: 1.25;
}

.masjid-notifybar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.masjid-notifybar__btn {
  appearance: none;
  border: 1px solid rgba(24, 132, 70, 0.30);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(15, 23, 42, 0.88);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.masjid-notifybar__btn.is-on {
  border-color: rgba(24, 132, 70, 0.25);
  background: linear-gradient(135deg, rgba(15, 45, 39, 0.96), rgba(24, 132, 70, 0.92));
  color: rgba(255, 255, 255, 0.98);
}

.masjid-notifybar__btn i {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 700px) {
  .masjid-notifybar__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .masjid-notifybar__right {
    justify-content: flex-end;
  }
}

.masjid-featuregrid {
  padding: 0 clamp(14px, 3vw, 24px);
  margin-top: 14px;
}

.masjid-featuregrid__grid {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px 250px;
  gap: 14px;
  align-items: stretch;
}

.masjid-featurecard {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

@media (min-width: 981px) {
  .masjid-featurecard {
    height: var(--masjid-featurecard-h);
  }
}

.masjid-wakafcard__body {
  display: flex;
  min-height: 100%;
}

.masjid-featurecard--wakaf {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.00) 30%, rgba(255, 255, 255, 0.70) 46%, rgba(255, 255, 255, 0.98) 66%),
    var(--wakaf-bg, none);
  background-size: cover;
  background-position: left center;
}

.masjid-wakafcard__content {
  padding: 16px 18px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
  margin-left: auto;
  max-width: 60%;
}

.masjid-wakafcard__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 132, 70, 0.12);
  color: rgba(24, 132, 70, 0.98);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.6px;
}

.masjid-wakafcard__title {
  margin: 0;
  font-weight: 950;
  font-size: 18px;
  line-height: 1.2;
  color: rgba(15, 23, 42, 0.94);
}

.masjid-wakafcard__desc {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.66);
}

.masjid-wakafcard__amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.masjid-wakafcard__amountLabel {
  font-weight: 800;
  font-size: 11px;
  color: rgba(15, 23, 42, 0.56);
}

.masjid-wakafcard__amountValue {
  font-weight: 950;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.90);
}

.masjid-wakafcard__progress {
  display: grid;
  gap: 6px;
}

.masjid-wakafcard__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.masjid-wakafcard__bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(100%, var(--pct, 0%));
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(24, 132, 70, 0.98), rgba(62, 175, 105, 0.98));
}

.masjid-wakafcard__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  font-size: 11px;
  color: rgba(15, 23, 42, 0.56);
}

.masjid-wakafcard__btn {
  margin-top: 2px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 45, 39, 0.96), rgba(24, 132, 70, 0.92));
  color: rgba(255, 255, 255, 0.98);
  text-decoration: none;
  font-weight: 950;
  font-size: 13px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.masjid-wakafcard__report {
  display: inline-flex;
  align-self: center;
  margin-top: 2px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(24, 132, 70, 0.98);
  text-decoration: none;
}

.masjid-rawatibcard__head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.masjid-rawatibcard__headTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.masjid-rawatibcard__title {
  font-weight: 950;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: rgba(15, 23, 42, 0.90);
}

.masjid-rawatibcard__tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.92);
  margin-top: 10px;
}

.masjid-rawatibcard__tab {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.70);
  cursor: pointer;
}

.masjid-rawatibcard__tab.is-active {
  background: rgba(24, 132, 70, 0.14);
  color: rgba(24, 132, 70, 0.98);
}

.masjid-rawatibcard__sub {
  margin-top: 10px;
  font-weight: 700;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
}

.masjid-featurecard--rawatib {
  min-height: 0;
}

.masjid-rawatibcard__panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.masjid-rawatibcard__panel[hidden] {
  display: none !important;
}

.masjid-rawatibcard__empty {
  padding: 16px;
  font-weight: 800;
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.60);
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.masjid-rawatibcard__list {
  padding: 10px 10px 12px;
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.masjid-rawatibcard__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(248, 250, 252, 0.86);
}

.masjid-rawatibcard__row:nth-child(even) {
  background: rgba(241, 245, 249, 0.70);
}

.masjid-rawatibcard__who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.86);
  min-width: 0;
}

.masjid-rawatibcard__who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.masjid-rawatibcard__who i {
  color: rgba(24, 132, 70, 0.98);
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}

.masjid-rawatibcard__day {
  font-weight: 900;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
  flex: 0 0 auto;
}

.masjid-featurecard--iqamah {
  position: relative;
  padding: 18px 18px 16px;
  border-color: rgba(24, 132, 70, 0.22);
  background: linear-gradient(135deg, rgba(15, 45, 39, 0.98), rgba(12, 92, 52, 0.96));
  color: rgba(255, 255, 255, 0.98);
  justify-content: flex-start;
}

.masjid-iqamahcard__bg {
  position: absolute;
  right: -24px;
  bottom: -18px;
  opacity: 0.16;
  pointer-events: none;
}

.masjid-iqamahcard__bg i {
  font-size: 190px;
  line-height: 1;
}

.masjid-iqamahcard__bgimg {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.masjid-iqamahcard__label {
  font-weight: 950;
  letter-spacing: 0.8px;
  font-size: 12px;
}

.masjid-iqamahcard__subtitle {
  margin-top: 6px;
  font-weight: 500;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.86);
}

.masjid-iqamahcard__timer {
  margin-top: 10px;
  font-weight: 950;
  font-size: 34px;
  letter-spacing: 0.6px;
}

.masjid-iqamahcard__for {
  margin-top: 6px;
  font-weight: 500;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.86);
}

.masjid-iqamahcard__quote {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .masjid-featuregrid__grid {
    grid-template-columns: 1fr;
  }
  .masjid-wakafcard__body {
    flex-direction: column;
  }
  .masjid-featurecard--wakaf {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.70) 55%, rgba(255, 255, 255, 0.98) 78%),
      var(--wakaf-bg, none);
    background-size: cover;
    background-position: center;
  }
  .masjid-wakafcard__content {
    max-width: 100%;
    margin-left: 0;
  }
}

.hero-cta__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.15;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  transition: transform 120ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hero-cta__button:hover {
  background: var(--green-dark);
}

.hero-cta__button--secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow: none;
  justify-content: center;
}

.hero-cta__button--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.92);
}

.hero-cta__button:focus-visible {
  outline: 3px solid rgba(24, 132, 70, 0.30);
  outline-offset: 2px;
}

.hero-cta__button:active {
  transform: translateY(1px);
}

.hero-cta__icon {
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1;
}

.hero-cta__label {
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.1;
}

.hero-cta__phone {
  font-size: clamp(14px, 2.1vw, 16px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  opacity: 0.95;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transform: translateY(-4px);
  transition: max-height 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.hero-cta__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-cta__button:hover .hero-cta__phone,
.hero-cta__button:focus-visible .hero-cta__phone {
  max-height: 28px;
  opacity: 0.95;
  margin-top: 6px;
  transform: translateY(0);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 10px;
}

body.home .hero-tags {
  justify-content: flex-start;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.40);
}

.hero-tag i {
  font-size: 18px;
  line-height: 1;
  opacity: 0.92;
}

@media (min-width: 861px) {
  .hero-slider__content {
    padding: 30px;
  }
}

.marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  --marquee-speed: 30s;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green-dark);
  border-top: 1px solid rgba(24, 132, 70, 0.28);
  border-bottom: 1px solid rgba(24, 132, 70, 0.28);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-speed) linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.marquee__group {
  display: flex;
  flex: 0 0 auto;
}

.marquee__item {
  white-space: nowrap;
  padding: 10px 44px;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-style: italic;
  flex: 0 0 auto;
}

.marquee__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.marquee__link:hover {
  opacity: 0.9;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.prayer-times {
  margin-top: 18px;
}

.prayer-times__head {
  align-items: flex-start;
}

.prayer-times__subtitle {
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.68);
  font-size: 14px;
}

.prayer-times__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: rgba(15, 23, 42, 0.64);
  font-size: 13px;
}

.prayer-times__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 132, 70, 0.08);
  color: rgba(15, 23, 42, 0.74);
  font-weight: 700;
}

.prayer-times__location .mdi {
  font-size: 16px;
  line-height: 1;
  color: rgba(24, 132, 70, 0.92);
}

.prayer-times__date {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-weight: 700;
}

.prayer-times__geo-btn {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(24, 132, 70, 0.08);
  border: 0;
  cursor: pointer;
}

.prayer-times__geo-btn:hover {
  background: rgba(24, 132, 70, 0.12);
}

.prayer-times__geo-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.prayer-times__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.prayer-times__panel::before {
  content: "";
  position: absolute;
  inset: -40px;
  opacity: 0.12;
  background:
    radial-gradient(circle at 20% 20%, rgba(241, 200, 78, 0.85) 0%, rgba(241, 200, 78, 0) 55%),
    radial-gradient(circle at 80% 30%, rgba(24, 132, 70, 0.65) 0%, rgba(24, 132, 70, 0) 60%),
    repeating-conic-gradient(from 0deg, rgba(15, 23, 42, 0.07) 0 10deg, rgba(15, 23, 42, 0.0) 10deg 20deg);
  filter: blur(0.2px);
  pointer-events: none;
}

.prayer-times__next {
  position: relative;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, rgba(15, 45, 39, 0.98), rgba(24, 132, 70, 0.92));
  color: rgba(255, 255, 255, 0.95);
}

.prayer-times__next::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.prayer-times__next-label {
  font-size: 13px;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

.prayer-times__next-name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.prayer-times__countdown {
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.prayer-times__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

@media (min-width: 680px) {
  .prayer-times__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.prayer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.prayer-card::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(241, 200, 78, 0.32), rgba(241, 200, 78, 0) 60%),
    radial-gradient(circle at 70% 50%, rgba(24, 132, 70, 0.22), rgba(24, 132, 70, 0) 60%);
  transform: translate3d(0, 0, 0) scale(1);
}

.prayer-card__name {
  font-size: 13px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.70);
  letter-spacing: 0.4px;
}

.prayer-card__time {
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
}

.prayer-card.is-active {
  border-color: rgba(241, 200, 78, 0.72);
  background: linear-gradient(135deg, rgba(241, 200, 78, 0.16), rgba(24, 132, 70, 0.10));
  box-shadow: 0 14px 30px rgba(24, 132, 70, 0.12);
  transform: translate3d(0, -2px, 0);
}

.prayer-card.is-active::after {
  opacity: 1;
  will-change: transform, opacity;
  animation: prayer-pulse 1.9s ease-in-out infinite;
}

.prayer-times.is-paused .prayer-card.is-active::after {
  animation-play-state: paused;
}

.prayer-times__status {
  margin-top: 10px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.prayer-times__status.is-error {
  color: rgba(185, 28, 28, 0.9);
}

.prayer-card--skeleton {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.06);
  box-shadow: none;
}

.prayer-card--skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.0) 100%);
  transform: translate3d(-120%, 0, 0);
  opacity: 0.55;
  will-change: transform;
  animation: prayer-shimmer 1.25s ease-in-out infinite;
}

.prayer-times.is-paused .prayer-card--skeleton::before {
  animation-play-state: paused;
}

.prayer-card--skeleton .prayer-card__name,
.prayer-card--skeleton .prayer-card__time {
  height: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.prayer-card--skeleton .prayer-card__name {
  width: 56%;
}

.prayer-card--skeleton .prayer-card__time {
  width: 72%;
  height: 18px;
  margin-top: 10px;
}

.prayer-times.is-visible .prayer-times__panel {
  animation: prayer-reveal 650ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.prayer-times.is-flash .prayer-times__countdown {
  animation: prayer-flash 650ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes prayer-shimmer {
  from { transform: translate3d(-120%, 0, 0); }
  to { transform: translate3d(120%, 0, 0); }
}

@keyframes prayer-pulse {
  0%, 100% { opacity: 0.32; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 0.52; transform: translate3d(0, 0, 0) scale(1.03); }
}

@keyframes prayer-reveal {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes prayer-flash {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  40% { transform: translate3d(0, 0, 0) scale(1.035); opacity: 0.92; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .prayer-times.is-visible .prayer-times__panel,
  .prayer-times.is-flash .prayer-times__countdown,
  .prayer-card.is-active,
  .prayer-card--skeleton {
    animation: none !important;
  }
}

.masjid-reveal {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

.masjid-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.masjid-today {
  margin-top: 18px;
}

.masjid-today__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 860px) {
  .masjid-today__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.masjid-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.masjid-card::before {
  content: "";
  position: absolute;
  inset: -60px;
  opacity: 0.10;
  background:
    radial-gradient(circle at 20% 20%, rgba(241, 200, 78, 0.85) 0%, rgba(241, 200, 78, 0) 55%),
    radial-gradient(circle at 80% 25%, rgba(24, 132, 70, 0.65) 0%, rgba(24, 132, 70, 0) 60%),
    repeating-conic-gradient(from 0deg, rgba(15, 23, 42, 0.07) 0 10deg, rgba(15, 23, 42, 0.0) 10deg 20deg);
  pointer-events: none;
}

.masjid-card__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.masjid-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 132, 70, 0.10);
  border: 1px solid rgba(24, 132, 70, 0.18);
  color: rgba(24, 132, 70, 0.95);
  flex: 0 0 auto;
}

.masjid-card__icon .mdi {
  font-size: 22px;
  line-height: 1;
}

.masjid-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.masjid-card__subtitle {
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.68);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.wakaf-amounts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.wakaf-amounts__item {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
}

.wakaf-amounts__label {
  color: rgba(15, 23, 42, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.wakaf-amounts__value {
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
}

.wakaf-progress {
  position: relative;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  height: 12px;
  margin-bottom: 10px;
}

.wakaf-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(24, 132, 70, 0.95), rgba(241, 200, 78, 0.95));
  transition: width 900ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: width;
}

.masjid-reveal.is-visible .wakaf-progress__bar {
  width: var(--pct);
}

.wakaf-progress__meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.wakaf-progress__update {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wakaf-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(24, 132, 70, 0.95);
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.3px;
  transition: transform 180ms ease, filter 180ms ease;
}

.wakaf-cta:hover {
  filter: brightness(1.06);
  transform: translate3d(0, -1px, 0);
}

.rawatib-list {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rawatib-list__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
}

.rawatib-list__label {
  margin: 0;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.68);
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.rawatib-list__value {
  margin: 0;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
  font-size: 14px;
}

.masjid-empty {
  position: relative;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.04);
  padding: 12px 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
}

.masjid-kajian {
  padding: 0 clamp(14px, 3vw, 24px);
  margin-top: 18px;
}

.masjid-kajian .news-section__head {
  width: min(var(--content-max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.masjid-programs {
  padding: 0 clamp(14px, 3vw, 24px);
  margin-top: 18px;
}

.masjid-programs .news-section__head,
.masjid-programs .program-grid {
  width: min(var(--content-max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.home-programs {
  margin-top: 18px;
}

.home-programs__head {
  margin-bottom: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-programs__kicker {
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 12px;
  background: linear-gradient(90deg, #0e6b35 0%, #31d27a 45%, #0e6b35 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 18px rgba(24, 132, 70, 0.18));
}

.home-programs__head.is-inview .home-programs__kicker {
  animation: home-programs-kicker-sheen 1100ms ease-out both;
}

@keyframes home-programs-kicker-sheen {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.home-programs__title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.2;
  font-size: clamp(22px, 2.6vw, 30px);
  max-width: 28ch;
}

.home-programs__title::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  border-radius: 999px;
  background: rgba(24, 132, 70, 0.70);
  margin: 10px auto 0;
}

.home-programs__tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.unit-tile {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  border: none;
  box-shadow: none;
  aspect-ratio: 4 / 3;
  transform: translateZ(0);
  transition: transform 200ms ease;
}

.unit-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 450ms cubic-bezier(0.21, 0.9, 0.24, 1);
}

.unit-tile__shade {
  display: none;
}

.unit-tile__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.unit-tile__content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.00) 0%, rgba(15, 23, 42, 0.82) 100%);
  opacity: 1;
  transition: opacity 220ms ease;
}

.unit-tile__content > * {
  position: relative;
}

@media (hover: hover) {
  .unit-tile__content::before {
    opacity: 0.18;
  }
  .unit-tile:hover .unit-tile__content::before,
  .unit-tile:focus-visible .unit-tile__content::before {
    opacity: 1;
  }
}

.unit-tile__tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  background: rgba(241, 200, 78, 0.22);
  border: 1px solid rgba(241, 200, 78, 0.30);
}

.unit-tile__name {
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.2;
  font-size: 16px;
}

.unit-tile__desc {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.unit-tile:hover {
  transform: translate3d(0, -2px, 0);
}

.unit-tile:hover .unit-tile__img {
  transform: scale(1.05);
}

.unit-tile:focus-visible {
  outline: 3px solid rgba(24, 132, 70, 0.35);
  outline-offset: 4px;
}

.home-programs [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.21, 0.9, 0.24, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.home-programs [data-reveal].is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

@media (min-width: 981px) {
  .program-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.program-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.program-card::before {
  display: none;
}

.program-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(24, 132, 70, 0.28);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.program-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 132, 70, 0.10);
  border: 1px solid rgba(24, 132, 70, 0.18);
  color: rgba(24, 132, 70, 0.95);
  flex: 0 0 auto;
}

.program-card__icon .mdi {
  font-size: 22px;
  line-height: 1;
}

.program-card__content {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.program-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

.program-card__desc {
  position: relative;
  margin-top: 2px;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.55;
}

.program-card__schedule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(15, 23, 42, 0.74);
}

.program-card__schedule .mdi {
  font-size: 18px;
  line-height: 1;
  color: rgba(24, 132, 70, 0.92);
}

.program-card__foot {
  position: relative;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.program-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.78);
  background: rgba(15, 23, 42, 0.06);
}

.program-pill .mdi {
  font-size: 16px;
  line-height: 1;
  color: rgba(24, 132, 70, 0.92);
}

.program-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  color: var(--green-dark);
  background: rgba(24, 132, 70, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.program-link:hover {
  background: rgba(24, 132, 70, 0.12);
  transform: translate3d(0, -1px, 0);
}

.masjid-news {
  padding: 0 clamp(14px, 3vw, 24px);
  margin-top: 18px;
}

.masjid-news .news-section__head,
.masjid-news .sd-news-row {
  width: min(var(--content-max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.masjid-gallery .gallery-preview__media {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.masjid-gallery .gallery-preview__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 58%, rgba(0, 0, 0, 0.26) 100%);
  opacity: 0.95;
  pointer-events: none;
}

.masjid-gallery .gallery-preview__caption {
  font-weight: 400;
  text-align: center;
}

.masjid-gallery {
  padding: 0 clamp(14px, 3vw, 24px);
}

.masjid-gallery .gallery-preview__inner {
  width: min(var(--content-max), 100%);
}

.kajian-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.kajian-card {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 14px 14px 12px;
  transition: transform 180ms ease, border-color 180ms ease;
  transform: translateZ(0);
}

.kajian-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(24, 132, 70, 0.28);
}

.kajian-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kajian-card__time,
.kajian-card__loc,
.kajian-card__speaker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.76);
  background: rgba(15, 23, 42, 0.06);
}

.kajian-card__time {
  background: rgba(24, 132, 70, 0.08);
}

.kajian-card__time .mdi,
.kajian-card__loc .mdi,
.kajian-card__speaker .mdi {
  font-size: 16px;
  line-height: 1;
  color: rgba(24, 132, 70, 0.92);
}

.kajian-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.kajian-card__speaker {
  margin-top: 10px;
  background: rgba(241, 200, 78, 0.18);
}

.kajian-strip {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

.kajian-strip__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.kajian3-card {
  flex: 0 0 clamp(300px, 34vw, 390px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  scroll-snap-align: start;
  overflow: hidden;
}

.kajian3-card__top {
  display: flex;
  align-items: stretch;
  min-height: 134px;
}

.kajian3-card__body {
  padding: 14px 18px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 56%;
  margin-right: auto;
}

.kajian3-card__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.96);
  background: var(--tag-bg, #1e8a46);
}

.kajian3-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 950;
  letter-spacing: 0.2px;
}

.kajian3-card__speaker {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.70);
}

.kajian3-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  min-width: 0;
}

.kajian3-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.66);
  min-width: 0;
  flex: 0 1 auto;
}

.kajian3-meta .mdi {
  font-size: 16px;
  line-height: 1;
  color: rgba(24, 132, 70, 0.92);
}

.kajian3-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kajian3-meta--loc {
  flex: 1 1 auto;
}

.kajian3-card__photo {
  flex: 0 0 34%;
  display: flex;
  padding: 0;
  align-items: stretch;
  justify-content: center;
}

.kajian3-card__photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.kajian3-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.kajian3-card__photo-inner .mdi {
  font-size: 92px;
  line-height: 1;
  opacity: 0.28;
  color: rgba(15, 23, 42, 0.80);
}

.kajian3-card__bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.02);
  padding: 10px 14px;
}

@media (min-width: 981px) {
  .kajian-strip__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .kajian3-card {
    flex: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-programs [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
  .unit-tile__content::before {
    transition: none;
  }
  .home-programs__kicker {
    animation: none !important;
  }
  .masjid-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .wakaf-progress__bar,
  .wakaf-cta,
  .kajian-card,
  .program-card,
  .program-link,
  .unit-tile,
  .unit-tile__img {
    transition: none;
  }
}

.news-section {
  margin-top: 18px;
}

.news-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.news-section__title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.6px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.news-section__title::after {
  content: "";
  width: 70px;
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
}

.news-section__more {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(24, 132, 70, 0.08);
}

.news-section__more:hover {
  background: rgba(24, 132, 70, 0.12);
}

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

.home-news-carousel {
  position: relative;
}

.home-news-carousel__viewport {
  --home-news-gap: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 86%);
  gap: var(--home-news-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 2px 4px 16px;
  -webkit-overflow-scrolling: touch;
}

.home-news-carousel__viewport::-webkit-scrollbar {
  height: 8px;
}

.home-news-carousel__viewport::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.22);
  border-radius: 999px;
}

.home-news-carousel__item {
  scroll-snap-align: start;
  min-width: 0;
}

.home-news-cta {
  min-height: 100%;
  border-radius: 16px;
  border: 0;
  background: transparent;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.home-news-cta__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  width: 100%;
  border-radius: 16px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
}

.home-news-cta__link:hover {
  color: var(--green);
  background: rgba(24, 132, 70, 0.06);
}

.home-news-cta__icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 132, 70, 0.10);
  color: var(--green-dark);
  flex: 0 0 auto;
}

.home-news-cta__icon .mdi {
  font-size: 24px;
  line-height: 1;
}

.news-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, border-color 180ms ease;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  cursor: pointer;
}

.news-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(24, 132, 70, 0.32);
}

.news-card__media {
  display: block;
  text-decoration: none;
}

.news-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-card__body {
  padding: 14px;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, 0.65);
  font-size: 13px;
}

.news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-card__date .mdi {
  font-size: 16px;
  line-height: 1;
}

.news-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 132, 70, 0.10);
  color: rgba(15, 23, 42, 0.75);
  font-weight: 700;
  font-size: 12px;
}

.news-card__headline {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.35;
}

.news-card__link {
  color: var(--text);
  text-decoration: none;
}

.news-card:hover .news-card__link,
.news-card__link:hover {
  color: var(--green-dark);
}

.news-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  color: rgba(15, 23, 42, 0.9);
  text-decoration: none;
  font-weight: 700;
  background: white;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.news-card:hover .news-card__button,
.news-card__button:hover {
  border-color: rgba(24, 132, 70, 0.45);
  color: var(--green-dark);
  background: rgba(24, 132, 70, 0.10);
}

@media (hover: none) {
  .news-card {
    transition: none;
  }
  .gallery-preview__img {
    transition: none;
  }
  .gallery-preview__media:hover .gallery-preview__img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .curriculum-card,
  .hero-cta__button,
  .gallery-preview__img,
  .hero-slider[data-mode="slide"] .hero-slider__track,
  .hero-slider[data-mode="fade"] .hero-slider__img {
    transition: none !important;
    animation: none !important;
  }
}

.rich-content p {
  margin: 0 0 12px;
}

.rich-content h2,
.rich-content h3 {
  margin: 16px 0 10px;
}

.rich-content ul,
.rich-content ol {
  margin: 0 0 12px;
  padding-left: 18px;
}

.rich-content a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-content blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 4px solid rgba(24, 132, 70, 0.55);
  background: rgba(24, 132, 70, 0.06);
  border-radius: 12px;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.rich-content iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 14px;
}

@media (min-width: 861px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-news-carousel__viewport {
    grid-auto-columns: calc((100% - (var(--home-news-gap) * 2)) / 3);
  }
  .news-card__img {
    height: 170px;
  }
}

@media (min-width: 640px) and (max-width: 860px) {
  .home-news-carousel__viewport {
    grid-auto-columns: calc((100% - var(--home-news-gap)) / 2);
  }
}

.section {
  margin-top: var(--section-y);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
}

.section--plain {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.section__title { margin: 0 0 6px; font-size: 18px; }
.section__text { margin: 0; color: var(--muted); line-height: 1.6; }

.history-media-text {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.history-media-text__media {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.history-media-text__img {
  width: 120px;
  height: 120px;
  border-radius: 0;
  object-fit: contain;
  display: block;
}


.history-media-text__caption {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
  text-align: center;
  line-height: 1.3;
}

.history-media-text__text {
  flex: 1 1 auto;
  text-align: justify;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.6;
  font-family: "Georgia", "Times New Roman", Times, serif;
}

.history-media-text__text p {
  margin: 0 0 10px;
  text-indent: 30px;
}

.history-media-text__text p:last-child {
  margin-bottom: 0;
}

.history-media-text__text ul,
.history-media-text__text ol {
  margin: 0 0 10px 18px;
  padding: 0;
}

.history-media-text__text li {
  margin: 0 0 6px;
  text-indent: 0;
}

.history-media-text__text li:last-child {
  margin-bottom: 0;
}

.org-chart {
  margin-top: 12px;
}

.org-chart__img {
  width: 100%;
  height: auto;
  display: block;
}

.org-chart__empty {
  color: rgba(15, 23, 42, 0.62);
  line-height: 1.6;
}

.unit-hero {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.unit-hero__img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.unit-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 861px) {
  .unit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .unit-grid .unit-card:nth-child(1) {
    grid-column: 1 / -1;
  }
}

.unit-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
}

.unit-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.unit-card__content {
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.6;
}

.unit-card__content p {
  margin: 0 0 10px;
}

.unit-card__content p:last-child {
  margin-bottom: 0;
}

.unit-card__content ul,
.unit-card__content ol {
  margin: 0 0 10px 18px;
  padding: 0;
}

.unit-card__content li {
  margin: 0 0 6px;
}

.unit-card__content li:last-child {
  margin-bottom: 0;
}

.sd-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  min-height: clamp(500px, 58vh, 700px);
}

body.sd-landing .sd-hero-slider {
  margin-top: 0;
  margin-bottom: 18px;
}

body.sd-landing .sd-hero-slider .hero-slider__frame {
  border-radius: 0;
  height: 100vh;
  height: 100svh;
}

body.sd-landing .sd-hero-slider .hero-slider__overlay {
  background:
    linear-gradient(90deg, rgba(15, 45, 39, 0.78) 0%, rgba(24, 132, 70, 0.36) 70%, rgba(24, 132, 70, 0.12) 100%),
    radial-gradient(circle at 52% 38%, rgba(24, 132, 70, 0.18), rgba(24, 132, 70, 0) 60%);
}

body.sd-landing .sd-hero-slider .hero-slider__content {
  align-items: flex-start;
  text-align: left;
  padding-top: clamp(20px, 3vw, 30px);
  padding-bottom: clamp(20px, 3vw, 30px);
  padding-left: clamp(18px, 6vw, 92px);
  padding-right: clamp(18px, 4vw, 48px);
}

body.sd-landing .sd-hero-slider .hero-slider__content > * {
  max-width: clamp(280px, 52vw, 640px);
}

body.sd-landing .sd-hero-slider .hero-slider__content .hero__title {
  max-width: 20ch;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(34px, 5.6vw, 62px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.sd-landing .sd-hero-slider .hero-slider__content .hero__text {
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(15px, 2.2vw, 20px);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.sd-landing .sd-hero-slider .sd-hero__subtitle {
  margin-left: 0;
  margin-right: 0;
}

body.sd-landing .sd-hero-slider .sd-hero__meta {
  justify-content: flex-start;
}

body.sd-landing .sd-hero-slider .hero-cta__row .sd-hero__meta {
  margin: 0;
  justify-content: flex-start;
  align-self: flex-start;
}

body.sd-landing .sd-hero-slider .hero-cta__row .sd-hero__badge {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  padding: 12px 18px;
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.15;
  font-weight: 700;
}

body.sd-landing .sd-hero-slider .hero-cta {
  align-items: flex-start;
}

body.sd-landing .sd-hero-slider .hero-kicker {
  justify-content: flex-start;
}

body.sd-landing .sd-hero-slider .hero__title {
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.48);
}

body.sd-landing .sd-hero-slider .hero__text {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

.sd-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 45, 39, 0.92), rgba(24, 132, 70, 0.92));
}

.sd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.10));
}

.sd-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.sd-hero__inner {
  position: relative;
  padding: 26px 18px;
  color: rgba(255, 255, 255, 0.96);
  text-align: center;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sd-hero__title {
  margin: 0 0 10px;
  font-size: inherit;
  line-height: inherit;
  font-weight: 800;
}

.sd-hero__subtitle {
  margin: 0 auto 16px;
  max-width: 56ch;
  font-size: inherit;
  line-height: inherit;
  color: rgba(255, 255, 255, 0.90);
}

.sd-hero__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sd-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  font-size: 13px;
}

.sd-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sd-cta {
  margin-top: 4px;
}

.sd-cta__button {
  border-radius: 999px;
}

body.sd-landing .sd-hero-slider .hero-cta__row {
  align-items: flex-start;
  justify-content: flex-start;
}

body.sd-landing .sd-hero-slider .hero-cta__button {
  border-radius: 999px;
  padding: 12px 18px;
}

body.sd-landing .sd-hero-slider .hero-cta__button--secondary {
  align-self: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

.sd-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sd-stat {
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.sd-stat__value {
  font-weight: 700;
  font-size: 20px;
  color: rgba(15, 23, 42, 0.90);
}

.sd-stat__label {
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.sd-values {
  margin: 0 0 14px;
}

.sd-values__card {
  width: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sd-values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 10px 0;
}

.sd-values__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
}

.sd-values__item + .sd-values__item {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sd-values__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: rgba(15, 45, 39, 0.96);
  flex: 0 0 auto;
  margin-top: 2px;
}

.sd-values__icon i {
  font-size: 42px;
  line-height: 1;
}

.sd-values__text {
  min-width: 0;
}

.sd-values__title {
  font-weight: 900;
  font-size: 16px;
  color: rgba(15, 45, 39, 0.96);
  line-height: 1.2;
}

.sd-values__desc {
  margin-top: 6px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.70);
}

.sd-welcome {
  margin: 0;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.sd-welcome__body {
  display: grid;
  grid-template-columns: 1fr;
}

.sd-welcome__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  height: auto;
  background: rgba(15, 23, 42, 0.06);
  padding: 0;
}

.sd-welcome__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.sd-welcome__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(24, 132, 70, 0.16), rgba(15, 23, 42, 0.10));
  border-radius: 12px;
}

.sd-welcome__photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.62));
  color: rgba(255, 255, 255, 0.94);
}

.sd-welcome__photo-name {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
}

.sd-welcome__photo-role {
  margin-top: 4px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.sd-welcome__right {
  padding: 24px clamp(20px, 4vw, 40px);
  display: grid;
  gap: 12px;
  background: rgba(15, 23, 42, 0.02);
  grid-template-rows: 1fr auto;
  min-width: 0;
}

.sd-welcome__content {
  padding: 0;
  min-width: 0;
}

.sd-welcome__kicker {
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: none;
  font-size: 12px;
  color: rgba(24, 132, 70, 0.95);
  margin-bottom: 8px;
}

.sd-welcome__title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: rgba(15, 23, 42, 0.92);
}

.sd-welcome__text {
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.7;
  text-align: justify;
  max-width: none;
  width: 100%;
}

.sd-welcome__text p {
  margin: 0 0 12px;
}

.sd-welcome__text p:last-child {
  margin-bottom: 0;
}

.sd-welcome__text ul,
.sd-welcome__text ol {
  margin: 0 0 12px 18px;
  padding: 0;
}

.sd-welcome__text li {
  margin: 0 0 8px;
}

.sd-welcome__text li:last-child {
  margin-bottom: 0;
}

.sd-ppdbbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 12px;
  border: 1px solid rgba(24, 132, 70, 0.28);
  background: rgba(24, 132, 70, 0.10);
  padding: 14px 16px;
}

.sd-ppdbbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sd-ppdbbar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(24, 132, 70, 0.90);
  color: white;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  flex: 0 0 auto;
}

.sd-ppdbbar__caption {
  color: rgba(15, 23, 42, 0.82);
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-ppdbbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.90);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

.sd-ppdbbar__cta i {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 640px) {
  .sd-ppdbbar {
    flex-direction: column;
    align-items: stretch;
  }
  .sd-ppdbbar__left {
    align-items: flex-start;
  }
  .sd-ppdbbar__caption {
    white-space: normal;
  }
  .sd-ppdbbar__cta {
    justify-content: center;
  }
}

.sd-vmg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.sd-vmg3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 861px) {
  .sd-vmg {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }
  .sd-vmg__visi { grid-column: span 4; }
  .sd-vmg__misi { grid-column: span 4; }
  .sd-vmg__gallery { grid-column: span 4; grid-row: 1 / span 2; }
  .sd-vmg__ach { grid-column: span 8; }

  .sd-vmg3 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }
  .sd-vmg3__prestasi { grid-column: span 3; }
  .sd-vmg3__gallery { grid-column: span 6; }
  .sd-vmg3__ekskul { grid-column: span 3; }

  .sd-vmg3--two-col .sd-vmg3__gallery { grid-column: span 8; }
  .sd-vmg3--two-col .sd-vmg3__ekskul { grid-column: span 4; }
}

.sd-feature-card {
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.sd-feature-card--flat {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.sd-feature-card--flat .sd-feature-card__head {
  border-bottom: 0;
  padding-bottom: 10px;
  text-align: center;
}

.sd-feature-card--flat .sd-feature-card__body {
  padding-top: 0;
}

.sd-feature-card__head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.sd-feature-card__head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sd-feature-card__title {
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
  font-size: 13px;
  color: rgba(24, 132, 70, 0.95);
}

.sd-feature-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.70);
}

.sd-feature-card__body {
  padding: 16px 18px 18px;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.7;
}

.sd-feature-card__body--fill {
  flex: 1;
}

.sd-vmg__gallery {
  display: flex;
  flex-direction: column;
}

.sd-feature-quote {
  margin: 0;
  font-style: italic;
}

.sd-feature-muted {
  margin: 0;
  color: rgba(15, 23, 42, 0.62);
}

.sd-feature-list {
  margin: 0;
  padding-left: 18px;
}

.sd-feature-list li {
  margin: 0 0 8px;
}

.sd-feature-list li:last-child {
  margin-bottom: 0;
}

.sd-feature-rich p {
  margin: 0 0 12px;
}

.sd-feature-rich p:last-child {
  margin-bottom: 0;
}

.sd-feature-rich ul,
.sd-feature-rich ol {
  margin: 0 0 12px 18px;
  padding: 0;
}

.sd-feature-rich li {
  margin: 0 0 8px;
}

.sd-feature-rich li:last-child {
  margin-bottom: 0;
}

.sd-achievement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 680px) {
  .sd-achievement-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sd-ach-card__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.05);
}

.sd-ach-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sd-ach-card__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.sd-ach-card__placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, rgba(24, 132, 70, 0.12), rgba(15, 23, 42, 0.08));
}

.sd-ach-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(218, 165, 32, 0.95);
  color: #fff;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sd-ach-card__title {
  margin-top: 10px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
  line-height: 1.35;
}

.sd-ach-card__caption {
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.76);
  font-weight: 700;
}

.sd-ach-card__info {
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.62);
  line-height: 1.45;
  font-size: 13px;
}

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

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

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

.sd-mini-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
}

.sd-mini-list__item + .sd-mini-list__item {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sd-mini-list__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}

.sd-mini-list__icon--mdi i {
  font-size: 20px;
  line-height: 1;
}

.sd-mini-list__text {
  min-width: 0;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.35;
}

.sd-vmg3__ekskul .sd-mini-list__text {
  display: grid;
  gap: 2px;
  font-weight: 600;
  color: rgba(15, 45, 39, 0.86);
}

.sd-vmg3__ekskul .sd-mini-list__title {
  font-weight: 700;
  color: rgba(15, 45, 39, 0.96);
}

.sd-vmg3__ekskul .sd-mini-list__meta {
  font-weight: 500;
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.62);
}

.sd-vmg3__prestasi.sd-feature-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.sd-vmg3__prestasi .sd-feature-card__body {
  max-height: clamp(300px, 38vh, 300px);
  overflow: auto;
  overscroll-behavior: contain;
}

.sd-vmg3__ekskul.sd-feature-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.sd-vmg3__ekskul .sd-feature-card__body {
  max-height: clamp(300px, 38vh, 300px);
  overflow: auto;
  overscroll-behavior: contain;
}

.sd-vmg3__gallery.sd-feature-card {
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}

.sd-ach-mini {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sd-ach-mini__item + .sd-ach-mini__item {
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.sd-ach-mini__link {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 0;
  padding: 12px 14px;
  text-decoration: none;
  color: rgba(15, 45, 39, 0.96);
}

.sd-ach-mini__link:hover,
.sd-ach-mini__link:focus-visible {
  background: rgba(24, 132, 70, 0.06);
}

.sd-ach-mini__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  background: rgba(24, 132, 70, 0.10);
  border: 1px solid rgba(24, 132, 70, 0.16);
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}

.sd-ach-mini__title {
  grid-column: 2;
  grid-row: 1;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.25;
}

.sd-ach-mini__name {
  margin-top: 0;
  display: block;
  grid-column: 2;
  grid-row: 2;
  font-weight: 400;
  font-size: 12.5px;
  color: rgba(15, 45, 39, 0.80);
}

.sd-mini-gallery--fill {
  height: 100%;
  grid-auto-rows: 1fr;
}

.sd-mini-gallery--fill .sd-mini-gallery__item {
  height: 100%;
}

.sd-mini-gallery--fill .sd-mini-gallery__img {
  height: 100%;
}

.sd-vmg3__gallery .sd-mini-gallery--fill {
  height: auto;
  grid-auto-rows: auto;
}

.sd-vmg3__gallery .sd-mini-gallery--fill .sd-mini-gallery__item {
  height: auto;
  aspect-ratio: 4 / 3;
}

.sd-vmg3__gallery .sd-mini-gallery--fill .sd-mini-gallery__img {
  height: 100%;
}

.sd-mini-gallery__item {
  border-radius: 12px !important;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  display: block;
}

.sd-mini-gallery__img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  display: block;
  border-radius: 12px !important;
}

.sd-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 861px) {
  .sd-split {
    grid-template-columns: 8fr 4fr;
    align-items: start;
  }
}

.sd-testimonials blockquote {
  margin: 0 0 12px;
  padding: 0 0 0 14px;
  border-left: 4px solid rgba(24, 132, 70, 0.55);
}

.sd-testimonials blockquote:last-child {
  margin-bottom: 0;
}

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

.sd-testimonials--center blockquote {
  border-left: 0;
  padding-left: 0;
}

.sd-testimonials--center p {
  margin: 0 0 10px;
}

.sd-testimonial-swipe {
  position: relative;
  overflow: hidden;
  padding: 2px 0 10px;
  border-radius: 18px;
}

.sd-testimonial-swipe__track {
  display: flex;
  transform: translateX(0%);
  transition: transform 650ms ease;
}

.sd-testimonial-swipe__item {
  margin: 0;
  flex: 0 0 100%;
  border: 0;
  text-align: center;
}

.sd-testimonial-swipe__content {
  width: min(760px, 100%);
  margin: 0 auto;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  padding: 22px 20px 18px;
}

.sd-testimonial-swipe__quote {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.90);
  text-wrap: balance;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.sd-testimonial-swipe__name {
  margin-top: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
}

.sd-testimonial-swipe__meta {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.62);
}

.sd-testimonial-swipe__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.90);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.sd-testimonial-swipe__nav:hover {
  transform: translateY(-50%) scale(1.04);
  border-color: rgba(24, 132, 70, 0.32);
}

.sd-testimonial-swipe__nav:focus-visible {
  outline: 3px solid rgba(24, 132, 70, 0.35);
  outline-offset: 3px;
}

.sd-testimonial-swipe__nav i {
  font-size: 26px;
  line-height: 1;
}

.sd-testimonial-swipe__nav--prev { left: 10px; }
.sd-testimonial-swipe__nav--next { right: 10px; }

@media (max-width: 520px) {
  .sd-testimonial-swipe__content { padding: 18px 16px 16px; }
  .sd-testimonial-swipe__nav { width: 38px; height: 38px; }
  .sd-testimonial-swipe__nav i { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .sd-testimonial-swipe__track { transition: none; }
}

.sd-testimonials p {
  margin: 0 0 8px;
}

.sd-testimonials p:last-child {
  margin-bottom: 0;
}

.sd-news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.sd-news-item__date {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.62);
  margin-bottom: 4px;
}

.sd-news-item__title {
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.90);
  line-height: 1.4;
}

.sd-news-item__title:hover {
  text-decoration: underline;
}

.sd-news-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.sd-news-row::-webkit-scrollbar {
  height: 10px;
}

.sd-news-row::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
}

.sd-news-row::-webkit-scrollbar-thumb {
  background: rgba(15, 45, 39, 0.22);
  border-radius: 999px;
}

.sd-news-row .news-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

.sd-news-row .news-card__img {
  height: 120px;
}

.sd-news-row .news-card__body {
  padding: 12px;
}

.sd-news-row .news-card__headline {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.sd-news-row .news-card__meta {
  margin-bottom: 8px;
}

@media (min-width: 861px) {
  .sd-news-row .news-card {
    flex-basis: 260px;
  }
  .sd-news-row .news-card__img {
    height: 130px;
  }
}

.sd-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sd-tm-card {
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

.sd-tm-card__quote {
  margin: 0;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.82);
}

.sd-tm-card__name {
  margin-top: 8px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
}

.sd-tm-card__meta {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
}

.sd-pt-carousel {
  --pt-cols: 1;
  --pt-gap: 14px;
}

@media (min-width: 640px) {
  .sd-pt-carousel { --pt-cols: 2; }
}

@media (min-width: 861px) {
  .sd-pt-carousel { --pt-cols: 3; }
}

.sd-pt-carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
  scrollbar-width: none;
}

.sd-pt-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.sd-pt-carousel__track {
  display: flex;
  gap: var(--pt-gap);
}

.sd-pt-card {
  flex: 0 0 calc((100% - (var(--pt-gap) * (var(--pt-cols) - 1))) / var(--pt-cols));
  scroll-snap-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  min-height: 170px;
  transition: transform 260ms ease, opacity 260ms ease, box-shadow 260ms ease;
}

@media (min-width: 861px) {
  .sd-pt-card {
    opacity: 0.62;
    transform: scale(0.94);
  }
  .sd-pt-card.is-active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
  }
}

.sd-pt-card__quote {
  color: rgba(24, 132, 70, 0.92);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 10px;
}

.sd-pt-card__text {
  margin: 0;
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 600;
}

.sd-pt-card__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sd-pt-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
  flex: 0 0 auto;
}

.sd-pt-card__who {
  min-width: 0;
}

.sd-pt-card__name {
  font-weight: 700;
  color: rgba(15, 45, 39, 0.96);
  line-height: 1.2;
}

.sd-pt-card__role {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.62);
}

.sd-pt-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.sd-pt-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.sd-pt-dot.is-active {
  background: rgba(24, 132, 70, 0.92);
  transform: scale(1.15);
}

.sd-pt-dot:focus-visible {
  outline: 3px solid rgba(24, 132, 70, 0.35);
  outline-offset: 4px;
}

.sd-cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(15, 45, 39, 0.98) 0%, rgba(12, 92, 56, 0.95) 62%, rgba(12, 92, 56, 0.92) 100%);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.sd-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle at 78% 70%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 52%);
  opacity: 0.55;
  pointer-events: none;
}

.sd-cta-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: clamp(220px, 34vw, 520px);
  background-image: linear-gradient(90deg, rgba(15, 45, 39, 1) 0%, rgba(15, 45, 39, 0.56) 24%, rgba(15, 45, 39, 0) 56%), var(--cta-kid);
  background-size: cover;
  background-position: center;
  opacity: 0.92;
  pointer-events: none;
}

.sd-cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px;
}

@media (min-width: 861px) {
  .sd-cta-banner__inner {
    padding: 22px 26px;
  }
}

.sd-cta-banner__copy {
  min-width: 0;
  max-width: 68ch;
}

.sd-cta-banner__title {
  font-weight: 900;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.98);
}

.sd-cta-banner__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.sd-cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.sd-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.sd-cta-btn i {
  font-size: 18px;
  line-height: 1;
}

.sd-cta-btn--wa {
  background: rgba(248, 205, 79, 0.98);
  color: rgba(15, 45, 39, 0.96);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.sd-cta-btn--ppdb {
  background: rgba(255, 255, 255, 0.96);
  color: rgba(15, 45, 39, 0.96);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
}

.sd-cta-btn:hover {
  transform: translateY(-1px);
}

.sd-cta-btn--wa:hover {
  background: rgba(248, 205, 79, 1);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.sd-cta-btn--ppdb:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.sd-cta-btn:focus-visible {
  outline: 3px solid rgba(248, 205, 79, 0.45);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .sd-cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .sd-cta-banner__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .sd-cta-btn {
    width: auto;
  }
  .sd-cta-banner::after {
    width: 0;
    display: none;
  }
}

.sd-welcome__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  width: 100%;
}

.sd-statbox {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.sd-statbox__icon {
  width: 22px;
  height: 22px;
  margin: 0 auto 6px;
  color: rgba(24, 132, 70, 0.90);
  display: grid;
  place-items: center;
}

.sd-statbox__icon i {
  font-size: 22px;
  line-height: 1;
}

.sd-statbox__value {
  font-weight: 900;
  font-size: 18px;
  color: rgba(24, 132, 70, 0.95);
  line-height: 1.2;
}

.sd-statbox__label {
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

@media (min-width: 861px) {
  .sd-values__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
  }
  .sd-values__item {
    padding: 18px 18px;
  }
  .sd-values__item + .sd-values__item {
    border-top: 0;
    border-left: 1px solid rgba(15, 23, 42, 0.10);
  }
  .sd-welcome__body {
    grid-template-columns: 35% 65%;
  }
  .sd-welcome__right { border-left: 1px solid rgba(15, 23, 42, 0.08); }
  .sd-welcome__right { overflow: hidden; }
  .sd-welcome__content { min-height: 0; overflow: auto; padding-right: 6px; }
  .sd-welcome__photo,
  .sd-welcome__photo-img,
  .sd-welcome__photo-placeholder {
    height: auto;
  }
  .sd-welcome__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sd-nav-wrap {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.sd-nav {
  margin-top: 0;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 0;
}

.sd-nav--after-welcome {
  margin-top: 14px;
}

.sd-nav-hint {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
  padding-left: 6px;
}

.sd-nav__link {
  flex: 0 0 auto;
  padding: 6px 2px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: rgba(15, 23, 42, 0.78);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.sd-nav__link:hover,
.sd-nav__link:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
}

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

.sd-section {
  grid-column: span 12;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.sd-section__head {
  margin-bottom: 10px;
}

.sd-section__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.sd-section__content {
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.7;
}

.sd-section__content p {
  margin: 0 0 12px;
}

.sd-section__content p:last-child {
  margin-bottom: 0;
}

.sd-section__content ul,
.sd-section__content ol {
  margin: 0 0 12px 18px;
  padding: 0;
}

.sd-section__content li {
  margin: 0 0 8px;
}

.sd-section__content li:last-child {
  margin-bottom: 0;
}

@media (min-width: 861px) {
  .sd-hero__inner {
    padding: 38px 26px;
  }
  .sd-section { grid-column: span 6; }
}

.page-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.page-popup[hidden] {
  display: none;
}

.page-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.page-popup__panel {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.38), 0 26px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  outline: none;
  z-index: 1;
}

.page-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.page-popup__media {
  position: relative;
  background: #0b0b0b;
  padding: 0;
  display: block;
}

.page-popup__img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  display: block;
}

@media (max-width: 640px) {
  .history-media-text {
    flex-direction: column;
  }
  .history-media-text__media { justify-items: start; }
  .history-media-text__img { width: 140px; height: 140px; }
}

.vm {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.vm__card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
}

.vm__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.vm__text {
  margin: 0;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.6;
}

.breadcrumbs {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.65);
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 34px;
  background: #0f2d27;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__inner {
  width: min(1280px, calc(100% - 24px));
  padding: 22px 0 14px;
}

.site-footer__layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(250px, 0.9fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .site-footer__layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  }
  .site-footer__panel--map {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-footer__inner {
    width: min(100% - 24px, 1180px);
  }
  .site-footer__layout { grid-template-columns: 1fr; }
  .site-footer__panel--map { grid-column: auto; }
}

.site-footer__panel {
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
}

.site-footer__panel--map {
  padding: 0;
  overflow: hidden;
}

.site-footer__eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.site-footer__title {
  font-weight: 900;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.25;
}

.site-footer__desc,
.site-footer__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer__desc {
  margin: 0 0 14px;
}

.site-footer__heading {
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 10px;
}

.site-footer__heading--spaced {
  margin-top: 14px;
}

.site-footer__contact-list {
  display: grid;
  gap: 8px;
}

.site-footer__contact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.80);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer__contact i {
  margin-top: 2px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.site-footer__nav {
  display: grid;
  gap: 7px;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  font-size: 14px;
  width: fit-content;
}

.site-footer__nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__social {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer__social-link:hover {
  background: rgba(241, 200, 78, 0.20);
  color: #ffffff;
}

.site-footer__social-link i { font-size: 22px; line-height: 1; }

.site-footer__map {
  height: 100%;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer__map iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: block;
}

@media (max-width: 860px) {
  .site-footer__map,
  .site-footer__map iframe { min-height: 240px; }
}

.site-footer__bottom {
  margin-top: 14px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer__login {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
}

.site-footer__login:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

@media (max-width: 860px) {
  :root { --site-header-space: 78px; }
  .site-header__inner { align-items: flex-start; }
  .site-brand__text { display: none; }
  .site-nav--desktop { display: none; }
  .site-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav__menu { left: auto; right: 0; }
}

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

.author-social__link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(15, 23, 42, 0.86);
  text-decoration: none;
}

.author-social__link:hover {
  background: rgba(24, 132, 70, 0.10);
  border-color: rgba(24, 132, 70, 0.32);
  color: var(--green-dark);
}

.author-social__link i { font-size: 20px; line-height: 1; }

.author-profile {
  padding: 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .author-profile {
    grid-template-columns: 1fr;
  }
}

.author-profile__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.author-profile__photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.author-profile__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.author-profile__main {
  min-width: 0;
}

.author-profile__name {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
}

.author-profile__bio {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
  text-align: left;
}

.author-posts {
  margin-top: 18px;
}

.author-posts__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.author-posts__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.author-posts__more {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(24, 132, 70, 0.08);
}

.author-posts__more:hover {
  background: rgba(24, 132, 70, 0.12);
}

.author-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 861px) {
  .author-posts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.author-post-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.author-post-card__media {
  display: block;
  text-decoration: none;
}

.author-post-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.author-post-card__body {
  padding: 14px;
}

.author-post-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
}

.author-post-card__title {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.author-post-card__link {
  color: var(--text);
  text-decoration: none;
}

.author-post-card__link:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.curriculum {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(135deg, #0f2d27 0%, #188446 100%);
  margin-top: 22px;
  padding: 30px 0 22px;
}

.curriculum__inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.curriculum__head {
  margin-bottom: 18px;
}

.curriculum .news-section__title {
  color: rgba(255, 255, 255, 0.96);
}

.curriculum .news-section__title::after {
  background: rgba(255, 255, 255, 0.9);
}

.curriculum__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 861px) {
  .curriculum__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
  }
}

.curriculum-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 22px 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  cursor: pointer;
}

.curriculum-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(24, 132, 70, 0.28);
}

@media (hover: none) {
  .curriculum-card {
    transition: none;
  }
}

.curriculum-card:focus-visible {
  outline: 3px solid rgba(24, 132, 70, 0.35);
  outline-offset: 4px;
}

.curriculum-card__logo {
  width: 180px;
  height: 100px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curriculum-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.curriculum-card__logo i {
  font-size: 48px;
  color: rgba(15, 23, 42, 0.55);
}

.curriculum-card__desc {
  margin: 0;
  color: rgba(15, 23, 42, 0.92);
  line-height: 1.55;
  font-weight: 400;
  flex: 1;
}

.curriculum-card__school {
  margin-top: 14px;
  display: block;
  align-self: center;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.92);
}

.curriculum-card:hover .curriculum-card__school,
.curriculum-card__school:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.curriculum__note {
  margin-top: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  font-size: 13px;
}

.enroll-cta {
  margin-top: 18px;
}

.enroll-cta__inner {
  width: min(var(--content-max), calc(100% - var(--content-gutter)));
  margin: 0 auto;
}

.enroll-cta__content {
  border-radius: 18px;
  border: 1px solid rgba(24, 132, 70, 0.28);
  background: linear-gradient(135deg, rgba(24, 132, 70, 0.16), rgba(255, 255, 255, 0.96));
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.enroll-cta__title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.enroll-cta__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 70ch;
}

.enroll-cta__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.enroll-cta__primary {
  background: var(--green);
}

.enroll-cta__primary i {
  margin-right: 8px;
}

.gallery-preview {
  margin-top: 26px;
  margin-bottom: 22px;
}

.gallery-preview__inner {
  width: min(var(--content-max), calc(100% - var(--content-gutter)));
  margin: 0 auto;
}

.gallery-filter {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.gallery-filter__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 6px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.78);
  background: transparent;
  border: 0;
  transition: color 160ms ease;
}

.gallery-filter__link:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.gallery-filter__link.is-active {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.gallery-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 861px) {
  .gallery-preview__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.gallery-preview__item {
  margin: 0;
}

.gallery-preview__media {
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.gallery-preview__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 240ms ease;
}

.gallery-preview__media:hover .gallery-preview__img {
  transform: scale(1.02);
}

.gallery-preview__caption {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(15, 23, 42, 0.78);
  text-align: left;
}

.gallery-preview__footer {
  margin-top: 14px;
}

.gallery-preview__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--green-dark);
  background: rgba(24, 132, 70, 0.08);
}

.gallery-preview__button:hover {
  background: rgba(24, 132, 70, 0.12);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.facility-viewer-open {
  overflow: hidden;
}

.facilities {
  margin-top: 24px;
  margin-bottom: 22px;
}

.facilities__inner {
  width: min(var(--content-max), calc(100% - var(--content-gutter)));
  margin: 0 auto;
}

.facilities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 861px) {
  .facilities__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.facility-card {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.facility-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(24, 132, 70, 0.32);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.facility-card__media {
  overflow: hidden;
}

.facility-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 240ms ease;
}

.facility-card:hover .facility-card__img {
  transform: scale(1.04);
}

.facility-card__body {
  padding: 12px 12px 14px;
}

.facility-card__title {
  font-weight: 900;
  letter-spacing: 0.2px;
  margin: 0;
  font-size: 15px;
}

.facility-card__desc {
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.55;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.facility-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.facility-viewer[hidden] {
  display: none;
}

.facility-viewer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.facility-viewer__panel {
  position: relative;
  width: min(1100px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.30);
  overflow: hidden;
  outline: none;
}

@supports (height: 100dvh) {
  .facility-viewer__panel {
    max-height: calc(100dvh - 28px);
  }
}

.facility-viewer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.facility-viewer__close svg {
  width: 22px;
  height: 22px;
  display: block;
}

.facility-viewer__layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  height: calc(100vh - 28px);
}

@media (max-width: 860px) {
  .facility-viewer__panel {
    height: calc(100vh - 28px);
  }
  .facility-viewer__layout {
    grid-template-columns: 1fr;
    grid-template-rows: 52vh 1fr;
    height: 100%;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 860px) {
    .facility-viewer__panel {
      height: calc(100dvh - 28px);
    }
    .facility-viewer__layout {
      grid-template-rows: 52dvh 1fr;
    }
  }
}

.facility-viewer__media {
  background: #0b0b0b;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.facility-viewer__img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  border: 0;
  background: #0b0b0b;
}

@media (max-width: 860px) {
  .facility-viewer__media {
    height: 52vh;
  }
  .facility-viewer__img {
    height: 100%;
  }
}

.facility-viewer__arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.90);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  opacity: 0.35;
  transform: translateY(-50%);
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.facility-viewer__arrow span {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 10px 18px rgba(0,0,0,0.40);
}

.facility-viewer__arrow--prev {
  left: 14px;
}

.facility-viewer__arrow--next {
  right: 14px;
}

.gallery-viewer__layout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 72px;
  min-height: calc(100vh - 28px);
}

@media (max-width: 860px) {
  .gallery-viewer__layout {
    padding: 52px 18px;
  }
}

#galleryViewer .facility-viewer__overlay {
  background: rgba(0, 0, 0, 0.76);
}

#galleryViewer .facility-viewer__panel {
  width: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
}

#galleryViewer .facility-viewer__close {
  position: fixed;
  top: 18px;
  right: 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}

#galleryViewer .facility-viewer__media {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

#galleryViewer .facility-viewer__img {
  background: transparent;
  width: auto;
  height: auto;
  max-width: min(88vw, 1080px);
  max-height: 82vh;
  object-fit: contain;
  object-position: center center;
}

#galleryViewer .facility-viewer__arrow {
  position: fixed;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.92;
  box-shadow: none;
}

#galleryViewer .facility-viewer__arrow--prev {
  left: 18px;
}

#galleryViewer .facility-viewer__arrow--next {
  right: 18px;
}

#galleryViewer .facility-viewer__arrow:hover {
  background: rgba(0, 0, 0, 0.52);
}

@media (max-width: 860px) {
  #galleryViewer .facility-viewer__arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0.68;
  }

  #galleryViewer .facility-viewer__arrow span {
    font-size: 22px;
  }

  #galleryViewer .facility-viewer__arrow--prev {
    left: 10px;
  }

  #galleryViewer .facility-viewer__arrow--next {
    right: 10px;
  }

  #galleryViewer .facility-viewer__arrow:hover {
    background: rgba(0, 0, 0, 0.30);
  }
}

.gallery-viewer__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: auto;
  padding: 0;
  max-width: min(70ch, 88vw);
  text-align: left;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
  letter-spacing: 0.2px;
  background: transparent;
  text-shadow: 0 10px 18px rgba(0,0,0,0.55);
  pointer-events: none;
}

.facility-viewer__media:hover .facility-viewer__arrow {
  opacity: 0.92;
}

.facility-viewer__arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.facility-viewer__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

@media (hover: none) {
  .facility-viewer__arrow {
    opacity: 0.78;
  }
}

.facility-viewer__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  min-height: 0;
}

.facility-viewer__content-head {
  padding: 22px 66px 12px 26px;
}

.facility-viewer__scroll {
  padding: 0 26px 26px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.facility-viewer__scroll {
  padding-bottom: 90px;
}

@supports (padding: env(safe-area-inset-bottom)) {
  .facility-viewer__scroll {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
}

.facility-viewer__scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.facility-viewer__scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0);
  background-clip: padding-box;
}

.facility-viewer__scroll:hover::-webkit-scrollbar-thumb,
.facility-viewer__scroll.is-scrollbar-visible::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.32);
}

.facility-viewer__scroll:hover::-webkit-scrollbar-thumb:hover,
.facility-viewer__scroll.is-scrollbar-visible::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.46);
  border: 3px solid rgba(255, 255, 255, 0);
  background-clip: padding-box;
}

.facility-viewer__scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0); }
.facility-viewer__scroll:hover,
.facility-viewer__scroll.is-scrollbar-visible { scrollbar-color: rgba(15, 23, 42, 0.32) transparent; }

.facility-viewer__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0;
}

.facility-viewer__desc {
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.6;
  font-size: 14px;
  white-space: pre-wrap;
}

.facility-viewer__nav {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.facility-viewer__navbtn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  cursor: pointer;
}

.facility-viewer__navbtn:disabled {
  opacity: 0.5;
  cursor: default;
}

body.library-landing .site-main {
  padding-top: calc(var(--section-y) + var(--site-header-space));
}

.library-hero {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(24, 132, 70, 0.14), transparent 62%),
              radial-gradient(900px 520px at 90% 0%, rgba(241, 200, 78, 0.16), transparent 56%),
              rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.library-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px;
  align-items: center;
}

.library-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: rgba(24, 132, 70, 0.10);
  color: rgba(24, 132, 70, 0.95);
}

.library-hero__title {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.3px;
  font-weight: 900;
}

.library-hero__subtitle {
  margin: 12px 0 0;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.7;
  font-weight: 700;
  font-size: 15px;
  max-width: 64ch;
}

.library-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.library-hero__note {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.66);
}

.library-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  border-radius: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  transform: translateZ(0);
}

.library-btn--primary {
  background: var(--green);
  color: white;
  border-color: rgba(0, 0, 0, 0.06);
}

.library-btn--primary:hover {
  background: var(--green-dark);
  transform: translate3d(0, -1px, 0);
}

.library-btn--ghost {
  background: rgba(255, 255, 255, 0.86);
  color: rgba(15, 23, 42, 0.92);
}

.library-btn--ghost:hover {
  background: rgba(24, 132, 70, 0.08);
  border-color: rgba(24, 132, 70, 0.24);
  transform: translate3d(0, -1px, 0);
}

.library-btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  user-select: none;
}

.library-hero__media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.library-hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.library-stats {
  margin-top: 18px;
}

.library-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.library-stat {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 14px;
}

.library-stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 132, 70, 0.10);
  color: rgba(24, 132, 70, 0.98);
}

.library-stat__icon .mdi { font-size: 20px; line-height: 1; }

.library-stat__label {
  margin-top: 10px;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.70);
  text-transform: uppercase;
}

.library-stat__value {
  margin-top: 4px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.1px;
}

.library-stat__desc {
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.74);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.55;
}

.library-section {
  margin-top: 26px;
}

.library-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}

.library-h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.library-p {
  margin: 10px 0 0;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 700;
  line-height: 1.7;
  font-size: 14px;
}

.library-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.library-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.80);
}

.library-pill .mdi { color: rgba(24, 132, 70, 0.95); font-size: 16px; line-height: 1; }

.library-split__media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.library-split__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.library-split__caption {
  padding: 10px 12px 12px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.70);
}

.library-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.library-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 14px;
}

.library-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(241, 200, 78, 0.20);
  color: rgba(15, 23, 42, 0.88);
}

.library-card__icon .mdi { font-size: 20px; line-height: 1; }

.library-card__title {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.library-card__desc {
  margin-top: 8px;
  color: rgba(15, 23, 42, 0.76);
  font-weight: 700;
  line-height: 1.6;
  font-size: 13px;
}

.library-quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.library-quote {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 14px;
}

.library-quote__text {
  margin: 0;
  font-weight: 800;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.86);
  font-size: 14px;
}

.library-quote__meta {
  margin-top: 10px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(24, 132, 70, 0.92);
}

.library-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.library-gallery__item {
  margin: 0;
}

.library-gallery__link {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.library-gallery__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 200ms ease;
}

.library-gallery__link:hover .library-gallery__img {
  transform: scale(1.02);
}

.library-gallery__cap {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.70);
}

.library-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.library-contact__card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 14px;
}

.library-contact__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 14px;
}

.library-contact__title .mdi {
  font-size: 18px;
  line-height: 1;
  color: rgba(24, 132, 70, 0.95);
}

.library-contact__text {
  margin-top: 10px;
  color: rgba(15, 23, 42, 0.76);
  font-weight: 700;
  line-height: 1.7;
  font-size: 13px;
}

.library-link {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.library-link:hover { text-decoration: underline; }

.library-cta {
  margin-top: 26px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: linear-gradient(120deg, rgba(24, 132, 70, 0.12), rgba(241, 200, 78, 0.14));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 16px;
}

.library-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.library-cta__title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1px;
}

.library-cta__desc {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.74);
  line-height: 1.6;
}

@media (min-width: 860px) {
  .library-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 22px;
    gap: 22px;
  }
  .library-stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .library-split {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .library-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-quote-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .library-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .library-contact__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .library-cta__inner {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }
}

body.library-lux {
  --bg: #f7f8fc;
  --green: #0b1b33;
  --green-dark: #071224;
  --gold: #d6b24c;
  --gold-soft: rgba(214, 178, 76, 0.18);
}

body.library-lux {
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(11, 27, 51, 0.10), transparent 65%),
    radial-gradient(900px 520px at 90% 10%, rgba(214, 178, 76, 0.12), transparent 62%),
    repeating-linear-gradient(135deg, rgba(11, 27, 51, 0.028) 0, rgba(11, 27, 51, 0.028) 2px, rgba(255, 255, 255, 0) 2px, rgba(255, 255, 255, 0) 12px),
    var(--bg);
}

body.library-lux .library-hero {
  background: radial-gradient(1200px 600px at 10% 10%, rgba(11, 27, 51, 0.14), transparent 62%),
              radial-gradient(900px 520px at 90% 0%, rgba(214, 178, 76, 0.18), transparent 58%),
              rgba(255, 255, 255, 0.96);
  border-color: rgba(11, 27, 51, 0.14);
}

body.library-lux .library-hero__badge {
  background: rgba(11, 27, 51, 0.10);
  color: rgba(11, 27, 51, 0.92);
  border: 1px solid rgba(214, 178, 76, 0.26);
}

body.library-lux .library-hero__badge .mdi {
  color: rgba(214, 178, 76, 0.98);
  font-size: 16px;
  line-height: 1;
}

body.library-lux .library-btn--primary {
  background: linear-gradient(135deg, rgba(11, 27, 51, 0.98), rgba(7, 18, 36, 1));
  border-color: rgba(214, 178, 76, 0.28);
}

body.library-lux .library-btn--primary:hover {
  background: linear-gradient(135deg, rgba(7, 18, 36, 1), rgba(11, 27, 51, 0.98));
}

body.library-lux .library-btn--ghost:hover {
  background: rgba(214, 178, 76, 0.10);
  border-color: rgba(214, 178, 76, 0.32);
}

body.library-lux .library-stat__icon,
body.library-lux .library-pill .mdi,
body.library-lux .library-contact__title .mdi {
  color: rgba(214, 178, 76, 0.98);
}

.library-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.library-metric {
  border: 1px solid rgba(11, 27, 51, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(11, 27, 51, 0.06);
  padding: 14px;
}

.library-metric__label {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.24px;
  text-transform: uppercase;
  color: rgba(11, 27, 51, 0.70);
}

.library-metric__value {
  margin-top: 6px;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.3px;
  color: rgba(11, 27, 51, 0.96);
}

.library-metric__meta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(11, 27, 51, 0.60);
}

.library-collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.library-collection-card {
  border: 1px solid rgba(11, 27, 51, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(11, 27, 51, 0.06);
  padding: 14px;
}

.library-collection-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.library-collection-card__title {
  font-weight: 950;
  letter-spacing: 0.12px;
  color: rgba(11, 27, 51, 0.95);
}

.library-collection-card__sub {
  font-size: 12px;
  font-weight: 800;
  color: rgba(11, 27, 51, 0.64);
}

.library-empty {
  border: 1px dashed rgba(11, 27, 51, 0.18);
  border-radius: 16px;
  padding: 14px;
  font-weight: 800;
  color: rgba(11, 27, 51, 0.62);
  background: rgba(255, 255, 255, 0.82);
}

.library-bars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.library-bar__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.library-bar__label {
  font-weight: 900;
  font-size: 13px;
  color: rgba(11, 27, 51, 0.86);
}

.library-bar__value {
  font-weight: 950;
  font-size: 13px;
  color: rgba(11, 27, 51, 0.86);
}

.library-bar__track {
  margin-top: 8px;
  height: 10px;
  border-radius: 999px;
  background: rgba(11, 27, 51, 0.08);
  border: 1px solid rgba(11, 27, 51, 0.08);
  overflow: hidden;
}

.library-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 27, 51, 0.98), rgba(214, 178, 76, 0.95));
}

.library-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding-top: 6px;
}

.library-chart__bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.library-chart__fill {
  width: 100%;
  height: 10px;
  min-height: 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(214, 178, 76, 0.96), rgba(11, 27, 51, 0.96));
  box-shadow: 0 10px 22px rgba(11, 27, 51, 0.10);
  border: 1px solid rgba(11, 27, 51, 0.10);
}

.library-chart__label {
  font-size: 11px;
  font-weight: 900;
  color: rgba(11, 27, 51, 0.62);
  text-align: center;
  line-height: 1.2;
}

.library-search {
  margin-top: 12px;
  border: 1px solid rgba(11, 27, 51, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(11, 27, 51, 0.06);
  padding: 14px;
}

.library-search__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.library-search__label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(11, 27, 51, 0.74);
  margin-bottom: 6px;
}

.library-search__input,
.library-search__select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11, 27, 51, 0.14);
  padding: 12px 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.94);
  color: rgba(11, 27, 51, 0.92);
  outline: none;
}

.library-search__input:focus,
.library-search__select:focus {
  border-color: rgba(214, 178, 76, 0.58);
  box-shadow: 0 0 0 4px rgba(214, 178, 76, 0.14);
}

.library-search__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.library-search-results {
  margin-top: 12px;
}

.library-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.library-result {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(11, 27, 51, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(11, 27, 51, 0.06);
  padding: 12px;
}

.library-result__media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 27, 51, 0.14);
  background: rgba(11, 27, 51, 0.04);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.library-result__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.library-result__placeholder {
  color: rgba(11, 27, 51, 0.52);
  font-size: 32px;
}

.library-result__title {
  font-weight: 950;
  letter-spacing: 0.12px;
  color: rgba(11, 27, 51, 0.94);
  line-height: 1.25;
}

.library-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(11, 27, 51, 0.70);
}

.library-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(11, 27, 51, 0.16);
  background: rgba(11, 27, 51, 0.06);
  font-weight: 950;
  color: rgba(11, 27, 51, 0.86);
}

.library-badge--gold {
  background: var(--gold-soft);
  border-color: rgba(214, 178, 76, 0.30);
  color: rgba(11, 27, 51, 0.92);
}

.library-result__info {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.library-result__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
}

.library-k {
  font-weight: 950;
  color: rgba(11, 27, 51, 0.70);
}

.library-v {
  font-weight: 850;
  color: rgba(11, 27, 51, 0.88);
}

.library-status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: 0.1px;
  border: 1px solid rgba(11, 27, 51, 0.16);
}

.library-status.is-available {
  background: rgba(214, 178, 76, 0.16);
  border-color: rgba(214, 178, 76, 0.30);
  color: rgba(11, 27, 51, 0.92);
}

.library-status.is-unavailable {
  background: rgba(11, 27, 51, 0.06);
  color: rgba(11, 27, 51, 0.70);
}

.library-sort {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.library-sort__link {
  text-decoration: none;
  font-weight: 950;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 27, 51, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: rgba(11, 27, 51, 0.88);
}

.library-sort__link:hover {
  border-color: rgba(214, 178, 76, 0.38);
  background: rgba(214, 178, 76, 0.10);
}

.library-sort__link.is-active {
  border-color: rgba(214, 178, 76, 0.45);
  background: rgba(214, 178, 76, 0.14);
}

.library-book-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.library-book {
  border-radius: 18px;
  border: 1px solid rgba(11, 27, 51, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(11, 27, 51, 0.06);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.library-book:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(214, 178, 76, 0.34);
  box-shadow: 0 22px 56px rgba(11, 27, 51, 0.10);
}

.library-book__media {
  aspect-ratio: 3 / 4;
  background: radial-gradient(400px 260px at 50% 0%, rgba(214, 178, 76, 0.18), transparent 62%), rgba(11, 27, 51, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(11, 27, 51, 0.10);
}

.library-book__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.library-book__placeholder {
  color: rgba(11, 27, 51, 0.52);
  font-size: 44px;
}

.library-book__body {
  padding: 12px;
}

.library-book__title {
  font-weight: 950;
  color: rgba(11, 27, 51, 0.94);
  letter-spacing: 0.12px;
  line-height: 1.25;
  font-size: 14px;
}

.library-book__meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(11, 27, 51, 0.70);
}

@media (min-width: 560px) {
  .library-chart {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .library-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .library-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-search__grid {
    grid-template-columns: 1.4fr 1fr 0.8fr 0.9fr;
  }
  .library-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .library-cards--lux {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.sd-landing a.sd-mini-gallery__item {
  border-radius: 12px !important;
}

body.sd-landing img.sd-mini-gallery__img {
  border-radius: 12px !important;
}
