/*
Theme Name: AFCMFI Faith Foundation
Theme URI: https://antipolofaithfoundation.level316.com
Author: AFCMFI
Author URI: https://antipolofaithfoundation.level316.com
Description: Official theme for Antipolo Faith Christian Ministries Foundation, Inc.
Version: 1.4
License: GNU General Public License v2 or later
Text Domain: afcmfi
*/

:root {
  --navy: #1a3a6e;
  --blue: #1e56a0;
  --sky: #4da6d8;
  --light: #a8d8f0;
  --white: #ffffff;
  --off: #f4f8fc;
  --text: #1a2b3c;
  --muted: #5a7a94;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Restore list styles stripped by reset — Gutenberg outputs .wp-block-list */
.entry-content ul, .entry-content ol,
.entry-content .wp-block-list { list-style: revert; padding-left: 1.75em; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; }
p { line-height: 1.75; }
a { color: var(--blue); }

/* ── NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(77,166,216,0.15);
}
.site-branding { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; border: 2px solid rgba(77,166,216,0.3); }
.site-name { line-height: 1.2; }
.site-name strong { display: block; font-size: 13px; font-weight: 600; color: var(--navy); font-family: 'DM Sans', sans-serif; }
.site-name span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.main-navigation { display: flex; align-items: center; gap: 32px; }
.main-navigation ul { display: flex; gap: 32px; list-style: none; }
.main-navigation a { font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; transition: color .2s; position: relative; }
.main-navigation a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-navigation a:hover { color: var(--blue); }
.main-navigation a:hover::after { transform: scaleX(1); }
.nav-cta { background: var(--navy); color: var(--white) !important; padding: 10px 22px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s; }
.nav-cta:hover { background: var(--blue); }
.nav-cta::after { display: none !important; }

/* ── PAGE WRAPPER ── */
.page-content { padding-top: 74px; }

/* ── INNER PAGE HERO BANNER ── */
.inner-page-hero {
  position: relative;
  background: var(--navy);
  /* Cancel the padding-top from .page-content so hero sits flush under fixed nav */
  margin-top: -74px;
  padding: calc(74px + 52px) 6% 52px;
  overflow: hidden;
}
/* When WP admin bar is present it adds 32px to html margin-top;
   compensate so hero still sits flush */
.admin-bar .inner-page-hero {
  margin-top: -74px;
  padding-top: calc(74px + 52px);
}
.inner-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(77,166,216,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(30,86,160,0.25) 0%, transparent 50%);
}
.inner-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 41px
  );
}
.inner-page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.inner-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(168,216,240,0.8);
  margin-bottom: 16px;
  font-weight: 500;
}
.inner-page-breadcrumb a {
  color: rgba(168,216,240,0.8);
  text-decoration: none;
  transition: color .2s;
}
.inner-page-breadcrumb a:hover { color: var(--light); }
.inner-page-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  line-height: 1.15;
  font-weight: 900;
}

/* ── INNER PAGE BODY ── */
.inner-page-main {
  background: var(--white);
  padding: 64px 6% 96px;
}
.inner-page-body {
  max-width: 900px;
  margin: 0 auto;
}

/* Contact info grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 2em 0;
}
.contact-info-item {
  background: var(--off);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.contact-info-item .icon { font-size: 2rem; margin-bottom: 10px; }
.contact-info-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 0;
}
.contact-info-item p { margin: 0; font-size: 15px; color: var(--navy); font-weight: 500; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--white); color: var(--navy);
  padding: 14px 30px; border-radius: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); color: var(--navy); }
.btn-secondary {
  border: 2px solid rgba(255,255,255,0.55); color: var(--white);
  padding: 14px 30px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .2s, border-color .2s; display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); padding: 14px 30px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; display: inline-block; transition: background .2s; }
.btn-dark:hover { background: var(--blue); color: var(--white); }

/* ── SECTION SHARED ── */
.section-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 900; color: var(--navy); line-height: 1.2; margin-bottom: 18px; }
.section-subtitle { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 580px; }

/* ── HERO ── */
.hero-section {
  min-height: 100vh; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 120px 6% 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(26,58,110,0.93) 0%, rgba(26,58,110,0.82) 45%, rgba(30,86,160,0.55) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); color: var(--light); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 7px 16px; border-radius: 100px; margin-bottom: 28px; }
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--light); border-radius: 50%; }
.hero-section h1 { font-size: clamp(2.6rem,5vw,4.2rem); font-weight: 900; color: var(--white); line-height: 1.12; margin-bottom: 24px; }
.hero-section h1 em { font-style: normal; color: var(--light); }
.hero-desc { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.85); max-width: 480px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 40px; }
.stat-item { flex: 1; padding-right: 32px; border-right: 1px solid rgba(255,255,255,0.12); margin-right: 32px; }
.stat-item:last-child { border: none; margin: 0; padding: 0; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 900; color: var(--white); line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 5px; text-transform: uppercase; letter-spacing: .8px; }
.hero-mosaic { position: relative; z-index: 2; padding-left: 48px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px; gap: 12px; }
.mosaic-img { border-radius: 14px; overflow: hidden; box-shadow: 0 16px 50px rgba(0,0,0,0.4); }
.mosaic-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic-img.span2 { grid-column: span 2; border-radius: 16px; }

/* ── ABOUT ── */
.about-section { background: var(--off); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 96px 6%; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 20px; object-fit: cover; height: 520px; box-shadow: 0 30px 80px rgba(26,58,110,0.2); }
.about-badge { position: absolute; bottom: -24px; right: -24px; background: var(--navy); color: var(--white); padding: 24px 28px; border-radius: 16px; box-shadow: 0 16px 40px rgba(26,58,110,0.35); text-align: center; }
.about-badge .badge-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 900; display: block; color: var(--light); }
.about-badge .badge-label { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }
.about-text p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.about-pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pillar-chip { background: var(--white); border: 1.5px solid rgba(77,166,216,0.3); color: var(--navy); padding: 7px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; }

/* ── IMPACT ── */
.impact-section { background: linear-gradient(135deg, var(--navy), var(--blue)); text-align: center; padding: 80px 6%; }
.impact-section h2 { color: var(--white); margin-bottom: 10px; }
.impact-section .section-tag { color: var(--light); }
.impact-section .section-subtitle { color: rgba(255,255,255,0.7); margin: 0 auto 56px; }
.impact-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; background: rgba(255,255,255,0.08); border-radius: 20px; overflow: hidden; }
.impact-card { padding: 44px 20px; background: rgba(255,255,255,0.04); transition: background .3s; }
.impact-card:hover { background: rgba(255,255,255,0.10); }
.impact-card .num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900; color: var(--light); display: block; line-height: 1; }
.impact-card .label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 10px; text-transform: uppercase; letter-spacing: .8px; line-height: 1.4; }

/* ── HELPS ── */
.helps-section { background: var(--white); padding: 96px 6%; }
.helps-header { text-align: center; margin-bottom: 64px; }
.helps-header .section-subtitle { margin: 0 auto; }
.helps-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.helps-card { background: var(--off); border-radius: 20px; padding: 36px 22px 32px; text-align: center; border: 1.5px solid transparent; transition: transform .3s, border-color .3s, box-shadow .3s; }
.helps-card:hover { transform: translateY(-6px); border-color: var(--sky); box-shadow: 0 20px 50px rgba(77,166,216,0.15); }
.helps-letter { font-family: 'Playfair Display', serif; font-size: 3.2rem; font-weight: 900; background: linear-gradient(135deg, var(--navy), var(--sky)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; line-height: 1; margin-bottom: 6px; }
.helps-title { font-size: 12px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px; font-family: 'DM Sans', sans-serif; }
.helps-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; font-family: 'DM Sans', sans-serif; }

/* ── GALLERY ── */
.programs-section { background: var(--off); padding: 96px 6%; }
.programs-header { margin-bottom: 52px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: 260px 260px; gap: 14px; }
.g-item { border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,58,110,0.85) 0%, transparent 55%); opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end; padding: 18px; }
.g-item:hover .g-overlay { opacity: 1; }
.g-caption { color: var(--white); font-size: 13px; font-weight: 600; line-height: 1.3; font-family: 'DM Sans', sans-serif; }
.g-item.big { grid-column: span 2; grid-row: span 2; }

/* ── AGE GROUPS ── */
.age-groups { display: grid; grid-template-columns: 1fr 1fr; }
.age-panel { padding: 80px 7%; position: relative; overflow: hidden; }
.age-panel.young { background: var(--navy); }
.age-panel.old { background: var(--blue); }
.age-panel::before { content: attr(data-age); position: absolute; bottom: -30px; right: -20px; font-family: 'Playfair Display', serif; font-size: 140px; font-weight: 900; color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none; }
.age-panel .section-tag { color: var(--light); }
.age-panel h3 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--white); margin-bottom: 20px; }
.age-panel ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.age-panel ul li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,0.82); font-size: 15px; line-height: 1.5; }
.age-panel ul li::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--light); margin-top: 6px; }

/* ── DIRECTOR ── */
.director-section { background: var(--off); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 96px 6%; }
.director-image img { width: 100%; border-radius: 20px; object-fit: cover; height: 500px; box-shadow: 0 30px 80px rgba(26,58,110,0.15); }
.director-content blockquote { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--navy); line-height: 1.5; border-left: 4px solid var(--sky); padding-left: 24px; margin: 24px 0 28px; }
.director-content p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }
.director-sig { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(77,166,216,0.2); }
.director-sig strong { display: block; font-size: 16px; color: var(--navy); font-weight: 700; font-family: 'DM Sans', sans-serif; }
.director-sig span { font-size: 13px; color: var(--muted); font-family: 'DM Sans', sans-serif; }

/* ── MISSING LAYOUT HELPERS ── */
.about-text { display: flex; flex-direction: column; justify-content: center; }
.director-image { flex-shrink: 0; }
.director-content { display: flex; flex-direction: column; justify-content: center; }
.partner-image { flex-shrink: 0; }
.story-content { display: flex; flex-direction: column; justify-content: center; }

/* ── STORY ── */
.story-section { background: var(--white); padding: 96px 6%; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story-content p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }
.story-highlight { background: var(--off); border-left: 4px solid var(--sky); padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 24px 0; font-size: 15px; color: var(--navy); font-weight: 500; line-height: 1.6; }
.story-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-photos img { width: 100%; border-radius: 14px; object-fit: cover; box-shadow: 0 12px 40px rgba(26,58,110,0.12); }

/* ── PARTNER ── */
.partner-section { background: var(--off); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 96px 6%; }
.partner-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.partner-option { background: var(--white); border-radius: 12px; padding: 20px 18px; border-left: 3px solid var(--sky); }
.partner-option h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-family: 'DM Sans', sans-serif; }
.partner-option p { font-size: 13px; color: var(--muted); line-height: 1.5; font-family: 'DM Sans', sans-serif; }
.partner-image img { width: 100%; border-radius: 20px; object-fit: cover; height: 520px; box-shadow: 0 30px 80px rgba(26,58,110,0.15); }
.partner-contact { margin-top: 32px; padding: 24px; background: var(--white); border-radius: 16px; border: 1.5px solid rgba(77,166,216,0.25); }
.partner-contact a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 8px; transition: color .2s; }
.partner-contact a:last-child { margin: 0; }
.partner-contact a:hover { color: var(--navy); }
.partner-contact a strong { color: var(--navy); }

/* ── VERSE BANNER ── */
.verse-section { position: relative; text-align: center; padding: 100px 6%; overflow: hidden; }
.verse-bg { position: absolute; inset: 0; z-index: 0; }
.verse-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.verse-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,58,110,0.9), rgba(30,86,160,0.88)); }
.verse-inner { position: relative; z-index: 2; }
.verse-section blockquote { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem,3vw,2.3rem); font-weight: 700; color: var(--white); line-height: 1.45; max-width: 820px; margin: 0 auto 20px; }
.verse-section cite { font-size: 14px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1.5px; font-style: normal; }
.verse-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); padding: 64px 6% 36px; color: rgba(255,255,255,0.65); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 32px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: white; padding: 2px; }
.footer-col h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--light); margin-bottom: 18px; font-family: 'DM Sans', sans-serif; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; }
.footer-bottom span { color: var(--light); }

/* ── MOBILE HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  opacity: 0;
  transition: opacity .25s;
}
.mobile-nav-overlay.is-open { opacity: 1; }
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--white);
  z-index: 400;
  padding: 80px 28px 40px;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  transform: translateX(100%);
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(26,58,110,0.15);
}
.mobile-nav-drawer.is-open {
  display: block;
  transform: translateX(0);
}
.mobile-nav-overlay.is-open { display: block; }
.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.mobile-nav-menu { list-style: none; display: flex; flex-direction: column; gap: 0; }
.mobile-nav-menu li a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(77,166,216,0.12);
  transition: color .2s;
}
.mobile-nav-menu li a:hover { color: var(--blue); }
.mobile-nav-cta {
  display: inline-block;
  margin-top: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s;
}
.mobile-nav-cta:hover { background: var(--blue); }

/* ── FOOTER NAV MENU STYLES ── */
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
/* WordPress wraps wp_nav_menu in a <ul> directly - style it */
.footer-col .menu { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col .menu li a { color: rgba(255,255,255,0.65); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-col .menu li a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media(max-width:1100px) {
  .helps-grid { grid-template-columns: repeat(3,1fr); }
  .impact-grid { grid-template-columns: repeat(3,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
  .g-item.big { grid-column: span 2; height: 300px; }
  .g-item { height: 220px; }
}
@media(max-width:900px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-mosaic { display: none; }
  .about-section,.partner-section,.director-section,.story-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .about-badge { right: 16px; bottom: -16px; }
  .age-groups { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media(max-width:600px) {
  .site-header { padding: 14px 5%; }
  .main-navigation { display: none; }
  .nav-toggle { display: flex; }
  .helps-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-item { border: none; padding: 0; margin: 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .g-item,.g-item.big { grid-column: span 1; height: 220px; }
}

/* ══════════════════════════════════════════
   NAVIGATION — connected menu styles
══════════════════════════════════════════ */
.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-menu li { position: relative; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; transition: color .2s; position: relative; }
.nav-menu a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-menu a:hover { color: var(--blue); }
.nav-menu a:hover::after { transform: scaleX(1); }
/* Dropdown support */
.nav-menu .sub-menu { display: none; position: absolute; top: calc(100% + 12px); left: 0; background: var(--white); border: 1px solid rgba(77,166,216,0.2); border-radius: 10px; min-width: 200px; padding: 8px 0; box-shadow: 0 12px 40px rgba(26,58,110,0.12); z-index: 200; list-style: none; }
.nav-menu li:hover .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.nav-menu .sub-menu a::after { display: none; }
.current-menu-item > a, .current-page-ancestor > a { color: var(--blue); }
.current-menu-item > a::after { transform: scaleX(1); }


/* ══════════════════════════════════════════
   BLOG — ARCHIVE (post listing)
══════════════════════════════════════════ */
.blog-archive-hero { background: linear-gradient(135deg, var(--navy), var(--blue)); margin-top: -74px; padding: calc(74px + 52px) 6% 80px; }
.admin-bar .blog-archive-hero { margin-top: -74px; padding-top: calc(74px + 52px); }
.blog-archive-hero-inner { max-width: 720px; }
.blog-archive-hero .section-tag { color: var(--light); }
.archive-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem,4vw,3.2rem); font-weight: 900; color: var(--white); margin: 12px 0 16px; }
.blog-archive-hero p { font-size: 17px; color: rgba(255,255,255,0.75); }

.blog-archive-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 60px; padding: 72px 6%; align-items: start; }
.blog-archive-main { min-width: 0; }

.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.blog-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid rgba(77,166,216,0.12); transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(26,58,110,0.12); }
.blog-card-img-link { display: block; }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.blog-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: var(--off); color: var(--navy); padding: 4px 10px; border-radius: 100px; text-decoration: none; }
.blog-card-date { font-size: 12px; color: var(--muted); }
.blog-card-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.blog-card-title a { color: var(--navy); text-decoration: none; transition: color .2s; }
.blog-card-title a:hover { color: var(--blue); }
.blog-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.blog-card-read-more { font-size: 13px; font-weight: 600; color: var(--sky); text-decoration: none; transition: color .2s; }
.blog-card-read-more:hover { color: var(--navy); }

.blog-pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid rgba(77,166,216,0.25); font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; transition: background .2s, color .2s; }
.blog-pagination .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.blog-pagination .page-numbers:hover { background: var(--off); }
.blog-pagination .prev, .blog-pagination .next { width: auto; padding: 0 16px; }

.no-posts { text-align: center; padding: 80px 0; }
.no-posts h2 { font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 12px; }
.no-posts p { color: var(--muted); margin-bottom: 28px; }


/* ══════════════════════════════════════════
   BLOG — SINGLE POST
══════════════════════════════════════════ */
.blog-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 60px; padding: 36px 6% 80px; align-items: start; max-width: 1400px; margin: 0 auto; }
.blog-main { min-width: 0; }
.blog-hero-img { border-radius: 20px; overflow: hidden; margin-bottom: 40px; max-height: 480px; }
.blog-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-post-inner { }
.blog-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.blog-meta a { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: var(--off); color: var(--navy); padding: 4px 12px; border-radius: 100px; text-decoration: none; }
.blog-category { display: flex; gap: 6px; }
.blog-date, .blog-author { font-size: 13px; color: var(--muted); }
.blog-post-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,4vw,3rem); font-weight: 900; color: var(--navy); line-height: 1.2; margin-bottom: 32px; }
.blog-content { font-size: 16px; line-height: 1.85; color: var(--text); }
.blog-content p { margin-bottom: 20px; }
.blog-content h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--navy); margin: 40px 0 16px; }
.blog-content h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin: 32px 0 14px; }
.blog-content img { max-width: 100%; border-radius: 12px; margin: 24px 0; }
.blog-content blockquote { border-left: 4px solid var(--sky); padding: 16px 24px; background: var(--off); border-radius: 0 12px 12px 0; margin: 28px 0; font-style: italic; color: var(--navy); font-size: 1.05rem; }
.blog-content ul, .blog-content ol { padding-left: 24px; margin-bottom: 20px; }
.blog-content ul { list-style: disc !important; }
.blog-content ol { list-style: decimal !important; }
.blog-content li { margin-bottom: 8px; }
.blog-content a { color: var(--blue); }

.blog-post-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(77,166,216,0.2); }
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.blog-tag { font-size: 12px; font-weight: 600; color: var(--sky); border: 1.5px solid rgba(77,166,216,0.35); padding: 5px 14px; border-radius: 100px; text-decoration: none; transition: background .2s, color .2s; }
.blog-tag:hover { background: var(--sky); color: var(--white); }

.blog-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.post-nav-link { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--off); border-radius: 12px; text-decoration: none; transition: background .2s; }
.post-nav-link:hover { background: rgba(77,166,216,0.1); }
.post-nav-next { text-align: right; }
.nav-arrow { font-size: 20px; color: var(--sky); }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.nav-title { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.3; }


/* ══════════════════════════════════════════
   SIDEBAR (shared — single & archive)
══════════════════════════════════════════ */
.blog-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 90px; }
.sidebar-widget { background: var(--off); border-radius: 16px; padding: 24px; }
.widget-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid rgba(77,166,216,0.2); }
.recent-posts { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.recent-posts li a { display: flex; gap: 12px; text-decoration: none; align-items: flex-start; }
.recent-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-info { display: flex; flex-direction: column; gap: 3px; }
.recent-title { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.3; transition: color .2s; }
.recent-posts li a:hover .recent-title { color: var(--blue); }
.recent-date { font-size: 11px; color: var(--muted); }
.sidebar-cats { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-cats a { font-size: 14px; color: var(--muted); text-decoration: none; display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(77,166,216,0.1); transition: color .2s; }
.sidebar-cats a:hover { color: var(--navy); }
.sidebar-cats span { font-size: 12px; background: rgba(77,166,216,0.15); color: var(--navy); padding: 2px 8px; border-radius: 100px; }
.sidebar-cta { background: var(--navy); }
.sidebar-cta h4 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 18px; }


/* ══════════════════════════════════════════
   RESPONSIVE — Blog
══════════════════════════════════════════ */
@media(max-width:1000px) {
  .blog-wrap, .blog-archive-wrap { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  .blog-post-nav { grid-template-columns: 1fr; }
  .blog-archive-hero { padding: calc(74px + 32px) 5% 60px; }
}

/* ─────────────────────────────────────────────
   GUTENBERG BLOCK STYLES
   ───────────────────────────────────────────── */

/* Base content area for page.php */
.entry-content,
.page-content-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
}

/* Headings inside Gutenberg content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    line-height: 1.25;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.entry-content h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.entry-content h4 { font-size: 1.1rem; }

/* Paragraphs */
.entry-content p { margin-bottom: 1.25em; }

/* Lists — use !important to beat WP core block library reset */
.entry-content ul,
.entry-content ol {
    padding-left: 1.75em;
    margin-bottom: 1.25em;
}
.entry-content ul,
.entry-content ul.wp-block-list { list-style: disc !important; padding-left: 1.75em !important; }
.entry-content ol { list-style: decimal !important; }
.entry-content ul ul { list-style: circle !important; }
.entry-content li,
.entry-content .wp-block-list li { margin-bottom: 0.5em; }

/* Separator */
.entry-content .wp-block-separator {
    border: none;
    border-top: 2px solid rgba(77,166,216,0.2);
    margin: 2.5em 0;
}
.entry-content .wp-block-separator.is-style-wide { width: 100%; }
.entry-content .wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
    line-height: 1;
    height: auto;
}
.entry-content .wp-block-separator.is-style-dots::before {
    content: '···';
    color: var(--blue);
    font-size: 1.5em;
    letter-spacing: 0.5em;
}

/* Buttons */
.entry-content .wp-block-button__link {
    background: var(--navy);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s;
}
.entry-content .wp-block-button__link:hover { background: var(--blue); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--navy);
    color: var(--white);
}
.entry-content .wp-block-buttons { margin-bottom: 1.5em; }

/* Columns */
.entry-content .wp-block-columns {
    display: flex;
    gap: 36px;
    margin-bottom: 2em;
    flex-wrap: wrap;
}
.entry-content .wp-block-column { flex: 1 1 200px; min-width: 0; }

/* Cover / hero blocks */
.entry-content .wp-block-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2em;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.entry-content .wp-block-cover__inner-container { padding: 40px; }

/* Quote */
.entry-content blockquote,
.entry-content .wp-block-quote {
    border-left: 4px solid var(--blue);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--off);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--navy);
}
.entry-content .wp-block-quote p { margin-bottom: 0.25em; }
.entry-content .wp-block-quote cite {
    font-size: 13px;
    font-style: normal;
    color: var(--muted);
    font-weight: 600;
}

/* Pullquote */
.entry-content .wp-block-pullquote {
    border-top: 3px solid var(--navy);
    border-bottom: 3px solid var(--navy);
    padding: 2em 1em;
    text-align: center;
    margin: 2em 0;
}
.entry-content .wp-block-pullquote blockquote {
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;
}
.entry-content .wp-block-pullquote p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--navy);
    margin-bottom: 0.5em;
}

/* Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.entry-content figure { margin-bottom: 1.5em; }
.entry-content figcaption {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 6px;
}
.entry-content .wp-block-image.alignwide,
.entry-content .wp-block-image.alignfull { margin-left: -6%; margin-right: -6%; }
.entry-content .wp-block-image.alignfull img { border-radius: 0; }

/* Group / container */
.entry-content .wp-block-group {
    margin-bottom: 2em;
}
.entry-content .has-background {
    padding: 2em;
    border-radius: 12px;
}

/* Table */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 15px;
}
.entry-content th {
    background: var(--navy);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.entry-content td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(77,166,216,0.15);
    color: var(--dark);
}
.entry-content tr:nth-child(even) td { background: var(--off); }

/* Responsive columns */
@media (max-width: 640px) {
    .entry-content .wp-block-columns { flex-direction: column; gap: 16px; }
}
