/* ==========================================================================
   SLB Santirama — Prototype Stylesheet
   Design tokens match the production Next.js app (see santirama-web.md)
   ========================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul {
  list-style: none;
}

/* ---------- Design Tokens ----------
   Palette matches the Yayasan Santi Rama Jakarta logo exactly:
   green + black + white. No gold/amber — kept strictly tri-tone.
------------------------------------- */
:root {
  --primary: #2e9e3f;
  --primary-dark: #1f6b26;
  --accent: #4cb84f;
  --secondary: #374151;
  --danger: #ef4444;
  --dark: #121212;

  --bg: #ffffff;
  --surface: #ffffff;
  --text: #121212;
  --text-muted: #5c5c5c;
  --border: #e4e4e0;
  --ring: rgba(46, 158, 63, 0.35);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);

  --font-heading: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --container: 1280px;
  --nav-h: 4rem;
  --announce-h: 2.25rem;
}

[data-theme="dark"] {
  --primary: #4cb84f;
  --primary-dark: #3d8b40;
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.45);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 999;
}

.skip-link:focus {
  left: 0;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--border);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.9rem 1.9rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding-block: 0.5rem;
  text-align: center;
}

.announcement-inner .icon {
  color: var(--primary);
}

.announcement-inner a {
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary-dark);
}

.announcement-inner a:hover {
  color: var(--accent);
}

.announcement-inner p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.9rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--primary);
}

.nav-dropdown-caret {
  width: 0.7rem;
  height: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
}

@media (max-width: 991.98px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown-menu {
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    margin-left: 0.25rem;
  }

  .nav-dropdown-menu a {
    border-bottom: none !important;
    padding: 0.6rem 0 !important;
  }
}

@media (min-width: 992px) {
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.9rem;
    min-width: 11rem;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

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

  .nav-dropdown-menu a {
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  .nav-dropdown-menu a:hover {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
  }
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  color: var(--text);
  transition: background-color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--border);
}

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.navbar-actions .btn {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 1.5rem) 1.75rem 2rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 56;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }

  .navbar-actions .btn {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 55%),
    radial-gradient(circle at 85% 25%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 50%),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 45%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 60%, transparent) 85%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: linear-gradient(var(--text) 1px, transparent 1px), linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 9rem 6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.hero h1 {
  max-width: 46rem;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.hero-floating-card {
  position: absolute;
  display: none;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-lg);
}

.card-a {
  left: 2rem;
  top: 7rem;
}

.card-b {
  right: 2.5rem;
  bottom: 7rem;
}

.floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

.floating-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.floating-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.floating-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .hero-floating-card {
    display: flex;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 1.8s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 1rem;
  height: 1rem;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Quick Menu ---------- */
.quick-menu {
  position: relative;
  z-index: 10;
  margin-top: -3.25rem;
}

.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.quick-item:hover {
  background: var(--bg);
  transform: translateY(-3px);
}

.quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.quick-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

@media (min-width: 768px) {
  .quick-menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Statistics ---------- */
.statistics {
  padding-block: 5.5rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ---------- Section Head ---------- */
.section-head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-head.align-left {
  margin: 0 0 2rem;
  text-align: left;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.section-head p {
  color: var(--text-muted);
}

section {
  padding-block: 5.5rem;
}

/* ---------- Principal ---------- */
.principal-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.principal-photo {
  position: relative;
  max-width: 22rem;
  margin-inline: auto;
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--primary), var(--dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
}

.photo-placeholder svg {
  width: 30%;
  height: 30%;
}

.principal-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.principal-text p {
  color: var(--text-muted);
}

.principal-sign {
  margin-top: 0.5rem;
}

.sign-name {
  font-family: var(--font-heading);
  font-weight: 700;
}

.sign-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 992px) {
  .principal-grid {
    grid-template-columns: 0.8fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Vision & Mission ---------- */
.vision-mission {
  background: var(--surface);
}

.vm-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

/* Each panel picks its accent: school = primary green, foundation = deep green. */
.vm-panel {
  --vm-accent: var(--primary);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vm-panel--yayasan {
  --vm-accent: var(--primary-dark);
}

[data-theme="dark"] .vm-panel--yayasan {
  --vm-accent: #6fcf72;
}

.vm-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.vm-panel-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: -1.5rem -1.5rem 1.25rem;
  padding: 1.75rem 1.5rem 2.25rem;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--vm-accent) 22%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--vm-accent) 7%, transparent), transparent);
}

.vm-panel-head > div {
  position: relative;
  z-index: 1;
}

.vm-panel-icon {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--vm-accent) 14%, var(--bg));
  color: var(--vm-accent);
}

.vm-panel-icon svg {
  width: 2rem;
  height: 2rem;
}

.vm-panel-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.vm-panel-head h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.2;
}

.vm-panel-mark {
  position: absolute;
  right: -1rem;
  top: 50%;
  width: 8rem;
  height: auto;
  transform: translateY(-50%) rotate(-12deg);
  opacity: 0.09;
  pointer-events: none;
}

.vm-block {
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.vm-block + .vm-block {
  margin-top: 1rem;
}

.vm-block h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.vm-block--visi {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: color-mix(in srgb, var(--vm-accent) 8%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--vm-accent) 14%, transparent);
}

.vm-block--visi h4 {
  margin: 0.55rem 0 0.35rem;
}

.vm-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.vm-block--misi {
  border: 1px solid var(--border);
}

.vm-block-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vm-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--vm-accent) 14%, transparent);
  color: var(--vm-accent);
}

.vm-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.vm-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-left: 0.25rem;
}

.vm-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.vm-num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--vm-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: -0.1rem;
}

@media (min-width: 576px) {
  .vm-panel {
    padding: 1.75rem;
  }

  .vm-panel-head {
    margin: -1.75rem -1.75rem 1.25rem;
    padding: 2rem 1.75rem 2.5rem;
  }

  .vm-panel-mark {
    width: 10rem;
    right: 0.5rem;
  }
}

@media (min-width: 992px) {
  .vm-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Organizational Structure ---------- */
.org-card {
  position: relative;
  min-width: 12rem;
  max-width: 15rem;
  z-index: 1;
}

.org-card-inner {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-card:hover .org-card-inner {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.org-card-head {
  background: var(--primary);
  color: #fff;
  padding: 3rem 1rem 0.8rem;
}

.org-card-body {
  background: var(--surface);
  min-height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem 0.9rem;
}

.org-role {
  font-weight: 700;
  font-size: 0.88rem;
}

.org-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.org-photo {
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: contain;
  border: 3px solid var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* ---------- Organizational Structure — Levels Page ---------- */
.page-banner {
  padding-block: 3rem 2.5rem;
  background: linear-gradient(180deg, rgba(46, 158, 63, 0.08), transparent);
  border-bottom: 1px solid var(--border);
}

.page-banner .container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-banner p {
  color: var(--text-muted);
  max-width: 40rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

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

.org-structure-page {
  padding-block: 4rem 6rem;
}

.org-level-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  padding: 2.75rem 1.5rem 1.5rem;
  background: rgba(46, 158, 63, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.org-level-row:last-child {
  margin-bottom: 0;
}

/* ---------- Programs ---------- */
.programs {
  background: var(--surface);
}

.program-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.program-page-card {
  position: relative;
  min-height: 19rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-page-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 33, 20, 0.15) 0%, rgba(18, 33, 20, 0.92) 100%);
}

.program-page-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.program-page-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--tint) 30%, transparent);
  color: #fff;
  margin-bottom: 1.1rem;
}

.program-page-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.program-page-body {
  position: relative;
  z-index: 1;
}

.program-page-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.program-page-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.program-page-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.program-page-card:hover .program-page-link {
  transform: translateX(3px);
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* ---------- News ---------- */
.news {
  background: var(--surface);
}

.news-grid {
  display: grid;
  gap: 1.5rem;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}

.thumb-1 { background: linear-gradient(135deg, var(--primary), #163d1a); }
.thumb-2 { background: linear-gradient(135deg, var(--accent), #1b5e20); }
.thumb-3 { background: linear-gradient(135deg, #2b2b2b, #0d0d0d); }

.news-body {
  padding: 1.4rem;
}

.news-body h3 {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.5rem;
}

.news-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- News Page (dedicated gallery) ---------- */
.news-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

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

.news-date-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .news-date-badge {
  color: var(--primary);
}

.news-date-badge svg {
  width: 0.8rem;
  height: 0.8rem;
  flex-shrink: 0;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

[data-theme="dark"] .news-link {
  color: var(--primary);
}

.news-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

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

@media (min-width: 992px) {
  .news-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .news-card-featured {
    grid-row: span 2;
  }

  .news-card-featured .news-thumb {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Calendar ---------- */
.calendar-grid {
  display: grid;
  gap: 2.5rem;
}

.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.calendar-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.calendar-item:hover {
  border-color: var(--primary);
}

.date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.date-box span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.calendar-item h4 {
  font-size: 0.95rem;
}

.calendar-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 992px) {
  .calendar-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 60%);
}

.gallery-item span {
  position: relative;
  z-index: 1;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.g-1 { background: linear-gradient(150deg, var(--primary), #163d1a); }
.g-2 { background: linear-gradient(150deg, var(--accent), #1b5e20); }
.g-3 { background: linear-gradient(150deg, #2b2b2b, #0d0d0d); }
.g-4 { background: linear-gradient(150deg, #a5d6a7, var(--accent)); }
.g-5 { background: linear-gradient(150deg, #1b5e20, #0d0d0d); }
.g-6 { background: linear-gradient(150deg, var(--primary), var(--accent)); }

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

/* ---------- Social Feeds ---------- */
.social-feed {
  background: var(--surface);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.ig-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease;
}

.ig-item svg {
  width: 28%;
  height: 28%;
}

.ig-item:hover {
  transform: translateY(-4px);
}

.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tiktok-item {
  aspect-ratio: 9 / 14;
  border-radius: var(--radius-lg);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s ease;
}

.tiktok-item svg {
  width: 22%;
  height: 22%;
}

.tiktok-item:hover {
  transform: translateY(-4px);
}

@media (min-width: 768px) {
  .ig-grid {
    grid-template-columns: repeat(6, 1fr);
  }

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

.ig-embed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  justify-items: center;
}

.ig-embed {
  width: 100%;
  max-width: 22rem;
}

.ig-embed iframe {
  width: 100% !important;
}

@media (min-width: 768px) {
  .ig-embed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .ig-embed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tiktok-embed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  justify-items: center;
}

.tiktok-embed-item {
  width: 100%;
  max-width: 22rem;
}

.tiktok-embed-item iframe {
  width: 100% !important;
}

.tiktok-embed[hidden],
.tiktok-fallback[hidden] {
  display: none !important;
}

.tiktok-fallback {
  aspect-ratio: 9 / 14;
  border-radius: var(--radius-lg);
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.25s ease;
}

.tiktok-fallback svg {
  width: 22%;
  height: 22%;
}

.tiktok-fallback:hover {
  transform: translateY(-4px);
  color: #fff;
}

.tiktok-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 14;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--dark);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}

.tiktok-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tiktok-facade:hover img {
  transform: scale(1.04);
}

.tiktok-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-play-icon svg {
  width: 3.25rem;
  height: 3.25rem;
  padding: 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tiktok-facade:hover .tiktok-play-icon svg {
  background: var(--primary);
  transform: scale(1.08);
}

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

@media (min-width: 1100px) {
  .tiktok-embed-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- YouTube ---------- */
.youtube-feed {
  background: var(--surface);
}

.youtube-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.youtube-item {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s ease;
}

.youtube-item svg {
  width: 16%;
  height: 16%;
}

.youtube-item:hover {
  transform: translateY(-4px);
}

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

.youtube-embed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.youtube-embed-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.youtube-embed-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .youtube-embed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .youtube-embed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--surface);
}

.testimonial-slider {
  max-width: 42rem;
  margin-inline: auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  text-align: center;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.testimonial-dots button.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ---------- Partners ---------- */
.partners {
  padding-block: 3.5rem;
}

.partners-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-heading);
  opacity: 0.7;
}

.partner-logo {
  height: 2.25rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}

/* ---------- Map ---------- */
.map-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.map-info p {
  color: var(--text-muted);
  margin: 0.75rem 0 1.5rem;
}

.map-embed {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (min-width: 992px) {
  .map-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-info p {
  color: var(--text-muted);
  margin: 0.75rem 0 1.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 1rem 0 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-socials svg {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-socials a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.88rem;
}

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

.footer-contact li {
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: row;
    text-align: left;
  }
}

/* ---------- Floating Actions ---------- */
.floating-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 70;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}

.fab:hover {
  transform: translateY(-3px) scale(1.05);
}

.fab svg {
  width: 1.55rem;
  height: 1.55rem;
}

.fab-whatsapp {
  background: #25d366;
  color: #fff;
}

.fab-chat {
  background: var(--primary);
  color: #fff;
  position: relative;
}

.fab-chat .icon-close {
  display: none;
  position: absolute;
}

.fab-chat.open .icon-chat {
  display: none;
}

.fab-chat.open .icon-close {
  display: block;
}

.back-to-top {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 70;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* ---------- Chat Widget ---------- */
.chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  width: min(22rem, calc(100vw - 2.5rem));
  max-height: min(32rem, calc(100vh - 8rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 71;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-widget.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--primary);
  color: #fff;
}

.chat-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.chat-avatar svg {
  width: 1.25rem;
  height: 1.25rem;
}

.chat-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #4ade80;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 12rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
}

.bubble-bot {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 0.25rem;
}

.bubble-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.1rem 0.85rem;
}

.chat-quick-replies button {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--primary);
  transition: background-color 0.2s ease;
}

.chat-quick-replies button:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
}

.chat-input input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  background: var(--bg);
}

.chat-input input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-input button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}

.chat-input button svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Gallery Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(9, 12, 20, 0.85);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  width: min(32rem, 100%);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox.open .lightbox-panel {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }
.reveal-delay-5.in-view { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* ==========================================================================
   CI4 port additions — real photo support (falls back to the placeholder
   gradients above when admin hasn't uploaded a photo yet)
   ========================================================================== */
img.photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.news-thumb img,
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar[src] {
  object-fit: cover;
}

.form-success {
  background: rgba(46, 158, 63, 0.12);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.form-error {
  display: block;
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

/* ---------- Content Page Hero (banner + quote card) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 3.5rem 3rem;
  background: color-mix(in srgb, var(--primary) 5%, var(--bg));
}

.page-hero-blob {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

.page-hero-blob-a {
  width: 16rem;
  height: 16rem;
  top: -6rem;
  left: -5rem;
}

.page-hero-blob-b {
  width: 20rem;
  height: 20rem;
  bottom: -9rem;
  right: -6rem;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.page-hero-text {
  flex: 1 1 24rem;
  max-width: 34rem;
}

.page-hero-text .breadcrumb {
  margin-bottom: 0.5rem;
}

.page-hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-block: 0.35rem 0.7rem;
}

.page-hero-text p {
  color: var(--text-muted);
  max-width: 32rem;
}

.page-quote {
  position: relative;
  flex: 1 1 20rem;
  max-width: 26rem;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.5rem 1.75rem 1.75rem;
}

.page-quote-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.page-quote p {
  font-style: italic;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
}

.page-quote-icon {
  position: absolute;
  top: -1.3rem;
  right: -0.8rem;
  font-size: 2.6rem;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
}

.page-sparkle {
  position: absolute;
  font-size: 0.9rem;
}

.page-sparkle-a {
  top: -0.4rem;
  left: -1rem;
}

.page-sparkle-b {
  bottom: -0.2rem;
  right: -0.6rem;
}

.page-grid-section {
  padding-block: 4rem 6rem;
}

.achv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

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

.achv-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.achv-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--border);
}

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

.achv-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
}

.achv-body {
  position: relative;
  padding: 1.85rem 1.25rem 1.25rem;
  text-align: left;
}

.achv-medal {
  position: absolute;
  top: -1.3rem;
  left: 1.1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.achv-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.achv-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.7rem;
}

.achv-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
}

[data-theme="dark"] .achv-date {
  color: var(--primary);
}

.achv-date svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

/* ---------- News Detail Article ---------- */
.container-narrow {
  max-width: 52rem;
}

.news-article {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.news-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.news-article-meta svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.news-article h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.9rem;
}

.news-article-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.news-article-figure {
  margin-bottom: 1.5rem;
}

.news-article-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-article-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.news-article-body p {
  margin-bottom: 1.15rem;
  line-height: 1.75;
  color: var(--text);
}

.news-pullquote {
  position: relative;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0 1.75rem;
}

.news-pullquote .page-quote-mark {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.news-pullquote p {
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.news-pullquote footer {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.news-pullquote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--primary-dark);
}

[data-theme="dark"] .news-pullquote cite {
  color: var(--primary);
}

.news-pullquote footer span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.news-article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.news-share {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.news-share span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.news-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s ease;
}

.news-share-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.news-share-btn:hover {
  transform: translateY(-2px);
}

.news-share-wa { background: #25d366; }
.news-share-fb { background: #1877f2; }
.news-share-tw { background: #14171a; }
.news-share-copy {
  background: var(--border);
  color: var(--text);
}

.news-share-copy.copied {
  background: var(--primary);
  color: #fff;
}

/* ---------- Gallery Page (dedicated) ---------- */
.gallery-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

@media (min-width: 1100px) {
  .gallery-page-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-page-card {
  aspect-ratio: auto;
  display: block;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-page-card:hover {
  transform: translateY(-4px);
}

.gallery-page-card::after {
  content: none;
}

.gallery-page-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
}

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

.gallery-page-body {
  position: static;
  background: var(--surface);
  padding: 1rem 1.15rem 1.2rem;
}

.gallery-page-body > span {
  position: static;
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.gallery-page-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gallery-page-date svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- FAQ Page ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .faq-layout {
    grid-template-columns: 1.7fr 1fr;
  }
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.faq-item-num {
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item-question {
  flex: 1;
}

.faq-chevron {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item-answer {
  padding: 0 1.25rem 1.25rem 3.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 6rem;
}

.faq-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

.faq-sidebar-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.faq-sidebar-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.faq-sidebar-card > p,
.faq-sidebar-card > div > p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.faq-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.faq-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.faq-contact-list strong {
  display: block;
  font-size: 0.9rem;
}

.faq-contact-list span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.faq-quote-card {
  position: relative;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  overflow: hidden;
}

.faq-quote-card p {
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.faq-quote-leaf {
  position: absolute;
  bottom: -0.5rem;
  right: 0.5rem;
  font-size: 3rem;
  opacity: 0.5;
}

/* ---------- Generic Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(9, 12, 20, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  position: relative;
  width: min(32rem, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.modal-box .contact-form {
  padding: 0;
  border: 0;
  margin-top: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--border);
  color: var(--text);
}

.modal-close svg {
  width: 1.1rem;
  height: 1.1rem;
}
