/* ==========================================
   1. CSS VARIABLES & BASE 
   ========================================== */
:root {
  --primary-brown: #3D1B02;
  --deep-brown: #251001;
  --secondary-brown: #572A08;
  --gold: #E89A0C;
  --light-gold: #F3C15C;
  --cream: #f9e9c5;
  --light-cream: #faf4e7;
  --white: #FFFFFF;
  --text-dark: #2B1D14;
  --text-muted: #665548;
  --border: #E8DCCB;
  --card-placeholder: #F5EEE2;
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 12px rgba(43, 29, 20, 0.05);
  --shadow-md: 0 8px 24px rgba(43, 29, 20, 0.08);
  --shadow-hover: 0 12px 32px rgba(43, 29, 20, 0.12);
  --transition-fast: 0.25s ease;
  --transition-normal: 0.35s ease;
  --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--light-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

/* ==========================================
   2.  UTILITIES & LAYOUT
   ========================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-family: 'Georgia', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 32px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================
   SECTION HEADING DECORATION
   ========================================== */

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-heading .section-title {
  margin-bottom: 10px;
}

/*  single dot */
.section-heading .section-title::after {
  display: none;
}

.heading-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.heading-line {
  width: 55px;
  height: 1px;
  background-color: var(--gold);
}

.heading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
  flex-shrink: 0;
}

.heading-center {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--gold);
  flex-shrink: 0;
}

.how-we-work .section-title {
  color: var(--white);
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary-brown);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-brown);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--cream);
  border-color: var(--primary-brown);
  transform: translateY(-2px);
}

.btn-donate {
  background-color: var(--gold);
  color: var(--deep-brown);
  font-weight: 700;
  padding: 12px 28px;
  box-shadow: 0 4px 14px rgba(232, 154, 12, 0.3);
}

.btn-donate:hover {
  background-color: #d68b07;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 154, 12, 0.4);
}

/* ==========================================
   ORNAMENTAL CTA DIVIDER
   ========================================== */

.cta-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
}

/* Main center dot */

.circle-cta {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--deep-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
  border: none;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* Small dots */

.small-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
  flex-shrink: 0;
}

/* Lines */

.dot-line {
  width: 70px;
  height: 1px;
  background-color: var(--gold);
  flex-shrink: 0;
}

/* Spacing */

.dot-line:first-child {
  margin-right: 8px;
}

.dot-line:last-child {
  margin-left: 8px;
}

.small-dot:first-of-type {
  margin-right: 5px;
}

.small-dot:last-of-type {
  margin-left: 5px;
}

/* Hover */

.card:hover .circle-cta,
.circle-cta:hover {
  transform: scale(1.1);
  background-color: #d68b07;
  box-shadow: 0 4px 12px rgba(232, 154, 12, 0.35);
}

.cta-dots:hover .small-dot {
  background-color: #d68b07;
}

.cta-dots:hover .dot-line {
  background-color: #d68b07;
}

/* Mobile */

@media (max-width: 600px) {
  .dot-line {
    width: 45px;
  }

  .small-dot {
    width: 6px;
    height: 6px;
  }

  .circle-cta {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

/* ==========================================
   3. HEADER & DECORATIVE TOP WAVE
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(252, 248, 242, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header::before {
  content: '';
  display: block;
  width: 100%;
  height: 14px;
  background: linear-gradient(90deg, 
    #E89A0C 0%, 
    #F3C15C 25%, 
    #E89A0C 50%, 
    #6B2F00 75%, 
    #E89A0C 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 60%, 75% 100%, 50% 50%, 25% 100%, 0 40%);
}

.site-header.sticky {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-family: 'Georgia', serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--primary-brown);
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Navigation Container */
.main-nav ul {
  display: flex;
  align-items: center; /* Centers all items vertically */
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  display: flex;
  align-items: center; /* Keeps li content vertically centered */
}

/* Regular Nav Links */
.main-nav a:not(.btn-donate) {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
  line-height: 1;
}

.main-nav a:not(.btn-donate).active,
.main-nav a:not(.btn-donate):hover {
  color: var(--gold);
}

.main-nav a:not(.btn-donate).active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--gold);
  border-radius: 2px;
}
.mobile-nav-toggle {
  display: none; 
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--primary-brown);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 102;
  transition: color var(--transition-fast);
}

.mobile-nav-toggle:hover {
  color: var(--gold);
}

/* Donate Button */
.btn-donate {
  background-color: var(--gold);
  color: var(--deep-brown);
  font-weight: 700;
  padding: 8px 20px; /* Adjusts top/bottom height to match text balance */
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(232, 154, 12, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

/* ==========================================
   4. HERO SECTION
   ========================================== */
.hero {
  background-color: var(--light-cream);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 450px;
  height: 120%;
  background: radial-gradient(circle at 30% 40%, rgba(232, 154, 12, 0.08), transparent 70%),
              radial-gradient(circle at 10% 20%, rgba(107, 47, 0, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 540px;
}

.hero-title {
  font-family: 'Georgia', serif;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 18px 0;
}

.hero-title .highlight {
  color: var(--gold);
  display: block;
}

.hero-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.02) brightness(0.98);
}

/* ==========================================
   5. CARDS & GRID SECTIONS
   ========================================== */
.card-grid {
  display: grid;
  gap: 20px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(232, 154, 12, 0.4);
}

.card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.card-title {
  font-family: 'Georgia', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.card-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.card-placeholder {
  background-color: var(--card-placeholder);
  border: 1px dashed var(--border);
  justify-content: center;
  min-height: 220px;
}

.placeholder-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--secondary-brown);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ==========================================
   6. HOW WE WORK
   ========================================== */
.how-we-work {
  background-color: var(--primary-brown);
  padding: 60px 0;
  position: relative;
}

.how-we-work .card {
  background-color: var(--white);
  border: none;
}

.how-we-work .card-title {
  color: var(--text-dark);
}

/* ==========================================
   7. STORIES & MEDIA CENTRE
   ========================================== */
.stories-media-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.tabs-nav {
  display: inline-flex;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 20px;
  justify-content: center;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background-color: var(--gold);
  color: var(--deep-brown);
  box-shadow: 0 2px 8px rgba(232, 154, 12, 0.3);
}

.media-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
  display: block;
}

/* ==========================================
   8. WHO LEADS AND SERVE SECTION
   ========================================== */

.voices-container {
  padding: 50px 20px;
  text-align: center;
  transition: background-color 0.4s ease, color 0.4s ease;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.voices-container.theme-red {
  background-color: #ba7a02;
  color: #ffffff;
}

.voices-container.theme-gray {
  background-color: #f4f4f5;
  color: #222222;
}

.voices-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.voices-tabs {
  display: inline-flex;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 35px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.theme-gray .voices-tabs {
  background-color: #e2e2e5;
}

.voices-container.theme-red .tab-btn.active {
  background-color: #ffffff;
  color: #f0ad26;
}

.voices-container.theme-gray .tab-btn.active {
  background-color: #f0ae29;
  color: #ffffff;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  gap: 15px;
  margin-bottom: 30px;
}

.nav-arrow {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: inherit;
  cursor: pointer;
  padding: 10px 15px;
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
  flex-shrink: 0; /* Keeps arrows fixed size */
}

.nav-arrow:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* FIX: 'safe center' and flex-shrink: 0 prevent the 1st photo from hiding/clipping */
.thumbnails-container {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: safe center; 
  overflow-x: auto;
  padding: 10px 15px;
  scrollbar-width: none;
  width: 100%;
}

.thumbnails-container::-webkit-scrollbar {
  display: none;
}

.thumb-item {
  width: 110px;
  height: 135px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  filter: blur(2px) grayscale(60%);
  opacity: 0.55;
  transform: scale(0.92);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  flex-shrink: 0; /* Prevents flexbox from squishing thumbnails on small screens */
}

.thumb-item:hover {
  opacity: 0.8;
  filter: blur(1px) grayscale(20%);
}

.thumb-item.active {
  filter: blur(0) grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.theme-gray .thumb-item.active {
  border-color: #d32228;
}

.quote-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
}

.quote-text {
  font-size: 1.15rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 15px;
  transition: opacity 0.3s ease;
}

.quote-author {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

/* ==========================================
   9. CONTACT US & FORM SECTION
   ========================================== */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
}

.contact-info {
  background-color: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  color: var(--gold);
  font-size: 18px;
  margin-top: 2px;
}

.info-text {
  font-size: 13.5px;
  color: var(--text-dark);
  line-height: 1.5;
}

.contact-form-container {
  background-color: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.contact-form-container h3 {
  font-family: 'Georgia', serif;
  font-size: 20px;
  margin: 0 0 20px 0;
  color: var(--text-dark);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--white);
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 154, 12, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  margin-bottom: 16px;
}

.btn-submit {
  width: 100%;
  background-color: var(--gold);
  color: var(--deep-brown);
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(232, 154, 12, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-submit:hover {
  background-color: #d68b07;
  transform: translateY(-1px);
}

#form-message {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  display: none;
}

#form-message.success,
#form-message.error {
  display: block;
}

/* ==========================================
   10. FLOATING BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--deep-brown);
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #d68b07;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   11. FOOTER
   ========================================== */
.site-footer {
  background-color: var(--secondary-brown, #1A120C);
  color: #FFFFFF;
  padding: 50px 0 24px 0;
  border-top: 3px solid var(--gold, #C59B27);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-col h5 {
  font-family: 'Georgia', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold, #C59B27);
  margin-bottom: 18px;
  line-height: 1.2;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--transition-fast, 0.2s ease);
}

.footer-col ul a:hover {
  color: var(--gold, #C59B27);
  text-decoration: none;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  transition: all var(--transition-fast, 0.2s ease);
}

.footer-socials a:hover {
  background-color: var(--gold, #C59B27);
  color: var(--secondary-brown, #1A120C);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast, 0.2s ease);
}

.footer-bottom a:hover {
  color: var(--gold, #C59B27);
}

/* ==========================================
   12. RESPONSIVE (ALL DEVICES & ASPECT RATIOS)
   ========================================== */

/* ------------------------------------------
   Ultra-Wide & Large Desktop Screens (1440px+)
   ------------------------------------------ */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-description {
    font-size: 16px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  .hero-title {
    font-size: 54px;
  }
}

/* ------------------------------------------
   Laptops & Standard Desktops (1025px - 1280px)
   ------------------------------------------ */
@media (max-width: 1280px) {
  .container {
    padding: 0 20px;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* ------------------------------------------
   Tablets, iPads & Small Laptops (769px - 1024px)
   (e.g., iPad Air, iPad Pro 11", Galaxy Tab)
   ------------------------------------------ */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 38px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stories-media-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* ------------------------------------------
   Medium Tablets & Large Mobile Devices (577px - 768px)
   (e.g., iPad Mini Portrait, Foldables Unfolded, iPhone Pro Max)
   ------------------------------------------ */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .header-inner > .btn-donate {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--light-cream);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    padding: 90px 24px 30px;
    transition: right var(--transition-normal);
    z-index: 101;
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .mobile-only-donate {
    display: block !important;
    width: 100%;
    margin-top: 15px;
  }

  .mobile-only-donate .btn-donate {
    display: flex;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
  }

  .hero-title {
    font-size: 32px;
  }

  .grid-4, .grid-3 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .thumb-item {
    width: 90px;
    height: 115px;
  }
  
  .quote-text {
    font-size: 1rem;
  }

  .carousel-wrapper {
    gap: 8px;
  }

  .nav-arrow {
    padding: 5px 8px;
    font-size: 1.6rem;
  }
}

/* ------------------------------------------
   Standard Smartphones (481px - 576px)
   (e.g., iPhone 14/15/16 Plus, Samsung Galaxy S21/S22/S23 Ultra, Pixel 7/8 Pro)
   ------------------------------------------ */
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section-title {
    font-size: 22px;
  }

  .voices-title {
    font-size: 1.8rem;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* ------------------------------------------
   Compact Smartphones (376px - 480px)
   (e.g., iPhone 12/13/14/15/16 Standard/Pro, Samsung S20/S21/S22)
   ------------------------------------------ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .brand-text h1 {
    font-size: 17px;
  }

  .brand-text span {
    font-size: 9.5px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-info, .contact-form-container {
    padding: 20px;
  }

  .thumb-item {
    width: 75px;
    height: 98px;
  }

  .voices-container {
    padding: 40px 12px;
    min-height: 460px;
  }

  .quote-text {
    font-size: 0.92rem;
  }

  .quote-author {
    font-size: 0.85rem;
  }
}

/* ------------------------------------------
   Extra Small / Legacy Smartphones (<= 375px)
   (e.g., iPhone SE, Galaxy Fold outer screen, older compact models)
   ------------------------------------------ */
@media (max-width: 375px) {
  .brand-logo {
    height: 38px;
  }

  .brand-text h1 {
    font-size: 15px;
  }

  .brand-text span {
    font-size: 8.5px;
  }

  .hero-title {
    font-size: 22px;
  }

  .thumb-item {
    width: 65px;
    height: 85px;
  }

  .tab-btn {
    padding: 6px 14px;
    font-size: 11px;
  }
}

/* ------------------------------------------
   Tall Mobile Aspect Ratios (18:9, 19.5:9, 20:9, 21:9)
   (e.g., Modern iPhones, Samsung Galaxy S series, Sony Xperia)
   ------------------------------------------ */
@media screen and (max-width: 768px) and (min-aspect-ratio: 1/2) {
  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .voices-container {
    padding-top: 35px;
    padding-bottom: 35px;
  }
}

/* ------------------------------------------
   Square & Foldable Aspect Ratios
   (e.g., Samsung Galaxy Z Fold unfolded, iPad 4:3 ratios)
   ------------------------------------------ */
@media screen and (min-width: 540px) and (max-width: 900px) and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    gap: 24px;
  }
}

/* ------------------------------------------
   Landscape Orientation Adjustments (Mobiles)
   ------------------------------------------ */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 30px 0;
  }

  .site-header {
    position: relative;
  }

  .main-nav {
    padding-top: 60px;
  }

  .voices-container {
    min-height: auto;
    padding: 30px 15px;
  }
}