/*
Theme Name: JMAANY
Theme URI: https://jmaany.org
Author: Jose Marti Alumni Association New York, Inc.
Author URI: https://jmaany.org
Description: Custom WordPress theme for JMAANY — the Jose Marti Alumni Association New York. Royal blue + gold identity, professional-nonprofit design, works with the JMAANY plugin for donations, membership, applications, and the members portal.
Version: 1.1.5
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jmaany
Tags: nonprofit, blue, gold, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* base.css - reset + primitives */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: var(--font-body);
  color: var(--color-fg);
  background: var(--color-bg);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }
.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;
}

/* JMAANY - Design tokens + components
   Royal blue + gold identity, modernized layout.
*/

:root {
  /* ---------- Brand palette ---------- */
  --color-blue-900: #0b1f4d;
  --color-blue-800: #12297a;   /* primary royal blue */
  --color-blue-700: #1e3a9a;
  --color-blue-500: #2b52c4;
  --color-blue-100: #eaf0fb;
  --color-blue-50:  #f4f7fd;

  --color-gold-700: #b8860b;
  --color-gold-600: #d4a017;
  --color-gold-500: #f2c14e;   /* primary gold */
  --color-gold-100: #fdf3d3;

  --color-cream:    #fbf7ec;
  --color-fg:       #14213d;
  --color-fg-muted: #4b5675;
  --color-bg:       #ffffff;
  --color-bg-soft:  #f7f9fc;
  --color-border:   #e3e8f1;
  --color-accent:   var(--color-gold-600);

  /* ---------- Type ---------- */
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --text-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.85rem);
  --text-sm:   clamp(0.875rem, 0.85rem + 0.15vw, 0.95rem);
  --text-base: clamp(1rem, 0.97rem + 0.2vw, 1.075rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl:   clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl:  clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --text-3xl:  clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem);

  /* ---------- Spacing ---------- */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px; --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --space-32: 128px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(11,31,77,0.06), 0 1px 3px rgba(11,31,77,0.08);
  --shadow-md: 0 4px 6px rgba(11,31,77,0.06), 0 10px 24px rgba(11,31,77,0.08);
  --shadow-lg: 0 12px 32px rgba(11,31,77,0.12), 0 24px 60px rgba(11,31,77,0.10);

  --container: 1200px;
  --container-narrow: 800px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base type ---------- */
body { font-size: var(--text-base); color: var(--color-fg); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--color-blue-900); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; }
p { color: var(--color-fg); line-height: 1.65; }
.lead { font-size: var(--text-lg); color: var(--color-fg-muted); line-height: 1.55; }
.muted { color: var(--color-fg-muted); }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-gold-700); margin-bottom: var(--space-4);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: clamp(var(--space-16), 8vw, var(--space-24)) 0; }
.section-tight { padding: clamp(var(--space-12), 6vw, var(--space-20)) 0; }
.section-soft { background: var(--color-bg-soft); }
.section-blue { background: linear-gradient(135deg, var(--color-blue-900) 0%, var(--color-blue-800) 100%); color: white; }
.section-blue h1, .section-blue h2, .section-blue h3, .section-blue h4 { color: white; }
.section-blue p, .section-blue .lead { color: rgba(255,255,255,0.85); }
.section-blue .eyebrow { color: var(--color-gold-500); }

/* ---------- Header / Nav ---------- */
.top-bar {
  background: var(--color-blue-900); color: white;
  font-size: var(--text-xs); padding: var(--space-2) 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.top-bar a { color: rgba(255,255,255,0.85); transition: color 0.2s var(--ease); }
.top-bar a:hover { color: var(--color-gold-500); }
.top-bar .socials { display: flex; gap: var(--space-3); }
.top-bar .socials a { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) 0; gap: var(--space-6);
}
.brand { display: flex; align-items: center; gap: var(--space-3); }
.hero-banner-card {
  background: white;
  padding: 10px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(11,31,77,0.35), 0 0 0 1px rgba(242,193,78,0.35);
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  transform: rotate(-1deg);
  transition: transform 0.4s var(--ease);
}
.hero-banner-card:hover { transform: rotate(0deg); }
.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
}
@media (max-width: 900px) {
  .hero-banner-card { max-width: 420px; transform: none; }
}

.brand-logo-img {
  width: 52px; height: 52px;
  object-fit: contain; flex-shrink: 0;
  background: transparent;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue-800), var(--color-blue-900));
  color: var(--color-gold-500);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .brand-name {
  font-family: var(--font-display); font-weight: 700;
  color: var(--color-blue-900); font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand-text .brand-tag { font-size: 0.72rem; color: var(--color-fg-muted); letter-spacing: 0.05em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: var(--space-2); }
.main-nav ul { display: flex; list-style: none; gap: var(--space-1); padding: 0; }
.main-nav a {
  display: inline-block; padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm); font-weight: 500; color: var(--color-fg);
  border-radius: var(--radius-sm); transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--color-blue-800); background: var(--color-blue-50); }
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > a::after {
  content: "▾"; margin-left: 4px; font-size: 0.65em; opacity: 0.6;
}
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: var(--space-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.2s var(--ease); list-style: none;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { display: block; padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }

.nav-cta {
  background: var(--color-gold-500); color: var(--color-blue-900) !important;
  padding: var(--space-2) var(--space-4) !important; border-radius: var(--radius-md);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--color-gold-600) !important; }

.nav-toggle { display: none; padding: var(--space-2); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-blue-900); margin: 5px 0; transition: transform 0.25s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-md);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--color-gold-500); color: var(--color-blue-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-gold-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-blue-800); color: white; }
.btn-secondary:hover { background: var(--color-blue-700); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-blue-800); border-color: var(--color-blue-800); }
.btn-outline:hover { background: var(--color-blue-800); color: white; }
.btn-ghost-light { background: transparent; color: white; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: white; color: var(--color-blue-900); border-color: white; }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-blue-900) 0%, var(--color-blue-800) 55%, var(--color-blue-700) 100%);
  color: white; overflow: hidden;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-16), 8vw, var(--space-24));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(242, 193, 78, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(43, 82, 196, 0.35) 0%, transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(120deg, transparent 0%, transparent 45%, rgba(242,193,78,0.05) 50%, transparent 55%, transparent 100%),
    linear-gradient(60deg, transparent 0%, transparent 48%, rgba(242,193,78,0.04) 50%, transparent 52%, transparent 100%);
  background-size: 60px 60px, 90px 90px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-16); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border-radius: 999px;
  background: rgba(242,193,78,0.15); border: 1px solid rgba(242,193,78,0.35);
  color: var(--color-gold-500); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.hero-badge::before { content: "★"; }
.hero h1 { color: white; font-size: var(--text-3xl); margin-bottom: var(--space-6); }
.hero h1 .accent { color: var(--color-gold-500); font-style: italic; }
.hero .lead { color: rgba(255,255,255,0.88); font-size: var(--text-lg); margin-bottom: var(--space-8); max-width: 40em; }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-visual {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-5);
}
.hero-school-card {
  margin: 0;
  max-width: 520px; width: 100%;
  background: white; padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(11,31,77,0.35), 0 0 0 1px rgba(242,193,78,0.35);
  transform: rotate(1deg);
  transition: transform 0.4s var(--ease);
}
.hero-school-card:hover { transform: rotate(0deg); }
.hero-school-img {
  width: 100%; height: auto; display: block;
  border-radius: calc(var(--radius-lg) - 4px);
}
/* ---------- Vacant seat styling ---------- */
.team-card-vacant {
  border: 2px dashed rgba(11,31,77,0.25);
  background: rgba(244,247,253,0.5);
}
.team-avatar-vacant {
  background: transparent !important;
  color: rgba(11,31,77,0.35) !important;
  border: 2px dashed rgba(11,31,77,0.3);
  font-weight: 300;
  font-size: 1.5rem;
}

/* ---------- President portraits ---------- */
.team-avatar-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--color-gold-500);
  box-shadow: 0 4px 14px rgba(11,31,77,0.15);
  background: var(--color-blue-50);
  display: block;
  margin: 0 auto var(--space-4);
}
.president-photo-inline {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--color-gold-500);
  float: left;
  margin: 4px 16px 8px 0;
  background: var(--color-blue-50);
}

.hero-school-caption {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-sm); color: var(--color-blue-900);
  text-align: center; padding: 10px 12px 6px; margin: 0;
}
@media (max-width: 900px) {
  .hero-school-card { max-width: 420px; transform: none; }
}
.hero-stats-strip {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
  margin-top: var(--space-16); padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .num {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700;
  color: var(--color-gold-500); line-height: 1;
}
.hero-stat .label { font-size: var(--text-xs); color: rgba(255,255,255,0.75); letter-spacing: 0.08em; text-transform: uppercase; margin-top: var(--space-2); }

/* ---------- Cards / Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.card {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-gold-500); }
.card-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-blue-800), var(--color-blue-700));
  color: var(--color-gold-500);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5); font-size: 1.5rem;
}
.card h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-3); color: var(--color-blue-900); }
.card p { color: var(--color-fg-muted); font-size: var(--text-sm); line-height: 1.6; margin-bottom: var(--space-4); }
.card .card-link {
  color: var(--color-blue-800); font-weight: 600; font-size: var(--text-sm);
  display: inline-flex; align-items: center; gap: var(--space-1);
}
.card .card-link:hover { color: var(--color-gold-700); }
.card .card-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

/* Program cards - larger with accent bar */
.program-card {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8); position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.program-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-blue-800), var(--color-gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-card:hover::before { transform: scaleX(1); }

/* Section header */
.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--space-16); }
.section-header.left { text-align: left; margin-left: 0; }
.section-header h2 { margin-bottom: var(--space-4); }
.section-header .lead { margin: 0 auto; }

/* ---------- Impact / stats ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.impact-item { text-align: center; padding: var(--space-6); }
.impact-item .big-num {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; color: var(--color-gold-500); line-height: 1;
  margin-bottom: var(--space-3);
}
.impact-item .label { font-size: var(--text-sm); color: rgba(255,255,255,0.85); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Quote / testimonial ---------- */
.pull-quote {
  max-width: 900px; margin: 0 auto; text-align: center;
  padding: var(--space-8) var(--space-6);
}
.pull-quote blockquote {
  font-family: var(--font-display); font-size: var(--text-2xl); font-style: italic;
  color: var(--color-blue-900); line-height: 1.35; margin-bottom: var(--space-6);
  position: relative;
}
.pull-quote blockquote::before {
  content: "\201C"; font-family: var(--font-display); font-size: 5rem;
  color: var(--color-gold-500); position: absolute; top: -1.4rem; left: -1rem;
  opacity: 0.35;
}
.pull-quote cite {
  display: block; font-family: var(--font-body); font-style: normal;
  font-size: var(--text-sm); color: var(--color-fg-muted); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- News / articles ---------- */
.article-card {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card .article-image {
  aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--color-blue-100), var(--color-gold-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-blue-800); font-family: var(--font-display); font-size: var(--text-lg);
}
.article-card .article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-card .article-body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.article-card .article-meta { font-size: var(--text-xs); color: var(--color-fg-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-3); }
.article-card h3 { font-size: var(--text-lg); font-family: var(--font-display); font-weight: 700; margin-bottom: var(--space-3); }
.article-card p { color: var(--color-fg-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); flex: 1; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-blue-900), var(--color-blue-800));
  color: white; border-radius: var(--radius-xl); padding: var(--space-16);
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,193,78,0.2) 0%, transparent 70%);
}
.cta-banner h2 { color: white; margin-bottom: var(--space-4); }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: var(--text-lg); margin: 0 auto var(--space-8); max-width: 640px; }
.cta-banner .btn-group { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-blue-900); color: rgba(255,255,255,0.75);
  padding: var(--space-20) 0 var(--space-8);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-12); }
.site-footer h4 { color: white; font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer a { font-size: var(--text-sm); transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--color-gold-500); }
.footer-brand p { font-size: var(--text-sm); color: rgba(255,255,255,0.7); margin-bottom: var(--space-4); line-height: 1.6; }
.footer-socials { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: inline-flex;
  align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-socials a:hover { background: var(--color-gold-500); color: var(--color-blue-900); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6); display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: var(--space-4);
  font-size: var(--text-xs); color: rgba(255,255,255,0.55);
}

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--color-blue-900), var(--color-blue-800));
  color: white; padding: clamp(var(--space-16), 8vw, var(--space-20)) 0;
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(242,193,78,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: white; margin-bottom: var(--space-4); }
.page-banner .lead { color: rgba(255,255,255,0.85); max-width: 640px; }
.breadcrumb { display: flex; gap: var(--space-2); font-size: var(--text-xs); color: rgba(255,255,255,0.65); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.breadcrumb a:hover { color: var(--color-gold-500); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.team-card { text-align: center; }
.team-avatar {
  width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue-100), var(--color-gold-100));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  color: var(--color-blue-800);
  margin: 0 auto var(--space-4); border: 4px solid white; box-shadow: var(--shadow-md);
}
.team-card h3 { font-size: var(--text-lg); font-family: var(--font-body); margin-bottom: var(--space-1); }
.team-card .role { font-size: var(--text-sm); color: var(--color-gold-700); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-3); }
.team-card blockquote { font-family: var(--font-display); font-style: italic; font-size: var(--text-sm); color: var(--color-fg-muted); line-height: 1.55; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--color-blue-900); }
.field input, .field textarea, .field select {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); font-size: var(--text-base);
  background: white; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--color-blue-800);
  box-shadow: 0 0 0 3px rgba(43, 82, 196, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Donation widget ---------- */
.donate-card {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.donate-card h3 { margin-bottom: var(--space-4); }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
.amount-btn {
  padding: var(--space-4);
  background: var(--color-blue-50);
  border: 2px solid var(--color-blue-100);
  border-radius: var(--radius-md);
  font-weight: 700; color: var(--color-blue-900); font-size: var(--text-base);
  transition: all 0.2s var(--ease);
}
.amount-btn:hover, .amount-btn.active {
  background: var(--color-gold-500); border-color: var(--color-gold-600);
  color: var(--color-blue-900);
}
.frequency-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--color-blue-50); border-radius: var(--radius-md);
  padding: 4px; margin-bottom: var(--space-4);
}
.frequency-toggle button {
  padding: var(--space-2) var(--space-4); border-radius: 6px;
  font-weight: 600; font-size: var(--text-sm); color: var(--color-fg-muted);
  transition: all 0.2s var(--ease);
}
.frequency-toggle button.active { background: white; color: var(--color-blue-900); box-shadow: var(--shadow-sm); }

/* ---------- Contact grid ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-12); align-items: start; }
.contact-info-card {
  background: var(--color-blue-50); border-radius: var(--radius-lg);
  padding: var(--space-6); margin-bottom: var(--space-4);
}
.contact-info-card h4 { color: var(--color-blue-900); font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-2); }
.contact-info-card p, .contact-info-card a { color: var(--color-fg); font-weight: 500; }
.contact-info-card a:hover { color: var(--color-blue-800); }

/* ---------- Events ---------- */
.event-card {
  display: grid; grid-template-columns: 120px 1fr auto; gap: var(--space-6);
  align-items: center; padding: var(--space-6);
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); margin-bottom: var(--space-4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.event-date {
  text-align: center; padding: var(--space-3);
  background: linear-gradient(135deg, var(--color-blue-800), var(--color-blue-900));
  color: white; border-radius: var(--radius-md);
}
.event-date .day { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--color-gold-500); }
.event-date .month { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.event-body h3 { font-size: var(--text-lg); font-family: var(--font-body); margin-bottom: var(--space-2); }
.event-body .meta { font-size: var(--text-sm); color: var(--color-fg-muted); }

/* ---------- Partners strip ---------- */
.partners-strip {
  display: flex; justify-content: center; align-items: center;
  gap: var(--space-12); flex-wrap: wrap;
  padding: var(--space-8) 0;
}
.partner-logo {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
  color: var(--color-fg-muted); letter-spacing: 0.02em;
  opacity: 0.7; transition: opacity 0.2s var(--ease);
}
.partner-logo:hover { opacity: 1; }

/* ---------- Countdown ---------- */
.countdown-block {
  background: linear-gradient(135deg, var(--color-blue-900), var(--color-blue-800));
  border: 1px solid rgba(242,193,78,0.35);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  color: white; text-align: center;
  position: relative; overflow: hidden;
}
.countdown-block::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(242,193,78,0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(43,82,196,0.35), transparent 55%);
  pointer-events: none;
}
.countdown-block > * { position: relative; z-index: 2; }
.countdown-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(242,193,78,0.15); border: 1px solid rgba(242,193,78,0.4);
  color: var(--color-gold-500); font-size: var(--text-xs);
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.countdown-title { color: white; margin-bottom: var(--space-3); font-size: var(--text-2xl); }
.countdown-sub { color: rgba(255,255,255,0.8); margin-bottom: var(--space-8); font-size: var(--text-lg); }
.countdown-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
  max-width: 720px; margin: 0 auto var(--space-8);
}
.countdown-cell {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg); padding: clamp(var(--space-4), 3vw, var(--space-6)) var(--space-3);
  backdrop-filter: blur(6px);
}
.countdown-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1;
  color: var(--color-gold-500);
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-top: var(--space-2); font-weight: 600;
}
.countdown-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.countdown-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); color: var(--color-gold-500);
  margin-top: var(--space-6); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.countdown-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-gold-500);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
@media (max-width: 600px) {
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .hero-stats-strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: var(--space-8); }
  .contact-grid { grid-template-columns: 1fr; }
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .cta-banner { padding: var(--space-10); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .team-grid, .impact-grid, .footer-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card { grid-template-columns: 80px 1fr; }
  .event-card .btn { grid-column: 1 / -1; margin-top: var(--space-3); }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Admin dashboard preview ---------- */
.admin-shell {
  display: grid; grid-template-columns: 260px 1fr; min-height: 100vh;
  background: var(--color-bg-soft);
}
.admin-sidebar {
  background: var(--color-blue-900); color: white; padding: var(--space-6);
  position: sticky; top: 0; height: 100vh;
}
.admin-sidebar .brand-mark { background: var(--color-gold-500); color: var(--color-blue-900); }
.admin-sidebar .brand-text .brand-name { color: white; }
.admin-sidebar .brand-text .brand-tag { color: rgba(255,255,255,0.65); }
.admin-nav { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-8); }
.admin-nav a {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.75); font-size: var(--text-sm); font-weight: 500;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: white; }
.admin-nav a.active { background: var(--color-gold-500); color: var(--color-blue-900); font-weight: 600; }
.admin-nav .section-label {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); padding: var(--space-4) var(--space-4) var(--space-2);
}
.admin-main { padding: var(--space-8); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-8); }
.admin-topbar h1 { font-size: var(--text-xl); font-family: var(--font-body); font-weight: 700; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.kpi {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-5);
}
.kpi .label { font-size: var(--text-xs); color: var(--color-fg-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-2); }
.kpi .num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--color-blue-900); }
.kpi .delta { font-size: var(--text-xs); color: #16a34a; font-weight: 600; margin-top: var(--space-1); }
.kpi .delta.down { color: #dc2626; }
.admin-panel {
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-6); margin-bottom: var(--space-6);
}
.admin-panel h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-4); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.admin-table th, table.admin-table td {
  text-align: left; padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
table.admin-table th { font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-fg-muted); font-weight: 600; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: var(--text-xs); font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: var(--color-blue-100); color: var(--color-blue-800); }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- WordPress core helpers ---------- */
.alignleft { float: left; margin: 0 24px 12px 0; }
.alignright { float: right; margin: 0 0 12px 24px; }
.aligncenter { display: block; margin: 0 auto 12px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--text-xs); color: var(--color-fg-muted); text-align: center; margin-top: 6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto var(--space-8); }
.search-form input[type="search"] {
  flex: 1; padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  font-size: var(--text-base);
}
.search-form button { padding: var(--space-3) var(--space-6); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: var(--space-24) var(--space-6); }
.error-404 h1 { font-size: 5rem; color: var(--color-gold-500); }

/* ---------- Widget areas ---------- */
.widget-area { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.widget { background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); }
.widget h2, .widget h3 { font-size: var(--text-base); margin-bottom: var(--space-3); }

/* ---------- Single post / archive ---------- */
.post-content { max-width: 760px; margin: 0 auto; }
.post-content img { border-radius: var(--radius-md); margin: var(--space-6) 0; }
.post-content h2, .post-content h3 { margin-top: var(--space-8); margin-bottom: var(--space-3); }
.post-content p { margin-bottom: var(--space-4); }
.post-meta { font-size: var(--text-xs); color: var(--color-fg-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.pagination-nav { display: flex; justify-content: space-between; margin-top: var(--space-12); gap: var(--space-4); }

/* ---------- JMAANY plugin form styling hooks (fallback if plugin CSS not loaded) ---------- */
.jmaany-form-message { padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 0.95rem; }
.jmaany-form-message.success { background: #dcfce7; color: #166534; }
.jmaany-form-message.error { background: #fee2e2; color: #991b1b; }

/* ---------- Video player block (synced from jmaany-preview/style.css) ---------- */
.video-block {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(11,31,77,0.25), 0 0 0 1px rgba(242,193,78,0.35);
  background: var(--color-blue-900);
  aspect-ratio: 16 / 9;
}
.video-block-inline {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(11,31,77,0.2);
}
.video-thumb {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.3s ease;
  border: 0;
  padding: 0;
  width: 100%;
  color: white;
}
.video-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,31,77,0.55), rgba(11,31,77,0.15) 40%, rgba(11,31,77,0.35));
  transition: background 0.3s ease;
}
.video-thumb:hover { filter: brightness(1.05); }
.video-thumb:hover::before { background: linear-gradient(135deg, rgba(11,31,77,0.35), rgba(11,31,77,0) 40%, rgba(11,31,77,0.2)); }
.video-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--color-gold-500);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px rgba(242,193,78,0.5), 0 0 0 8px rgba(242,193,78,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-thumb:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 50px rgba(242,193,78,0.65), 0 0 0 14px rgba(242,193,78,0.22);
}
.video-play-btn svg {
  width: 36px; height: 36px;
  fill: var(--color-blue-900);
  margin-left: 4px;
}
.video-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 32px;
  color: white;
  text-align: left;
  z-index: 2;
  pointer-events: none;
}
.video-caption .eyebrow {
  color: var(--color-gold-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.video-caption .title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.video-block iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
@media (max-width: 700px) {
  .video-play-btn { width: 72px; height: 72px; }
  .video-play-btn svg { width: 26px; height: 26px; }
  .video-caption { padding: 16px 20px; }
  .video-caption .title { font-size: 1.15rem; }
}
