/* ==========================================================================
   PONDOK PESANTREN SALAF MODERN THOHIR YASIN — STYLESHEET
   Lendang Nangka – Masbagik, Kab. Lombok Timur, NTB
   Clean, Accessible (WCAG AA), Fast, and Fully Responsive Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Greens - Verified WCAG 2.1 AA Contrast Compliant */
  --green: #077843;
  --green-dark: #065533;
  --green-deep: #043822;
  --green-light: #eaf5ee;
  --green-surface: #f3f8f5;
  --green-border: #c8dfd1;

  /* Brand Yellows & Golds */
  --yellow: #f2de00;
  --yellow-hover: #d9c700;
  --yellow-soft: #fffbd1;
  --yellow-border: #f0e66c;
  --yellow-text: #595200;

  /* Neutrals & Typography Colors */
  --ink: #13241b;
  --ink-secondary: #273b31;
  --muted: #4c6155;        /* Contrast > 5.5:1 on white (WCAG AA Pass) */
  --muted-light: #61776b;
  --line: #d8e4dc;
  --line-light: #eaf1ec;
  --white: #ffffff;
  --surface: #f7faf8;
  --surface-alt: #eff5f1;

  /* Functional Status Colors */
  --success: #077843;
  --success-bg: #ecfdf3;
  --success-border: #abefc6;
  --error: #b42318;
  --error-bg: #fef3f2;
  --error-border: #fecdca;
  --info: #026aa2;
  --info-bg: #f0f9ff;
  --info-border: #b9e6fe;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(4, 56, 34, 0.06);
  --shadow-md: 0 8px 24px rgba(4, 56, 34, 0.08);
  --shadow-lg: 0 20px 48px rgba(4, 56, 34, 0.12);
  --shadow-card: 0 16px 40px rgba(4, 56, 34, 0.09);

  /* Radius & Geometry */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 1rem;
}

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

/* Layout Container */
.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 18px;
  background-color: var(--green-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: translateY(-150%);
  transition: transform var(--transition-fast);
  outline: 2px solid var(--yellow);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Global Focus Visible Indicator (Accessibility) */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Top Bar Notice
   -------------------------------------------------------------------------- */
.topbar {
  background-color: var(--green-deep);
  color: #e3efe7;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 16px;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.topbar-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--yellow);
  border-radius: 50%;
}

.topbar-note {
  color: #c0ded0;
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(4, 56, 34, 0.03);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

/* Brand Identity */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}

.brand img {
  width: 58px;
  height: 56px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand:hover img {
  transform: scale(1.04);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.28;
}

.brand-copy strong {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
}

.brand-copy b {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
  color: var(--green-dark);
  font-weight: 800;
}

.brand-copy small {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.main-nav > a:not(.nav-cta) {
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.main-nav > a:not(.nav-cta):hover,
.main-nav > a:not(.nav-cta).active {
  color: var(--green);
}

.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--green);
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a:not(.nav-cta).active::after {
  width: 100%;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-drop-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  color: var(--ink-secondary);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav-drop-button:hover,
.nav-dropdown.open .nav-drop-button {
  color: var(--green);
}

.nav-drop-button .caret {
  display: inline-block;
  font-size: 0.6875rem;
  transition: transform var(--transition-fast);
}

.nav-dropdown.open .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  min-width: 210px;
  background-color: var(--white);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.nav-dropdown.open .dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeInDown 0.2s ease forwards;
}

/* Jembatan transparan agar hover tidak terputus saat kursor berpindah */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Tampil saat kursor diarahkan (hover) atau fokus keyboard di layar desktop */
@media (min-width: 861px) {
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fadeInDown 0.2s ease forwards;
  }

  .nav-dropdown:hover .nav-drop-button,
  .nav-dropdown:focus-within .nav-drop-button {
    color: var(--green);
  }

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: var(--green-light);
  color: var(--green-dark);
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--green);
  color: var(--white) !important;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.84375rem;
  box-shadow: 0 4px 14px rgba(7, 120, 67, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(7, 120, 67, 0.35);
}

.nav-cta:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4.5px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.menu-toggle:hover {
  background-color: var(--green-surface);
  border-color: var(--green);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.2px;
  background-color: var(--green-dark);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Buttons & Badges
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 46px;
}

.button-primary {
  background-color: var(--green);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(7, 120, 67, 0.22);
}

.button-primary:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7, 120, 67, 0.32);
}

.button-primary:active {
  transform: translateY(0);
}

.button-outline {
  border-color: var(--line);
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--green-dark);
}

.button-outline:hover {
  border-color: var(--green);
  background-color: var(--white);
  color: var(--green);
  transform: translateY(-2px);
}

.button-outline:active {
  transform: translateY(0);
}

.button-secondary {
  background-color: var(--green-light);
  color: var(--green-dark);
  border-color: var(--green-border);
}

.button-secondary:hover {
  background-color: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.button-whatsapp {
  background-color: #25d366;
  color: #074b1e;
  font-weight: 800;
  border-color: #1ebd5b;
}

.button-whatsapp:hover {
  background-color: #20ba59;
  color: #043615;
  transform: translateY(-2px);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Eyebrow Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background-color: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(242, 222, 0, 0.28);
}

.light-eyebrow {
  color: var(--yellow);
}

.light-eyebrow .eyebrow-dot {
  background-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Text Link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 800;
  margin-top: 12px;
  transition: color var(--transition-fast);
}

.text-link span {
  font-size: 1.125rem;
  transition: transform var(--transition-fast);
}

.text-link:hover {
  color: var(--green-dark);
}

.text-link:hover span {
  transform: translateX(5px);
}

/* Section Rule */
.heading-rule {
  width: 64px;
  height: 4px;
  background-color: var(--yellow);
  border-radius: var(--radius-full);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--surface);
  /* Foto background lokal pilihan pengelola dengan overlay gradasi agar teks tetap sangat jelas terbaca */
  background-image: 
    linear-gradient(120deg, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.82) 55%, rgba(251, 251, 230, 0.85) 100%),
    url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 76px 0 0;
  border-bottom: 1px solid var(--line);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(#a3cbb1 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: block;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.625rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin: 20px 0 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-copy > p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 28px;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--yellow-soft);
  color: var(--green-dark);
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Hero Art (Emblem Display) */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.logo-card {
  position: relative;
  z-index: 2;
  width: min(330px, 86%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transform: rotate(1.5deg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.logo-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 28px 70px rgba(4, 56, 34, 0.16);
}

.logo-card img {
  display: block;
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  margin: 14px auto;
}

.logo-label {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--muted-light);
  text-transform: uppercase;
}

.logo-card-caption {
  border-top: 1px solid var(--line-light);
  padding-top: 14px;
  color: var(--green);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.logo-card-caption strong {
  font-size: 0.8125rem;
  color: var(--green-dark);
}

.art-orbit {
  position: absolute;
  border: 1.5px solid #cfe2d4;
  border-radius: 50%;
  width: 410px;
  height: 410px;
  pointer-events: none;
}

.orbit-two {
  width: 330px;
  height: 330px;
  border-color: #eedd6b;
  border-style: dashed;
}

.floating-leaf {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(4, 56, 34, 0.12);
  user-select: none;
}

.leaf-one {
  top: 48px;
  right: 6%;
  width: 48px;
  height: 48px;
  font-size: 1.375rem;
  background-color: var(--yellow);
  color: var(--green-deep);
  transform: rotate(12deg);
}

.leaf-two {
  bottom: 48px;
  left: 6%;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  background-color: var(--green);
  color: var(--white);
  transform: rotate(-12deg);
}

/* Hero Bottom Ribbon */
.hero-bottom {
  background-color: var(--green-deep);
  color: #e5f3e9;
  font-size: 0.8125rem;
}

.hero-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.hero-bottom-inner span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-bottom-inner .dot-accent {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--yellow);
  border-radius: 50%;
}

.hero-bottom-inner b {
  color: var(--yellow);
  padding: 0 6px;
}

/* --------------------------------------------------------------------------
   7. Quick Links
   -------------------------------------------------------------------------- */
.quick-links {
  position: relative;
  z-index: 3;
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 0;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-right: 1px solid var(--line);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.quick-item:first-child {
  padding-left: 0;
}

.quick-item:last-child {
  border-right: none;
}

.quick-item:hover {
  background-color: var(--green-surface);
}

.quick-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background-color: var(--green-light);
  color: var(--green);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.quick-item:nth-child(2) .quick-icon {
  background-color: var(--yellow-soft);
  color: var(--yellow-text);
}

.quick-item:hover .quick-icon {
  transform: scale(1.08);
}

.quick-item b,
.quick-item small {
  display: block;
}

.quick-item b {
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 700;
}

.quick-item small {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 2px;
}

.quick-arrow {
  margin-left: auto;
  color: var(--green);
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.quick-item:hover .quick-arrow {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   8. Global Section Styles
   -------------------------------------------------------------------------- */
.section {
  padding: 88px 0;
}

.section h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  margin: 14px 0 18px;
}

.section h2 em {
  font-style: normal;
  color: var(--green);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 38px;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.section-title-row > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.center-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.center-heading h2 {
  margin-bottom: 14px;
}

.center-heading > p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Section Profil */
.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 84px;
  align-items: start;
}

.intro-copy p {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.85;
}

.intro-copy .muted {
  font-size: 0.875rem;
  color: var(--muted);
  background-color: var(--surface);
  border-left: 3.5px solid var(--yellow);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --------------------------------------------------------------------------
   9. Values / Visi Misi Section
   -------------------------------------------------------------------------- */
.values-section {
  background-color: var(--surface);
}

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

.value-card {
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.value-card.featured {
  background-color: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: var(--shadow-card);
}

.value-number {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted-light);
}

.featured .value-number {
  color: #bce3cb;
}

.value-symbol {
  display: block;
  font-size: 2rem;
  color: var(--green);
  margin: 16px 0 10px;
}

.featured .value-symbol {
  color: var(--yellow);
}

.value-card h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  margin: 8px 0;
}

.featured h3 {
  color: var(--white);
}

.value-card p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.featured p {
  color: #e5f4ea;
}

/* --------------------------------------------------------------------------
   10. Education / Programs Section
   -------------------------------------------------------------------------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0 24px 26px;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: var(--green-border);
  box-shadow: var(--shadow-card);
}

.program-top {
  height: 120px;
  margin: 0 -24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
}

.program-top > span:first-child {
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0.85;
}

.program-icon {
  font-size: 1.875rem;
}

.program-top.green {
  background-color: var(--green-light);
  color: var(--green-dark);
}

.program-top.yellow {
  background-color: var(--yellow-soft);
  color: var(--yellow-text);
}

.program-top.dark {
  background-color: #e3ede6;
  color: var(--green-deep);
}

.program-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 10px;
}

.program-card p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
  flex-grow: 1;
}

.program-card .text-link {
  margin-top: 20px;
}

.editor-note {
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background-color: var(--yellow-soft);
  color: var(--yellow-text);
  font-size: 0.8125rem;
  border: 1px solid var(--yellow-border);
  line-height: 1.6;
}

/* Detailed Education Tracks */
.edu-track-block {
  margin-bottom: 48px;
  background-color: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}

.edu-track-block:last-of-type {
  margin-bottom: 0;
}

.edu-track-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.edu-track-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--green-light);
  color: var(--green);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.edu-track-icon.gold {
  background-color: var(--yellow-soft);
  color: var(--yellow-text);
}

.edu-track-icon.dark {
  background-color: #e4eee7;
  color: var(--green-deep);
}

.edu-track-title h3 {
  font-size: 1.4375rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.edu-track-title p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  max-width: 900px;
}

.edu-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.edu-card-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.edu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.edu-card-top h4 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--green-dark);
}

.edu-badge-a {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--green-deep);
  background-color: #d1ebd7;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.edu-badge-formal {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--yellow-text);
  background-color: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.edu-spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.edu-spec-item {
  display: flex;
  flex-direction: column;
}

.edu-spec-item span:first-child {
  font-size: 0.6875rem;
  color: var(--muted-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.edu-spec-item strong {
  font-size: 0.8125rem;
  color: var(--ink);
}

.edu-subjects-box {
  margin-top: 24px;
  padding: 20px 22px;
  background-color: #f7faf8;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.edu-subjects-box h4 {
  font-size: 0.9375rem;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.edu-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background-color: var(--white);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.edu-feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.edu-feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.84375rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

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

.edu-feature-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--green);
  font-weight: 900;
  font-size: 1.125rem;
}

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

  .edu-track-block {
    padding: 26px 20px;
  }
}

@media (max-width: 540px) {
  .edu-spec-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .edu-track-header {
    flex-direction: column;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   11. Facilities Section
   -------------------------------------------------------------------------- */
.facilities-section {
  background-color: var(--green-deep);
  color: var(--white);
  overflow: hidden;
}

.facilities-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.facilities-copy h2 {
  color: var(--white);
}

.facilities-copy h2 em {
  color: var(--yellow);
}

.facilities-copy p {
  color: #cfe3d6;
  font-size: 0.9375rem;
  line-height: 1.85;
  margin-bottom: 28px;
}

.facility-placeholder {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px dashed #6da485;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #096a3e, #043822);
  overflow: hidden;
  text-align: center;
  padding: 30px;
}

.facility-placeholder::before,
.facility-placeholder::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.facility-placeholder::after {
  width: 220px;
  height: 220px;
}

.placeholder-mark {
  font-size: 3.25rem;
  color: var(--yellow);
  z-index: 1;
}

.facility-placeholder strong {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white);
  z-index: 1;
}

.facility-placeholder > span {
  font-size: 0.8125rem;
  color: #c0ded0;
  z-index: 1;
}

.placeholder-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 12px;
  background-color: rgba(4, 56, 34, 0.85);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: #d1e8db;
}

/* --------------------------------------------------------------------------
   12. Activities & Gallery Section
   -------------------------------------------------------------------------- */
.activities-section {
  background-color: var(--surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px;
}

.gallery-tile {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f2e6, #c2e2cb);
  color: var(--green-deep);
  border: 1px solid var(--line);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-tile::before,
.gallery-tile::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(7, 120, 67, 0.16);
  border-radius: 50%;
  top: -45px;
  right: -25px;
  pointer-events: none;
}

.gallery-tile::after {
  width: 130px;
  height: 130px;
  top: -15px;
  right: 5px;
}

.gallery-large {
  min-height: 280px;
  background: linear-gradient(135deg, #d3eed9, #99cda9);
}

.gallery-green {
  background: linear-gradient(135deg, #077843, #043822);
  color: var(--white);
  border-color: var(--green-dark);
}

.gallery-green::before,
.gallery-green::after {
  border-color: rgba(255, 255, 255, 0.18);
}

.gallery-yellow {
  background: linear-gradient(135deg, #fffbd1, #f5e85c);
  color: var(--yellow-text);
}

.gallery-symbol {
  position: absolute;
  top: 22px;
  left: 24px;
  font-size: 2.25rem;
  opacity: 0.85;
}

.gallery-tile b,
.gallery-tile small {
  position: relative;
  z-index: 1;
}

.gallery-tile b {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.gallery-tile small {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   13. News & Announcements Section
   -------------------------------------------------------------------------- */
.draft-chip {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--yellow-text);
  background-color: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  letter-spacing: 0.04em;
}

.news-empty {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
}

.news-empty-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--green-light);
  color: var(--green);
  font-size: 1.75rem;
}

.news-empty h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.news-empty p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

/* Dynamic News Grid & Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.news-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.news-card-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--green-light);
  color: var(--green-dark);
}

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

.news-card-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-summary {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 16px;
}

.news-card-action {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--green);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-card-action:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* Dynamic Gallery Styles */
.gallery-tile.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.gallery-tile.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(3, 46, 27, 0.90) 100%);
  border-radius: inherit;
  z-index: 1;
}

.gallery-tile.has-image b,
.gallery-tile.has-image small,
.gallery-tile.has-image .gallery-category-pill {
  position: relative;
  z-index: 2;
  color: #fff !important;
}

.gallery-category-pill {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: rgba(6, 85, 51, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}


/* --------------------------------------------------------------------------
   14. Registration Form Section
   -------------------------------------------------------------------------- */
.registration-section {
  background-color: #f1f8f3;
}

.registration-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.registration-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.registration-copy > p {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: var(--ink-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
  font-size: 1rem;
}

.registration-form {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
}

.form-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.form-heading > span {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 800;
}

.form-heading h3 {
  font-size: 1.375rem;
  margin: 6px 0 4px;
}

.form-heading p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.required-mark {
  color: var(--error);
  font-weight: 700;
  margin-left: 2px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: #fafcfb;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--green);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(7, 120, 67, 0.15);
  outline: none;
}

.form-row input.is-invalid,
.form-row select.is-invalid,
.form-row textarea.is-invalid {
  border-color: var(--error);
  background-color: #fff9f9;
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  margin: 20px 0 22px;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  accent-color: var(--green);
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-submit-wa {
  width: 100%;
  background-color: #25d366;
  color: #06441b;
  font-weight: 800;
}

.form-submit-wa:hover {
  background-color: #20ba59;
}

.form-submit-email {
  width: 100%;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 14px;
}

.form-disclaimer code {
  background-color: var(--green-light);
  color: var(--green-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.6;
  display: none;
}

.form-message.is-visible {
  display: block;
  animation: fadeInDown 0.25s ease forwards;
}

.form-message.is-success {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--green-deep);
}

.form-message.is-error {
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}

.form-message.is-info {
  background-color: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info);
}

/* --------------------------------------------------------------------------
   15. Contact Section & Map
   -------------------------------------------------------------------------- */
.contact-section {
  background-color: var(--white);
}

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

.contact-grid > div:first-child > p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  max-width: 480px;
}

.contact-details {
  margin-top: 28px;
  display: grid;
  gap: 20px;
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--green-light);
  color: var(--green);
  font-size: 1.25rem;
}

.contact-row b {
  font-size: 0.875rem;
  color: var(--ink);
}

.contact-row p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 3px 0 0;
  line-height: 1.6;
}

.contact-row small {
  font-size: 0.75rem;
  color: var(--muted-light);
}

.contact-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-link:hover {
  color: var(--green-dark);
}

/* Map Panel & Embedded Google Maps */
.map-panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--white);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-card);
  min-height: 440px;
  position: relative;
}

.map-frame-wrapper {
  position: relative;
  width: 100%;
  flex-grow: 1;
  min-height: 350px;
  background-color: #eaf2eb;
}

.map-frame-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background-color: var(--white);
  border-top: 1px solid var(--line);
}

.map-footer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-footer-pin {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.map-footer-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 700;
}

.map-footer-info small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.map-direct-btn {
  padding: 10px 18px;
  font-size: 0.8125rem;
  min-height: 40px;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 540px) {
  .map-panel {
    min-height: 380px;
  }

  .map-frame-wrapper {
    min-height: 290px;
  }

  .map-footer-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .map-direct-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--green-deep);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 60px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background-color: var(--white);
  border-radius: var(--radius-sm);
  padding: 4px;
}

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

.footer-brand b {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: #b7e3c5;
}

.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--white);
}

.footer-brand small {
  font-size: 0.75rem;
  color: #c2ded0;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: #d1e8db;
}

.footer-links > b {
  color: var(--yellow);
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.footer-links a {
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-muted {
  color: #a4ceb5;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b5d7c3;
  font-size: 0.75rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   17. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--yellow);
  color: var(--green-deep);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast), background-color var(--transition-fast);
  z-index: 900;
  display: grid;
  place-items: center;
}

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

.back-to-top:hover {
  background-color: var(--yellow-hover);
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   18. Responsive Breakpoints & Mobile Optimization
   -------------------------------------------------------------------------- */

/* Tablet & Smaller Desktops */
@media (max-width: 1050px) {
  .main-nav {
    gap: 14px;
    font-size: 0.8125rem;
  }

  .brand-copy b {
    font-size: 0.9375rem;
  }

  .hero-grid {
    gap: 32px;
  }

  .two-col,
  .registration-grid {
    gap: 48px;
  }

  .facilities-grid,
  .contact-grid {
    gap: 40px;
  }

  .quick-item {
    padding-inline: 12px;
  }

  .quick-item b {
    font-size: 0.75rem;
  }
}

/* Tablet & Mobile Nav Switch (<= 860px) */
@media (max-width: 860px) {
  .container {
    width: min(100% - 36px, 680px);
  }

  .header-inner {
    min-height: 74px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-copy b {
    font-size: 0.875rem;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1.5px solid var(--line);
    padding: 18px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: 0 16px 36px rgba(4, 56, 34, 0.12);
  }

  .main-nav.open {
    display: flex;
    animation: fadeInDown 0.25s ease forwards;
  }

  .main-nav > a,
  .nav-drop-button {
    padding: 12px 14px;
    text-align: left;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .main-nav > a:hover,
  .nav-drop-button:hover {
    background-color: var(--green-surface);
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
    margin-top: 8px;
    min-height: 46px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 8px 18px;
    background-color: transparent;
  }

  .dropdown-menu a {
    padding: 10px 14px;
    font-size: 0.875rem;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-art {
    min-height: 360px;
  }

  .logo-card {
    width: 280px;
  }

  .logo-card img {
    max-height: 220px;
  }

  .art-orbit {
    width: 340px;
    height: 340px;
  }

  .orbit-two {
    width: 280px;
    height: 280px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
    padding: 8px 0;
  }

  .quick-item {
    padding: 14px;
    border-right: none;
  }

  .quick-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .quick-item:nth-child(1),
  .quick-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .quick-item:first-child {
    padding-left: 14px;
  }

  .two-col,
  .facilities-grid,
  .registration-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section {
    padding: 68px 0;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-title-row > p {
    max-width: 100%;
  }

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

  .value-card:last-child,
  .program-card:last-child {
    grid-column: 1 / -1;
  }

  .facility-placeholder {
    min-height: 280px;
  }

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

  .gallery-large {
    grid-column: 1 / -1;
    min-height: 240px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .map-panel {
    min-height: 400px;
  }
}

/* Smartphone & Small Devices (<= 540px) */
@media (max-width: 540px) {
  .container {
    width: calc(100% - 32px);
  }

  .topbar-inner {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .topbar-note {
    font-size: 0.6875rem;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 0.625rem;
  }

  .brand-copy b {
    font-size: 0.8125rem;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: 2.125rem;
  }

  .hero-copy > p {
    font-size: 0.9375rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 310px;
  }

  .logo-card {
    width: 250px;
    padding: 20px 18px;
  }

  .logo-card img {
    max-height: 190px;
  }

  .art-orbit {
    width: 290px;
    height: 290px;
  }

  .orbit-two {
    width: 240px;
    height: 240px;
  }

  .leaf-one {
    right: 2%;
    top: 24px;
  }

  .leaf-two {
    left: 2%;
    bottom: 24px;
  }

  .hero-bottom-inner {
    font-size: 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

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

  .quick-item,
  .quick-item:first-child {
    padding: 12px 6px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

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

  .section {
    padding: 56px 0;
  }

  .section h2 {
    font-size: 1.75rem;
  }

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

  .value-card:last-child,
  .program-card:last-child {
    grid-column: auto;
  }

  .value-card {
    min-height: auto;
  }

  .program-top {
    height: 96px;
  }

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

  .gallery-large {
    grid-column: auto;
    min-height: 220px;
  }

  .gallery-tile {
    min-height: 190px;
  }

  .news-empty {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
    gap: 14px;
  }

  .news-empty-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .registration-form {
    padding: 24px 18px;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
    /* 16px to prevent iOS auto-zoom on focus */
    font-size: 1rem;
  }

  .two-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-links {
    gap: 8px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* Extra Small Devices (< 360px) */
@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .logo-card {
    width: 220px;
  }
}

/* Public News Dialog Modal */
dialog#publicNewsDialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 640px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  background: var(--white);
  color: var(--ink);
  margin: auto;
}

dialog#publicNewsDialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.public-news-modal-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.public-news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.public-news-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.public-news-close-btn:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   19. Accessibility: Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   20. Print Stylesheet
   -------------------------------------------------------------------------- */
@media print {
  .topbar,
  .site-header,
  .hero-art,
  .quick-links,
  .facilities-section .facility-placeholder,
  .registration-section .registration-form,
  .back-to-top,
  .menu-toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
    line-height: 1.5;
  }

  .container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero {
    padding: 0;
    background: none;
    border: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}
