:root {
  --green-deep: #0C2418;
  --green: #1B6B48;
  --green-mid: #2F8A5E;
  --green-soft: #E6F3EB;
  --green-tint: #F2F8F4;
  --gold: #C4923A;
  --gold-deep: #8B5E2C;
  --gold-soft: #F6E9D4;
  --cream: #F7F4EE;
  --cream-warm: #F3EDE0;
  --ink: #142018;
  --ink-body: #2C342E;
  --ink-soft: #5A635A;
  --ink-mute: #8A9188;
  --line: #E5DCC8;
  --white: #FFFFFF;
  --f-display: "Fraunces", "Noto Serif Tamil", Georgia, serif;
  --f-body: "Plus Jakarta Sans", "Noto Sans Tamil", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 16px rgba(12, 36, 24, 0.06);
  --shadow-md: 0 12px 32px rgba(12, 36, 24, 0.1);
  --shadow-lg: 0 24px 56px rgba(12, 36, 24, 0.16);
  --ticker-h: 38px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink-body);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body[data-lang="ta"] { font-family: "Noto Sans Tamil", "Plus Jakarta Sans", sans-serif; }

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--green-deep);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body[data-lang="ta"] h1,
body[data-lang="ta"] h2,
body[data-lang="ta"] h3,
body[data-lang="ta"] h4 {
  font-family: "Noto Serif Tamil", serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

[data-i18n] { display: none; }
[data-i18n].lang-on { display: block; }
span[data-i18n].lang-on,
strong[data-i18n].lang-on,
em[data-i18n].lang-on,
li[data-i18n].lang-on,
a[data-i18n].lang-on { display: inline; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--green-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- NAVBAR ---------- */
.top-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1041;
  display: flex;
  align-items: stretch;
  height: calc(var(--ticker-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--gold);
  color: #fff;
  overflow: hidden;
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-move 42s linear infinite;
}

.ticker-track.reverse { animation-direction: reverse; }

.top-ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  height: var(--ticker-h);
}

.ticker-item i {
  color: var(--green-deep);
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ticker-item i::before { line-height: 1; vertical-align: 0; }

a.ticker-item {
  cursor: pointer;
  text-decoration: none;
}

a.ticker-item:hover,
a.ticker-item:focus-visible {
  background: rgba(12, 36, 24, 0.14);
}

.ticker-item + .ticker-item {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.ticker-nav {
  width: 34px;
  flex-shrink: 0;
  border: 0;
  background: rgba(12, 36, 24, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ticker-nav:hover { background: rgba(12, 36, 24, 0.28); }

@keyframes ticker-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.site-nav {
  position: fixed;
  top: calc(var(--ticker-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  align-items: center;
  background: rgba(12, 36, 24, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-nav.scrolled,
.site-nav.inner-nav {
  background: rgba(12, 36, 24, 0.96);
  border-bottom-color: rgba(196, 146, 58, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.site-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: calc(100% - 52px);
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.brand-text {
  min-width: 0;
  overflow: hidden;
}

.brand-text .name {
  display: block;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text .sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

body[data-lang="ta"] .brand-text .sub { letter-spacing: 0; text-transform: none; }

.site-nav .navbar-nav {
  flex-wrap: nowrap;
  align-items: center;
}

.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 10px !important;
  position: relative;
  white-space: nowrap;
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }

.site-nav .nav-link.active { color: #fff !important; font-weight: 700; }

.lang-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.lang-toggle button.active {
  background: var(--gold);
  color: #fff;
}

.btn-donate {
  background: var(--gold);
  color: #fff !important;
  border: 0;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-donate:hover {
  background: var(--gold-deep);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(196, 146, 58, 0.35);
}

.navbar-toggler {
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}
.navbar-toggler:focus {
  box-shadow: none;
}

.offcanvas {
  background: var(--green-deep);
  color: #fff;
  z-index: 1080;
}
.offcanvas-backdrop { z-index: 1075; }
.offcanvas a { pointer-events: auto; cursor: pointer; }
.offcanvas-header.drawer-head {
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}
.drawer-brand .brand-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.drawer-brand .brand-text .name {
  white-space: normal;
  font-size: 14px;
}
.offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 16.5px;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.offcanvas .nav-link i {
  width: 22px;
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.offcanvas .nav-link::after { display: none; }
.drawer-contact {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.drawer-contact a i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 146, 58, 0.18);
  color: var(--gold);
  flex-shrink: 0;
}
.drawer-social {
  display: flex;
  gap: 10px;
  padding-top: 14px;
}
.drawer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.drawer-social a.wa { background: #25D366; }
.drawer-social a.ig { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.drawer-social a.yt { background: #FF0000; }
.btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }

/* ---------- HERO SLIDER ---------- */
.hero-slider {
  position: relative;
  height: min(92vh, 820px);
  min-height: 560px;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
}

.hero-slider .carousel-item {
  position: relative;
}

.hero-slider .slide-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 8s ease;
}

.hero-slider .carousel-item.active .slide-media {
  transform: scale(1.12);
  animation: kenburns 14s ease forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.14); }
}

.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 22, 16, 0.82) 0%, rgba(8, 22, 16, 0.45) 52%, rgba(8, 22, 16, 0.25) 100%),
    linear-gradient(180deg, rgba(8, 22, 16, 0.25) 0%, rgba(8, 22, 16, 0.55) 100%);
}

.hero-caption {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 128px;
  padding-bottom: 108px;
}

.hero-caption > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero-caption .eyebrow {
  margin: 0 0 16px;
  align-self: flex-start;
}

.hero-caption h1 {
  color: #fff;
  font-size: clamp(34px, 5.6vw, 68px);
  margin: 0 0 18px;
  max-width: 740px;
}

.hero-caption h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

body[data-lang="ta"] .hero-caption h1 em { font-style: normal; }

.hero-caption .lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-caption .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.35;
}
.hero-trust i {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-caption > * {
  opacity: 0;
  transform: translateY(28px);
}

.carousel-item.active .hero-caption > * {
  animation: fadeUp 0.8s var(--ease-out) forwards;
}
.carousel-item.active .hero-caption > *:nth-child(1) { animation-delay: 0.12s; }
.carousel-item.active .hero-caption > *:nth-child(2) { animation-delay: 0.26s; }
.carousel-item.active .hero-caption > *:nth-child(3) { animation-delay: 0.4s; }
.carousel-item.active .hero-caption > *:nth-child(4) { animation-delay: 0.52s; }
.carousel-item.active .hero-caption > *:nth-child(5) { animation-delay: 0.64s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 1;
}

.hero-slider .carousel-control-prev { left: 18px; }
.hero-slider .carousel-control-next { right: 18px; }
@media (min-width: 768px) {
  .hero-slider .carousel-control-next { right: 88px; }
}

.hero-slider .carousel-indicators { gap: 8px; margin-bottom: 92px; }
.hero-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  opacity: 1;
}
.hero-slider .carousel-indicators .active {
  background: var(--gold);
  transform: scale(1.25);
}

.floating-leaf {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0.18;
  animation: floatLeaf 12s ease-in-out infinite;
}
.floating-leaf.l1 { top: 18%; right: 12%; width: 48px; animation-delay: 0s; }
.floating-leaf.l2 { top: 62%; right: 22%; width: 32px; animation-delay: 2s; }
.floating-leaf.l3 { top: 30%; right: 32%; width: 22px; animation-delay: 4s; }

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(12deg); }
}

/* ---------- PAGE BANNER SLIDER ---------- */
.page-banner {
  position: relative;
  height: min(52vh, 460px);
  min-height: 340px;
  overflow: hidden;
  background: var(--green-deep);
  isolation: isolate;
}

.page-banner .carousel,
.page-banner .carousel-inner,
.page-banner .carousel-item { height: 100%; }

.page-banner .slide-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-banner .carousel-item.active .slide-media { animation: kenburns 14s ease forwards; }

.page-banner .slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 22, 16, 0.35) 0%, rgba(8, 22, 16, 0.78) 100%);
}

.page-banner .carousel { position: relative; }

.page-banner-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-top: 136px;
  padding-bottom: 32px;
  pointer-events: none;
}

.page-banner-content > * { pointer-events: auto; max-width: 100%; }

.page-banner-content > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.page-banner-content .eyebrow { margin: 0 0 14px; }

.page-banner-content h1 {
  color: #fff;
  font-size: clamp(26px, 5vw, 54px);
  margin-bottom: 10px;
}

.page-banner-content p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin: 0;
}

/* ---------- BUTTONS ---------- */
.btn-gold {
  background: var(--gold);
  color: #fff;
  border: 0;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-gold:hover {
  background: var(--gold-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(196, 146, 58, 0.35);
}

.btn-outline-light-pill {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-light-pill:hover { background: #fff; color: var(--green-deep); }

.btn-green {
  background: var(--green-deep);
  color: #fff;
  border: 0;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-green:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

.btn-outline-green {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--green-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 24px;
}

.btn-outline-green:hover { background: var(--green-deep); color: #fff; }

/* ---------- SECTIONS ---------- */
.section { padding: 88px 0; }
@media (max-width: 767px) { .section { padding: 56px 0; } }

.eyebrow {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--green);
  background: var(--green-soft);
  padding: 8px 14px;
  border-radius: 999px;
  box-sizing: border-box;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.eyebrow.light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-soft);
}

.eyebrow.light::before { background: var(--gold); }

.eyebrow [data-i18n]:not(.lang-on) { display: none !important; }
.eyebrow [data-i18n].lang-on {
  display: inline !important;
  line-height: 1.2;
}

body[data-lang="ta"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 12px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- TRUST STRIP ---------- */
.trust-strip {
  margin-top: -56px;
  position: relative;
  z-index: 5;
}

.trust-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px 14px 18px;
  text-align: center;
  border: 1px solid var(--line);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  transition: transform 0.3s var(--ease);
}

.trust-card:hover { transform: translateY(-6px); }
a.trust-card { color: inherit; }

.trust-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 20px;
  margin-bottom: 10px;
  flex-shrink: 0;
  line-height: 0;
}

.trust-ico i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  margin: 0;
  font-size: inherit;
}

.trust-ico i::before {
  display: block;
  line-height: 1;
  vertical-align: 0;
}

.trust-card .k {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 6px;
}

.trust-card .v {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-lang="ta"] .trust-card .v { letter-spacing: 0; text-transform: none; }

.stat-progress-card {
  background: linear-gradient(160deg, var(--green-deep) 0%, #07150e 100%);
  color: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.stat-progress-card .label-top {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-progress-card .big {
  font-family: var(--f-display);
  font-size: clamp(42px, 6vw, 64px);
  line-height: 0.95;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 8px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), #E5A45D);
  border-radius: 999px;
  transition: width 1.8s var(--ease-out);
}

.progress-fill.animate { width: 23%; }

/* ---------- PILLAR SLIDER ---------- */
.pillar-slider {
  position: relative;
  padding: 0 52px;
}

.pillar-viewport {
  overflow: hidden;
}

.pillar-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.45s var(--ease);
}

.pillar-slide {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 4px 6px;
  display: flex;
}

.pillar-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-md);
  z-index: 4;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.pillar-nav:active { background: var(--gold); color: #fff; }

.pillar-nav:disabled { opacity: 0.35; cursor: not-allowed; transform: translateY(-50%); }
.pillar-nav.prev { left: 0; }
.pillar-nav.next { right: 0; }
@media (hover: hover) {
  .pillar-nav:hover { background: var(--gold); color: #fff; transform: translateY(-50%) scale(1.06); }
}

@media (max-width: 991px) {
  .pillar-slide { flex-basis: 50%; max-width: 50%; padding: 4px 5px; }
}

@media (max-width: 767px) {
  .pillar-slider {
    padding: 0 0 64px;
  }
  .pillar-slide { flex-basis: 100%; max-width: 100%; padding: 4px 3px; }
  .pillar-nav {
    top: auto;
    bottom: 0;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .pillar-nav:disabled { transform: none; }
  .pillar-nav.prev { left: calc(50% - 54px); }
  .pillar-nav.next { left: calc(50% + 10px); right: auto; }
  .pillar-img { height: 190px; }
}

/* ---------- CARDS ---------- */
.pillar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.pillar-img {
  height: 210px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.pillar-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(8,22,16,0.62) 100%);
}

.pillar-num, .pillar-title {
  position: relative;
  z-index: 1;
}

.pillar-num {
  align-self: flex-end;
  background: rgba(12, 36, 24, 0.85);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.pillar-title {
  color: #fff;
  font-size: 17px;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.pillar-body {
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.pillar-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  line-height: 1.5;
}
.pillar-lead {
  font-size: 13px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.pillar-lead strong { color: var(--green-deep); }

.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.work-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.work-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transform: scale(1);
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-img { background-size: 108%; }

.work-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.work-body { padding: 20px; }
.work-body h3 { font-size: 19px; margin-bottom: 8px; }
.work-body p { font-size: 14px; color: var(--ink-soft); }
.work-meta { font-size: 12px; color: var(--ink-mute); border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- FOUNDER ---------- */
.founder-section { background: var(--cream-warm); }

.founder-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.founder-quote {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--green-deep);
  line-height: 1.45;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

body[data-lang="ta"] .founder-quote { font-style: normal; font-family: "Noto Serif Tamil", serif; }

/* ---------- MEDIA ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-md);
}

.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.insta-card {
  background: linear-gradient(180deg, #fff, #fff5f8);
  border: 1.5px solid #E1306C;
  border-radius: 18px;
  padding: 24px;
  height: 100%;
}

.social-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

/* ---------- CALCULATOR ---------- */
.calc-section {
  background: linear-gradient(160deg, var(--green-deep) 0%, #07150e 100%);
  color: #fff;
}

.calc-section h2 { color: #fff; }
.calc-section .section-head p { color: rgba(255, 255, 255, 0.75); }

.slider-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
}

.slider-amount {
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
}

input[type="range"].gold-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  outline: none;
}

input[type="range"].gold-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid #fff;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.impact-list { list-style: none; padding: 0; margin: 0; }
.impact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 10px;
  border-left: 3px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.impact-list li.highlight {
  background: rgba(196, 146, 58, 0.16);
  border-left-color: var(--gold);
}
.impact-list .num {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--gold);
  font-weight: 700;
  min-width: 48px;
}

/* ---------- PEOPLE ---------- */
.people-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.people-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.people-card.featured { border: 2px solid var(--gold); background: linear-gradient(180deg, #fff, #fffdf5); }

.people-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--gold);
  margin-bottom: 14px;
  transition: transform 0.3s var(--ease);
}

.people-card:hover .people-img { transform: scale(1.06); }
.people-name { font-size: 18px; font-weight: 700; color: var(--green-deep); }
.people-title { font-size: 14px; color: var(--gold-deep); font-weight: 600; margin-bottom: 8px; }
.people-desc { font-size: 13px; color: var(--ink-soft); }

/* ---------- ABOUT / WORK DETAIL ---------- */
.mv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: auto;
}

.pillar-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.pillar-detail-img {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}

.contact-card:hover { transform: translateY(-6px); }

.form-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
}

.contact-form-section {
  isolation: isolate;
  background-color: var(--cream-warm);
  background-image:
    linear-gradient(180deg, rgba(247, 244, 238, 0.55) 0%, rgba(243, 237, 224, 0.68) 100%),
    url("../assets/tree_plantation.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-form-section .form-box {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(12, 36, 24, 0.16);
}

.form-box label { font-size: 14px; font-weight: 700; color: var(--green-deep); margin-bottom: 6px; }

.form-control, .form-select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.2rem rgba(27, 107, 72, 0.15);
}

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative;
  z-index: 3;
  background: #07150e;
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 28px;
  border-top: 3px solid var(--gold);
  overflow: hidden;
}

.site-footer .row > [class*="col-"] { min-width: 0; }
.site-footer p, .site-footer a { overflow-wrap: anywhere; word-break: break-word; }

.site-footer h4 {
  color: #fff;
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

body[data-lang="ta"] .site-footer h4 { letter-spacing: 0; text-transform: none; }

.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- MOBILE DONATE ---------- */
.mobile-donate-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: var(--gold);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(196, 146, 58, 0.45);
  transform: translateY(140%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-donate-bar.visible { transform: translateY(0); }
@media (min-width: 640px) { .mobile-donate-bar { display: none; } }

/* ---------- QUICK CONTACT ICONS ---------- */
.quick-contact {
  position: fixed;
  right: 14px;
  bottom: 24px;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.qc-actions {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.quick-contact.is-open .qc-actions {
  display: flex;
}

.qc-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 46px;
  color: #fff;
  text-decoration: none;
}

.qc-item:hover,
.qc-item:focus-visible { color: #fff; }

.qc-label {
  display: inline-flex;
  align-items: center;
  height: 46px;
  margin: 0 8px 0 0;
  padding: 0 12px;
  background: var(--green-deep);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.qc-label [data-i18n]:not(.lang-on) { display: none !important; }
.qc-label [data-i18n].lang-on { display: inline !important; }

.qc-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  line-height: 0;
  box-shadow: 0 10px 24px rgba(12, 36, 24, 0.22);
}

.qc-ico i,
.qc-toggle i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  margin: 0;
}

.qc-ico i::before,
.qc-toggle i::before {
  display: block;
  line-height: 1;
  vertical-align: 0;
}

.qc-item.qc-call .qc-ico { background: var(--green-deep); }
.qc-item.qc-mail .qc-ico { background: var(--gold); }
.qc-item.qc-wa .qc-ico { background: #25D366; }

.qc-toggle {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-size: 22px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(12, 36, 24, 0.28);
  cursor: pointer;
}

.qc-toggle .qc-close { display: none; }
.quick-contact.is-open .qc-toggle { background: var(--gold-deep); }
.quick-contact.is-open .qc-toggle .qc-phone { display: none; }
.quick-contact.is-open .qc-toggle .qc-close { display: flex; }

@media (max-width: 639px) {
  body:has(.mobile-donate-bar) .quick-contact { bottom: 84px; }
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 146, 58, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(196, 146, 58, 0); }
}

.about-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

.about-section { isolation: isolate; }

.social-chip { max-width: 100%; }

main { position: relative; z-index: 1; overflow-x: hidden; }

.about-section,
.section { position: relative; z-index: 1; overflow: visible; }

#trees,
#donate {
  scroll-margin-top: calc(var(--ticker-h) + 88px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .ticker-track { animation: none !important; }
}

@media (max-width: 1199px) {
  .site-nav .container {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-left: 14px;
    padding-right: 10px;
  }
  .site-nav .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    gap: 10px;
  }
  .brand-logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .brand-text .name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    font-size: 13.5px;
    line-height: 1.25;
  }
  .brand-text .sub {
    font-size: 10px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
}

@media (max-width: 991px) {
  .hero-slider { height: min(100svh, 760px); min-height: 560px; }
  .hero-caption h1 { font-size: clamp(28px, 8vw, 44px); }
  .page-banner { height: auto; min-height: 300px; }
  .hero-slider .carousel-indicators { margin-bottom: 76px; }
  .trust-strip { margin-top: -40px; }

  .page-banner .carousel-inner,
  .page-banner .carousel-item {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 100%;
  }
  .page-banner-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 28px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-slider { min-height: 100svh; height: 100svh; }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { display: none; }
  .hero-caption { align-items: flex-end; padding-top: 136px; padding-bottom: 92px; }
  .hero-slider .carousel-indicators { margin-bottom: 68px; }
  .hero-caption .lede { font-size: 15px; }
  .hero-ctas .btn-gold,
  .hero-ctas .btn-outline-light-pill { width: 100%; justify-content: center; white-space: normal; }
  .eyebrow { white-space: normal; max-width: 100%; }
  .page-banner { height: auto; min-height: 280px; }
  .page-banner-content {
    padding-top: 112px;
    padding-bottom: 28px;
  }
  .page-banner-content h1 { font-size: clamp(24px, 7vw, 34px); }
  .page-banner-content p { font-size: 14px; }
  .section { padding: 40px 0; }
  .mv-card, .form-box, .contact-card, .people-card { padding: 20px 16px; }
  .pillar-detail-img { min-height: 200px; }
  .founder-photo { width: 140px; height: 140px; }
  .slider-amount { font-size: 32px; }
  .mobile-donate-bar { bottom: 12px; left: 12px; right: 12px; font-size: 14px; }
  .site-footer { padding: 40px 0 32px; }
  body:has(.mobile-donate-bar) .site-footer { padding-bottom: 88px; }
  .about-photo { aspect-ratio: 16 / 10; }
}

@media (max-width: 575px) {
  .hero-slider { min-height: 100svh; }
  .trust-card { padding: 16px 8px 14px; min-height: 132px; }
  .trust-card .k { font-size: 20px; }
  .trust-ico { width: 36px; height: 36px; font-size: 17px; margin-bottom: 8px; }
  .form-box { padding: 20px 14px; }
}
