/* ============================================
   GIRL DAD GLOBAL FOUNDATION — DESIGN SYSTEM
   Blue Theme | Refined Nonprofit Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Blue Color System */
  --navy: #0B1F3A;
  --navy-mid: #142952;
  --blue-deep: #1A3C6E;
  --blue-mid: #2155A3;
  --blue-accent: #3B72D4;
  --blue-light: #C8D8F0;
  --blue-pale: #EEF3FB;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #FAF8F4;
  --warm-white: #FFFFFF;
  --text-dark: #0E1A2E;
  --text-mid: #334E7A;
  --text-light: #6A85B0;
  --border: #D4E0F0;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 100px 0;
  --section-pad-sm: 60px 0;
  --container: 1280px;
  --container-narrow: 800px;
  --radius: 12px;
  --radius-sm: 6px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Anchor jumps: account for fixed header */
main [id] {
  scroll-margin-top: 88px;
}

body.admin-bar main [id] {
  scroll-margin-top: 120px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-mid); max-width: 68ch; line-height: 1.85; }

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15em;
  color: var(--blue-accent);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: var(--gold);
}

/* === LAYOUT === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: var(--section-pad); }
.section-sm { padding: var(--section-pad-sm); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.28s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-accent);
  color: white;
  border-color: var(--blue-accent);
}

.btn-primary:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 114, 212, 0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: white;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

/* === NAVIGATION === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(11, 31, 58, 0.99);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 26px; height: 26px; }

.nav-logo .sub { font-size: 0.62rem; font-family: var(--font-body); letter-spacing: 0.12em; color: var(--blue-light); display: block; font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li { position: relative; }

.nav-links a,
.nav-links button {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover,
.nav-links button:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav-links a.active,
.nav-links button.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.22);
}

/* Mega Menu / Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform-origin: top center;
  transition: all 0.2s var(--ease);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.nav-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  border-radius: 0;
  font-size: 0.8rem;
}

.nav-cta {
  background: var(--blue-accent) !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 4px !important;
  font-size: 0.82rem !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--blue-mid) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,114,212,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.mega-menu-links a{
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  display: inline-block;
  margin-top: 10px;
 }
.mega-menu-links a:hover{
 background: rgba(232,201,122,0.7);
 border: 1px solid rgba(232, 201, 122, 0.7);
}

ul.wp-block-list {
  list-style: disc;
  padding-left: 20px;
margin: 10px 0;
}

/* === HERO SECTIONS === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0B1F3A 0%, #1A3C6E 50%, #0F2850 100%);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,31,58,0) 40%, rgba(11,31,58,0.5) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 114, 212, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 32px 80px;
  width: 100%;
}

.hero-content .section-label { color: var(--gold-light); }
.hero-content .section-label::after { background: var(--gold-light); }

.hero-content h1 { color: white; margin-bottom: 20px; }

.hero-content h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-content .hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 40px;
  font-family: var(--font-serif);
  font-style: italic;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll span { width: 1px; height: 40px; background: rgba(255,255,255,0.3); display: block; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


.gdgf-page-content .wp-block-heading {
  margin: 40px 0 20px;
}

.gdgf-page-content p {
  max-width: 100%;
}

/* Sub-hero (for inner pages) */
.page-hero {
  min-height: 60vh;
  padding: 140px 32px 80px;
}

/* === CARDS === */
.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(11,31,58,0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  padding: 20px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(11,31,58,0.14);
}

.card-body { padding: 28px 28px 32px; }

.template-get-involved .card .card-body {
  padding: 0px !important;
}

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.card-tag.blue { background: var(--blue-pale); color: var(--blue-mid); }
.card-tag.gold { background: #FDF6E3; color: #8B6914; }
.card-tag.teal { background: #E6F4F1; color: #1A6B5A; }

.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-accent));
}

.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* === BLOG GRID === */
.blog-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

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

@media (max-width: 540px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card { height: 100%; }

.blog-card .card-img {
  height: 210px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-accent));
}

.blog-card .card-body { padding: 18px 18px 22px; }

.blog-card-link { display: block; color: inherit; }

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.blog-card-meta .card-tag { margin-bottom: 0; }

.blog-card-date { font-size: 0.78rem; color: var(--text-light); white-space: nowrap; }

.blog-card-title {
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0 0 10px;
  line-height: 1.25;
}

.blog-card-excerpt {
  color: var(--text-mid);
  font-size: 0.92rem;
  max-width: none;
  margin: 0;
}

.blog-pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(11,31,58,0.16);
  color: var(--navy);
  background: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.blog-pagination .page-numbers .current {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.35);
  color: var(--navy);
}

.blog-pagination .page-numbers a:hover {
  background: rgba(59,114,212,0.10);
  border-color: rgba(59,114,212,0.30);
}

/* === SINGLE POST === */
.post-article .post-content > *:first-child { margin-top: 0; }
.post-article .post-content p { max-width: 100%; }
.post-article .post-content img { border-radius: 12px; }

/* Blog inner page readability */
.post-article .post-content {
  /* max-width: 900px; */
  margin: 0 auto;
}

.post-article .post-content > * {
  margin-top: 18px;
  margin-bottom: 18px;
}

.post-article .post-content h2,
.post-article .post-content h3,
.post-article .post-content h4 {
  margin-top: 34px;
  margin-bottom: 14px;
}

.post-article .post-content ul,
.post-article .post-content ol {
  padding-left: 1.25rem;
  color: var(--text-mid);
}

.post-article .post-content li { margin: 8px 0; }

.post-article .post-content blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--blue-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-article .post-content blockquote p {
  margin: 0;
  max-width: none;
  color: var(--navy);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
}

.post-article .post-content .wp-block-image img,
.post-article .post-content img {
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(11,31,58,0.10);
}

/* WPForms (used in post content) */
.post-article .post-content .wpforms-container {
  max-width: none;
  margin: 34px 0 0;
  padding: 26px;
  background: var(--blue-pale);
  border: 1px solid rgba(59,114,212,0.20);
  border-radius: var(--radius);
}

.post-article .post-content .wpforms-container .wpforms-title,
.post-article .post-content .wpforms-container .wpforms-description {
  text-align: center;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.post-article .post-content .wpforms-container .wpforms-title {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.35rem;
  margin: 0 0 6px;
}

.post-article .post-content .wpforms-container .wpforms-description {
  margin: 0 auto 18px;
  color: var(--text-mid);
}

.post-article .post-content .wpforms-container .wpforms-field {
  padding: 0;
  margin: 0 0 14px;
}

.post-article .post-content .wpforms-container .wpforms-field-label {
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}

.post-article .post-content .wpforms-container input[type="text"],
.post-article .post-content .wpforms-container input[type="email"],
.post-article .post-content .wpforms-container input[type="tel"],
.post-article .post-content .wpforms-container input[type="url"],
.post-article .post-content .wpforms-container input[type="number"],
.post-article .post-content .wpforms-container select,
.post-article .post-content .wpforms-container textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  background: #fff;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-article .post-content .wpforms-container input[type="text"]:focus,
.post-article .post-content .wpforms-container input[type="email"]:focus,
.post-article .post-content .wpforms-container input[type="tel"]:focus,
.post-article .post-content .wpforms-container input[type="url"]:focus,
.post-article .post-content .wpforms-container input[type="number"]:focus,
.post-article .post-content .wpforms-container select:focus,
.post-article .post-content .wpforms-container textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 4px rgba(59,114,212,0.12);
}

.post-article .post-content .wpforms-container .wpforms-submit-container {
  padding: 6px 0 0;
  text-align: center;
}

.post-article .post-content .wpforms-container button[type="submit"],
.post-article .post-content .wpforms-container input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.28s var(--ease);
  border: 2px solid var(--blue-accent);
  background: var(--blue-accent);
  color: #fff;
}

.post-article .post-content .wpforms-container button[type="submit"]:hover,
.post-article .post-content .wpforms-container input[type="submit"]:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 114, 212, 0.35);
}

@media (max-width: 768px) {
  .post-article .post-content { max-width: 100%; }
  .post-article .post-content .wpforms-container { padding: 18px; }
}

/* WordPress comments form (Leave a Reply) */
.post-comments,
.comment-respond {
  margin-top: 34px;
}

.comment-respond {
  background: var(--blue-pale);
  border: 1px solid rgba(59,114,212,0.20);
  border-radius: var(--radius);
  padding: 26px;
}

.comment-respond .comment-reply-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 10px;
  color: var(--navy);
}

.comment-respond .comment-notes,
.comment-respond .logged-in-as,
.comment-respond .comment-form-cookies-consent,
.comment-respond .form-submit,
.comment-respond label {
  color: var(--text-mid);
}

.comment-respond .logged-in-as,
.comment-respond .comment-notes {
  margin: 0 0 14px;
  max-width: none;
}

.comment-respond a {
  color: var(--blue-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comment-respond a:hover { color: var(--blue-accent); }

.comment-respond .comment-form > p {
  margin: 0 0 14px;
}

.comment-respond label {
  display: block;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  background: #fff;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-respond textarea { min-height: 160px; resize: vertical; }

.comment-respond input:focus,
.comment-respond textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 4px rgba(59,114,212,0.12);
}

.comment-respond .form-submit {
  margin-top: 8px;
}

.comment-respond .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.28s var(--ease);
  border: 2px solid var(--blue-accent);
  background: var(--blue-accent);
  color: #fff;
}

.comment-respond .form-submit input[type="submit"]:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 114, 212, 0.35);
}

/* Post navigation buttons polish */
.post-nav .nav-links a {
  display: block;
  border-radius: 14px;
  padding: 16px;
}

.post-nav .nav-links a:hover {
  background: rgba(59,114,212,0.08);
  border-color: rgba(59,114,212,0.30);
}

@media (max-width: 768px) {
  .comment-respond { padding: 18px; }
}

.post-footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(11,31,58,0.10);
}

.post-tags .tag-label { font-weight: 800; color: var(--navy); margin-right: 10px; }
.post-tags a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11,31,58,0.14);
  color: var(--navy);
  background: rgba(59,114,212,0.06);
  font-weight: 800;
  font-size: 0.85rem;
  margin: 6px 8px 0 0;
}
.post-tags a:hover { background: rgba(201,168,76,0.16); border-color: rgba(201,168,76,0.30); }

.post-nav { margin-top: 34px; }
.post-nav .post-navigation { border-top: 1px solid rgba(11,31,58,0.10); padding-top: 18px; }
.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.post-nav .nav-previous, .post-nav .nav-next { background: rgba(11,31,58,0.04); border: 1px solid rgba(11,31,58,0.10); border-radius: 14px; padding: 16px; }
.post-nav .nav-next { text-align: right; }
.post-nav .nav-subtitle { display: block; font-size: 0.78rem; color: var(--text-light); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.post-nav .nav-title { display: block; font-weight: 900; color: var(--navy); }
.post-nav a { color: inherit; }

@media (max-width: 720px) {
  .post-nav .nav-links { grid-template-columns: 1fr; }
  .post-nav .nav-next { text-align: left; }
}

.icon-circle {
  width: 56px; height: 56px;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.icon-circle svg {
  width: 24px; height: 24px;
  color: var(--blue-mid);
}

/* === GRID SYSTEMS === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

/* === SPLIT LAYOUT === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* === SECTION STYLES === */
.section-dark {
  background: var(--navy);
  color: white;
}

.section-dark h2, .section-dark h3, .section-dark h4 { color: white; }
.section-dark p { color: rgba(255,255,255,0.72); }
.section-dark .section-label { color: var(--gold-light); }
.section-dark .section-label::after { background: var(--gold-light); }

.section-blue {
  background: var(--blue-pale);
}

.section-cream { background: var(--cream); }
.section-white { background: white; }

/* Divider */
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--blue-accent), var(--gold));
  border-radius: 2px;
  margin: 20px 0 28px;
}

/* Pull Quote */
.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 24px 32px;
  margin: 40px 0;
  background: var(--blue-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--navy);
  line-height: 1.5;
}

/* Stats */
.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--blue-accent);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* Pillar Cards */
.pillar-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 2px 20px rgba(11,31,58,0.07);
  border-top: 4px solid var(--blue-accent);
  transition: all 0.3s;
}

.pillar-card:nth-child(2) { border-top-color: var(--gold); }
.pillar-card:nth-child(3) { border-top-color: #2EB89A; }

.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(11,31,58,0.12); }

/* Sponsorship Tiers */
.tier-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 2px 20px rgba(11,31,58,0.08);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.tier-card.featured {
  border: 2px solid var(--blue-accent);
  box-shadow: 0 8px 40px rgba(59,114,212,0.2);
  position: relative;
}

.tier-card.featured::before {
  content: 'Most Impactful';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
}

.tier-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(11,31,58,0.14); }

.tier-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-accent);
  margin: 8px 0;
}

.tier-includes {
  list-style: none;
  margin-top: 20px;
}

.tier-includes li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-mid);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tier-includes li::before {
  content: '✓';
  color: var(--blue-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Event Cards */
.event-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(11,31,58,0.08);
  transition: all 0.3s;
}

.event-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(11,31,58,0.14); }

.event-card-date {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 20px;
}

.event-card-date .day {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
}

.event-card-date .month {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.event-card-body { padding: 24px; }

.event-meta {
  display: flex;
  gap: 16px;
  margin: 12px 0;
  font-size: 0.8rem;
  color: var(--text-light);
}

.event-meta span { display: flex; align-items: center; gap: 4px; }

/* Team Cards */
.team-card {
  text-align: center;
  cursor: pointer;
}

.team-img {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--border);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-accent));
  transition: all 0.3s;
}

.team-card:hover .team-img { border-color: var(--blue-accent); transform: scale(1.04); }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(59,114,212,0.25) 0%, transparent 70%);
}

.cta-banner h2, .cta-banner h3 { color: white; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,0.72); position: relative; z-index: 1; margin: 0 auto 32px; }
.cta-banner .btn-group { position: relative; z-index: 1; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === GALLERY GRID === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-accent));
  position: relative;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.signature-experience-card {
  transition: background 0.3s var(--ease);
}

.signature-experience-card:hover {
  background: rgba(59, 114, 212, 0.15) !important;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.footer-brand p { max-width: 300px; font-size: 0.875rem; margin-top: 16px;color:rgba(255,255,255,0.62) }

.footer-col h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.62);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 32px;
  max-width: var(--container);
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom p{color: rgba(255,255,255,0.55);}
/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.85);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: white;
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

/* === DONATION FORM === */
.donation-form {
  background: white;
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 8px 48px rgba(11,31,58,0.12);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.amount-btn {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
}

.amount-btn:hover, .amount-btn.active {
  border-color: var(--blue-accent);
  background: var(--blue-pale);
  color: var(--blue-mid);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-accent);
  background: white;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === NOTIFICATIONS === */
.notification {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--navy);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--ease);
  max-width: 360px;
}

.notification.show { transform: translateY(0); opacity: 1; }
.notification.success { border-left: 4px solid #2EB89A; }
.notification.error { border-left: 4px solid #E05252; }

/* === WAVE DIVIDER === */
.wave {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave svg { display: block; }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-up { animation: fadeUp 0.6s var(--ease) both; }
.animate-up.delay-1 { animation-delay: 0.1s; }
.animate-up.delay-2 { animation-delay: 0.2s; }
.animate-up.delay-3 { animation-delay: 0.3s; }

[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold-light); }

/* === PHILOSOPHY STRIP === */
.philosophy-strip {
  background: var(--blue-pale);
  padding: 60px 0;
  text-align: center;
}

/* === FOUNDER (MEET THE FOUNDER) === */
.founder-section .split.founder-split {
  gap: 80px;
  align-items: center;
}

.founder-visual-wrap {
  position: relative;
}

.founder-visual {
  height: 480px;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-accent) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.founder-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-visual__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 31, 58, 0.85), transparent);
  padding: 32px 28px;
}

.founder-visual__overlay .italic-serif {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  max-width: 100%;
  margin: 0;
}

.founder-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.founder-badge__label {
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

.founder-badge__year {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
}

.founder-pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--navy);
  margin: 0 0 28px;
  max-width: none;
}

@media (max-width: 768px) {
  .founder-visual {
    height: 380px;
  }

  .founder-badge {
    bottom: -12px;
    right: 12px;
    padding: 16px 20px;
  }

  .founder-badge__year {
    font-size: 1.5rem;
  }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 70px 0; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px; gap: 0; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-content { padding: 120px 20px 60px; }
  .container, .container-narrow { padding: 0 20px; }
  .donation-form, .modal-box { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
}

/* === WORDPRESS ADMIN BAR === */
body.admin-bar .site-header { top: 32px; }

/* =============================================
   TEAM CARDS
   ============================================= */
.team-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--navy-dark);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}

.team-card:hover .team-photo img {
  transform: scale(1.08);
}

.team-card h3 {
  padding: 0 24px;
}

.team-title {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 24px;
}

.team-card p:last-child {
  padding: 0 24px 24px 24px;
  color: rgba(255,255,255,0.6);
}


/* =============================================
   PILLAR PAGE STYLES
   ============================================= */
.pillar-number {
  font-size: 7rem;
  font-weight: 700;
  color: rgba(11,31,58,0.06);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: -60px;
}

.pillar-initiative-highlight {
  background: linear-gradient(135deg, rgba(33,85,163,0.05), rgba(26,107,191,0.08));
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 40px;
  margin: 48px 0;
}

.initiative-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 12px;
}

.why-matters-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.why-matters-box .section-label {
  justify-content: center;
  margin-bottom: 20px;
}


/* =============================================
   PAGE HEADER (for Blog and other internal pages)
   ============================================= */
.page-header {
  background: var(--navy-dark);
  padding: 100px 24px 64px;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
}

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

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

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
}


/* =============================================
   MEGA MENU DROPDOWNS
   ============================================= */

/* Mega menu container for Our Pillars */
.nav-dropdown.mega-menu {
  width: 950px;
  left: 50%;
  transform: translateX(-50%);
  padding: 32px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
}

/* Custom scrollbar for mega menu */
.nav-dropdown.mega-menu::-webkit-scrollbar {
  width: 6px;
}

.nav-dropdown.mega-menu::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.nav-dropdown.mega-menu::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.4);
  border-radius: 3px;
}

.nav-dropdown.mega-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.6);
}

.mega-menu-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mega-menu-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}

.mega-menu-title {
  font-size: 1.5rem;
  color: white;
  font-family: var(--font-display);
  margin-bottom: 8px;
  line-height: 1.2;
}

.mega-menu-subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mega-pillar-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.mega-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.4);
}

.mega-pillar-header {
  padding: 16px 18px 12px;
}

.mega-pillar-badge {
  display: inline-block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  font-weight: 600;
}

.mega-pillar-badge.p1 {
  background: rgba(139,69,19,0.2);
  color: #C9A84C;
}

.mega-pillar-badge.p2 {
  background: rgba(11,47,94,0.3);
  color: #4A9DE8;
}

.mega-pillar-badge.p3 {
  background: rgba(46,184,154,0.2);
  color: #2EB89A;
}

.mega-pillar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
  font-family: var(--font-display);
}

.mega-pillar-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-bottom: 0px;
}

.mega-pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 16px;
}

.mega-pillar-link:hover {
  color: #E8C97A;
}

.mega-pillar-initiative {
  background: rgba(0,0,0,0.2);
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mega-initiative-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.mega-initiative-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.mega-initiative-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.mega-pillar-image {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.mega-pillar-icon {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive mega menu */
@media (max-width: 1200px) {
  .nav-dropdown.mega-menu {
    width: 95vw;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* =============================================
   FALLBACK ALIASES — older selectors used in some pages
   (so existing markup keeps working until pages are refreshed)
   ============================================= */
:root {
  --blue: var(--blue-mid);
  --navy-dark: var(--navy);
  --border-color: var(--border);
  --text-secondary: var(--text-mid);
}

/* =============================================
   ACCESSIBILITY
   ============================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100000;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 4px;
  outline: 3px solid white;
}

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

/* Make hamburger and dropdown buttons hit a 44px target on mobile */
.hamburger {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================
   MOBILE MEGA MENU + NAV
   ============================================= */
@media (max-width: 768px) {
  .nav-links {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links > li { width: 100%; }
  .nav-links > li > a,
  .nav-links > li > button {
    width: 100%;
    padding: 14px 18px;
    justify-content: space-between;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-cta { margin: 8px 16px !important; text-align: center; justify-content: center; }

  /* Mega menus collapse to a flat list on mobile */
  .nav-dropdown,
  .nav-dropdown.mega-menu {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: rgba(0,0,0,0.25);
    padding: 8px 16px 16px;
    max-height: none;
    overflow: visible;
  }
  .nav-dropdown.mega-menu { padding: 16px; }
  .mega-menu-header { display: none; }
  .mega-menu-grid { display: block; }
  .mega-pillar-card { margin-bottom: 12px; }
  .mega-pillar-image { display: none; }
}


/* =============================================
   FOOTER ENHANCEMENTS — payment icons, socials,
   contact column, secondary nav
   ============================================= */
.site-footer .footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
}
.footer-logo {
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-contact ul li,
.footer-contact a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.62);
}

/* Payment icons row */
.payment-icons {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.payment-icons .pay-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.payment-icons .pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.payment-icons .pay-icon {
  height: 22px;
  width: auto;
  border-radius: 3px;
  background: white;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.payment-icons .pay-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  margin-left: 8px;
}
.payment-icons .pay-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #2EE0A0;
  font-weight: 600;
}

.footer-bottom .dot { color: rgba(255,255,255,0.3); margin: 0 6px; }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--gold-light); }

@media (max-width: 1024px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .payment-icons { justify-content: center; text-align: center; padding: 20px; }
}


/* =============================================
   ADDITIONAL UTILITIES & MOBILE FIXES
   ============================================= */
.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;
}

/* Make the donation form readable on small screens */
@media (max-width: 640px) {
  .donation-form { padding: 24px 18px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-number { font-size: 4.5rem; margin-bottom: -32px; }
  .why-matters-box { padding: 28px 18px; }
  .pillar-initiative-highlight { padding: 24px; }
  .container, .container-narrow { padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero { min-height: 88vh; }
  .hero-content { padding: 110px 16px 56px; }
  .cta-banner h2 { font-size: 1.6rem; }
  .page-header { padding: 100px 18px 48px; }
  .page-header h1 { font-size: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; grid-row: span 1; }
}


/* =============================================
   ADMIN DASHBOARD (admin-dashboard.html)
   ============================================= */
.admin-shell {
  min-height: 100vh;
  background: var(--cream);
  padding: 24px 0 60px;
}
.admin-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.admin-header {
  background: linear-gradient(135deg, var(--navy), var(--blue-deep));
  color: white;
  padding: 28px 32px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.admin-header h1 { color: white; font-size: 1.6rem; margin-bottom: 6px; }
.admin-header .admin-sub { font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.admin-header .admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.demo-banner {
  background: #FFF6D6;
  border: 1px solid #E6CD66;
  color: #6B4F00;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.demo-banner strong { color: #4A3700; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-mid);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.admin-toolbar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.admin-toolbar .filters { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-toolbar .date-range { display: flex; gap: 8px; align-items: center; font-size: 0.875rem; color: var(--text-mid); }
.admin-toolbar .date-range input {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
}
.filter-btn {
  padding: 8px 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--blue-accent); color: var(--blue-mid); }
.filter-btn.active {
  background: var(--blue-accent);
  color: white;
  border-color: var(--blue-accent);
}
.export-btn {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  cursor: pointer;
  border: 0;
}
.export-btn:hover { background: var(--gold-light); }

.data-table {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11,31,58,0.05);
}
.data-table table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--cream);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-dark);
}
.data-table tbody tr:hover { background: rgba(11,31,58,0.02); }
.data-table .empty-row td { text-align: center; padding: 32px; color: var(--text-light); font-style: italic; }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-completed { background: #E6F4EC; color: #1F7A47; }
.status-pending { background: #FDF6E3; color: #8B6914; }
.status-failed { background: #FCE6E6; color: #9B2C2C; }

.integration-note {
  margin-top: 28px;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  border-left: 4px solid var(--blue-accent);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-mid);
}
.integration-note h3 { font-size: 1rem; margin-bottom: 8px; color: var(--navy); }
.integration-note code { background: var(--cream); padding: 2px 6px; border-radius: 3px; font-size: 0.8rem; }

@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .data-table { overflow-x: auto; }
  .data-table table { min-width: 720px; }
  .admin-header { flex-direction: column; align-items: flex-start; }
}


/* =============================================
   PRINT
   ============================================= */
@media print {
  .site-header, .site-footer, .hamburger, .nav-cta, .hero-scroll { display: none !important; }
  body { background: white; color: black; }
}