/* ============================================================
   MUIN — Majelis Umat Islam Nusantara
   Static site stylesheet
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --green-950: #041c14;
  --green-900: #072b1f;
  --green-800: #0b3d2c;
  --green-700: #0f5c40;
  --green-600: #15805a;
  --green-500: #1d9b6d;

  --gold-700: #8a6a1f;
  --gold-600: #c8a24a;
  --gold-400: #e3c77e;
  --gold-200: #f2e6c2;

  --cream: #fbf8f1;
  --cream-2: #f4efe3;
  --surface: #ffffff;
  --ink: #10231b;
  --muted: #5d6f66;
  --muted-2: #63776d;

  --border: rgba(10, 53, 39, 0.12);
  --border-strong: rgba(10, 53, 39, 0.22);

  --danger: #b23b3b;
  --success: #16794f;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 4px 16px rgba(6, 35, 26, 0.06);
  --shadow: 0 18px 45px -18px rgba(6, 35, 26, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(4, 28, 20, 0.45);

  --font-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arabic: "Amiri", "Traditional Arabic", "Scheherazade New", serif;

  --container: 1180px;
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

a { color: var(--green-700); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--green-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

strong { font-weight: 700; color: var(--green-900); }

::selection { background: var(--gold-400); color: var(--green-950); }

:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--gold-600);
  color: var(--green-950);
  font-weight: 700;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 0; color: var(--green-950); }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.container--narrow { max-width: 860px; }

.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--cream { background: var(--cream-2); }
.section--white { background: var(--surface); }
.section--dark {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(29, 155, 109, 0.22), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-950));
  color: rgba(255, 255, 255, 0.78);
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head > div { max-width: 640px; }
.section-head p { color: var(--muted); margin: 8px 0 0; }
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center > div { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-600);
}
.section--dark .eyebrow { color: var(--gold-400); }
.eyebrow--light { color: var(--gold-400); }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
  line-height: 1.8;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--green-700), var(--green-600));
  box-shadow: 0 14px 30px -14px rgba(15, 92, 64, 0.7);
}
.btn--primary:hover { --btn-bg: linear-gradient(135deg, var(--green-600), var(--green-500)); }

.btn--gold {
  --btn-bg: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  --btn-fg: var(--green-950);
  box-shadow: 0 14px 30px -14px rgba(200, 162, 74, 0.8);
}
.btn--gold:hover { --btn-fg: var(--green-950); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.1); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--green-800);
  border-color: var(--border-strong);
}
.btn--outline:hover { --btn-bg: var(--green-800); --btn-fg: #fff; border-color: var(--green-800); }

.btn--sm { padding: 10px 20px; font-size: 0.82rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-700);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 20px 0;
  color: #fff;
  transition: padding 0.35s var(--ease), background 0.35s ease, box-shadow 0.35s ease;
}
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 28, 20, 0.55), transparent);
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.header.is-scrolled {
  padding: 10px 0;
  background: rgba(251, 248, 241, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px rgba(4, 28, 20, 0.4);
  color: var(--ink);
}
.header.is-scrolled::after { opacity: 0; }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  flex-shrink: 0;
}
.brand:hover { color: inherit; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--gold-400), var(--gold-600));
  color: var(--green-950);
  box-shadow: 0 8px 20px -10px rgba(200, 162, 74, 0.9);
  flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: inherit;
}
.brand-text small {
  margin-top: 3px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-400);
  transform: translateX(-50%);
}
.header.is-scrolled .nav-link { color: var(--muted); }
.header.is-scrolled .nav-link:hover { color: var(--green-800); background: rgba(10, 53, 39, 0.06); }
.header.is-scrolled .nav-link.is-active { color: var(--green-800); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header.is-scrolled .nav-toggle { border-color: var(--border-strong); background: transparent; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(130px, 16vh, 180px) 0 clamp(70px, 9vw, 100px);
  background:
    radial-gradient(800px 520px at 78% 8%, rgba(29, 155, 109, 0.28), transparent 62%),
    radial-gradient(700px 480px at 8% 92%, rgba(200, 162, 74, 0.16), transparent 60%),
    linear-gradient(155deg, var(--green-900) 0%, var(--green-950) 68%);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 260px;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -220px;
  width: 900px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 162, 74, 0.14), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-600), transparent);
}
.hero-copy {
  max-width: 560px;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: rgba(255, 255, 255, 0.74);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}
.hero-note svg { width: 17px; height: 17px; color: var(--gold-400); flex-shrink: 0; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-arch {
  position: relative;
  width: min(100%, 440px);
  border-radius: 240px 240px 28px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  background: var(--green-800);
}
.hero-arch img { width: 100%; height: auto; }
.hero-arch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.float-card {
  position: absolute;
  z-index: 2;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(251, 248, 241, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.float-card strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--green-800); }
.float-card span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.float-card--stat { left: -8px; bottom: 56px; }
.float-card--quote {
  right: -14px;
  top: 64px;
  max-width: 210px;
  font-size: 0.78rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--green-800);
  padding: 16px 18px;
}
.float-card--quote::before {
  content: "”";
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 0.6;
  color: var(--gold-600);
  margin-bottom: 8px;
}

/* ---------- 7. Stats ---------- */
.stats {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: 0; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1;
  color: var(--green-800);
}
.stat-value .suffix { color: var(--gold-600); font-size: 0.65em; }
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- 8. Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--cream);
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-700);
  white-space: nowrap;
}
.marquee-item::after { content: "✦"; color: var(--gold-600); font-size: 0.9rem; letter-spacing: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 9. About split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.media-badge {
  position: absolute;
  right: -10px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--green-800);
  color: #fff;
  box-shadow: var(--shadow);
}
.media-badge strong { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--gold-400); }
.media-badge span { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }

.check-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}
.check-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--green-600);
  margin-top: 2px;
}
.signature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 30px;
}
.signature-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-900); }
.signature-role { font-size: 0.78rem; color: var(--muted-2); }
.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.avatar--gold {
  background: linear-gradient(145deg, var(--gold-400), var(--gold-700));
  color: var(--green-950);
}
.float-card-source {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-700);
}

.social-row {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}
.social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  transition: all 0.25s ease;
}
.social-row a:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: var(--green-950);
  transform: translateY(-2px);
}
.social-row svg { width: 17px; height: 17px; }

/* ---------- 10. Cards / programs ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.article-main { min-width: 0; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.program-card {
  padding: 32px 28px;
  height: 100%;
}
.program-card .icon-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(29, 155, 109, 0.14), rgba(200, 162, 74, 0.14));
  color: var(--green-700);
  margin-bottom: 22px;
}
.program-card .icon-badge svg { width: 28px; height: 28px; }
.program-card h3 { margin-bottom: 10px; }
.program-card p { font-size: 0.92rem; color: var(--muted); }
.program-card .card-index {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(10, 53, 39, 0.06);
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 92, 64, 0.08);
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tag--gold { background: rgba(200, 162, 74, 0.16); color: #7a5c16; }
.tag--light { background: rgba(255, 255, 255, 0.12); color: var(--gold-200); }

/* ---------- 11. Art tiles ---------- */
.art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, var(--green-700), var(--green-950));
  isolation: isolate;
}
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 190px;
  opacity: 0.55;
  z-index: -1;
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
  z-index: -1;
}
.art-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.art-icon svg { width: 30px; height: 30px; }
.art-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(4, 28, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.art--emerald { background: linear-gradient(145deg, #15805a, #052018); }
.art--teal { background: linear-gradient(145deg, #146b6b, #04211f); }
.art--gold { background: linear-gradient(145deg, #c8a24a, #6a4c16); }
.art--plum { background: linear-gradient(145deg, #5c3a63, #211026); }
.art--navy { background: linear-gradient(145deg, #1f4a6d, #071825); }
.art--olive { background: linear-gradient(145deg, #5f6f31, #1b200c); }
.art--clay { background: linear-gradient(145deg, #a25a3d, #3a1a10); }

/* ---------- 12. News ---------- */
.news-card .art { aspect-ratio: 16 / 10; }
.news-card .art-icon svg { transition: transform 0.4s var(--ease); }
.news-card:hover .art-icon svg { transform: scale(1.1) rotate(-4deg); }
.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted-2);
}
.news-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); opacity: 0.6; }
.news-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--green-600); }
.news-card p {
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .card-foot { padding-top: 18px; }

/* ---------- 13. Agenda ---------- */
.agenda-list { display: grid; gap: 16px; }
.agenda-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}
.agenda-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.agenda-date {
  display: grid;
  place-items: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--cream-2);
  border: 1px solid var(--border);
  text-align: center;
  line-height: 1;
}
.agenda-date .day {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--green-800);
}
.agenda-date .month {
  margin-top: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.agenda-info h3 { font-size: 1.15rem; margin-bottom: 6px; }
.agenda-info h3 a { color: inherit; }
.agenda-info p { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.agenda-item .tag { margin-bottom: 8px; }
.agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.agenda-meta span { display: inline-flex; align-items: center; gap: 6px; }
.agenda-meta svg { width: 15px; height: 15px; color: var(--gold-700); }
.agenda-item .btn { flex-shrink: 0; }

/* ---------- 14. Quote / ayat ---------- */
.ayat {
  position: relative;
  padding: clamp(48px, 7vw, 80px) 0;
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(200, 162, 74, 0.16), transparent 60%),
    linear-gradient(150deg, var(--green-800), var(--green-950));
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-align: center;
}
.ayat::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 300px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.ayat-inner { position: relative; z-index: 1; max-width: 860px; margin-inline: auto; }
.ayat .arabic {
  margin: 0 0 26px;
  font-family: var(--font-arabic);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 2;
  color: var(--gold-200);
  direction: rtl;
}
.ayat blockquote {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.7;
  color: #fff;
}
.ayat cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
}

/* ---------- 15. Testimonials ---------- */
.quote-card { padding: 30px 28px; height: 100%; }
.quote-card .stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--gold-600); }
.quote-card .stars svg { width: 16px; height: 16px; }
.quote-card blockquote {
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}
.quote-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.quote-author .name { font-weight: 700; font-size: 0.9rem; color: var(--green-900); }
.quote-author .role { font-size: 0.76rem; color: var(--muted-2); }

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 68px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(29, 155, 109, 0.35), transparent 65%),
    linear-gradient(140deg, var(--green-800), var(--green-950));
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 220px;
  opacity: 0.4;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { max-width: 520px; color: rgba(255, 255, 255, 0.72); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- 17. Page hero ---------- */
.page-hero {
  position: relative;
  padding: clamp(140px, 16vh, 180px) 0 clamp(54px, 7vw, 76px);
  background:
    radial-gradient(700px 420px at 85% 0%, rgba(29, 155, 109, 0.26), transparent 62%),
    linear-gradient(155deg, var(--green-900), var(--green-950));
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 240px;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero--slim { padding-bottom: clamp(38px, 5vw, 52px); }
.page-hero--slim .breadcrumb { margin-bottom: 0; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255, 255, 255, 0.7); max-width: 620px; font-size: 1.02rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb [aria-current] { color: var(--gold-400); }

/* ---------- 18. Filters ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--green-800); }
.filter-btn.is-active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.search-box { position: relative; min-width: 240px; }
.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--ink);
}
.search-box input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(21, 128, 90, 0.12); }

.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty-state svg { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--muted-2); }

.result-count {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin: -18px 0 22px;
}
.load-more-wrap { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- 19. Article ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.article-body { font-size: 1.02rem; color: #26382f; }
.article-body > p:first-of-type::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.8;
  color: var(--green-700);
}
.article-body h2 { margin-top: 1.8em; font-size: 1.7rem; }
.article-body h3 { margin-top: 1.6em; }
.article-body ul, .article-body ol { color: #26382f; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--gold-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cream-2);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-800);
}
.article-body blockquote p { margin: 0; }
.article-figure { margin: 28px 0; }
.article-figure .art { border-radius: var(--radius); aspect-ratio: 16 / 8; }
.article-figure figcaption { margin-top: 10px; font-size: 0.78rem; color: var(--muted-2); text-align: center; }

.article-header { margin-bottom: 30px; }
.article-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}
.article-meta .author { display: flex; align-items: center; gap: 10px; }
.article-meta .avatar { width: 40px; height: 40px; font-size: 0.85rem; }
.article-meta .author-name { font-weight: 700; color: var(--green-900); display: block; line-height: 1.2; }
.article-meta .author-role { font-size: 0.72rem; color: var(--muted-2); }
.article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta > span > svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold-700); }

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  margin: 30px 0;
  border-block: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--green-700);
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-btn:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.icon-btn svg { width: 17px; height: 17px; }

.sidebar { display: grid; gap: 24px; position: sticky; top: 100px; }
.side-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.side-card h3 { font-size: 1.05rem; margin-bottom: 18px; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.side-list li { display: flex; gap: 14px; }
.side-list .thumb {
  display: block;
  width: 68px;
  height: 58px;
  border-radius: 9px;
  flex-shrink: 0;
  overflow: hidden;
}
.side-list .thumb .art { aspect-ratio: auto; height: 100%; }
.side-list .thumb .art-icon { width: 26px; height: 26px; border-radius: 8px; }
.side-list .thumb .art-icon svg { width: 14px; height: 14px; }
.side-list .thumb .art-tag { display: none; }
.side-list a { font-size: 0.85rem; font-weight: 600; line-height: 1.45; color: var(--green-900); display: block; }
.side-list a:hover { color: var(--green-600); }
.side-list time { display: block; margin-top: 4px; font-size: 0.7rem; color: var(--muted-2); }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transition: width 0.1s linear;
}

/* ---------- 20. Program detail ---------- */
.program-detail {
  display: grid;
  gap: 20px;
}
.program-block {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 26px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.program-block .icon-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(29, 155, 109, 0.14), rgba(200, 162, 74, 0.14));
  color: var(--green-700);
}
.program-block .icon-badge svg { width: 32px; height: 32px; }
.program-block h3 { font-size: 1.35rem; margin-bottom: 8px; }
.program-block > div > .tag { margin-bottom: 12px; }
.program-block p { font-size: 0.93rem; color: var(--muted); }
.program-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.fact {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--cream-2);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-800);
}

/* ---------- 20b. Visi & Misi ---------- */
.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}
.vision-card {
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.vision-card--dark {
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(29, 155, 109, 0.3), transparent 60%),
    linear-gradient(150deg, var(--green-800), var(--green-950));
  border-color: transparent;
  color: rgba(255, 255, 255, 0.75);
}
.vision-card--dark h2 { color: #fff; }
.vision-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.vision-card p { font-size: 0.95rem; color: var(--muted); }
.vision-card--dark p { color: rgba(255, 255, 255, 0.7); }

.mission-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.mission-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.93rem; color: var(--muted); }
.mission-list .num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(200, 162, 74, 0.18);
  color: var(--gold-700);
  font-size: 0.66rem;
  font-weight: 800;
}

/* ---------- 20c. Program layout ---------- */
.program-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.program-aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.program-nav {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.program-nav h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.program-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.program-nav a:last-child { border-bottom: 0; padding-bottom: 0; }
.program-nav a:hover { color: var(--green-700); }
.program-nav a span { color: var(--gold-700); font-size: 0.72rem; }
.aside-cta {
  padding: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(300px 200px at 90% 0%, rgba(29, 155, 109, 0.3), transparent 65%),
    linear-gradient(150deg, var(--green-800), var(--green-950));
  color: rgba(255, 255, 255, 0.7);
}
.aside-cta h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.aside-cta p { font-size: 0.84rem; margin-bottom: 16px; }
.aside-cta .btn { width: 100%; }

.program-block { scroll-margin-top: 110px; }

/* ---------- 21. Timeline ---------- */
.timeline { position: relative; display: grid; gap: 30px; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-600), rgba(200, 162, 74, 0.1));
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--gold-600);
  box-shadow: 0 0 0 4px var(--cream);
}
.timeline-year {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-700);
}
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.92rem; color: var(--muted); }

/* ---------- 22. Values / team ---------- */
.value-card { padding: 28px 26px; height: 100%; }
.value-card .value-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-700);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.value-card h3 { font-size: 1.2rem; }
.value-card p { font-size: 0.9rem; color: var(--muted); }

.team-card { padding: 26px; text-align: center; height: 100%; }
.team-card .avatar { width: 78px; height: 78px; margin: 0 auto 16px; font-size: 1.5rem; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.78rem; color: var(--gold-700); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.team-card p { margin-top: 12px; font-size: 0.84rem; color: var(--muted); }

/* ---------- 23. Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
}
.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 0;
  background: none;
  font-family: var(--font-body);
  text-align: left;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-card .art { height: 100%; aspect-ratio: auto; }
.gallery-card .art-icon { transition: transform 0.4s var(--ease); }
.gallery-card:hover .art-icon { transform: scale(1.12); }
.gallery-card.is-wide { grid-column: span 8; grid-row: span 2; }
.gallery-card.is-tall { grid-column: span 4; grid-row: span 2; }
.gallery-card.is-small { grid-column: span 4; grid-row: span 1; }
.gallery-card.is-half { grid-column: span 6; grid-row: span 2; }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(4, 28, 20, 0.82));
  color: #fff;
}
.gallery-caption strong { display: block; font-size: 0.94rem; font-weight: 600; color: #fff; }
.gallery-caption span { font-size: 0.72rem; opacity: 0.7; }
.gallery-card .art-tag { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(4, 20, 14, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox.is-open { display: grid; }
.lightbox-inner {
  width: min(880px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.lightbox-inner .art { aspect-ratio: 16 / 9; }
.lightbox-inner .art-icon { width: 80px; height: 80px; }
.lightbox-inner .art-icon svg { width: 40px; height: 40px; }
.lightbox-body { padding: 24px 28px; }
.lightbox-body h3 { margin-bottom: 6px; }
.lightbox-body p { font-size: 0.86rem; color: var(--muted); margin: 0; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- 24. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 56px);
  align-items: start;
}
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-card .icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 92, 64, 0.09);
  color: var(--green-700);
  flex-shrink: 0;
}
.contact-card .icon-badge svg { width: 21px; height: 21px; }
.contact-card h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 0.92rem; color: var(--green-900); margin: 0; line-height: 1.55; }

.form-card {
  padding: clamp(26px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.7rem; }
.form-card > p { color: var(--muted); font-size: 0.92rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 700; color: var(--green-900); }
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(21, 128, 90, 0.12);
  background: #fff;
}
.field .error-msg { font-size: 0.72rem; color: var(--danger); display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }
.checkbox-field {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.checkbox-field input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--green-700); flex-shrink: 0; }
.checkbox-field.has-error { color: var(--danger); }
.checkbox-field.has-error input { outline: 2px solid var(--danger); outline-offset: 2px; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(22, 121, 79, 0.3);
  border-radius: 10px;
  background: rgba(22, 121, 79, 0.07);
  color: var(--success);
  font-size: 0.86rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

.map-card {
  position: relative;
  margin-top: 24px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 92, 64, 0.06), rgba(15, 92, 64, 0.06)),
    repeating-linear-gradient(0deg, transparent, transparent 34px, rgba(10, 53, 39, 0.08) 34px, rgba(10, 53, 39, 0.08) 36px),
    repeating-linear-gradient(90deg, transparent, transparent 34px, rgba(10, 53, 39, 0.08) 34px, rgba(10, 53, 39, 0.08) 36px),
    var(--cream-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  text-align: center;
}
.map-card .pin { color: var(--green-700); }
.map-card .pin svg { width: 34px; height: 34px; margin: 0 auto 8px; }
.map-card p { font-size: 0.82rem; color: var(--muted); margin: 0 0 10px; }

/* ---------- 25. Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--green-900);
  text-align: left;
  cursor: pointer;
}
.acc-trigger .plus {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(15, 92, 64, 0.09);
}
.acc-trigger .plus::before,
.acc-trigger .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--green-700);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.acc-trigger .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-trigger[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.acc-panel > div { overflow: hidden; }
.acc-panel p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

/* ---------- 26. Footer ---------- */
.footer {
  position: relative;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.6);
  padding-top: clamp(56px, 7vw, 80px);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 280px;
  opacity: 0.18;
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer .brand-text strong { color: #fff; }
.footer-about { font-size: 0.88rem; line-height: 1.8; max-width: 320px; color: rgba(255, 255, 255, 0.55); }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a { font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); }
.footer-links a:hover { color: var(--gold-400); }
.footer-contact { display: grid; gap: 12px; font-size: 0.85rem; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold-400); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255, 255, 255, 0.6); }
.footer-contact a:hover { color: var(--gold-400); }

.newsletter { margin-top: 6px; }
.newsletter p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.84rem;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter-form input:focus { outline: none; border-color: var(--gold-600); }
.newsletter-form button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold-600);
  color: var(--green-950);
  cursor: pointer;
  transition: background 0.2s ease;
}
.newsletter-form button:hover { background: var(--gold-400); }
.newsletter-form button svg { width: 18px; height: 18px; }
.newsletter-note { display: none; margin-top: 10px; font-size: 0.76rem; color: var(--gold-400); }
.newsletter-note.is-visible { display: block; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- 27. Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--green-800);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-800); color: #fff; }
.to-top svg { width: 19px; height: 19px; }

/* ---------- 28. Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 29. Utilities ---------- */
.divider {
  width: 56px;
  height: 2px;
  margin: 22px 0;
  background: linear-gradient(90deg, var(--gold-600), transparent);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.note {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  border-left: 3px solid var(--gold-600);
  font-size: 0.86rem;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 30. Responsive ---------- */
@media (max-width: 1080px) {
  .nav-link { padding: 9px 11px; font-size: 0.84rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > .footer-col--news { grid-column: 1 / -1; max-width: 460px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 620px; }
  .hero-visual { order: -1; }
  .hero-arch { width: min(100%, 400px); }
  .float-card--stat { left: max(0px, 4vw); }
  .float-card--quote { right: max(0px, 4vw); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { order: -1; }
  .vision-grid { grid-template-columns: 1fr; }
  .program-layout { grid-template-columns: 1fr; }
  .program-aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .program-nav { order: 1; }
  .aside-cta { order: 2; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > .footer-col--news { grid-column: auto; }
  .gallery-card.is-wide { grid-column: span 12; }
  .gallery-card.is-tall { grid-column: span 6; }
  .gallery-card.is-small { grid-column: span 6; }
  .gallery-card.is-half { grid-column: span 6; }
}

@media (max-width: 820px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: calc(var(--header-h) + 90px) clamp(24px, 8vw, 48px) 40px;
    background:
      radial-gradient(500px 300px at 90% 0%, rgba(29, 155, 109, 0.25), transparent 60%),
      linear-gradient(160deg, var(--green-900), var(--green-950));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-link {
    padding: 15px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
  }
  .nav-link:hover,
  .nav-link.is-active { color: var(--gold-400); background: none; }
  .nav-link.is-active::after { display: none; }
  .header.is-scrolled .nav-link { color: rgba(255, 255, 255, 0.8); }
  .header.is-scrolled .nav-link:hover,
  .header.is-scrolled .nav-link.is-active { color: var(--gold-400); background: none; }
  .nav-cta { margin: 26px 0 0; width: 100%; padding: 15px 24px; font-size: 0.95rem; }

  .header.is-scrolled .nav-toggle { border-color: rgba(255, 255, 255, 0.25); }
  body.nav-open .header { color: #fff; background: transparent; box-shadow: none; }
  body.nav-open .header::after { opacity: 0; }
  body.nav-open .brand-text strong { color: #fff; }
  body.nav-open .nav-toggle { color: #fff; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .agenda-item { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 18px; }
  .agenda-date .day { font-size: 1.55rem; }
  .agenda-item > .btn { grid-column: 1 / -1; justify-self: start; }
  .timeline { padding-left: 28px; }
  .program-block { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .program-block .icon-badge { width: 56px; height: 56px; border-radius: 16px; }
  .program-block .icon-badge svg { width: 26px; height: 26px; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 120px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .float-card--quote { top: 30px; max-width: 180px; padding: 12px 14px; font-size: 0.72rem; }
  .float-card--stat { bottom: 30px; padding: 12px 15px; }
  .float-card strong { font-size: 1.1rem; }
  .sidebar { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .program-aside { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 160px; gap: 12px; }
  .gallery-card.is-large,
  .gallery-card.is-tall,
  .gallery-card.is-wide,
  .gallery-card.is-small,
  .gallery-card.is-half { grid-column: span 12; grid-row: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .cta-band { padding: 36px 24px; }
  .cta-actions .btn { width: 100%; }
  .to-top { right: 16px; bottom: 16px; }
  .float-card--quote { display: none; }
  .brand-text small { display: none; }
  .agenda-item { transform: none; }
  .agenda-item:hover { transform: none; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 12px; }
  .stat-label { font-size: 0.66rem; letter-spacing: 0.06em; }
  .hero-arch { border-radius: 160px 160px 24px 24px; }
}

/* ---------- 31. 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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
