/* ============================================================
   India Sponsorship NGO Website - Main Stylesheet
   Theme: Sky Blue #29ABE2 | Yellow #FFC600 | Royal Blue #2B60C4 | Dark Navy #000080
   ============================================================ */

/* ─── FONTS ─────────────────────────────────────────────────── */
/* Fonts are loaded via <link> in header.php (non-blocking).
   The @import below is a FALLBACK only — browsers that already
   cached the preload link will ignore it. */
/* @import removed intentionally — use header.php preload links */

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Primary: Sky Blue */
  --primary:        #29ABE2;
  --primary-dark:   #1A8FC4;
  --primary-light:  #5BC4EE;
  /* Secondary: Dark Navy */
  --secondary:      #000080;
  --secondary-dark: #000060;
  --secondary-light:#2B60C4;
  /* Accent: Yellow */
  --accent:         #FFC600;
  --accent-dark:    #D4A000;
  --accent-light:   #FFD740;
  /* Supporting */
  --royal-blue:     #2B60C4;
  --royal-blue-dark:#1E4A9E;
  --green:          #27AE60;
  --bg-light:       #F0F6FD;
  --bg-section:     #E8F4FB;
  --text-dark:      #000080;
  --text-mid:       #2D3A6B;
  --text-light:     #6278A8;
  --white:          #FFFFFF;
  --border-color:   #C8D8EE;
  --shadow-sm:      0 2px 8px rgba(0,0,128,.08);
  --shadow-md:      0 4px 20px rgba(0,0,128,.13);
  --shadow-lg:      0 8px 40px rgba(0,0,128,.18);
  --shadow-primary: 0 6px 24px rgba(41,171,226,.35);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --transition:     all .3s ease;
  --font-heading:   'urbane-rounded', 'Nunito', 'Poppins', system-ui, sans-serif;
  --font-body:      'urbane-rounded', 'Nunito', 'Poppins', system-ui, sans-serif;
  --header-height:  90px;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.25; color: var(--text-dark); }

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; }
.container-narrow { max-width: 820px; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--text-mid); }

.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 900; color: var(--secondary); margin-bottom: .5rem; text-balance; }
.section-subtitle { font-size: 1.05rem; color: var(--text-mid); margin-bottom: 2.5rem; max-width: 600px; }
.section-label {
  display: inline-block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent-dark); margin-bottom: .75rem;
}
.section-label::before {
  content: ''; display: inline-block; width: 24px; height: 3px;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 13px 28px; border-radius: var(--radius-md);
  font-size: .95rem; font-weight: 700; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  text-align: center; line-height: 1;
}
.btn-primary {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-primary);
}
.btn-secondary {
  background: var(--secondary); color: var(--white); border-color: var(--secondary);
}
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-outline-white {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover { background: var(--white); color: var(--secondary); }
.btn-white { background: var(--white); color: var(--secondary); border-color: var(--white); }
.btn-white:hover { background: var(--bg-light); color: var(--secondary-dark); }
.btn-sm { padding: 9px 20px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-accent { background: var(--accent); color: var(--secondary); border-color: var(--accent); font-weight: 800; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--secondary); transform: translateY(-2px); }

/* ─── TOP BAR ───────────────────────────────────────────────── */
.top-bar {
  background: var(--secondary); color: rgba(255,255,255,.88);
  font-size: .82rem; padding: 7px 0;
}
.top-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.top-bar-left { display: flex; align-items: center; gap: 20px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar a { color: rgba(255,255,255,.8); }
.top-bar a:hover { color: var(--accent); }
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-item svg { width: 14px; height: 14px; opacity: .75; }
.social-icons-top { display: flex; gap: 8px; }
.social-icons-top a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  color: rgba(255,255,255,.8); font-size: .75rem;
}
.social-icons-top a:hover { background: var(--accent); color: var(--secondary); }

/* ─── HEADER ────────────────────────────────────────────────── */
/* ── Site Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #ffffff;
  box-shadow: 0 4px 28px rgba(0,0,128,.14);
  transition: box-shadow .3s;
}
/* Premium gradient bottom border */
.site-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #000080 0%, #2B60C4 38%, #FFCC00 68%, #FF6B00 100%);
}
.site-header.scrolled { box-shadow: 0 6px 36px rgba(0,0,128,.2); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); gap: 20px;
}

/* ── Logo (40% larger) ─────────────────────────────────────── */
.logo-wrap { display: flex; align-items: center; gap: 14px; flex-shrink: 0; text-decoration: none; }
.logo-img { height: 73px; width: auto; }          /* 52 × 1.4 ≈ 73px */
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-title {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900;
  color: var(--secondary); line-height: 1; letter-spacing: .03em;
}
.logo-tagline {
  font-size: .75rem; color: var(--primary);
  text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; margin-top: 4px;
}

/* ─── NAV ───────────────────────────────────────────────────── */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 13px;
  font-size: .88rem; font-weight: 700;
  color: #0A0A40;
  letter-spacing: .03em;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  transition: background .2s, color .2s, box-shadow .2s;
}
/* Hover: deep navy bg + gold text */
.nav-item:hover > .nav-link {
  color: #FFCC00;
  background: #000080;
  box-shadow: 0 4px 18px rgba(0,0,128,.28);
}
/* Active: same deep navy bg + gold text as hover */
.nav-link.active {
  color: #FFCC00;
  background: #000080;
  box-shadow: 0 4px 18px rgba(0,0,128,.28);
}
/* Remove underline indicator — not needed with solid bg active style */
.nav-link::after { content: none; }
.nav-link.active::after { content: none; }
.nav-item:hover > .nav-link::after { content: none; }
.nav-link .chevron { width: 13px; height: 13px; transition: transform .2s; flex-shrink: 0; }
.nav-item:hover .chevron { transform: rotate(180deg); }

/* ── Dropdown ──────────────────────────────────────────────── */
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 224px;
  background: #ffffff;
  border: 1.5px solid rgba(0,0,128,.12);
  border-top: 3px solid #000080;
  border-radius: 0 0 14px 14px;
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  box-shadow: 0 18px 52px rgba(0,0,128,.18), 0 2px 8px rgba(0,0,0,.06);
  z-index: 900;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center;
  padding: 10px 20px;
  font-size: .875rem; font-weight: 600;
  color: #1a1a3e;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s, padding-left .15s;
}
.dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(41,171,226,.10) 0%, rgba(255,204,0,.07) 100%);
  color: #000080;
  border-left-color: #FFCC00;
  padding-left: 26px;
}
.dropdown-menu .divider { height: 1px; background: rgba(0,0,128,.1); margin: 6px 12px; }

/* ── Sub-menu (Reports) ────────────────────────────────────── */
.dropdown-submenu-wrap { position: relative; }
.dropdown-submenu-trigger {
  display: flex; align-items: center;
  padding: 10px 20px;
  font-size: .875rem; font-weight: 600;
  color: #1a1a3e; cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s, padding-left .15s;
}
.dropdown-submenu-trigger:hover {
  background: linear-gradient(90deg, rgba(41,171,226,.10) 0%, rgba(255,204,0,.07) 100%);
  color: #000080; border-left-color: #FFCC00; padding-left: 26px;
}
.dropdown-submenu {
  position: absolute; top: 0; left: 100%;
  min-width: 224px; background: #ffffff;
  border: 1.5px solid rgba(0,0,128,.12);
  border-top: 3px solid #FFCC00;
  border-radius: 0 14px 14px 0;
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateX(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: 12px 18px 44px rgba(0,0,128,.16);
  z-index: 950;
}
.dropdown-submenu a {
  display: flex; align-items: center;
  padding: 10px 20px;
  font-size: .875rem; font-weight: 600;
  color: #1a1a3e;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s, padding-left .15s;
}
.dropdown-submenu a:hover {
  background: rgba(255,204,0,.12); color: #000080;
  border-left-color: #000080; padding-left: 26px;
}
.dropdown-submenu-wrap:hover .dropdown-submenu { opacity: 1; visibility: visible; transform: translateX(0); }

/* ── Mega Menu (Programs) ──────────────────────────────────── */
.mega-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 640px;
  background: #ffffff;
  border: 1.5px solid rgba(0,0,128,.12);
  border-top: 3px solid #000080;
  border-radius: 0 0 16px 16px;
  display: grid; grid-template-columns: repeat(3,1fr);
  padding: 28px 0 18px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  box-shadow: 0 22px 64px rgba(0,0,128,.18), 0 2px 8px rgba(0,0,0,.06);
  z-index: 900;
}
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-col {
  padding: 0 26px 8px;
  border-right: 1px solid rgba(0,0,128,.07);
}
.mega-col:last-child { border-right: none; }
.mega-col h6 {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  color: #000080;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid #FFCC00;
}
.mega-col a {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 0;
  font-size: .875rem; font-weight: 600;
  color: #1a1a3e;
  border-bottom: 1px solid rgba(0,0,128,.06);
  transition: color .15s, padding-left .15s;
}
.mega-col a::before {
  content: '›'; color: #FFCC00;
  font-size: 1.05rem; font-weight: 900;
  opacity: 0; transition: opacity .15s, transform .15s;
  transform: translateX(-4px); flex-shrink: 0;
}
.mega-col a:hover { color: #000080; padding-left: 8px; }
.mega-col a:hover::before { opacity: 1; transform: translateX(0); }
.mega-col a:last-child { border-bottom: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--secondary); border-radius: 2px; transition: var(--transition); }

/* ─── MOBILE NAV ────────────────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,100,.97); overflow-y: auto; padding: 20px;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav-close { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
.mobile-nav-links { flex: 1; }
.mobile-nav-links a {
  display: block; padding: 14px 0; font-size: 1.05rem; font-weight: 600;
  color: rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav-links a:hover { color: var(--accent); }
.mobile-sub { padding-left: 16px; }
.mobile-sub a { font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.7); }
.mobile-nav-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 620px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--secondary);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,100,.90) 0%, rgba(43,96,196,.70) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 680px; padding: 80px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,198,0,.18); border: 1px solid rgba(255,198,0,.55);
  color: var(--accent); font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; padding: 6px 14px; border-radius: 30px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900; color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.88); margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }
.hero-image-side { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; overflow: hidden; display: none; }

/* ─── STATS BAND ────────────────────────────────────────────── */
.stats-band { background: var(--royal-blue); padding: 20px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stat-item {
  text-align: center; padding: 12px 20px;
  border-right: 1px solid rgba(255,255,255,.25);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.88); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* ─── SECTIONS ──────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-navy { background: var(--secondary); color: var(--white); }
.section-navy .section-title { color: var(--white); }
.section-navy p { color: rgba(255,255,255,.82); }
.section-pattern {
  background-color: var(--bg-section);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2329ABE2' fill-opacity='0.07'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .section-subtitle { margin: 0 auto 2.5rem; }

/* ─── PROGRAM CARDS ─────────────────────────────────────────── */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); display: flex; flex-direction: column;
  border: 1px solid var(--border-color);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.program-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.program-card:hover .program-card-img img { transform: scale(1.06); }
.program-card-icon {
  position: absolute; bottom: -20px; right: 20px;
  width: 48px; height: 58px; background: var(--primary);
  border-radius: 50%; display: grid; place-items: center;
  color: var(--white); font-size: 1.2rem; box-shadow: var(--shadow-sm);
  border: 3px solid var(--white);
}
.program-card-body { padding: 20px 20px; flex: 1; display: flex; flex-direction: column; }
.program-card-body h3 { font-size: 1.2rem; color: var(--secondary); margin-bottom: 10px; margin-top: 10px; }
.program-card-body p { font-size: .92rem; flex: 1; }
.program-card-footer { padding: 0 24px 24px; }

/* ─── CHILD CARDS ───────────────────────────────────────────── */
.children-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.child-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color); transition: var(--transition);
}
.child-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.child-card-img { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.child-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.child-card:hover .child-card-img img { transform: scale(1.05); }
.child-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: var(--white); font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 30px;
}
.child-card-badge.sponsored { background: var(--royal-blue); }
.child-card-body { padding: 16px; }
.child-card-body h4 { font-size: 1rem; color: var(--secondary); margin-bottom: 4px; }
.child-card-meta { font-size: .82rem; color: var(--text-light); margin-bottom: 10px; }
.child-card-id { font-size: .75rem; color: var(--text-light); }
.child-card-footer { padding: 0 16px 16px; }

/* ─── NEWS CARDS ────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color); transition: var(--transition);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card-img { aspect-ratio: 16/11.7; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 10px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card-cat {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--royal-blue); margin-bottom: 8px;
}
.news-card-body h3 { font-size: 1.05rem; color: var(--secondary); line-height: 1.35; margin-bottom: 10px; flex: 1; }
.news-card-meta { font-size: .8rem; color: var(--text-light); display: flex; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-color); }

/* ─── TEAM CARDS ────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color); transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 16px;
  border: 4px solid var(--primary); padding: 3px;
}
.team-card h4 { font-size: 1.05rem; color: var(--secondary); margin-bottom: 4px; }
.team-card .role { font-size: .85rem; color: var(--royal-blue); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: .88rem; line-height: 1.6; }

/* ─── DONATION FORM ─────────────────────────────────────────── */
.donation-form-wrap { background: var(--white); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.amount-btn {
  padding: 14px 10px; border: 2px solid var(--border-color);
  border-radius: var(--radius-md); background: var(--white);
  font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); text-align: center;
}
.amount-btn:hover, .amount-btn.selected {
  border-color: var(--primary); background: rgba(41,171,226,.10); color: var(--primary);
}
.donation-types { display: flex; gap: 8px; margin-bottom: 20px; }
.donation-type-btn {
  flex: 1; padding: 10px; border: 2px solid var(--border-color);
  border-radius: var(--radius-md); background: var(--white); font-size: .85rem;
  font-weight: 600; cursor: pointer; transition: var(--transition); text-align: center;
}
.donation-type-btn.selected { border-color: var(--secondary); background: var(--secondary); color: var(--white); }

/* ─── FORMS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-group label .required { color: var(--royal-blue); }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border-color);
  border-radius: var(--radius-md); font-size: .95rem; color: var(--text-dark);
  background: var(--white); transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(41,171,226,.15); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.form-check input[type=checkbox] { margin-top: 2px; accent-color: var(--primary); width: 16px; height: 16px; }
.form-check label { font-size: .9rem; }
.form-error { font-size: .82rem; color: var(--royal-blue); margin-top: 4px; }
.form-hint { font-size: .8rem; color: var(--text-light); margin-top: 4px; }

/* ─── GALLERY ───────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(0,0,100,.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-icon { color: var(--accent); font-size: 2rem; }

/* ─── EVENTS ────────────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: 20px; }
.event-card {
  display: flex; gap: 24px; background: var(--white);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
  align-items: flex-start; transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.event-date-box {
  flex-shrink: 0; width: 70px; text-align: center;
  background: var(--royal-blue); color: var(--white);
  border-radius: var(--radius-md); padding: 12px 8px;
}
.event-date-box .day { font-size: 1.8rem; font-weight: 900; line-height: 1; font-family: var(--font-heading); }
.event-date-box .month { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-size: 1.1rem; color: var(--secondary); margin-bottom: 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--text-light); margin-top: 8px; }
.event-meta span { display: flex; align-items: center; gap: 5px; }

/* ─── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color); position: relative;
}
.testimonial-card::before {
  content: '"'; font-family: var(--font-heading); font-size: 6rem;
  color: var(--primary); opacity: .14; position: absolute;
  top: -10px; left: 20px; line-height: 1; pointer-events: none;
}
.testimonial-stars { color: var(--accent); font-size: .9rem; margin-bottom: 10px; }
.testimonial-text { font-style: italic; line-height: 1.7; margin-bottom: 10px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 48px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: .92rem; color: var(--secondary); }
.testimonial-role { font-size: .8rem; color: var(--text-light); }

/* ─── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
  background: var(--secondary);
  padding: 60px 0 48px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,100,.96) 0%, rgba(43,96,196,.85) 100%);
}
.page-header-bg {
  position: absolute; inset: 0; background-size: cover;
  background-position: center; opacity: .20;
}
.page-header-content { position: relative; z-index: 2; }
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: rgba(255,255,255,.4); }
.breadcrumb .current { color: var(--accent); font-weight: 600; }

/* ─── SIDEBAR ───────────────────────────────────────────────── */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.sidebar-widget {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color); margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-size: 1rem; color: var(--secondary); padding-bottom: 12px;
  border-bottom: 2px solid var(--primary); margin-bottom: 16px;
}
.sidebar-post { display: flex; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-color); }
.sidebar-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-post img { width: 70px; height: 55px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.sidebar-post-title { font-size: .85rem; font-weight: 600; color: var(--text-dark); line-height: 1.35; }
.sidebar-post-date { font-size: .75rem; color: var(--text-light); margin-top: 3px; }

/* ─── NEWSLETTER BAR ────────────────────────────────────────── */
.newsletter-section { background: var(--royal-blue); padding: 39px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter-text h3 { font-size: 1.6rem; color: var(--white); margin-bottom: 4px; }
.newsletter-text p { color: rgba(255,255,255,.85); margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 480px; }
.newsletter-form input {
  flex: 1; padding: 14px 18px; border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius-md); background: rgba(255,255,255,.15);
  color: var(--white); font-size: .95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.2); }
.newsletter-form button { flex-shrink: 0; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.82); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo-text {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 900;
  color: var(--white); display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; text-decoration: none;
}
.footer-logo-text .logo-dot {
  width: 10px; height: 10px; background: var(--accent);
  border-radius: 50%; flex-shrink: 0; display: inline-block;
}
.footer-about img.footer-logo { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-about p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.7); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  color: rgba(255,255,255,.8); font-size: .9rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--secondary); transform: translateY(-2px); }
.footer-col h5 { font-size: .95rem; color: var(--white); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.7); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: .88rem; color: rgba(255,255,255,.72); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--accent); }

/* ─── ALERT / FLASH ─────────────────────────────────────────── */
.flash-message {
  padding: 14px 20px; border-radius: var(--radius-md);
  margin-bottom: 20px; font-size: .92rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.flash-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.flash-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.flash-info    { background: #E0F2FE; color: #0369A1; border: 1px solid #7DD3FC; }
.flash-warning { background: #FFF9C4; color: #7A5C00; border: 1px solid var(--accent); }

/* ─── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 30px;
  font-size: .75rem; font-weight: 700;
}
.badge-primary   { background: rgba(41,171,226,.13); color: var(--primary); }
.badge-success   { background: rgba(39,174,96,.12); color: var(--green); }
.badge-warning   { background: rgba(255,198,0,.18); color: #7A5C00; }
.badge-danger    { background: rgba(43,96,196,.13); color: var(--royal-blue); }
.badge-secondary { background: rgba(0,0,128,.10); color: var(--secondary); }

/* ─── LIGHTBOX ──────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15);
  border: none; color: var(--white); font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center; transition: var(--transition);
}
.lightbox-close:hover { background: var(--royal-blue); }

/* ─── IMPACT BAND ───────────────────────────────────────────── */
/* Reduced vertical height by 30%: 64px → 45px */
.impact-band { background: #FFD700; padding: 27px 0; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.impact-item { text-align: center; padding: 14px; border-right: 1px solid rgba(255,255,255,.15); }
.impact-item:last-child { border-right: none; }
.impact-icon { width: 34px; height: 34px; background: rgba(0,0,80,.12); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; color: var(--secondary); font-size: .85rem; }
.impact-num { font-family: var(--font-heading); font-size: 1.32rem; font-weight: 900; color: var(--secondary); }
.impact-label { font-size: .72rem; color: rgba(0,0,0,.65); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* ─── CALL TO ACTION BANNER ─────────────────────────────────── */
.cta-banner {
  background: #FFD700;
  padding: 45px 0; text-align: center;
}
.cta-banner h2 { color: var(--secondary); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; font-weight: 900; }
.cta-banner p { color: rgba(0,0,0,.75); font-size: 1.05rem; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ─── PAGINATION ────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination .page-num {
  padding: 9px 15px; border: 2px solid var(--border-color);
  border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600;
  color: var(--text-mid); transition: var(--transition);
}
.pagination a:hover, .pagination .page-num:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-num.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ─── TABLE ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; width: 100%; }
table.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
table.data-table th { background: var(--secondary); color: var(--white); padding: 12px 16px; font-size: .85rem; text-align: left; }
table.data-table td { padding: 12px 16px; font-size: .88rem; border-bottom: 1px solid var(--border-color); }
table.data-table tr:hover td { background: var(--bg-light); }

/* ─── BACK TO TOP ───────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 46px; height: 46px; background: var(--royal-blue);
  border-radius: 50%; display: grid; place-items: center;
  color: var(--white); font-size: 1.2rem;
  box-shadow: var(--shadow-primary); transition: var(--transition);
  opacity: 0; visibility: hidden;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary); color: var(--accent); transform: translateY(-3px); }

/* ─── TABS ──────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border-color); margin-bottom: 28px; overflow-x: auto; }
.tab-btn {
  padding: 12px 22px; font-size: .9rem; font-weight: 600;
  background: none; border: none; cursor: pointer;
  color: var(--text-light); transition: var(--transition);
  white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { 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; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.fade-up { animation: fadeUp .6s ease-out both; }
.fade-in { animation: fadeIn .5s ease-out both; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (min-width: 992px) {
  .hero-image-side { display: block; }
}

@media (max-width: 991px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .children-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
  .stats-grid > .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.2); }
  .stats-grid > .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .top-bar-left { display: none; }
}

@media (max-width: 767px) {
  :root { --header-height: 68px; }
  .section { padding: 56px 0; }
  .hero { min-height: 520px; }
  .hero-content { padding: 56px 0; }
  .programs-grid { grid-template-columns: 1fr; }
  .children-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .donation-types { flex-wrap: wrap; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .top-bar { display: none; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  /* Why Sponsor full-width: stack image below text on mobile */
  .why-sponsor-grid { grid-template-columns: 1fr !important; }
  .why-sponsor-grid .why-sponsor-img { min-height: 260px; }
}

@media (max-width: 480px) {
  .children-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; }
}

/* ─── PRINT ─────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .back-to-top, .mobile-nav, .newsletter-section { display: none !important; }
  .page-header { background: var(--secondary); -webkit-print-color-adjust: exact; }
}