/* ===== Design Tokens (TDP brand) ===== */
:root {
  --gold:        #FDB813;
  --gold-deep:   #F7941E;
  --orange:      #F36F21;
  --red:         #E2231A;
  --red-deep:    #C41A12;
  --ink:         #1c1408;
  --muted:       #6b6256;
  --cream:       #FFF8EC;
  --white:       #ffffff;
  --grad-gold:   linear-gradient(135deg, #FDB813 0%, #F7941E 55%, #F36F21 100%);
  --grad-red:    linear-gradient(135deg, #F36F21 0%, #E2231A 100%);
  --shadow:      0 10px 30px rgba(0,0,0,.12);
  --shadow-sm:   0 4px 14px rgba(0,0,0,.08);
  --radius:      18px;
  --maxw:        1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad-red); color: #fff; box-shadow: 0 8px 20px rgba(226,35,26,.35); }
.btn--outline { background: rgba(255,255,255,.15); color: #fff; border: 2px solid #fff; }
.btn--outline:hover { background: #fff; color: var(--red); }
.btn--ghost { background: var(--grad-gold); color: var(--ink); padding: 10px 22px; }
.btn--soon { background: rgba(28,20,8,.45); color: #fff; cursor: not-allowed; }
.btn--soon:hover { transform: none; }

/* ===== Top bar ===== */
.topbar {
  background: #e30000; color: #fff; font-size: .8rem;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar__social a { margin-left: 16px; opacity: .85; }
.topbar__social a:hover { opacity: 1; color: var(--gold); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #e30000; box-shadow: var(--shadow-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.15rem; background: linear-gradient(135deg, #F7941E 0%, #C41A12 60%, #8B0000 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.brand__text small { color: var(--muted); font-size: .72rem; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-red); transition: width .25s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }
/* Highlights dropdown */
.nav__dropdown { position: relative; }
.nav__dropbtn { font: inherit; font-weight: 500; font-size: .95rem; color: inherit; background: none; border: none; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 5px; }
.nav__caret { font-size: .7rem; transition: transform .2s ease; }
.nav__dropdown:hover .nav__caret, .nav__dropdown.open .nav__caret { transform: rotate(180deg); }
.nav__submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(12px);
  background: #fff; box-shadow: var(--shadow); border-radius: 12px; padding: 8px; min-width: 160px;
  display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 60;
}
.nav__dropdown:hover .nav__submenu, .nav__dropdown.open .nav__submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(8px); }
.nav__submenu a { padding: 9px 14px; border-radius: 8px; font-size: .92rem; }
.nav__submenu a::after { display: none; }
.nav__submenu a:hover { background: var(--cream); color: var(--red); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--grad-gold);
  padding: 70px 0 120px;
}
/* Flag / patriotic overlay */
.hero__overlay {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 15%, rgba(255,255,255,.30), transparent 60%),
    radial-gradient(55% 60% at 10% 95%, rgba(226,35,26,.28), transparent 60%);
}
/* Faint waving stripes (flag flutter) */
.hero__overlay::before {
  content: ''; position: absolute; inset: -10% -20%;
  background: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,.08) 0 42px,
    rgba(255,255,255,0) 42px 96px
  );
  mask-image: linear-gradient(100deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  animation: flagFlutter 12s ease-in-out infinite;
}
/* Second softer stripe band in red for depth */
.hero__overlay::after {
  content: ''; position: absolute; inset: -10% -20%;
  background: repeating-linear-gradient(
    115deg,
    rgba(226,35,26,.06) 0 60px,
    rgba(226,35,26,0) 60px 140px
  );
  animation: flagFlutter 16s ease-in-out infinite reverse;
}
@keyframes flagFlutter {
  0%,100% { transform: translateX(0) skewX(0deg); }
  50%     { transform: translateX(-48px) skewX(-2deg); }
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; background: rgba(255,255,255,.25); color: #fff;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow--red { background: var(--grad-red); color: #fff; }
.hero__content h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; text-shadow: 0 4px 18px rgba(0,0,0,.18); }
.hero__accent { color: #c41a12; }
.hero__telugu { font-family: 'Tiro Telugu', serif; font-size: 1.4rem; margin: 10px 0 14px; color: #fff; }
.hero__tagline {
  display: inline-block; font-weight: 700; font-size: clamp(.82rem, 1.6vw, .98rem);
  letter-spacing: .4px; color: var(--ink); background: var(--grad-gold);
  padding: 8px 18px; border-radius: 999px; margin: 0 0 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.hero__lead { max-width: 540px; font-size: 1.05rem; color: #fff; opacity: .95; }
.hero__actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { position: relative; display: flex; justify-content: center; align-items: center; }
/* White glowing aura behind the logo */
.hero__media::after {
  content: ''; position: absolute; z-index: 0;
  width: min(520px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,.45) 0%,
    rgba(255,255,255,.30) 42%,
    rgba(255,255,255,.12) 60%,
    transparent 74%);
  filter: blur(18px);
  animation: glowPulse 4.5s ease-in-out infinite;
}
.hero__flag {
  position: relative; z-index: 1; width: min(440px, 90%); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 5px rgba(255,255,255,.65), 0 0 44px 10px rgba(255,255,255,.55), 0 14px 30px rgba(120,60,0,.20);
  animation: ringGlow 3s ease-in-out infinite;
}
@keyframes ringGlow {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(255,255,255,.45),
                0 0 28px 6px rgba(255,255,255,.38),
                0 14px 30px rgba(120,60,0,.20);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255,255,255,.9),
                0 0 64px 18px rgba(255,255,255,.8),
                0 14px 30px rgba(120,60,0,.20);
  }
}
.hero__flag img {
  position: absolute; top: 50%; left: 50%;
  width: 127%; height: 127%; object-fit: contain;
  transform: translate(-50%, -50%);
}
@keyframes glowPulse { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .hero__overlay::before, .hero__overlay::after,
  .hero__media::after, .hero__flag { animation: none; }
}
.hero__wave {
  position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px;
  background: var(--white);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

/* ===== Stats ===== */
.stats { margin-top: -50px; position: relative; z-index: 5; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px 24px; border-top: 4px solid var(--gold);
}
.stat { text-align: center; }
.stat__num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--red); }
.stat__label { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--tint { background: var(--cream); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section__head .eyebrow { background: var(--grad-gold); color: var(--ink); }
.section__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.section__head p { color: var(--muted); margin-top: 8px; }
h2 { line-height: 1.15; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.about__media { display: flex; justify-content: center; }
.about__media img {
  width: 240px; height: 240px; object-fit: contain; padding: 30px;
  background: var(--grad-gold); border-radius: 50%; box-shadow: var(--shadow);
}
.about__content h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 10px 0 16px; }
.about__content p { color: #4a4338; margin-bottom: 14px; }
.about__list { list-style: none; margin-top: 18px; }
.about__list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 500; }
.about__list li::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  background: var(--grad-red); color: #fff; border-radius: 50%; font-size: .7rem;
  display: grid; place-items: center;
}

/* ===== Leadership ===== */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.leader {
  background: #fff; border-radius: var(--radius); padding: 30px 24px 28px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
  border-bottom: 4px solid transparent;
}
.leader:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-bottom-color: var(--gold); }
.leader--featured { border-bottom-color: var(--red); transform: scale(1.03); }
.leader__photo {
  width: 124px; height: 124px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--grad-gold); border: 4px solid #fff; box-shadow: var(--shadow-sm);
  background-size: cover; background-repeat: no-repeat; background-position: center;
}
.leader__photo--ntr    { background: url(../leader-photos/ntr.webp) center / cover no-repeat, var(--grad-gold); }
.leader__photo--cbn    { background: url(../leader-photos/cbn.webp) center / cover no-repeat, var(--grad-gold); }
.leader__photo--lokesh { background: url(../leader-photos/lokesh.webp) center / cover no-repeat, var(--grad-gold); }
.leader h3 { font-size: 1.2rem; }
.leader__role { display: block; color: var(--red); font-weight: 600; font-size: .85rem; margin: 4px 0 12px; }
.leader p { color: var(--muted); font-size: .92rem; }

/* ===== Team / Office Bearers ===== */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.member {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 30px 24px 26px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  border-top: 4px solid var(--gold);
}
.member:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.member--featured { border-top-color: var(--red); }
.member__avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--grad-gold); border: 4px solid #fff; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--ink);
}
.member--featured .member__avatar { background: var(--grad-red); color: #fff; }
.member h3 { font-size: 1.18rem; }
.member__role { display: block; color: var(--red); font-weight: 600; font-size: .88rem; margin-top: 4px; }
.member__alias { display: block; color: var(--muted); font-size: .8rem; }
.member__contact { margin-top: 14px; display: grid; gap: 6px; }
.member__contact a {
  font-size: .85rem; color: #4a4338; word-break: break-word;
  transition: color .2s ease;
}
.member__contact a:hover { color: var(--red); }

/* Foundation members */
.team-story { max-width: 820px; margin: 0 auto 46px; }
.team-story p { color: #4a4338; margin-bottom: 16px; line-height: 1.8; }
.team-story p:last-child { margin-bottom: 0; }
.team-story strong { color: var(--ink); }
.team__head { margin-top: 64px; }
.team--foundation {
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
}
.member__placeholder { font-size: .85rem; color: var(--muted); opacity: .7; }

/* ===== Spotlight (NRI leadership) ===== */
#nri-leadership h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.spotlight {
  display: grid; grid-template-columns: 240px 1fr; gap: 0; align-items: stretch;
  max-width: 1040px; margin: 0 auto; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border-top: 5px solid var(--red);
}
.spotlight__photo { position: relative; min-height: 100%; }
.spotlight__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.spotlight__body { padding: 26px 32px; align-self: center; }
.spotlight__body h3 { font-size: clamp(1.4rem, 3vw, 1.95rem); font-weight: 800; line-height: 1.1; }
.spotlight__role { display: block; color: var(--red); font-weight: 600; font-size: .95rem; margin: 6px 0 16px; }
.spotlight__body p { color: #4a4338; margin-bottom: 12px; }
.spotlight__body p:last-child { margin-bottom: 0; }

/* ===== Cards / Mission ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .25s ease;
  border-top: 4px solid var(--gold);
}
.card:hover { transform: translateY(-8px); }
.card__icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.8rem; background: var(--cream);
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .9rem; }

/* ===== Events ===== */
.events { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.event {
  display: flex; gap: 22px; align-items: center; background: #fff;
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease; border-left: 4px solid var(--red);
}
.event:hover { transform: translateX(6px); }
.event__date {
  flex: none; width: 76px; height: 76px; border-radius: 14px; background: var(--grad-gold);
  color: var(--ink); display: grid; place-items: center; text-align: center; line-height: 1;
}
.event__day { display: block; font-size: 1.7rem; font-weight: 800; }
.event__mon { display: block; font-size: .75rem; font-weight: 700; letter-spacing: 1px; }
.event__body h3 { font-size: 1.12rem; }
.event__body p { color: var(--muted); font-size: .9rem; margin: 4px 0; }
.event__meta { font-size: .82rem; color: var(--red); font-weight: 600; }

/* ===== Featured Event (Mini Mahanadu) ===== */
.feature-event {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: stretch;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border-top: 5px solid var(--red);
}
.feature-event__slider { position: relative; aspect-ratio: 4 / 5; background: #1c1408; align-self: start; }
.feature-event__slider .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.feature-event__slider .slide.is-active { opacity: 1; }
.slider__dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; justify-content: center; gap: 8px;
}
.slider__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.55); transition: background .25s ease, transform .25s ease;
}
.slider__dots button.is-active { background: #fff; transform: scale(1.25); }
.feature-event__body { padding: 34px 34px 34px 0; display: flex; flex-direction: column; }
.feature-event__badge {
  align-self: flex-start; background: var(--grad-gold); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.feature-event__body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.1; }
.feature-event__telugu { font-family: 'Tiro Telugu', serif; font-size: 1.5rem; color: var(--red); margin: 2px 0 12px; }
.feature-event__note { color: #4a4338; font-size: .96rem; margin-bottom: 18px; }
.feature-event__meta { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.feature-event__meta li { display: flex; align-items: center; gap: 12px; font-size: .96rem; }
.feature-event__meta li span { flex: none; width: 26px; text-align: center; font-size: 1.1rem; }
.feature-event__actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Event Gallery (year cards) ===== */
.gallery-years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-year {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  align-items: center; min-height: 130px; border-radius: var(--radius); cursor: pointer;
  background: var(--cream); border: 2px solid rgba(196,26,18,.18);
  font: inherit; width: 100%; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gallery-year:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--red); }
.gallery-year--soon { border-style: dashed; }
.gallery-year__yr { font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; }
.gallery-year__label { font-size: .82rem; color: var(--muted); margin-top: 6px; font-weight: 500; }
.gallery-year--upcoming {
  background: var(--grad-red); border: none; color: #fff;
}
.gallery-year--upcoming .gallery-year__yr,
.gallery-year--upcoming .gallery-year__label { color: #fff; }
.gallery-year--upcoming::after {
  content: 'New'; position: absolute; top: 10px; right: 12px;
  font-size: .62rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: #fff; color: var(--red); padding: 2px 8px; border-radius: 999px;
}

/* ===== Gallery modal ===== */
.gmodal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gmodal[hidden] { display: none; }
.gmodal__backdrop { position: absolute; inset: 0; background: rgba(20,12,4,.62); backdrop-filter: blur(3px); }
.gmodal__panel {
  position: relative; z-index: 1; width: min(900px, 100%); max-height: 88vh;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  animation: gmIn .25s ease;
}
@keyframes gmIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.gmodal__head {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid #eee; flex: none;
}
.gmodal__title { font-size: 1.15rem; font-weight: 800; flex: 1; }
.gmodal__back, .gmodal__close {
  border: none; background: var(--cream); cursor: pointer; font: inherit;
  border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--ink);
  transition: background .2s ease;
}
.gmodal__close { width: 38px; height: 38px; padding: 0; font-size: 1.4rem; line-height: 1; }
.gmodal__back:hover, .gmodal__close:hover { background: #f0e2cc; }
.gmodal__body { padding: 22px; overflow-y: auto; }
.gmodal__empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 1.05rem; }

/* Album cards inside modal */
.galbums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.galbum {
  border: none; background: #fff; cursor: pointer; font: inherit; text-align: left;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.galbum:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.galbum__img { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--cream) center/cover no-repeat; }
.galbum__title { font-weight: 700; padding: 12px 14px 2px; font-size: .98rem; }
.galbum__count { padding: 0 14px 14px; font-size: .8rem; color: var(--muted); }

/* Photo grid inside modal */
.gphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gphoto { border: none; padding: 0; cursor: pointer; background: var(--cream); border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gphoto:hover img { transform: scale(1.06); }

/* Lightbox */
.glightbox { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.9); padding: 30px; }
.glightbox[hidden] { display: none; }
.glightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.glightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.glightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15);
  border: none; color: #fff; font-size: 2.2rem; width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; transition: background .2s ease;
}
.glightbox__nav:hover { background: rgba(255,255,255,.3); }
.glightbox__nav--prev { left: 18px; }
.glightbox__nav--next { right: 18px; }

/* ===== News / Press ===== */
.news-subhead { margin: 6px 0 18px; }
.news-subhead h3 { font-size: 1.2rem; font-weight: 800; position: relative; padding-bottom: 8px; display: inline-block; }
.news-subhead h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--grad-red); }
.news-empty { text-align: center; color: var(--muted); padding: 20px; }

/* Social highlights */
.posts { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 44px; }
.post-embed { flex: 1 1 360px; max-width: 540px; }
.post { flex: 1 1 360px; max-width: 540px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post__img { display: block; width: 100%; aspect-ratio: 16/9; background: var(--cream) center/cover no-repeat; }
.post__body { padding: 18px 20px; }
.post__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post__badge { font-size: .66rem; font-weight: 700; letter-spacing: .5px; padding: 3px 9px; border-radius: 6px; color: #fff; text-transform: uppercase; }
.post__badge--x { background: #000; }
.post__badge--facebook { background: #1877f2; }
.post__badge--instagram { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.post__badge--youtube { background: #ff0000; }
.post__name { font-weight: 700; }
.post__text { color: #4a4338; font-size: .96rem; }
.post__link { display: inline-block; margin-top: 12px; color: var(--red); font-weight: 600; font-size: .9rem; }

/* Press cards */
.ncards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ncard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.ncard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ncard__img { display: block; width: 100%; aspect-ratio: 16/9; background: var(--cream) center/cover no-repeat; }
.ncard__img--empty { display: grid; place-items: center; background: var(--grad-gold); color: #fff; font-size: 2.4rem; font-weight: 800; }
.ncard__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ncard__meta { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.ncard__title { font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.ncard__cta { margin-top: auto; padding-top: 8px; color: var(--red); font-weight: 600; font-size: .88rem; }

/* ===== Join ===== */
.join { background: var(--grad-red); color: #fff; padding: 70px 0; }
.join__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.join__text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.join__text p { opacity: .95; margin-top: 8px; max-width: 420px; }
.join__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.join__form input {
  padding: 14px 16px; border: none; border-radius: 12px; font-size: .95rem; font-family: inherit;
  min-width: 0; width: 100%;
}
.join__form input:focus { outline: 3px solid var(--gold); }
.join__form input[name="profession"] { grid-column: 1 / -1; }
.join__form .btn { grid-column: 1 / -1; background: var(--ink); }
.join__form .btn:disabled { opacity: .7; cursor: progress; }
.join__form .btn:hover { background: #000; }
.join__note { grid-column: 1 / -1; background: rgba(255,255,255,.2); padding: 12px; border-radius: 10px; text-align: center; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #d8cdba; padding-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer__brand img { width: 70px; border-radius: 50%; margin-bottom: 14px; }
.footer__brand p { font-size: .9rem; max-width: 300px; }
.footer__nri { width: 90px !important; border-radius: 10px !important; margin-top: 16px; background: #fff; padding: 6px; }
.footer__col h4 { color: var(--gold); margin-bottom: 16px; font-size: 1.05rem; }
.footer__col a, .footer__col p { display: block; color: #d8cdba; font-size: .9rem; margin-bottom: 10px; }
.footer__col a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 14px; margin-top: 10px; }
.footer__social a { color: var(--gold); font-size: .85rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.footer__tag { font-family: 'Tiro Telugu', serif; color: var(--gold); }
.footer__credit { flex-basis: 100%; text-align: center; margin-top: 8px; font-size: .78rem; opacity: .75; }
.footer__credit a { color: var(--gold); font-weight: 600; }
.footer__credit a:hover { text-decoration: underline; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__media { order: -1; }
  .hero__lead { margin: 0 auto; }
  .hero__actions { justify-content: center; }
  .about { grid-template-columns: 1fr; }
  .leaders, .cards { grid-template-columns: repeat(2, 1fr); }
  .leader--featured { transform: none; }
  .join__inner { grid-template-columns: minmax(0, 1fr); }
  .join__text, .join__form { min-width: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .feature-event { grid-template-columns: 1fr; }
  .feature-event__poster { max-height: 420px; }
  .feature-event__body { padding: 28px; }
  .gallery-years { grid-template-columns: repeat(3, 1fr); }
  .ncards { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__photo { max-height: 420px; }
  .spotlight__body { padding: 26px 24px; }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    height: calc(100vh - 76px); height: calc(100dvh - 76px);
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 8px 22px 36px; box-shadow: var(--shadow);
    transform: translateY(-150%); transition: transform .3s ease; gap: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav.open { transform: none; }
  .nav-toggle { display: flex; }

  /* every top-level item is a consistent full-width, left-aligned row */
  .nav > a:not(.btn),
  .nav__dropbtn {
    display: flex; align-items: center; width: 100%; text-align: left;
    padding: 15px 2px; font-size: 1.06rem; font-weight: 600;
    border-bottom: 1px solid var(--cream);
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav > a.btn { align-self: center; margin-top: 20px; }

  /* dropdown groups become tap-to-expand accordions */
  .nav__dropdown { width: 100%; }
  .nav__dropbtn { justify-content: space-between; }
  .nav__caret { display: inline-block; font-size: .8rem; }
  .nav__submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; background: transparent; min-width: 0; display: block; gap: 0;
    margin: 0 0 0 8px; padding: 0; border-left: 2px solid var(--cream);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav__dropdown.open .nav__submenu { max-height: 320px; transform: none; }
  .nav__submenu a {
    display: block; padding: 13px 2px 13px 16px; font-size: 1rem; font-weight: 500; color: var(--muted);
  }
}
@media (max-width: 560px) {
  .leaders, .cards, .stats__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .event { flex-direction: column; text-align: center; }
  .gallery-years { grid-template-columns: repeat(2, 1fr); }
  .ncards { grid-template-columns: 1fr; }
  .team, .team--foundation { grid-template-columns: 1fr; }
  .join { padding: 54px 0; }
  .join__form { grid-template-columns: 1fr; }
  .join__form input[name="profession"] { grid-column: auto; }
  .galbums { grid-template-columns: 1fr 1fr; }
  .gphotos { grid-template-columns: 1fr 1fr; }
  .gmodal { padding: 0; }
  .gmodal__panel { max-height: 100vh; height: 100%; width: 100%; border-radius: 0; }
}
