/* ============================================
   D.A.R.E. Ministries — Style Sheet
   Color Palette: Warm earthy tones
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #1b3a5c; /* Deep navy blue — trust */
  --color-primary-light: #2a5a8c; /* Lighter blue */
  --color-accent: #d4872e; /* Warm amber/orange — warmth, action */
  --color-accent-dark: #b8711f; /* Darker amber */
  --color-accent-light: #f0a94e; /* Light amber */
  --color-earth: #5c3d2e; /* Rich brown — earth */
  --color-earth-light: #8b6f5e; /* Light brown */
  --color-sand: #f5efe6; /* Warm sand — backgrounds */
  --color-sand-dark: #e8dfd2; /* Darker sand */
  --color-cream: #faf8f4; /* Off-white cream */
  --color-text: #2d2a26; /* Dark warm gray */
  --color-text-light: #5a5650; /* Lighter text */
  --color-white: #ffffff;
  --color-success: #3a7d44; /* Green for active status */
  --color-danger: #b3402e; /* Destructive actions (delete) */
  --color-danger-dark: #93331f; /* Danger hover state */
  --color-status-new-bg: #e8f0fb; /* Roster status badge tints */
  --color-status-contacted-bg: #fdf3e3;
  --color-status-active-bg: #e6f2e8;
  --color-overlay: rgba(27, 58, 92, 0.55); /* Modal backdrop (primary @ 55%) */

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-cream);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--color-primary);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 58, 92, 0.95);
  backdrop-filter: blur(10px);
  padding: 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

.logo-dare {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

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

.nav-donate {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
}

.nav-donate:hover {
  background: var(--color-accent-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    #0d1f33 60%,
    var(--color-earth) 100%
  );
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 135, 46, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(42, 90, 140, 0.2) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-image {
  max-width: 960px;
  width: 100%;
  height: auto;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-size: 4rem;
  color: var(--color-white);
  margin-bottom: 16px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-accent-light);
  font-family: var(--font-heading);
  font-style: italic;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-large {
  padding: 18px 48px;
  font-size: 1.15rem;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-primary);
  padding: 32px 0;
}

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

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent-light);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* --- Impact Counter Section --- */
.impact-counter {
  background: var(--color-accent);
  background: linear-gradient(135deg, var(--color-earth) 0%, var(--color-primary) 100%);
  padding: 72px 0 56px;
}

.impact-counter .section-header h2 {
  color: var(--color-white);
}

.impact-counter .section-divider {
  background: var(--color-accent-light);
}

.impact-counter .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
  margin: 40px 0 32px;
}

.impact-stat {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

.impact-stat:hover {
  background: rgba(255, 255, 255, 0.14);
}

.impact-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-accent-light);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.impact-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.impact-note {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .impact-number {
    font-size: 2.2rem;
  }
}

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

/* --- About Section --- */
.about {
  background: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-text h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--color-accent-dark);
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-text blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-sand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.about-image {
  position: sticky;
  top: 100px;
}

.about-logo {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.image-placeholder {
  background: var(--color-sand);
  border: 2px dashed var(--color-sand-dark);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  color: var(--color-earth-light);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.placeholder-icon {
  opacity: 0.4;
}

/* --- Services/What We Do --- */
.what-we-do {
  background: var(--color-sand);
}

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

.service-card {
  background: var(--color-white);
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Projects Section --- */
.projects {
  background: var(--color-cream);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.project-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
  transition: box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
}

.project-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-badge.active {
  background: rgba(58, 125, 68, 0.1);
  color: var(--color-success);
}

.project-detail {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

.projects-cta {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

/* --- Gallery Section --- */
.gallery {
  background: var(--color-sand);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-placeholder {
  background: var(--color-sand-dark);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-earth-light);
  font-size: 0.9rem;
  font-style: italic;
  transition: background 0.3s ease;
}

.gallery-placeholder:hover {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
}

.gallery-note {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Volunteer Section --- */
.volunteer {
  background: var(--color-cream);
}

.volunteer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.volunteer-info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.volunteer-info > p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

.volunteer-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.perk svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* --- Forms --- */
.volunteer-form-container,
.contact-form-container {
  background: var(--color-white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.volunteer-form h4,
.contact-form h4 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--color-primary);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-sand-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-cream);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 135, 46, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-earth-light);
}

/* --- Donate Section --- */
.donate {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d1f33 100%);
  text-align: center;
  padding: 100px 0;
}

.donate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.donate-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.donate h2 {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: 20px;
}

.donate p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.donate-options {
  margin-bottom: 24px;
}

.donate-note {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.donate-note a {
  color: var(--color-accent-light);
}

/* --- Contact Section --- */
.contact {
  background: var(--color-sand);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-item div {
  display: flex;
  flex-direction: column;
}

.contact-item strong {
  font-size: 1.05rem;
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.contact-item a {
  font-size: 1rem;
}

/* --- Footer --- */
.footer {
  background: #0d1f33;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.footer-logo .logo-dare {
  font-size: 1.3rem;
}

.footer-about p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-accent-light);
}

.footer h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent-light);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
  color: var(--color-accent-light);
}

.footer-partners p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-affiliation {
  margin-top: 8px;
  font-style: italic;
  color: var(--color-accent-light);
  font-size: 0.85rem !important;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Our Story / History Timeline --- */
.history {
  background: var(--color-sand);
}

.history-comic {
  max-width: 860px;
  margin: 0 auto 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.history-comic img {
  width: 100%;
  height: auto;
  display: block;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto 56px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-dark));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 44px);
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 44px);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
  z-index: 1;
}

.timeline-year {
  display: block;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.timeline-card {
  background: var(--color-white);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 380px;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.timeline-card:hover {
  box-shadow: var(--shadow-lg);
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.timeline-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.history-closing {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 40px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.history-closing p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.6;
}

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    position: static;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 60px;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-card {
    max-width: 100%;
  }

  .volunteer-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .donate h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .volunteer-form-container,
  .contact-form-container {
    padding: 24px;
  }
}

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}
.fade-in-delay-2 {
  animation-delay: 0.2s;
}
.fade-in-delay-3 {
  animation-delay: 0.3s;
}

/* --- Form Success State --- */
.form-success {
  text-align: center;
  padding: 40px 24px;
}

.form-success h4 {
  color: var(--color-success);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--color-text-light);
}

/* --- Blog/Updates Section --- */
.updates {
  background: var(--color-cream);
}

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

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 24px;
}

.post-date {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.post-content h3 {
  font-size: 1.15rem;
  margin: 8px 0 12px;
}

.post-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Gallery image styles */
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-caption {
  display: block;
  padding: 8px 12px;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  text-align: center;
}

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