:root {
  --ink: #102f3f;
  --muted: #5f7580;
  --paper: #f7fbfc;
  --soft: #eaf5f8;
  --line: #d2e5ec;
  --green: #1784b4;
  --green-dark: #075979;
  --blue: #1aa7d6;
  --gold: #1aa7d6;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 47, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(210, 229, 236, 0.86);
  background: rgba(247, 251, 252, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green-dark);
  background: rgba(26, 167, 214, 0.11);
}

a[href="donate.html"],
a[href="volunteer.html"] {
  pointer-events: none !important;
  cursor: not-allowed;
  opacity: 0.55;
}

a.btn[href="donate.html"],
a.btn[href="volunteer.html"] {
  color: var(--muted);
  background: var(--soft);
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--green-dark);
  background: transparent;
  font: inherit;
  font-weight: 700;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  margin-left: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--green-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1,
.page-hero h1,
.section h2,
.intro-band h2,
.video-band h2,
.site-footer h2,
.card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 900px;
  font-size: 4.9rem;
  margin: 0 auto 16px;
  line-height: 1.1;
}

.hero p {
  max-width: 720px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 auto 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.btn.primary {
  color: var(--green-dark);
  background: var(--white);
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn.secondary.dark {
  color: var(--green-dark);
  border-color: rgba(36, 88, 76, 0.32);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

.intro-band {
  padding: 86px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
}

.intro-band h2,
.section h2,
.video-band h2 {
  font-size: 3.65rem;
}

.intro-band p:not(.eyebrow),
.section-copy p,
.page-hero p,
.card p,
.story-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.section {
  padding: 112px 0;
}

.split,
.journey-preview,
.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.section-copy {
  position: relative;
  padding-right: 20px;
}

.feature-list {
  display: grid;
  gap: 20px;
}

.feature-list article,
.card,
.contact-card,
.donation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.feature-list article {
  padding: 36px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-list span {
  display: inline-block;
  color: var(--gold);
  font-weight: 850;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature-list h3,
.card h3,
.contact-card h2,
.donation-card h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.impact-panel {
  padding: 98px 0;
  color: var(--white);
  background: var(--green-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.2);
}

.stats-grid div {
  min-height: 190px;
  padding: 26px;
  background: var(--green-dark);
}

.stats-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.2rem;
  font-weight: 500;
  line-height: 1;
}

.stats-grid span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 750;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding: 20px 22px 20px 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 28px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 9px var(--soft);
}

.timeline span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-band {
  padding: 104px 0;
  background:
    linear-gradient(90deg, rgba(5, 48, 68, 0.9), rgba(5, 48, 68, 0.5)),
    url("../images/web/video-proof.jpg") center/cover;
  color: var(--white);
}

.video-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.play-card {
  display: grid;
  place-items: center;
  width: 148px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
}

.play-card span {
  font-weight: 850;
}

.page-hero {
  padding: 160px 0 80px;
  width: 100%;
  margin-left: 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 48, 68, 0.9), rgba(5, 48, 68, 0.6)),
    var(--soft);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 700px;
}

.page-hero .container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 7vw, 94px);
  align-items: end;
}

.page-hero h1 {
  font-size: 5.4rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 620px;
  margin: 0;
}

.about-page .page-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 48, 68, 0.9), rgba(5, 48, 68, 0.5)),
    url("../images/web/hero-about.jpg");
}

.leadership-page .page-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 48, 68, 0.9), rgba(5, 48, 68, 0.55)),
    url("../images/web/hero-leadership.jpg");
}

.initiatives-page .page-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 48, 68, 0.9), rgba(5, 48, 68, 0.54)),
    url("../images/web/hero-initiatives.jpg");
}

.impact-page .page-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 48, 68, 0.9), rgba(5, 48, 68, 0.5)),
    url("../images/web/hero-impact.jpg");
}

.gallery-page .page-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 48, 68, 0.88), rgba(5, 48, 68, 0.42)),
    url("../images/web/hero-gallery.jpg");
}

.stories-page .page-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 48, 68, 0.9), rgba(5, 48, 68, 0.44)),
    url("../images/web/hero-stories.jpg");
}

.donate-page .page-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 48, 68, 0.9), rgba(5, 48, 68, 0.55)),
    url("../images/web/hero-donate.jpg");
}

.volunteer-page .page-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 48, 68, 0.9), rgba(5, 48, 68, 0.48)),
    url("../images/web/hero-volunteer.jpg");
}

.contact-page .page-hero {
  background-image:
    linear-gradient(90deg, rgba(5, 48, 68, 0.9), rgba(5, 48, 68, 0.5)),
    url("../images/web/hero-contact.jpg");
}

.card-grid,
.gallery-grid,
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card,
.contact-card,
.donation-card {
  padding: 34px;
}

.card h2 {
  font-size: 2.45rem;
}

.quote {
  padding: 64px;
  color: var(--white);
  background: var(--green);
}

.quote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1.1;
}

.leader-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.leader-photo,
.gallery-item {
  min-height: 310px;
  background: var(--soft) center/cover;
}

.photo-founder {
  background-image: linear-gradient(rgba(5, 48, 68, 0.04), rgba(5, 48, 68, 0.16)), url("../images/Vijay paul reddy web.jpg.jpeg");
}

.photo-outreach {
  background-image: linear-gradient(rgba(5, 48, 68, 0.04), rgba(5, 48, 68, 0.16)), url("../images/Niti web.jpg.jpeg");
}

.leader-card div:not(.leader-photo) {
  padding: 26px;
}

.leader-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.role {
  margin: 6px 0 14px;
  color: var(--gold);
  font-weight: 850;
}

.gallery-item {
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  padding: 20px;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.gallery-item span {
  font-weight: 850;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  padding: 24px;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.gallery-lightbox .close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-lightbox .close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-lightbox .nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox .nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-lightbox .nav.prev {
  left: 24px;
}

.gallery-lightbox .nav.next {
  right: 24px;
}

.gallery-one {
  background-image: linear-gradient(rgba(5, 48, 68, 0.04), rgba(5, 48, 68, 0.68)), url("../images/web/gallery-camp.jpg");
}

.gallery-two {
  background-image: linear-gradient(rgba(5, 48, 68, 0.04), rgba(5, 48, 68, 0.68)), url("../images/web/gallery-care.jpg");
}

.gallery-three {
  background-image: linear-gradient(rgba(5, 48, 68, 0.04), rgba(5, 48, 68, 0.68)), url("../images/web/gallery-mission.jpg");
}

.story-copy {
  padding: clamp(26px, 5vw, 46px);
  border-left: 2px solid var(--gold);
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

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

.site-footer {
  padding: 60px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 36px;
}

.site-footer img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.site-footer a {
  display: block;
  width: max-content;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  margin: 8px 0;
}

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

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 6px;
    padding: 14px 12px;
    font-size: 1rem;
  }

  .intro-grid,
  .split,
  .journey-preview,
  .two-column,
  .page-hero .container,
  .contact-grid,
  .video-shell {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .hero {
    min-height: 610px;
  }

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

  .hero p {
    font-size: 1.1rem;
  }

  .intro-band h2,
  .section h2,
  .video-band h2 {
    font-size: 3rem;
  }

  .page-hero h1 {
    font-size: 4rem;
  }

  .section {
    padding: 84px 0;
  }

  .stats-grid strong {
    font-size: 4rem;
  }

  .quote p {
    font-size: 3rem;
  }

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

@media (max-width: 768px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }

  /* Handle inline circular numbered divs */
  div[style*="width: 80px"] {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
  }

  /* Handle inline 2-column image grids */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Handle max-width constraints */
  p[style*="max-width: 700px"],
  div[style*="max-width: 800px"] {
    max-width: 100% !important;
    padding: 0 12px !important;
  }

  /* Adjust inline font sizes */
  h3[style*="font-size: 1.8rem"] {
    font-size: 1.4rem !important;
  }

  h3[style*="font-size: 1.3rem"],
  p[style*="font-size: 1.1rem"],
  summary[style*="font-size: 1.05rem"] {
    font-size: 1rem !important;
  }

  h2[style*="font-size: 2rem"] {
    font-size: 1.6rem !important;
  }

  p[style*="font-size: 3rem"] {
    font-size: 2rem !important;
  }

  /* Details/Summary responsive styling */
  details[style*="padding: 20px"] {
    padding: 16px 0 !important;
  }

  /* Handle auto-fit grids with minmax */
  div[style*="grid-template-columns: repeat(auto-fit, minmax"] {
    gap: 20px !important;
  }

  /* Video responsiveness */
  video {
    max-height: 350px !important;
  }

  .hero-content {
    padding: 30px 24px;
  }

  .page-hero {
    padding: 120px 0 60px;
    min-height: 500px;
    background-attachment: scroll;
  }

  .hero {
    background-attachment: scroll;
  }

  .intro-band h2,
  .section h2,
  .video-band h2 {
    font-size: 2.2rem;
  }

  .card h2 {
    font-size: 1.8rem;
  }

  .feature-list article,
  .card,
  .contact-card,
  .donation-card {
    padding: 24px 18px;
  }

  .leader-card div:not(.leader-photo) {
    padding: 20px;
  }

  .leader-card h2 {
    font-size: 1.5rem;
  }

  .btn {
    min-height: 48px;
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    min-height: 44px;
    padding: 12px 12px;
    font-size: 16px;
  }

  .stats-grid div {
    min-height: 140px;
    padding: 20px 16px;
  }

  .stats-grid strong {
    font-size: 3rem;
  }

  .stats-grid span {
    font-size: 0.85rem;
  }

  .quote {
    padding: 32px 18px;
  }

  .quote p {
    font-size: 1.8rem;
  }

  .play-card {
    width: 100px;
  }

  .gallery-item {
    min-height: 280px;
  }

  .intro-band {
    padding: 60px 0;
  }

  .section {
    padding: 60px 0;
  }

  .story-hero {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
    gap: 12px;
  }

  /* Handle inline circular numbered divs */
  div[style*="width: 80px"] {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
  }

  /* Handle inline 2-column image grids */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Handle max-width constraints - more aggressive on smaller screens */
  p[style*="max-width: 700px"],
  div[style*="max-width: 800px"] {
    max-width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Adjust inline font sizes for smaller screens */
  h3[style*="font-size: 1.8rem"] {
    font-size: 1.2rem !important;
  }

  h3[style*="font-size: 1.3rem"] {
    font-size: 1rem !important;
  }

  p[style*="font-size: 1.1rem"],
  p[style*="font-size: 1.04rem"],
  summary[style*="font-size: 1.05rem"] {
    font-size: 0.95rem !important;
  }

  h2[style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }

  p[style*="font-size: 3rem"] {
    font-size: 1.8rem !important;
  }

  /* Story hero max-width image */
  img[style*="max-width: 320px"] {
    max-width: 100% !important;
  }

  /* Handle auto-fit grids - stack on mobile */
  div[style*="grid-template-columns: repeat(auto-fit, minmax"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Handle large gap sizes */
  div[style*="gap: 60px"] {
    gap: 20px !important;
  }

  div[style*="gap: 40px"] {
    gap: 16px !important;
  }

  /* Video responsiveness */
  video {
    max-height: 300px !important;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand span {
    display: none;
  }

  .nav-toggle {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 500px;
    background-attachment: scroll;
  }

  .hero-content {
    padding: 24px 18px 48px;
  }

  .page-hero {
    padding: 100px 0 50px;
    min-height: 450px;
    background-attachment: scroll;
  }

  .intro-band {
    padding: 40px 0;
  }

  .intro-band h2,
  .section h2,
  .video-band h2 {
    font-size: 1.8rem;
  }

  .intro-band p:not(.eyebrow),
  .section-copy p,
  .page-hero p,
  .card p,
  .story-copy p {
    font-size: 0.95rem;
  }

  .section {
    padding: 40px 0;
  }

  .feature-list {
    gap: 14px;
  }

  .feature-list article,
  .card,
  .contact-card,
  .donation-card {
    padding: 20px 16px;
  }

  .feature-list h3,
  .card h3,
  .contact-card h2,
  .donation-card h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .leader-card {
    border-radius: 6px;
  }

  .leader-photo,
  .gallery-item {
    min-height: 240px;
  }

  .leader-card div:not(.leader-photo) {
    padding: 16px;
  }

  .leader-card h2 {
    font-size: 1.3rem;
  }

  .role {
    margin: 4px 0 10px;
    font-size: 0.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
  }

  .stats-grid div {
    min-height: 120px;
    padding: 18px 14px;
  }

  .stats-grid strong {
    font-size: 2.4rem;
  }

  .stats-grid span {
    font-size: 0.8rem;
  }

  .quote {
    padding: 24px 16px;
  }

  .quote p {
    font-size: 1.5rem;
  }

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

  .timeline li {
    padding: 16px 16px 16px 68px;
    font-size: 0.95rem;
    border-radius: 6px;
  }

  .timeline li::before {
    left: 18px;
  }

  .timeline span {
    font-size: 0.7rem;
  }

  .play-card {
    width: 88px;
    border-radius: 50%;
  }

  .gallery-item {
    padding: 16px;
  }

  .gallery-lightbox {
    padding: 16px;
  }

  .gallery-lightbox .close {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .gallery-lightbox .nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .gallery-lightbox .nav.prev {
    left: 16px;
  }

  .gallery-lightbox .nav.next {
    right: 16px;
  }

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

  .contact-form {
    gap: 12px;
  }

  .contact-form label {
    font-size: 0.8rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    min-height: 44px;
    margin-top: 4px;
    padding: 12px 12px;
    border-radius: 6px;
    font-size: 16px;
  }

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

  .story-copy {
    padding: 20px 16px;
    border-left: 3px solid var(--gold);
  }

  .story-hero {
    grid-template-columns: 1fr !important;
  }

  .video-band {
    padding: 60px 0;
  }

  .site-footer {
    padding: 40px 0;
  }

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

  .site-footer h2 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .site-footer img {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }

  .site-footer a {
    font-size: 0.9rem;
  }

  .card-grid,
  .gallery-grid,
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100%, calc(100% - 18px));
  }

  /* Handle inline circular numbered divs - ultra mobile sizing */
  div[style*="width: 80px"] {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.1rem !important;
    margin: 0 auto 16px !important;
  }

  /* Handle inline 2-column image grids */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Handle max-width constraints - full width on smallest screens */
  p[style*="max-width: 700px"],
  div[style*="max-width: 800px"] {
    max-width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  /* Aggressive font size reduction for tiny screens */
  h3[style*="font-size: 1.8rem"] {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
  }

  h3[style*="font-size: 1.3rem"] {
    font-size: 0.95rem !important;
  }

  p[style*="font-size: 1.1rem"],
  p[style*="font-size: 1.04rem"],
  summary[style*="font-size: 1.05rem"] {
    font-size: 0.9rem !important;
  }

  h2[style*="font-size: 2rem"] {
    font-size: 1.3rem !important;
  }

  p[style*="font-size: 3rem"] {
    font-size: 1.5rem !important;
  }

  /* Story hero layout optimization */
  div[style*="grid-template-columns:minmax"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Story hero max-width image - full width */
  img[style*="max-width: 320px"] {
    max-width: 100% !important;
    max-height: 300px !important;
  }

  /* Handle auto-fit grids - aggressive stack on tiny screens */
  div[style*="grid-template-columns: repeat(auto-fit, minmax"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Handle very large gap sizes */
  div[style*="gap: 60px"] {
    gap: 16px !important;
  }

  div[style*="gap: 40px"] {
    gap: 12px !important;
  }

  div[style*="gap: 30px"] {
    gap: 12px !important;
  }

  /* Video responsiveness on tiny screens */
  video {
    max-height: 250px !important;
  }

  .page-hero,
  .hero {
    background-attachment: scroll;
    min-height: auto;
  }

  .page-hero {
    padding: 110px 0 44px;
  }

  .page-hero .container {
    gap: 18px;
  }

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

  .hero p {
    font-size: 0.95rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .intro-band h2,
  .section h2,
  .video-band h2 {
    font-size: 1.5rem;
  }

  .feature-list h3,
  .card h3,
  .contact-card h2,
  .donation-card h2 {
    font-size: 1.1rem;
  }

  .card h2 {
    font-size: 1.3rem;
  }

  .leader-card h2 {
    font-size: 1.1rem;
  }

  .leader-card {
    overflow-wrap: anywhere;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn.primary,
  .btn.secondary {
    width: 100%;
  }
}

/* Details/Summary Styling for FAQ */
details {
  cursor: pointer;
}

details summary {
  cursor: pointer;
  user-select: none;
  transition: color 200ms ease;
}

details summary:hover {
  color: var(--green-dark);
}

details[open] summary span:last-child {
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

/* Image Placeholder Styling */
.image-placeholder {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all 300ms ease;
}

.image-placeholder:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

/* Responsive Image Grid */
@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
  
  .image-placeholder {
    min-height: 300px;
  }
}
