/* =========================================================
   IMR-CHA — Website Stylesheet
   BizWeb KH Starter Website Package
   ========================================================= */

:root {
  --green: #0F5B3F;
  --green-dark: #0A4530;
  --green-light: #E7F0EA;
  --teal: #2F8F8A;
  --teal-light: #E4F2F1;
  --gold: #D4AF37;
  --gold-dark: #B8942C;
  --cream: #F6F4EE;
  --gray-bg: #F4F5F3;
  --text: #223028;
  --text-soft: #55625B;
  --white: #FFFFFF;
  --border: #E3E4DE;

  --shadow-sm: 0 2px 10px rgba(15, 40, 30, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 40, 30, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 40, 30, 0.14);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-km: 'Noto Sans Khmer', 'Khmer OS', var(--font-en);

  --header-h: 78px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="km"] body { font-family: var(--font-km); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }
svg { width: 100%; height: 100%; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; margin-top: 8px; }

/* Hero on dark/light variant outline */
.hero .btn-outline { border-color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo { height: 48px; width: auto; object-fit: contain; }

.main-nav ul {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--green); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.lang-btn {
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-soft);
}
.lang-btn.active { color: var(--green); background: var(--green-light); }
.lang-sep { color: var(--border); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 28px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 42px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.hero-text .eyebrow { margin-bottom: 8px; }
.eyebrow-light { color: var(--gold); }
.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.18;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 1100 / 760;
  object-fit: cover;
  object-position: center 30%;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--gray-bg); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { display: block; }
.section-sub { color: var(--text-soft); font-size: 1.05rem; margin-top: 12px; }

h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--green-dark); line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 900 / 674;
  object-fit: cover;
  object-position: center;
}
.about-text p { color: var(--text-soft); margin-bottom: 18px; }
.about-text h2 { margin-bottom: 18px; }

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 46px; height: 46px;
  color: var(--green);
  margin-bottom: 12px;
}
.value-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.value-card p { font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  gap: 26px;
}
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.focus-card, .involve-card, .impact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.focus-card:hover, .involve-card:hover, .impact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.focus-icon {
  width: 52px; height: 52px;
  color: var(--white);
  background: var(--green);
  border-radius: 14px;
  padding: 11px;
  margin-bottom: 18px;
}
.focus-card h3, .involve-card h3 { margin-bottom: 10px; }
.focus-card p, .involve-card p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 6px; }

.impact-card { text-align: center; }
.impact-icon {
  width: 50px; height: 50px;
  color: var(--teal);
  margin: 0 auto 16px;
}
.impact-note {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: #FBF3DD;
  padding: 5px 12px;
  border-radius: 50px;
}

/* ---------- Featured Program ---------- */
.featured { background: var(--green); color: var(--white); }
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.featured-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 1100 / 733;
  object-fit: cover;
  object-position: center;
}
.featured-text h2 { color: var(--white); margin-bottom: 18px; }
.featured-text p { color: rgba(255,255,255,0.88); margin-bottom: 28px; font-size: 1.05rem; }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 74px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 0 8px;
}
.step-number {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-sm);
}
.step-icon {
  width: 56px; height: 56px;
  color: var(--green);
  background: var(--green-light);
  border-radius: 50%;
  padding: 13px;
  margin: 0 auto 16px;
}
.timeline-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.timeline-step p { font-size: 0.9rem; color: var(--text-soft); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  display: block;
  width: 100%;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(10,30,20,0.75) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

/* ---------- Transparency ---------- */
.trans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}
.trans-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.trans-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.trans-item p { color: var(--text-soft); font-size: 0.93rem; margin-top: 4px; }
.trans-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 50px;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--green-dark);
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-success {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.form-demo-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-soft);
  opacity: 0.85;
}

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.info-block h3 { font-size: 0.95rem; margin-bottom: 4px; }
.info-block p { font-size: 0.92rem; color: var(--text-soft); }

.social-icons { display: flex; gap: 10px; margin-top: 6px; }
.social-ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-ic:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }

.map-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-placeholder p {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 14px;
}
.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer-name { font-weight: 700; color: var(--white); margin-bottom: 10px; font-size: 0.95rem; }
.footer-mission { font-size: 0.88rem; line-height: 1.6; opacity: 0.85; }
.footer-links h3, .footer-contact h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; opacity: 0.85; transition: opacity 0.2s ease; }
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 8px; opacity: 0.85; }
.footer-contact .social-icons { margin-top: 12px; }
.footer-contact .social-ic { background: rgba(255,255,255,0.1); color: var(--white); }
.footer-contact .social-ic:hover { background: var(--gold); color: var(--green-dark); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 24px;
  max-width: 1180px;
  margin: 0 auto;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 30, 20, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 900;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: pop 0.25s ease;
}
.modal-box h3 { margin-bottom: 16px; font-size: 1.3rem; }
.modal-box p { color: var(--text-soft); margin-bottom: 12px; font-size: 0.95rem; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gray-bg);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
}
.modal-close:hover { background: var(--green); color: var(--white); }

@keyframes pop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 20, 15, 0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 950;
  padding: 30px;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img {
  max-width: min(720px, 90vw);
  max-height: 65vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-overlay p { color: var(--white); margin-top: 16px; font-size: 0.95rem; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  color: var(--white); font-size: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.12); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--white); font-size: 2.4rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.12); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

/* ---------- Scroll animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-in"] { transform: translateY(0) scale(0.97); }
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .trans-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { max-height: 520px; }
  .main-nav ul { flex-direction: column; padding: 10px 24px 20px; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: flex; }
  .card-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 34px 0 26px; }
  .hero-inner { gap: 28px; }
  .card-grid.four { grid-template-columns: 1fr; }
  .value-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand-logo { height: 40px; }
}

/* =========================================================
   Content update additions (IMR-CHA official profile)
   Uses the existing colour, radius and shadow tokens.
   ========================================================= */

/* Shared check list */
.check-list { display: flex; flex-direction: column; gap: 9px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* About: facts + links */
.value-card h3 { line-height: 1.3; }
.contact-info a, .footer-contact a { transition: color 0.2s ease; }
.contact-info a:hover { color: var(--green); text-decoration: underline; }
.footer-contact a:hover { color: var(--gold); }

/* Vision & Mission */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.vm-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.vm-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.vm-card p { color: var(--text-soft); font-size: 1rem; line-height: 1.7; }

/* Core values (six cards) */
.values-grid { margin-top: 0; }
.values-grid .value-card { padding: 26px 22px; }

/* Program areas (five cards: 3 + 2) */
.program-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}
.program-card {
  grid-column: span 2;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.program-card:nth-child(4), .program-card:nth-child(5) { grid-column: span 3; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.program-card h3 { margin-bottom: 14px; }
.program-num {
  position: absolute;
  top: 22px; right: 22px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.program-lead {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 10px;
}

/* Who we serve (4 + 3, centred) */
.serve-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.serve-card {
  flex: 0 1 calc(25% - 17px);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.serve-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.serve-card h3 { font-size: 1.02rem; line-height: 1.35; }
.serve-card p { margin-top: 6px; font-size: 0.9rem; color: var(--text-soft); }
.serve-note {
  text-align: center;
  max-width: 720px;
  margin: 30px auto 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-style: italic;
}

/* How we work: accountability callout */
.how-note {
  max-width: 900px;
  margin: 44px auto 0;
  align-items: flex-start;
}
.how-note p { color: var(--text-soft); font-size: 0.95rem; margin-top: 4px; }

/* Governance */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}
.gov-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gov-portrait {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 4 / 5;
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gov-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gov-details { width: 100%; padding-top: 22px; }
.gov-card .gov-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.45;
  margin: 0 0 8px;
}
.gov-role {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gov-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.gov-people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 720px;
  margin: 26px auto 0;
}
.gov-stat {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-sm);
}
.gov-stat-num { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--gold); }
.gov-stat-label { font-size: 0.92rem; opacity: 0.92; }

/* Partner with us */
.partner-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.partner-text h2 { margin-bottom: 16px; }
.partner-text p { color: var(--text-soft); margin-bottom: 14px; }
.partner-text .partner-note { font-size: 0.92rem; font-style: italic; margin-bottom: 24px; }
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.partner-card h3 { margin-bottom: 18px; }

/* Misc links */
.map-link { color: var(--green); font-weight: 600; text-decoration: underline; }
.modal-link { color: var(--green); font-weight: 600; text-decoration: underline; }
.footer-reg { font-size: 0.82rem; margin-top: 12px; opacity: 0.75; }
.footer-mission { margin-bottom: 0; }

@media (max-width: 1200px) {
  .main-nav ul { gap: 22px; }
}

@media (max-width: 1024px) {
  .vm-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card, .program-card:nth-child(4), .program-card:nth-child(5) { grid-column: span 1; }
  .program-card:nth-child(5) { grid-column: span 2; }
  .serve-card { flex-basis: calc(50% - 11px); }
  .gov-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card:nth-child(5) { grid-column: span 1; }
  .serve-card { flex-basis: 100%; }
  .gov-grid, .gov-people { grid-template-columns: 1fr; }
  .vm-card, .partner-card { padding: 26px 22px; }
}

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

/* Map block: let the placeholder graphic size itself so the caption/link below it stays visible */
.map-placeholder svg { height: auto; }


/* Supplied photography: keep existing layouts and card styling. */
.hero-media img { object-position: center 42%; }
.about-media img { height: auto; object-position: center 35%; }
.featured-media img { height: auto; object-position: center; }
.program-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}
.gov-portrait img { object-fit: contain; object-position: center; }
.gallery-item img { object-position: center; }

/* Centered inquiry form; existing footer and other sections are unchanged. */
#contact .contact-grid {
  display: block;
  max-width: 760px;
  margin-inline: auto;
}
#contact .required-mark { color: var(--green); }
#contact .form-row label { display: inline-block; }
#contact button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
@media (max-width: 640px) {
  #contact .contact-form { padding: 26px 22px; }
  #contact button[type="submit"] { width: 100%; }
}

/* Footer social links and compact provider-rendered counter. */
.footer-contact .social-ic:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.footer-inline-counter { margin-top: 24px; }
.footer-contact .footer-inline-counter h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: .95rem;
  line-height: 1.35;
}
.footer-inline-counter > a { display: inline-block; max-width: 100%; vertical-align: top; }
.footer-inline-counter img { display: block; max-width: 100%; height: auto; }
.footer-inline-counter > a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

/* Submission feedback has no space or visible content until a request occurs. */
.inquiry-status[hidden] { display: none; }
.inquiry-status { margin-top: 16px; font-size: 0.9rem; line-height: 1.6; color: var(--green-dark); }
.inquiry-status[data-state="error"] { color: #9b2c2c; }

/* The detailed bilingual notice stays available from the compact footer link. */
.visitor-privacy {
  width: min(720px, calc(100% - 32px));
  max-height: min(78vh, 760px);
  padding: 0;
  border: 1px solid #d7e2dc;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.visitor-privacy::backdrop { background: rgba(3, 35, 24, .68); }
.visitor-privacy-inner { padding: 26px 28px 30px; overflow: auto; }
.visitor-privacy-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.visitor-privacy h2 { margin: 0; color: var(--green-dark); font-size: 1.45rem; }
.visitor-privacy p { margin: 14px 0 0; font-size: .92rem; line-height: 1.7; }
.visitor-privacy a, #privacyLink { text-decoration: underline; text-underline-offset: 3px; }
.privacy-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #d7e2dc;
  border-radius: 50%;
  background: #f4f8f6;
  color: var(--green-dark);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
.privacy-close:hover { background: #e8f1ec; }
.counter-compact-button:focus-visible,
.counter-text-button:focus-visible,
.privacy-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] h3 { line-height: 1.65; }
html[lang="km"] .eyebrow { letter-spacing: 0; }
html[lang="km"] .btn { line-height: 1.7; }
@media (min-width: 861px) { html[lang="km"] .main-nav ul { gap: 14px; } html[lang="km"] .main-nav a { font-size: .86rem; } }
@media (max-width: 640px) {
  .visitor-privacy-inner { padding: 22px 18px 24px; }
  .visitor-privacy h2 { font-size: 1.2rem; }
}
