/* =========================================================
   Sumitra Educational evam Welfare Trust — site stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* brand palette, drawn from the trust's logo */
  --blue: #1B5A8C;
  --blue-dark: #14456C;
  --navy: #0D3A5C;
  --navy-soft: #3E6E93;
  --gold: #C9A24B;
  --gold-dark: #AD8636;
  --brown: #5C3821;
  --charcoal: #2E2A26;
  --body-text: #4A453E;
  --muted: #8A8175;
  --ivory: #FAF7F0;
  --white: #FFFFFF;
  --border: #E5E0D5;
  --border-soft: #EFE9DC;
  --placeholder: #F0EADA;
  --placeholder-icon: #DCCFAF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(46,42,38,.04), 0 8px 24px -12px rgba(46,42,38,.12);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown);
  margin: 0 0 .5em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--gold);
}
.section--navy .eyebrow { color: #E7C989; }
.section--navy .eyebrow::before { background: #E7C989; }

.lede { font-size: 17px; color: var(--muted); max-width: 60ch; }
.section--navy .lede { color: #CFE0EC; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-gold { background: var(--gold); color: var(--brown); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--brown); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--brown); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- pills / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--brown);
  font-weight: 600;
  font-size: 13.5px;
  background: transparent;
  transition: background-color .15s ease, color .15s ease;
}
.pill.is-active, .pill:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 243, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 3px double var(--gold-dark);
  padding: 0.5rem 0px;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.brand img {
  height: 58px;
  width: auto;
  flex-shrink: 0;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand-title,
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size:1.8rem;
  letter-spacing: .14em;
  color: var(--navy);
}
.brand-subtitle {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0em;
  color: var(--brown);
  margin-top: -3px;
  font-weight: 900;
}
.brand-tagline {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--gold-dark);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover,
.nav-links a:hover::after {
  color: var(--blue);
}
.nav-links a.btn:hover {
  color: white;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.btn:hover::after { transform: scaleX(0); }

.nav-links a.is-active { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-toggle {
  appearance: none;
  border: 1px solid var(--gold-dark);
  background: linear-gradient(135deg, rgba(230, 189, 86, 0.14), rgba(18, 58, 86, 0.06));
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 16px rgba(18, 58, 86, 0.08);
}
.lang-toggle:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}
.lang-toggle.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(18, 58, 86, 0.18);
}
.lang-toggle:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; text-align: center; }
.hero-flame {
  width: 56px; height: 56px;
  margin: 0 auto 22px;
}
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero .lede { margin: 18px auto 32px; font-size: 18px; }
.hero .btn-row { justify-content: center; }

/* ---------- stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}
.stat { text-align: center; padding: 40px 20px; border-right: 1px solid var(--border-soft); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 38px; font-weight: 600; color: var(--gold-dark); display: block; }
.stat-label { font-size: 13.5px; color: var(--brown); margin-top: 6px; }

/* ---------- section headers ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; }
.section-link { color: var(--blue); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 18px; margin-bottom: 2px; }
.card p { font-size: 14.5px; color: var(--muted); margin-bottom: 0; }
.card-link { margin-top: auto; padding-top: 8px; color: var(--blue); font-weight: 600; font-size: 14px; }

.placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: var(--placeholder);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.placeholder.short { aspect-ratio: 16 / 10; }
.placeholder.tall { aspect-ratio: 3 / 4; }
.placeholder.square { aspect-ratio: 1 / 1; }

.featured-article { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
.featured-article-img { aspect-ratio: auto; height: 100%; min-height: 280px; }
.featured-article-body { padding: 34px; justify-content: center; }

/* ---------- pull quote ---------- */
.quote-block {
  background: var(--ivory);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 28px 30px;
}
.quote-block p { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--brown); margin-bottom: 12px; }
.quote-block cite { font-style: normal; font-size: 13.5px; color: var(--muted); }

/* ---------- timeline ---------- */
.timeline { display: flex; justify-content: space-between; position: relative; padding-top: 10px; }
.timeline::before {
  content: "";
  position: absolute; top: 16px; left: 6%; right: 6%;
  height: 1px; background: var(--border);
}
.timeline-step { text-align: center; flex: 1; position: relative; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); margin: 0 auto 12px; position: relative; z-index: 1; }
.timeline-year { font-weight: 700; color: var(--brown); font-size: 15px; }
.timeline-label { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 16ch; margin-left: auto; margin-right: auto; }

/* ---------- avatars / trustees ---------- */
.avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--border-soft); color: var(--brown);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  margin: 0 auto 14px;
}
.trustee { text-align: center; }
.trustee-name { font-weight: 700; color: var(--brown); font-size: 15px; }
.trustee-role { font-size: 13px; color: var(--muted); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--brown); }
.field input, .field textarea, .field select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 15px;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,90,140,.12);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* donation amount selector */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.amount-btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--brown);
  border-radius: 999px;
  padding: 12px 8px;
  font-weight: 700;
  font-size: 14px;
}
.amount-btn.is-selected { background: var(--blue); border-color: var(--blue); color: var(--white); }
.freq-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; margin-bottom: 24px; }
.freq-toggle button {
  border: none; background: transparent; padding: 9px 20px; border-radius: 999px;
  font-weight: 600; font-size: 13.5px; color: var(--brown);
}
.freq-toggle button.is-selected { background: var(--blue); color: var(--white); }

.donate-card {
  max-width: 480px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow-card);
}
.donation-info {
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.donation-panel {
  background: #f8fbff;
  border: 1px solid rgba(12,46,76,0.06);
  padding: 20px;
  border-radius: 8px;
}

.donation-panel h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--navy);
}

.donation-list { list-style: none; margin: 0 0 12px 0; padding: 0; color: var(--brown); }
.donation-list li { margin-bottom: 8px; line-height: 1.35; }
.donation-list .tick { color: var(--gold-dark); margin-right: 6px; font-weight: 700; }

.verify-title { font-weight: 700; margin: 12px 0 6px 0; color: var(--brown); }
.verify-list { margin: 0; padding-left: 16px; }
.verify-list li { margin-bottom: 8px; color: var(--navy); }
.verify-list a { color: var(--blue); font-weight: 600; }

.donate-account { padding: 24px; }
.donate-account h2 { font-size: 18px; margin-bottom: 12px; color: var(--brown); }
.account-grid { display: grid; gap: 12px; font-size: 15px; color: var(--navy); }
.account-grid div { display:flex; justify-content:space-between; gap:16px; padding-bottom:8px; border-bottom:1px solid rgba(12,46,76,0.08); }
.donate-account .form-note { text-align: center; margin-top: 12px; color: var(--muted); font-size:14px; }

@media (max-width: 880px) {
  .donation-info { width: 100%; order: 2; }
  .donate-card { order: 1; width: 100%; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}
.impact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.impact-strip .amt { font-family: var(--font-display); font-size: 22px; color: var(--gold-dark); font-weight: 600; }
.impact-strip p { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.trust-badges { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--brown); font-size: 14px; }
.trust-badge .dot { width: 26px; height: 26px; border-radius: 50%; border: 0px solid var(--gold); flex: none; }

/* ---------- events ---------- */
.event-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.date-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); margin-bottom: 16px; }
.date-badge .d { font-weight: 700; color: var(--brown); font-size: 19px; line-height: 1; }
.date-badge .m { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.event-list-item { display: flex; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--border-soft); }
.event-list-item:last-child { border-bottom: none; }
.event-date-block { text-align: center; background: var(--ivory); border-radius: var(--radius-sm); padding: 10px 16px; flex: none; }
.event-date-block .d { font-weight: 700; color: var(--brown); font-size: 20px; display: block; }
.event-date-block .m { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.event-info { flex: 1; }
.event-info h3 { font-size: 16.5px; margin-bottom: 4px; }
.event-meta { font-size: 13.5px; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid .placeholder { border-radius: var(--radius-sm); }

/* ---------- newsletter ---------- */
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter-form { display: flex; gap: 10px; flex: 1; min-width: 260px; max-width: 420px; }
.newsletter-form input { flex: 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #CFE0EC; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 32px; }
.footer-brand span { font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 17px; }
.footer-col h4 { color: #E7C989; font-family: var(--font-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,164,75,0.55);
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.social-row a svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  fill: currentColor;
  stroke: currentColor;
}
.social-row a:hover {
  border-color: var(--gold);
  background: rgba(201,162,75,.12);
  transform: translateY(-1px);
}
.footer-bottom {
  border-top: 1px solid #1E4E70;
  padding-top: 22px;
  font-size: 12.5px;
  color: #7FA6BF;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; padding: 72px 0; }
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-banner .lede { margin: 14px auto 30px; }

/* ---------- breadcrumb / page banner ---------- */
.page-banner { padding: 52px 0 40px; }
.page-banner .eyebrow { margin-bottom: 10px; }
.page-banner h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

@media(prefers-reduced-motion: no-preference) {
  
  @view-transition {
    navigation: auto;
  }

  ::view-transition-group(page-content) {
    animation-duration: 1s;
    animation-timing-function: ease;
  }

  ::view-transition-old(page-content) {
    animation-name: slide-out;
  }

  ::view-transition-new(page-content) {
    animation-name: slide-in;
  } 

  main {
    view-transition-name: page-content;
  }

  /* Enable the code below to see the article image transition */

  /* .card img, .hero-image {
    view-transition-name: article-image;
  } */

  @keyframes slide-out {
    to {
      translate: -100vw;
    }
  }

  @keyframes slide-in {
    from {
      translate: 100vw;
    }
  }
}

.chevron-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chevron-checkbox input[type="checkbox"] {
  display: none;
}

.chevron-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--brown);
  position: relative;
}

.chevron-checkbox label::before {
  content: '>';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.chevron-checkbox input[type="checkbox"]:checked + label::before {
  transform: rotate(90deg);
  background: var(--gold);
  color: var(--white);
}

#tax-benefit-fields {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .24s ease, opacity .24s ease, margin-top .24s ease;
}

#tax-benefit-fields.is-open {
  max-height: 420px;
  opacity: 1;
  margin-top: 16px;
}
.page-intro {
      max-width: 760px;
      margin: 0 auto 32px;
      text-align: center;
    }

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

    .info-card {
      background: #f8f4ee;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 28px 24px;
      box-shadow: var(--shadow-card);
    }

    .info-card h3 {
      margin-bottom: 18px;
      font-size: 28px;
      color: var(--brown);
      display: flex;
      align-items: center;
      gap: 12px;
    }


    .focus-list {
      display: grid;
      gap: 14px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .focus-list li {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 16px;
      line-height: 1.5;
      color: var(--brown);
    }

    .focus-list li::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--gold);
      flex-shrink: 0;
      margin-left: 4px;
    }

    .gain-list {
      display: grid;
      gap: 14px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .gain-list li {
      display: flex;
      align-items: start;
      gap: 12px;
      font-size: 16px;
      color: var(--brown);
    }

    .gain-list li::before {
      content: "✦";
      color: var(--gold-dark);
      font-weight: 700;
      font-size: 18px;
      line-height: 1.1;
    }

    .partner-box {
      background: #efe4d3;
      border-radius: var(--radius-sm);
      padding: 18px 16px;
      margin-top: 16px;
      border: 1px solid var(--border);
    }

    .partner-box strong {
      font-family: var(--font-display);
      font-size: 20px;
      display: block;
      color: var(--navy);
      margin: 0 0 8px;
    }

    .partner-box p {
      margin: 0;
      font-size: 16px;
      color: var(--brown);
    }

    .partner-name {
      font-size: 24px;
      font-weight: 700;
      color: var(--brown);
      margin: 0 0 8px;
      display: block;
    }

    .contact-line {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 15px;
      color: var(--blue);
      margin: 6px 0;
      font-weight: 600;
    }



    .address-block {
      margin-top: 18px;
      padding: 18px 18px 0;
      border-top: 1px solid rgba(92, 56, 33, 0.15);
    }

    .address-block strong {
      display: block;
      margin-bottom: 8px;
      color: var(--brown);
      font-size: 18px;
    }

    .address-block p {
      margin: 0 0 10px;
      color: var(--brown);
      line-height: 1.7;
      font-size: 15px;
    }

    .officer-list {
      display: grid;
      gap: 18px;
      margin-top: 12px;
    }

    .officer-item {
      display: grid;
      gap: 5px;
      padding: 18px 16px;
      background: rgba(255,255,255,0.2);
      border-radius: 12px;
      border: 1px solid rgba(92, 56, 33, 0.1);
    }

    .officer-item strong {
      font-size: 18px;
      color: var(--brown);
    }

    .officer-item a {
      color: var(--blue);
      font-weight: 600;
    }

    .photo-card {
      background: #efeae3;
      border: 1px solid var(--border);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: var(--shadow-card);
    }

    .photo-card img {
      width: 100%;
      aspect-ratio: 16/9;
      object-fit: cover;
    }

    .photo-caption {
      background: #1d1d1d;
      color: #fff;
      padding: 14px 16px;
      line-height: 1.6;
      font-size: 14px;
      min-height: 110px;
    }

    .photo-caption strong {
      color: #f6d48b;
    }

    .volunteer-cta {
      margin-top: 18px;
      text-align: center;
    }

    .support-card {
      background: #f9f5ef;
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 30px 28px;
      box-shadow: var(--shadow-card);
    }

    .support-form {
      display: grid;
      gap: 12px;
    }

    .reg-row-2 {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }

    .reg-fieldset {
      border: 1px solid var(--border);
      padding: 18px 16px 12px;
      border-radius: 12px;
      margin: 8px 0 10px;
      background: rgba(255,255,255,0.24);
    }

    .reg-fieldset legend {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--brown);
      padding: 0 8px;
    }

    .reg-radio-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 8px;
      margin-bottom: 12px;
    }

    .reg-radio-opt {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--brown);
      font-size: 14px;
      font-weight: 500;
    }

    .reg-radio-opt input {
      accent-color: var(--blue);
    }

    .reg-other-input {
      display: none;
      margin-top: 10px;
    }

    .req {
      color: #b43d3d;
    }

    .reg-required-note {
      margin: 0 0 22px;
      color: var(--muted);
      font-size: 14px;
    }

    .reg-hint {
      font-size: 12.5px;
      color: var(--muted);
      margin-top: 6px;
    }

    .custom-file-upload {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 120px;
      width: 100%;
      border: 1.5px dashed var(--gold-dark);
      border-radius: 12px;
      background: rgba(201, 162, 75, 0.04);
      color: var(--brown);
      padding: 20px 16px;
      cursor: pointer;
      transition: border-color .2s ease, background .2s ease;
    }

    .custom-file-upload:hover {
      border-color: var(--blue);
      background: rgba(27, 90, 140, 0.03);
    }

    .upload-icon {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: rgba(27, 90, 140, 0.08);
      color: var(--blue);
      display: grid;
      place-items: center;
    }

    .upload-text {
      font-weight: 700;
      color: var(--brown);
    }

    .upload-hint {
      font-size: 12.5px;
      color: var(--muted);
    }

    .hidden-file-input {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }

    .preview-container {
      display: none;
      position: relative;
      margin-top: 14px;
      max-width: 220px;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: #fff;
    }

    .preview-container img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
    }

    .remove-image-btn {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: none;
      background: rgba(0, 0, 0, 0.65);
      color: #fff;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
    }

    #successMessage {
      display: none;
      text-align: center;
      background: #f5faf3;
      border: 1px solid #cfe8d0;
      border-radius: 16px;
      padding: 26px 20px;
      margin-bottom: 24px;
    }

    #successMessage.is-visible {
      display: block;
    }

    .success-icon {
      width: 72px;
      height: 72px;
      margin: 0 auto 12px;
    }

    .success-icon svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .checkmark-circle {
      stroke: #3aa45c;
      stroke-width: 3;
      stroke-dasharray: 166;
      stroke-dashoffset: 166;
      animation: stroke 0.6s ease-in-out forwards;
    }

    .checkmark-check {
      fill: none;
      stroke: #3aa45c;
      stroke-width: 4;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 48;
      stroke-dashoffset: 48;
      animation: dash 0.7s ease-in-out 0.25s forwards;
    }

    @keyframes stroke {
      to { stroke-dashoffset: 0; }
    }

    @keyframes dash {
      to { stroke-dashoffset: 0; }
    }

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

    @media (max-width: 640px) {
      .reg-row-2 { grid-template-columns: 1fr; }
      .support-card { padding: 24px 18px; }
      .photo-card img { height: 260px; }
      .btn-row { flex-direction: column; }
      .btn-row .btn { width: 100%; }
    }

/* Container for absolute positioning */
.lang-dropdown-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 16px;
}

/* SVG Button styling */
.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--body-text);
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
  position: absolute;
  right: 64px;
  z-index: 1001; /* Ensure it appears above other elements */
}

.lang-btn:hover {
  background-color: var(--border-soft);
}

/* Custom Dropdown Menu hidden by default */
.lang-menu {
  display: none; 
  position: absolute;
  top: calc(100% + 4px); /* Pushes it just below the icon */
  right: 0; /* Aligns to the right side */
  background-color: var(--white);
  min-width: 140px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
}

/* Toggled via JavaScript */
.lang-menu.show {
  display: block;
}

/* Dropdown list items */
.lang-menu li {
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--body-text);
  transition: all 0.2s ease;
}

.lang-menu li:hover {
  background-color: var(--border-soft);
  color: var(--blue);
}
/* =========================================================
   Responsive — tablet (<=1024px) and phone (<=640px)
   ========================================================= */
@media (max-width: 1024px) {
  .container { padding: 0px 24px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .event-feature { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr !important; }
  .mission-vision { grid-template-columns: 1fr !important; gap: 28px !important; }
  .mission-vision .divider { display: none; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .featured-article { grid-template-columns: 1fr !important; }
  .featured-article-img { min-height: 220px !important; }
  .featured-spot { grid-template-columns: 1fr !important; }
}

@media (max-width: 900px) {
  /* mobile nav panel */
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    padding: 30px 28px 24px;
    gap: 4px;
    box-shadow: 0 12px 20px -14px rgba(0,0,0,.15);
  }
  .nav-links.is-open a { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
  .nav-links.is-open a::after { display: none; }
  .lede { font-size: 15px;}
  #languageSelect{
    top: 0px;
    right: 50%;
    transform: translateX(50%);
  }
  
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 40px; }
  h1 { font-size: 30px !important; }
  h2 { font-size: 24px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; margin-top: 2rem;}
  .stat { border-right: none; border-bottom: 1px solid var(--border-soft); padding: 26px 20px; }
  .stat:last-child { border-bottom: none; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 90%; margin-left: 5%;}
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .timeline { flex-direction: column; gap: 22px; align-items: flex-start; }
  .timeline::before { display: none; }
  .timeline-step { display: flex; align-items: center; gap: 14px; text-align: left; }
  .timeline-dot { margin: 0; }
  .timeline-label { margin: 0; max-width: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .newsletter { flex-direction: column; align-items: stretch; text-align: center; }
  .newsletter-form { max-width: none; }
  .impact-strip { grid-template-columns: 1fr; gap: 22px; }
  .trust-badges { gap: 20px; flex-direction: column; align-items: center; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .event-list-item { flex-wrap: wrap; }
  .donate-card { padding: 28px 22px; }
  .lede{ font-size: 12px;}
}

/* Hide the original Google Translate dropdown */
#google_translate_element {
  display: none !important;
}

/* Hide the Google Translate top banner/iframe */
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.skiptranslate > iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

/* Prevent the banner from pushing your webpage down */
body {
  top: 0px !important;
  position: static !important;
}

/* Hide the translation tooltip that appears when you hover over text */
.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.small-toggle {
  position: relative;
  display: flex;
  width: 86px;          /* Small width */
  height: 32px;         /* Compact height */
  background-color: var(--blue); /* Solid brand color background */
  border-radius: 32px;  /* Fully rounded pill shape */
  padding: 3px;
  box-sizing: border-box;
  font-family: var(--font-body);
}

/* --- The sliding white thumb --- */
.small-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px); 
  height: 26px;         /* Fits inside the padding */
  background-color: var(--white); /* White background like the reference image */
  border-radius: 26px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

/* --- The button text --- */
.small-toggle-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;       /* Smaller font size */
  font-weight: 700;      /* Bold text to match the image */
  transition: color 0.3s ease;
  padding: 0;
}

.small-toggle[data-lang="en"] .small-toggle-thumb {
  transform: translateX(0);
}
.small-toggle[data-lang="en"] #btn-en-small {
  color: var(--blue);    /* Text inside the white thumb becomes blue */
}
.small-toggle[data-lang="en"] #btn-hi-small {
  color: var(--white);   /* Text over the blue background remains white */
}

/* --- State: Hindi (HI) is active (Thumb slides right) --- */
.small-toggle[data-lang="hi"] .small-toggle-thumb {
  transform: translateX(100%);
}
.small-toggle[data-lang="hi"] #btn-hi-small {
  color: var(--blue);    /* Text inside the white thumb becomes blue */
}
.small-toggle[data-lang="hi"] #btn-en-small {
  color: var(--white);   /* Text over the blue background remains white */
}