/* ==========================================================================
   Anong Community Website — Design System
   Palette: deep Anong green (shared identity) + Moghamo gold (heritage
   accent), with ADA taking a clay/terracotta accent and AYCUDA taking a
   teal accent so the two micro-sites read as distinguishable but related
   (FR-4.2.3). Signature element: a woven "kente-adjacent" dotted band used
   as a section divider, nodding to Moghamo textile patterns without
   depicting any specific real regalia.
   ========================================================================== */

/* ==========================================================================
   Anong Community Website — Design System
   Redesigned palette: deep navy blue (matches the ADA/AYCUDA seal logos'
   ink colour) + warm gold accent, on crisp white/light-grey backgrounds —
   inspired by the bold, motion-rich NGO aesthetic of
   globalcommunityrescue.org. ADA keeps a clay/terracotta accent and AYCUDA
   a teal accent so the two micro-sites read as distinguishable but related
   (FR-4.2.3). Signature element: a woven "kente-adjacent" dotted band used
   as a section divider, nodding to Moghamo textile patterns without
   depicting any specific real regalia.
   ========================================================================== */

:root {
  --ink: #1a2233;
  --paper: #f5f7fb;
  --paper-dim: #eaeef5;
  --line: #dbe2ec;
  --brand: #17356b;
  --brand-dark: #0d2145;
  --gold: #e0a83c;
  --white: #ffffff;
  --danger: #b3382a;
  --success: #21794f;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --accent: var(--gold);
  --radius: 12px;
}

body.assoc-ada { --accent: #c0602f; }        /* ADA: clay / terracotta */
body.assoc-aycuda { --accent: #1f8a72; }     /* AYCUDA: youth teal */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--brand-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

p { margin: 0 0 1em; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ---------- Woven divider (signature element) ---------- */
.woven-divider {
  height: 10px;
  background-image: repeating-linear-gradient(
    45deg, var(--accent) 0 6px, transparent 6px 12px
  );
  opacity: 0.85;
}

/* ---------- Top navigation ---------- */
.site-header {
  background: var(--brand-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand .accent-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.brand-logo {
  height: 38px; width: 38px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  padding: 2px;
}
nav.main-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.85;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active {
  opacity: 1;
  border-bottom-color: var(--accent);
}
.btn-donate {
  background: var(--accent);
  color: var(--white);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-block;
}
.btn-donate:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(224,168,60,0.4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(23,53,107,0.25); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(224,168,60,0.35); }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--white); transform: translateY(-1px); }
.btn-danger { background: transparent; border-color: #b3261e; color: #b3261e; }
.btn-danger:hover { background: #b3261e; color: var(--white); transform: translateY(-1px); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* ---------- Landing page ---------- */
.hero {
  padding: 5.5rem 0 3.5rem;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(23,53,107,0.06), transparent 60%);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}
.hero h1 { letter-spacing: -0.01em; }
.hero p.lede {
  max-width: 640px;
  margin: 1rem auto 0;
  font-size: 1.12rem;
  color: #4a5266;
}

.assoc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}
.assoc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.assoc-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 18px 40px rgba(23,53,107,0.16); border-color: var(--accent); }
.assoc-card .badge {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--white);
}
.assoc-card.ada .badge { background: #c0602f; }
.assoc-card.aycuda .badge { background: #1f8a72; }
.assoc-card h3 { margin-bottom: 0.2rem; }
.assoc-card .cta { font-weight: 700; color: var(--brand-dark); transition: transform 0.15s ease; }
.assoc-card:hover .cta { transform: translateX(4px); }
.assoc-card-logo {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.assoc-card-logo img { width: 82%; height: 82%; object-fit: contain; }
.assoc-card:hover .assoc-card-logo { transform: scale(1.08) rotate(-3deg); }

/* ---------- Association micro-site pages ---------- */
.page-hero {
  background: var(--paper-dim);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.section { padding: 3rem 0; }
.section-title { display: flex; align-items: baseline; gap: 0.75rem; }
.section-title .accent-bar { width: 34px; height: 4px; background: var(--accent); display: inline-block; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(23,53,107,0.14); border-color: var(--accent); }
.card img, .gallery-item img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 0.75rem;
}
.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--paper-dim);
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Search ---------- */
.search-box { position: relative; max-width: 480px; margin: 0 auto; }
.search-box input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-size: 1rem;
  font-family: var(--font-body);
}
.search-box input:focus { border-color: var(--accent); outline: none; }
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
}
.search-results a {
  display: block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-dim);
}
.search-results a:hover { background: var(--paper-dim); }
.search-results .muted { color: #8a8267; font-size: 0.85rem; }

/* ---------- Forms ---------- */
form.stack p, form.stack .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
textarea { min-height: 120px; }
.helptext { font-size: 0.8rem; color: #8a8267; margin-top: 0.25rem; }
.errorlist { color: var(--danger); font-size: 0.85rem; list-style: none; padding: 0; margin: 0.2rem 0; }

/* ---------- Dashboards ---------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(23,53,107,0.14); }
.stat-card .value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.stat-card .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}
table.data-table th, table.data-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--paper-dim);
  text-align: left;
}
table.data-table th {
  background: var(--brand-dark);
  color: var(--white);
  position: sticky; top: 0;
}
table.data-table td.amount, table.data-table th.amount { font-family: var(--font-mono); text-align: right; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.progress-bar {
  background: var(--paper-dim);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.progress-bar > span { display: block; height: 100%; background: var(--accent); }

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 1.5rem;
}

/* ---------- Messages ---------- */
.messages { list-style: none; padding: 0; margin: 1rem 0; }
.messages li {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}
.messages .success { background: #e3f0e6; color: var(--success); }
.messages .error { background: #f6e2df; color: var(--danger); }
.messages .info, .messages .debug { background: var(--paper-dim); color: var(--brand-dark); }
.messages .warning { background: #fbead0; color: #8a5a12; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.site-footer a { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  nav.main-nav { display: none; }
  .site-header .container { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Header layout: brand — nav — [Donate, then hamburger toggle]
   ========================================================================== */
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.logout-form { display: inline; margin: 0; padding: 0; }
.link-button {
  background: none;
  border: none;
  padding: 0.4rem 0.1rem;
  color: var(--white);
  opacity: 0.85;
  font-size: 0.92rem;
  font-family: var(--font-body);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.link-button:hover { opacity: 1; border-bottom-color: var(--accent); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--brand-dark);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  }
  nav.main-nav.nav-open { display: flex; }
  nav.main-nav a, nav.main-nav .link-button { padding: 0.6rem 0.2rem; }
  .site-header { position: sticky; }
  .header-row { position: relative; }
}

/* ==========================================================================
   Footer: three columns + copyright bar
   ========================================================================== */
.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}
@media (max-width: 720px) {
  .footer-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.footer-logo-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.footer-logo-img {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a { opacity: 0.85; text-decoration: none; font-size: 0.9rem; transition: opacity 0.15s ease, padding-left 0.15s ease; }
.footer-links a:hover { opacity: 1; text-decoration: underline; padding-left: 3px; }
.footer-hr { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 0.6rem 0 1rem; }
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ==========================================================================
   Picture placeholders (hero / showcase areas)
   ========================================================================== */
.image-placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: #8a8267;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 220px;
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}
.image-placeholder svg { opacity: 0.5; }
.hero-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 780px) {
  .hero-showcase { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Content page layout: showcase mosaic + text/sidebar columns + gallery
   ========================================================================== */
.showcase-mosaic {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.75rem;
  height: 360px;
  margin-bottom: 2rem;
}
.showcase-mosaic .showcase-main {
  grid-row: 1 / 4;
  height: 100%;
}
.showcase-mosaic .showcase-main img,
.showcase-mosaic .showcase-side img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
}
.showcase-mosaic .showcase-main .image-placeholder,
.showcase-mosaic .showcase-side .image-placeholder {
  height: 100%; min-height: 0;
}
@media (max-width: 720px) {
  .showcase-mosaic { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .showcase-mosaic .showcase-main { grid-row: auto; height: 220px; }
  .showcase-mosaic .showcase-side { height: 120px; }
}

.content-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 820px) {
  .content-layout { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Body text of content pages (About, Activity/Project detail) sits on its
   own white card, with comfortable padding at every screen size. */

.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4rem 2.5rem;
  line-height: 1.7;
  opacity: 1;
}
.content-card :first-child { margin-top: 0; }
.content-card :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .content-card { padding: 1.25rem; }
}

.content-main { min-width: 0; }
.content-sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
@media (max-width: 640px) {
  .content-sidebar { padding: 1.25rem; }
}
.content-sidebar h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a8267;
  margin-bottom: 0.75rem;
}
.content-sidebar dl { margin: 0 0 1.25rem; }
.content-sidebar dl:last-child { margin-bottom: 0; }
.content-sidebar dt { font-weight: 700; font-size: 0.85rem; color: var(--brand-dark); }
.content-sidebar dd { margin: 0 0 0.75rem; font-size: 0.9rem; color: #4a4a3d; }

.content-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.content-gallery-grid img {
  width: 100%; height: 120px; object-fit: cover; border-radius: 8px;
}
.content-gallery-grid .image-placeholder { height: 120px; min-height: 0; padding: 0.5rem; font-size: 0.72rem; }
.content-gallery-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.content-gallery-grid-wide .gallery-item img { height: 180px; margin-bottom: 0.5rem; }



/* ==========================================================================
   Carousel / hero slider (Webmaster-managed, Home + About showcase layers)
   ========================================================================== */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  min-height: 220px;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.carousel-slide .image-placeholder {
  height: 100%; min-height: 0; border: none; border-radius: 0;
}
.carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(20,51,42,0.82), rgba(20,51,42,0));
  color: var(--white);
  padding: 2rem 1.25rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(20,51,42,0.55);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.carousel-arrow:hover { background: rgba(20,51,42,0.8); }
.carousel-arrow.prev { left: 0.75rem; }
.carousel-arrow.next { right: 0.75rem; }
.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--white); width: 20px; border-radius: 4px; }
@media (max-width: 720px) {
  .carousel { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Autoplay page video (Home: after search bar; About: after showcase)
   ========================================================================== */
.page-video-wrap { margin: 1.5rem 0; }
.page-video {
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius);
  display: block;
  background: #000;
}
.page-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.page-video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ==========================================================================
   Colored stat cards (Home page statistics, dashboards)
   ========================================================================== */
.stat-cards-colored .stat-card { border-top: 4px solid var(--line); }
.stat-cards-colored .stat-card-a { border-top-color: #a6512c; }
.stat-cards-colored .stat-card-b { border-top-color: #2e7d6b; }
.stat-cards-colored .stat-card-c { border-top-color: #c89b3c; }
.stat-cards-colored .stat-card-d { border-top-color: #3b6ea5; }
.stat-cards-colored .stat-card-a .value { color: #a6512c; }
.stat-cards-colored .stat-card-b .value { color: #2e7d6b; }
.stat-cards-colored .stat-card-c .value { color: #c89b3c; }
.stat-cards-colored .stat-card-d .value { color: #3b6ea5; }

/* ==========================================================================
   Webmaster Dashboard tiles
   ========================================================================== */
.webmaster-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.webmaster-tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.webmaster-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(31,78,61,0.12); }
.webmaster-tile h3 { margin-bottom: 0.4rem; color: var(--brand-dark); }
.webmaster-tile p { font-size: 0.9rem; color: #5b5747; margin-bottom: 0.75rem; }
.webmaster-tile .cta { font-weight: 700; color: var(--accent); font-size: 0.9rem; }

/* ==========================================================================
   About page: five info cards (About Info / History / Mission / Vision / Values)
   ========================================================================== */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.about-card h3 { color: var(--brand-dark); margin-bottom: 0.6rem; }

/* ==========================================================================
   Responsive polish pass (Item 3 — all device sizes)
   ========================================================================== */
@media (max-width: 480px) {
  .hero, .page-hero, .section { padding-left: 0; padding-right: 0; }
  .stat-cards, .webmaster-tiles, .about-cards-grid, .card-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
  .assoc-cards { grid-template-columns: 1fr; }
  table.data-table { font-size: 0.8rem; }
}
@media (max-width: 640px) {
  .content-layout { gap: 1.25rem; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .field, .filter-bar select, .filter-bar input { width: 100%; }
}

/* ==========================================================================
   Scroll-reveal motion (Item 3 — applied automatically via motion.js)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Landing page "Discover Anong" feature cards
   ========================================================================== */
.feature-card-grid { gap: 1.5rem; }
.feature-card {
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  padding: 2rem 1.5rem;
}
.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-4deg); }
.feature-card h3 { color: var(--brand-dark); margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.9rem; color: #5b6478; margin: 0; }

/* ==========================================================================
   Woven divider: update to the new accent-driven gradient band
   ========================================================================== */
.woven-divider {
  background-image: repeating-linear-gradient(
    45deg, var(--accent) 0 6px, transparent 6px 12px
  );
}

/* ==========================================================================
   Continuous leaders marquee (Item 2 — Home + About pages)
   A true, seamless, non-stop scroll: the leader list is rendered twice
   back-to-back and the track animates from 0 to -50%, so it loops forever
   with no pause and no jump.
   ========================================================================== */
.leaders-marquee-wrap {
  overflow: hidden;
  margin: 2rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.leaders-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: leaders-marquee 32s linear infinite;
}
.leaders-marquee-wrap:hover .leaders-marquee-track { animation-play-state: paused; }
@keyframes leaders-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.leader-slide {
  flex: 0 0 auto;
  width: 160px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
}
.leader-slide img {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.6rem;
  display: block;
  border: 3px solid var(--paper-dim);
}
.leader-slide-placeholder {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  background: var(--brand);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.leader-slide-name { font-weight: 700; font-size: 0.9rem; color: var(--brand-dark); }
.leader-slide-position { font-size: 0.78rem; color: #6b7280; margin-top: 0.15rem; }
@media (prefers-reduced-motion: reduce) {
  .leaders-marquee-track { animation: none; }
}

/* ---------- Leadership page grid (Item: leader photo display) ---------- */
/* 6 columns on desktop, 4 on tablets, 2 on mobile phones. Uses higher
   specificity than the generic .card-grid rules above so it wins
   regardless of source order. */
.card-grid.leaders-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) {
  .card-grid.leaders-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .card-grid.leaders-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

/* Leader photos: scale with the card instead of a fixed pixel height, so
   they stay crisp and fully proportioned (not squashed/over-cropped) on
   narrow columns like the 2-column mobile layout above. */
.leader-card { padding: 0.9rem; }
.leader-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  image-rendering: auto;
}
.leader-card .image-placeholder {
  height: auto !important;
  aspect-ratio: 3 / 4;
}
.leader-card h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.leader-card .helptext { font-size: 0.8rem; }
@media (max-width: 640px) {
  .leader-card h3 { font-size: 0.85rem; }
  .leader-card .helptext { font-size: 0.72rem; }
}
