/* Dreamz Foundation - Clean, Consistent Stylesheet
   ================================================
   All fonts loaded locally - no external dependencies
*/

/* Local Font Definitions */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/opensans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/opensans-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Primary Colors */
  --ocean-blue: #1E5F8E;
  --ocean-blue-light: #2d7ab8;
  --ocean-blue-dark: #154563;
  --emerald-green: #27A45D;
  --emerald-green-light: #32c874;
  --emerald-green-dark: #1d7d47;
  
  /* Secondary Colors */
  --warm-gold: #F4A460;
  --warm-gold-light: #f6b77d;
  --warm-gold-dark: #e28a3c;
  --soft-coral: #E07856;
  
  /* Neutral Colors */
  --charcoal: #333333;
  --charcoal-light: #666666;
  --charcoal-lighter: #999999;
  --light-grey: #F5F5F5;
  --white: #FFFFFF;
  --border-grey: #e0e0e0;
  
  /* Theme Application */
  --bg-primary: var(--light-grey);
  --bg-secondary: var(--white);
  --bg-card: var(--white);
  --text-primary: var(--charcoal);
  --text-secondary: var(--charcoal-light);
  --text-muted: var(--charcoal-lighter);
  --border-color: var(--border-grey);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.12);
  
  /* Primary Actions */
  --accent-primary: var(--ocean-blue);
  --accent-secondary: var(--emerald-green);
  
  --nav-bg: var(--white);
  --hero-overlay: rgba(30, 95, 142, 0.8);
  
  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dark Mode */
body.dark-mode {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-card: #333333;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --border-color: #444444;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --nav-bg: #1a1a1a;
  --hero-overlay: rgba(0, 0, 0, 0.7);
}

/* ============================================
   Base Reset & Typography
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  font-size: 0.9375rem; /* 15px */
  line-height: 1.6;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale - Reduced */
h1 {
  font-family: var(--font-primary);
  font-size: 1.75rem; /* 28px */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--font-primary);
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.625rem;
}

h3 {
  font-family: var(--font-primary);
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h4 {
  font-family: var(--font-primary);
  font-size: 1.0625rem; /* 17px */
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   Layout Containers
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  box-shadow: 0 2px 6px var(--shadow-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1.25rem;
  max-width: 100%;
  gap: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo img {
  height: 42px;
  width: 42px;
  border-radius: 6px;
  object-fit: contain;
  padding: 3px;
  background: white;
  border: 1px solid var(--border-grey);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ocean-blue);
  white-space: nowrap;
  font-family: var(--font-primary);
}

body.dark-mode .nav-logo-title {
  color: #ffffff;
}

.nav-logo-tagline {
  font-size: 0.625rem;
  color: var(--text-secondary);
  display: none;
}

@media (min-width: 1200px) {
  .nav-logo-tagline {
    display: block;
  }
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  padding: 0.375rem 0.625rem;
  border-radius: 5px;
  font-weight: 600;
  font-family: var(--font-primary);
  color: var(--text-primary);
  white-space: nowrap;
  font-size: 0.8125rem;
  transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--ocean-blue);
  color: var(--white);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-donate {
  background: var(--emerald-green);
  color: var(--white);
  padding: 0.4375rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  transition: all 0.2s;
}

.btn-donate:hover {
  background: var(--emerald-green-dark);
  transform: translateY(-1px);
}

.theme-toggle {
  padding: 0.375rem;
  border-radius: 50%;
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}

.theme-toggle:hover {
  background: var(--border-grey);
}

.mobile-menu-toggle {
  display: none;
  padding: 0.375rem;
  font-size: 1.25rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 1.5rem;
  animation: fadeInUp 0.8s;
}

.hero h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--white);
}

.hero p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero-tagline {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--warm-gold-light);
  margin-bottom: 0.75rem;
  font-family: var(--font-primary);
  font-weight: 600;
}

/* ============================================
   4 Pillars Slideshow
   ============================================ */
.pillars-slideshow {
  position: relative;
  background: linear-gradient(180deg, #e8f4fc 0%, #f0f9f4 50%, #fef9f3 100%);
  padding: 2.5rem 0;
  overflow: hidden;
}

body.dark-mode .pillars-slideshow {
  background: linear-gradient(180deg, #1a2a3a 0%, #1a2d2a 50%, #2a2520 100%);
}

.slideshow-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 2.5rem;
}

.slideshow-track {
  display: flex;
  transition: transform 0.5s ease-out;
  width: 400%; /* 4 slides x 100% each */
}

.pillar-slide {
  width: 25%; /* Each slide takes 1/4 of track */
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
}

.pillar-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  min-height: 220px;
}

body.dark-mode .pillar-content {
  background: #2a2a2a;
  border-color: rgba(255,255,255,0.05);
}

.pillar-image {
  flex-shrink: 0;
  width: 200px;
  height: 160px;
  border-radius: 0.5rem;
  overflow: hidden;
}

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

.pillar-text {
  flex: 1;
}

.pillar-text h3 {
  color: var(--ocean-blue);
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.pillar-text .pillar-tagline {
  color: var(--warm-gold);
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  font-style: normal;
}

.pillar-text .pillar-desc {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ocean-blue);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.125rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-arrow:hover {
  background: var(--ocean-blue-dark);
  transform: translateY(-50%) scale(1.08);
}

.slide-prev { left: 0; }
.slide-next { right: 0; }

.slideshow-dots {
  text-align: center;
  padding-top: 1.25rem;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: var(--border-grey);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  background-color: var(--ocean-blue);
  width: 28px;
  border-radius: 5px;
}

.dot:hover {
  background-color: var(--ocean-blue-light);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--warm-gold);
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(244, 164, 96, 0.3);
}

.btn-primary:hover {
  background: var(--warm-gold-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--emerald-green);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(39, 164, 93, 0.25);
}

.btn-secondary:hover {
  background: var(--emerald-green-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--ocean-blue);
  color: var(--ocean-blue);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ocean-blue);
  color: var(--white);
}

/* ============================================
   Sections
   ============================================ */
section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ocean-blue);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.gradient-text {
  background: linear-gradient(135deg, var(--ocean-blue), var(--emerald-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Grid System - Consistent Card Layout
   ============================================ */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

/* ============================================
   Cards - Unified Sizing System
   ============================================ */
.card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 3px 10px var(--shadow-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.card-badge {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  background: var(--emerald-green);
  color: var(--white);
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  font-family: var(--font-primary);
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ocean-blue);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.875rem;
  flex-grow: 1;
}

/* ============================================
   Stats Cards
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border-radius: 0.75rem;
  box-shadow: 0 3px 10px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: scale(1.02);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ocean-blue);
  margin-bottom: 0.25rem;
  font-family: var(--font-primary);
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
  font-family: var(--font-primary);
}

.stat-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
  background: var(--bg-secondary);
  padding: 3rem 0;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow-color);
}

.video-container video,
.video-container iframe {
  width: 100%;
  height: auto;
  min-height: 400px;
  display: block;
}

/* ============================================
   Core Values Grid
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

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

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

.value-card {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border-left: 3px solid var(--ocean-blue);
  box-shadow: 0 3px 10px var(--shadow-color);
  transition: transform 0.2s;
}

.value-card:nth-child(even) {
  border-left-color: var(--emerald-green);
}

.value-card:hover {
  transform: translateX(4px);
}

.value-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ocean-blue);
  margin-bottom: 0.375rem;
}

.value-description {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.8125rem;
}

/* ============================================
   Contact & Map
   ============================================ */
.contact-map {
  width: 100%;
  height: 350px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--shadow-color);
  margin-top: 1.5rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--charcoal);
  color: white;
  padding: 2rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  margin-bottom: 0.75rem;
  color: var(--warm-gold);
  font-family: var(--font-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  height: 32px;
  width: 32px;
  border-radius: 5px;
  object-fit: contain;
  background: white;
  padding: 2px;
}

.footer-tagline {
  color: var(--warm-gold-light) !important;
  font-style: italic;
  font-size: 0.8125rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.375rem;
}

.footer-links a {
  opacity: 0.85;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--warm-gold);
}

/* Social Icons - 3 per row */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  max-width: 150px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #555555;
  transition: all 0.2s;
  position: relative;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
  transition: transform 0.2s;
}

.social-icon:hover {
  background: var(--ocean-blue);
  transform: translateY(-2px);
}

.social-icon .tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.social-icon:hover .tooltip {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
  font-size: 0.8125rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--ocean-blue), var(--emerald-green));
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.cta-title {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
  font-family: var(--font-primary);
  font-weight: 700;
}

.cta-description {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Leadership Team Cards
   ============================================ */
#leadershipTeam {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.team-card {
  width: 200px;
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 3px 10px var(--shadow-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  border: 2px solid var(--ocean-blue);
}

.team-name {
  color: var(--ocean-blue);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.team-role {
  display: inline-block;
  background: var(--warm-gold);
  color: var(--charcoal);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-desc {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
  flex-grow: 1;
}

/* ============================================
   Core Focus Box (About page)
   ============================================ */
.core-focus-box {
  background: var(--light-grey);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border-left: 3px solid var(--ocean-blue);
}

body.dark-mode .core-focus-box {
  background: #2a2a2a;
}

.core-focus-box h3 {
  color: var(--ocean-blue);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.core-focus-box ul {
  line-height: 1.8;
  font-size: 0.9375rem;
  list-style-position: inside;
  color: var(--text-primary);
}

/* ============================================
   Dynamic Content Containers
   ============================================ */
#programs-container,
#stories-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

#programs-container .card,
#stories-container .card {
  min-height: 320px;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* ============================================
   Forms
   ============================================ */
.contact-form {
  max-width: 550px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-family: var(--font-primary);
  font-size: 0.875rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-secondary);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--ocean-blue);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   Newsletter Table
   ============================================ */
.newsletter-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--shadow-color);
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.newsletter-table thead {
  background: var(--ocean-blue);
  color: white;
}

.newsletter-table th,
.newsletter-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.newsletter-table tbody tr:hover {
  background: var(--light-grey);
}

.newsletter-table a {
  color: var(--ocean-blue);
  text-decoration: underline;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.6s;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }

.mb-1 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 1.125rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.125rem; }
.mt-4 { margin-top: 1.5rem; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 0.125rem;
  }
  .nav-menu a {
    padding: 0.3125rem 0.5rem;
    font-size: 0.75rem;
  }
  .btn-donate {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.0625rem; }
  
  .nav-container {
    padding: 0.5rem 0.75rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 0.75rem;
    box-shadow: 0 3px 10px var(--shadow-color);
    z-index: 999;
  }
  
  .nav-menu a {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    min-height: 240px;
    background-attachment: scroll;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.875rem;
  }
  
  .hero-tagline {
    font-size: 0.9375rem;
  }
  
  .hero-content {
    padding: 1.25rem 0.75rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .section-subtitle {
    font-size: 0.875rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .nav-logo img {
    height: 36px;
    width: 36px;
  }
  
  .nav-logo-title {
    font-size: 0.9375rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .card-image {
    height: 130px;
  }
  
  .cta-title {
    font-size: 1.25rem;
  }
  
  .cta-description {
    font-size: 0.875rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .video-container video,
  .video-container iframe {
    min-height: 250px;
  }
  
  .pillar-slide {
    padding: 0.5rem 0.5rem;
  }
  
  .pillar-content {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    min-height: auto;
  }
  
  .pillar-image {
    width: 100%;
    height: 160px;
  }
  
  .pillar-text {
    text-align: center;
  }
  
  .pillar-text .pillar-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  
  .pillar-text .btn {
    width: 100%;
  }
  
  .slideshow-wrapper {
    padding: 0 2rem;
  }
  
  .slide-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .slide-prev { left: 0; }
  .slide-next { right: 0; }
  
  #programs-container,
  #stories-container {
    grid-template-columns: 1fr;
  }
  
  .team-card {
    width: 100%;
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.125rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
  
  .pillar-text h3 {
    font-size: 1rem;
  }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-grey);
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: var(--ocean-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ocean-blue-dark);
}

/* ============================================
   Blog Styles
   ============================================ */
.blog-card {
  margin-bottom: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-content {
  line-height: 1.7;
  font-size: 0.9375rem;
}
