﻿/* ==========================================================================
   Sri Ramaraja Bhushana Educational Charitable Trust — site theme
   ========================================================================== */

:root {
  --maroon: #7b1e2b;
  --maroon-dark: #561420;
  --maroon-soft: #f6e9e6;
  --gold: #d4a017;
  --gold-light: #f3d77a;
  --saffron: #e07a1f;
  --green: #1e7a4c;
  --cream: #fbf6ee;
  --paper: #ffffff;
  --ink: #2a211f;
  --muted: #6e625c;
  --line: #eadfd2;

  --font-head: "Playfair Display", "Noto Serif Telugu", Georgia, serif;
  --font-body: "Mulish", "Noto Sans Telugu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-telugu: "Noto Serif Telugu", "Noto Sans Telugu", serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(60, 20, 20, .06);
  --shadow: 0 12px 32px rgba(60, 20, 20, .10);
  --shadow-lg: 0 24px 60px rgba(60, 20, 20, .18);
  --container: 1200px;
  --header-h: 112px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; transition: color .2s; }
a:hover { color: var(--saffron); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.te { font-family: var(--font-telugu); }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-dark);
  box-shadow: 0 8px 20px rgba(212, 160, 23, .35);
}
.btn-gold:hover { color: var(--maroon-dark); box-shadow: 0 12px 28px rgba(212, 160, 23, .45); }

.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-dark); color: #fff; }

.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--maroon); }

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

/* ---------- Top bar ---------- */

.topbar {
  background: var(--maroon-dark);
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
}
.topbar a { color: rgba(255, 255, 255, .9); }
.topbar a:hover { color: var(--gold-light); }
.topbar .contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar .fa { color: var(--gold); margin-right: 6px; }
.topbar .blessing { font-family: var(--font-telugu); color: var(--gold-light); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  max-width: 1400px;
}

.brand { display: flex; align-items: center; gap: 18px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img {
  flex: none;
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold);
}
.brand .brand-baba { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--saffron); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--maroon);
  letter-spacing: .01em;
}
.brand-name small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.brand-te { font-family: var(--font-telugu); font-size: 1.05rem; color: var(--saffron); font-weight: 600; margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav a {
  display: block;
  padding: 10px 11px;
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  color: var(--ink);
  border-radius: 8px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav a:hover { color: var(--maroon); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--maroon); }
.main-nav .btn { margin-left: 12px; padding: .7em 1.3em; }
.main-nav .btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--maroon);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 1320px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav .btn { margin: 16px 0 0; justify-content: center; }
}

@media (max-width: 760px) {
  .brand { gap: 12px; }
  .brand img { width: 60px; height: 60px; }
  .brand-name { font-size: 1.15rem; }
  .brand-te { font-size: .85rem; }
}

@media (max-width: 560px) {
  :root { --header-h: 76px; }
  .brand { gap: 8px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: .92rem; }
  .brand-name small { display: none; }
  .brand-te { font-size: .72rem; }
  .topbar .blessing { display: none; }
  .topbar .contact { gap: 2px 16px; padding: 6px 0; font-size: .78rem; }
}

/* ---------- Banner (photos only) ---------- */

.banner {
  position: relative;
  background: var(--maroon-dark);
  overflow: hidden;
}
.banner-slides {
  position: relative;
  aspect-ratio: 2 / 1;
  max-height: 72vh;
  width: 100%;
}
.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.banner-slide.active { opacity: 1; }

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .85);
  color: var(--maroon);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s;
}
.banner-nav:hover { background: var(--gold); color: var(--maroon-dark); }
.banner-nav.prev { left: 20px; }
.banner-nav.next { right: 20px; }

.banner-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
}
.banner-dots button {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: width .3s, background .3s;
  padding: 0;
}
.banner-dots button.active { width: 28px; background: var(--gold); }

@media (max-width: 760px) {
  .banner-slides { aspect-ratio: 16 / 10; }
  .banner-nav { width: 38px; height: 38px; font-size: .9rem; }
  .banner-nav.prev { left: 10px; }
  .banner-nav.next { right: 10px; }
}

/* ---------- Intro (below banner) ---------- */

.intro {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(212, 160, 23, .18), transparent 45%),
    linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  padding: 64px 0 120px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; }

.intro h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.intro h1 em { font-style: italic; color: var(--gold-light); }
.intro-te {
  font-family: var(--font-telugu);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--gold-light);
  margin: 0;
}
.intro p.lead { font-size: 1.1rem; color: rgba(255, 255, 255, .88); margin-bottom: 28px; }
.intro-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .intro { padding: 48px 0 110px; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
}


/* ---------- Stats ---------- */

.stats-wrap { position: relative; z-index: 5; margin-top: -64px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat {
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .icon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-size: 1.3rem;
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
}
.stat .label { color: var(--muted); font-size: .9rem; font-weight: 600; margin-top: 8px; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section-sm { padding: 80px 0; }
.section-white { background: var(--paper); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; color: var(--saffron); }
.section-head .eyebrow::after { content: ""; width: 36px; height: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  margin: 6px 0 18px;
}
.divider-ornament::before, .divider-ornament::after {
  content: ""; width: 60px; height: 1px; background: var(--gold);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.about-media { position: relative; padding: 0 40px 40px 0; }
.about-media .main-img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-media .badge-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-top: 4px solid var(--gold);
}
.badge-card img {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: -58px auto 10px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--saffron);
}
.badge-card p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.5; }
.badge-card strong { display: block; color: var(--maroon); font-family: var(--font-head); font-size: 1rem; }

.about-media .year-tag {
  position: absolute;
  top: 24px;
  left: -18px;
  background: var(--maroon);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.2;
}
.year-tag b { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--gold-light); }
.year-tag span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.about-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.about-copy .te-block,
.give-grid .te-block {
  font-family: var(--font-telugu);
  font-size: 1.02rem;
  line-height: 1.95;
  color: #3d3230;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
}
.about-copy .reg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--maroon-soft);
  color: var(--maroon);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 26px;
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-media { max-width: 560px; margin: 0 auto; }
  .about-media .year-tag { left: 12px; }
}

/* ---------- Mission cards ---------- */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mission-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 26px 30px;
  transition: transform .3s, box-shadow .3s, background .3s;
  overflow: hidden;
}
.mission-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.mission-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #fff; }
.mission-card:hover::before { transform: scaleX(1); }
.mission-card .icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-light);
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.mission-card h3 { font-size: 1.2rem; }
.mission-card p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.mission-card .te { font-size: .85rem; color: var(--saffron); line-height: 1.7; margin: 0; }

@media (max-width: 1000px) { .mission-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mission-grid { grid-template-columns: 1fr; } }

/* ---------- Heritage (poet) band ---------- */

.heritage {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 160, 23, .18), transparent 45%),
    linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  color: #fff;
  overflow: hidden;
}
.heritage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.heritage .container {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.heritage-img {
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  border: 6px solid rgba(243, 215, 122, .35);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
}
.heritage-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.heritage h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.heritage .eyebrow { color: var(--gold); }
.heritage p { color: rgba(255, 255, 255, .85); }
.heritage .te-quote {
  font-family: var(--font-telugu);
  font-size: 1.15rem;
  color: var(--gold-light);
  line-height: 1.9;
  padding: 22px 26px;
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  margin: 26px 0;
}
.heritage-facts { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 10px; }
.heritage-facts div b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-light); }
.heritage-facts div span { font-size: .85rem; color: rgba(255, 255, 255, .7); }

@media (max-width: 900px) {
  .heritage .container { grid-template-columns: 1fr; gap: 44px; }
  .heritage-img { margin: 0 auto; max-width: 340px; }
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--line);
  border: 0;
  padding: 0;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(40, 8, 14, .8), transparent 55%);
  opacity: 0;
  transition: opacity .35s;
}
.gallery-item .caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 14px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  text-align: left;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .35s, transform .35s;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after, .gallery-item:hover .caption { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 10px; }
  .gallery-item.wide { grid-column: span 2; }
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 6, 8, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { color: rgba(255, 255, 255, .85); margin-top: 14px; font-weight: 600; }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .2s;
}
.lightbox button:hover { background: var(--gold); color: var(--maroon-dark); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Scholarships highlight ---------- */

.scholar-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.scholar-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; }
.scholar-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.scholar-list .fa {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-dark);
  font-size: 1.1rem;
}
.scholar-list b { display: block; color: var(--ink); }
.scholar-list span { color: var(--muted); font-size: .92rem; }

.scholar-photo { position: relative; }
.scholar-photo img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}
.scholar-photo .float-note {
  position: absolute;
  left: -30px;
  bottom: 40px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.float-note .fa { font-size: 1.8rem; color: var(--gold); }
.float-note b { display: block; color: var(--maroon); font-family: var(--font-head); font-size: 1.05rem; line-height: 1.2; }
.float-note span { font-size: .82rem; color: var(--muted); }

@media (max-width: 900px) {
  .scholar-grid { grid-template-columns: 1fr; }
  .scholar-photo { max-width: 480px; margin: 0 auto; }
  .scholar-photo .float-note { left: 12px; }
}

/* ---------- Donate band ---------- */

.donate {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(rgba(40, 8, 14, .88), rgba(86, 20, 32, .9)), url(../images/home/hero-1.jpg) center / cover fixed;
  color: #fff;
}
.donate .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.donate h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.donate .eyebrow { color: var(--gold); }
.donate p { color: rgba(255, 255, 255, .85); }
.donate .te { color: var(--gold-light); font-size: 1.02rem; line-height: 1.9; }

.bank-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.bank-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, .25), transparent 70%);
}
.bank-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; color: var(--maroon); }
.bank-card .bank-name { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
}
.bank-row .k { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bank-row .v { font-family: "Courier New", monospace; font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.copy-btn {
  background: var(--maroon-soft);
  color: var(--maroon);
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--maroon); color: #fff; }
.copy-btn.copied { background: var(--green); color: #fff; }

@media (max-width: 900px) {
  .donate .container { grid-template-columns: 1fr; }
  .donate { background-attachment: scroll; }
}

/* ---------- Contact strip ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-card .fa {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-light);
  font-size: 1.2rem;
}
.contact-card > div { min-width: 0; }
.contact-card a, .footer-contact a { overflow-wrap: anywhere; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.contact-card a { color: var(--ink); font-weight: 700; }
.contact-card a:hover { color: var(--maroon); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 380px;
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

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

/* ---------- Footer ---------- */

.site-footer {
  background: #1f0b0e;
  color: rgba(255, 255, 255, .7);
  padding: 80px 0 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 50px;
  padding-bottom: 50px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 2px;
  background: var(--gold);
}
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.footer-brand img { width: 60px; height: 60px; border-radius: 50%; background: #fff; }
.footer-brand b { color: #fff; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: var(--gold-light); }
.footer-links a::before { content: "\f105"; font-family: FontAwesome; margin-right: 10px; color: var(--gold); }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact .fa { color: var(--gold); margin-top: 5px; width: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Inner page header ---------- */

.page-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(212, 160, 23, .22), transparent 45%),
    linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  padding: 70px 0 76px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.page-hero .container { position: relative; }
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--gold-light); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .fa { font-size: .7rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 8px; }
.page-hero .te { color: var(--gold-light); font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0; }

/* ---------- About page ---------- */

.te-prose {
  font-family: var(--font-telugu);
  font-size: 1.04rem;
  line-height: 2;
  color: #3d3230;
}

.objective-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.objective {
  display: flex;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s, box-shadow .3s;
}
.objective:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.objective .n {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
}
.objective h3 { font-size: 1.15rem; margin-bottom: 8px; }
.objective p { margin: 0; }
@media (max-width: 800px) { .objective-list { grid-template-columns: 1fr; } }

.corpus-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.corpus-highlight {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.corpus-highlight::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 30px solid rgba(212, 160, 23, .15);
}
.corpus-highlight .big {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.corpus-highlight .cap { color: rgba(255, 255, 255, .8); margin: 10px 0 28px; }
.corpus-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.corpus-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: rgba(255, 255, 255, .9); }
.corpus-points .fa { color: var(--gold); margin-top: 5px; }
.district-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.district-tags li {
  background: var(--maroon-soft);
  color: var(--maroon);
  font-weight: 700;
  font-size: .88rem;
  padding: 8px 16px;
  border-radius: 999px;
}
@media (max-width: 900px) { .corpus-grid { grid-template-columns: 1fr; gap: 40px; } }

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.team-grid + .team-sub { margin-top: 50px; }
.team-sub {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.team-sub::before, .team-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.person {
  flex: 0 1 212px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 14px 24px;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.team-grid.wide .person { flex-basis: 270px; }
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.person .avatar {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-size: 1.9rem;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--line);
}
.person.lead .avatar {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-dark);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold);
}
.person h3 {
  font-family: var(--font-telugu);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
}
.person .role {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--maroon);
  background: var(--maroon-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.person.lead .role { background: var(--maroon); color: var(--gold-light); }
.person .role-te { display: block; font-family: var(--font-telugu); color: var(--muted); font-size: .88rem; margin-top: 8px; }

.team-note {
  font-family: var(--font-telugu);
  text-align: center;
  color: var(--muted);
  margin: -30px auto 40px;
  max-width: 720px;
}

/* ---------- Donations page ---------- */

.give-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.give-grid .bank-card { border: 1px solid var(--line); }
.give-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.give-steps li { display: flex; gap: 16px; align-items: flex-start; }
.give-steps .fa {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-size: 1.15rem;
}
.give-steps b { display: block; color: var(--ink); }
.give-steps span { color: var(--muted); font-size: .93rem; }
.bank-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}
.bank-note .fa { color: var(--saffron); margin-right: 4px; }
.bank-note a { overflow-wrap: break-word; font-weight: 700; }
@media (max-width: 900px) { .give-grid { grid-template-columns: 1fr; gap: 40px; } }

.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.pay-grid .bank-card { border: 1px solid var(--line); }
.qr-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.qr-card h3 { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.3rem; color: var(--maroon); }
.qr-apps { color: var(--muted); font-size: .85rem; margin: 0 0 16px; }
.qr-image {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.qr-image img { display: block; width: 100%; }
.qr-card .bank-row { text-align: left; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.qr-actions .upi-app { display: none; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; max-width: 520px; } }
@media (hover: none) and (pointer: coarse) { .qr-actions .upi-app { display: inline-flex; } }

.fund-stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.fund-stat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
}
.fund-stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  color: var(--maroon);
  line-height: 1.1;
}
.fund-stat span { display: block; color: var(--muted); font-size: .88rem; font-weight: 700; margin-top: 8px; }
.fund-stat.main { background: linear-gradient(135deg, var(--maroon-dark), var(--maroon)); border-color: transparent; }
.fund-stat.main b { color: var(--gold-light); }
.fund-stat.main span { color: rgba(255, 255, 255, .85); }

.fund-breakdown {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.fund-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--line); }
.fund-bar span { height: 100%; }
.fund-legend {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fund-legend li { display: grid; grid-template-columns: 14px 1fr; column-gap: 10px; align-items: center; }
.fund-legend i { width: 14px; height: 14px; border-radius: 4px; }
.fund-legend span { font-size: .86rem; color: var(--muted); }
.fund-legend b { grid-column: 2; font-size: 1.05rem; color: var(--ink); }
@media (max-width: 900px) {
  .fund-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .fund-stat.main { grid-column: 1 / -1; }
  .fund-stat { padding: 20px 10px; }
  .fund-stat span { font-size: .78rem; }
  .fund-legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .fund-legend { grid-template-columns: 1fr; } }

.patron-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.patron {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform .3s, box-shadow .3s;
}
.patron:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.patron::after {
  content: "\f004";
  font-family: FontAwesome;
  position: absolute;
  top: 22px; right: 24px;
  color: var(--maroon-soft);
  font-size: 1.6rem;
}
.patron .amt { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--maroon); margin-bottom: 10px; }
.patron h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; line-height: 1.45; margin-bottom: 6px; padding-right: 30px; }
.patron p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .patron-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .patron-grid { grid-template-columns: 1fr; } }

.register-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.register-search {
  flex: 1 1 280px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
}
.register-search .fa { color: var(--muted); }
.register-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.register-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 160, 23, .18); }
.register-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--maroon); color: var(--maroon); }
.chip.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.register-count { color: var(--muted); font-size: .86rem; margin: 0 0 14px; }

.donor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 22px;
}
.donor {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.donor:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.donor[hidden] { display: none; }
.donor .dn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-weight: 800;
  font-size: .88rem;
}
.donor[data-tier="a"] .dn { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--maroon-dark); }
.donor .dd { min-width: 0; }
.donor .dd b { display: block; font-size: .96rem; line-height: 1.4; color: var(--ink); }
.donor .dd span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.donor .da { font-weight: 800; color: var(--maroon); white-space: nowrap; font-size: .98rem; }
.donor.other { background: var(--cream); }
.donor.other .dn { background: #fff; color: var(--muted); }
.donor.other .dd b { font-weight: 600; color: var(--muted); }
.donor.other .da { color: var(--muted); }
.register-empty { text-align: center; color: var(--muted); padding: 30px 0; margin: 0; }
@media (max-width: 860px) { .donor-list { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .donor { grid-template-columns: 34px 1fr; gap: 4px 12px; }
  .donor .dn { width: 34px; height: 34px; grid-row: span 2; font-size: .8rem; }
  .donor .da { grid-column: 2; }
}

.register-total {
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
}
.rt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}
.rt-row b { color: var(--ink); white-space: nowrap; }
.rt-row.grand { border-bottom: 0; padding-top: 16px; font-weight: 800; color: var(--maroon); font-size: 1.1rem; }
.rt-row.grand b { color: var(--maroon); font-family: var(--font-head); font-size: 1.5rem; }
.rt-sign { margin: 8px 0 0; font-size: .82rem; color: var(--muted); font-style: italic; text-align: center; }

.source-docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.source-docs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--maroon-soft);
  color: var(--maroon);
}
.source-docs a:hover { background: var(--maroon); color: #fff; }

/* ---------- Application form page ---------- */

.form-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.form-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.form-preview img { display: block; width: 100%; aspect-ratio: 3 / 3.4; object-fit: cover; object-position: top; }
.form-preview .zoom {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  background: rgba(42, 33, 31, .82);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.form-card h3 { margin: 18px 0 2px; font-size: 1.25rem; color: var(--maroon); }
.form-card p { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }
.form-card .btn { width: 100%; justify-content: center; }

/* ---------- Media clips page ---------- */

.media-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 18px 22px;
  background: #fff8e6;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
}
.media-notice .fa { color: var(--gold); font-size: 1.5rem; margin-top: 2px; }
.media-notice b { display: block; color: var(--ink); }
.media-notice span { color: var(--muted); font-size: .92rem; }
.media-filters { justify-content: center; margin-bottom: 30px; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.media-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.media-card[hidden] { display: none; }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.media-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--maroon-soft), var(--cream));
  color: var(--maroon);
  font-size: 2.6rem;
  position: relative;
  overflow: hidden;
}
.media-thumb img, .media-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.media-card[data-type="video"] .media-thumb .fa {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-light);
  font-size: 1.6rem;
  padding-left: 5px;
}
.media-card.placeholder .media-thumb .fa { opacity: .55; }
.media-body { padding: 20px 22px 24px; }
.media-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 6px;
}
.media-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.media-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.media-card.placeholder h3 { color: var(--muted); }
.media-card { display: flex; flex-direction: column; }
button.media-thumb {
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #f4f1ea;
  cursor: zoom-in;
  font: inherit;
}
button.media-thumb img {
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .12));
  transition: transform .5s;
}
.media-card:hover .media-thumb img { transform: scale(1.04); }
.media-zoom {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(123, 30, 43, .9);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.media-card:hover .media-zoom, .media-thumb:focus-visible .media-zoom { opacity: 1; transform: none; }
.media-body { display: flex; flex-direction: column; flex: 1; }
.media-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 6px; }
.media-meta .media-tag { margin-bottom: 0; }
.media-date { font-size: .8rem; color: var(--muted); font-weight: 600; }
.media-date .fa { color: var(--gold); margin-right: 4px; }
.media-body h3.te { font-family: "Noto Serif Telugu", serif; font-size: 1.12rem; line-height: 1.5; margin-bottom: 8px; color: var(--maroon); }
.media-actions { margin-top: auto; padding-top: 14px; }
.media-actions a { font-size: .85rem; font-weight: 700; color: var(--maroon); }
.media-actions a .fa { margin-right: 4px; }
.media-actions a:hover { color: var(--saffron); }
.chip .count {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .08);
  font-size: .75rem;
}
.chip.active .count { background: rgba(255, 255, 255, .22); }
@media (hover: none) { .media-zoom { opacity: 1; transform: none; } }
@media (max-width: 960px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .media-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery albums ---------- */

.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.album-grid.three { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.album-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  transition: transform .3s, box-shadow .3s;
}
.album-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.album-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--maroon-soft); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.album-card:hover .album-cover img { transform: scale(1.06); }
.album-count {
  position: absolute;
  right: 14px; bottom: 14px;
  background: rgba(42, 33, 31, .8);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.album-count .fa { color: var(--gold-light); margin-right: 4px; }
.album-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.album-when { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--saffron); }
.album-when .fa { margin-right: 4px; }
.album-body h3 { font-size: 1.3rem; margin: 8px 0 4px; }
.album-body p { color: var(--muted); margin: 0 0 16px; }
.album-link { margin-top: auto; font-weight: 800; font-size: .9rem; color: var(--maroon); }
.album-link .fa { transition: transform .25s; margin-left: 4px; }
.album-card:hover .album-link .fa { transform: translateX(4px); }
.album-grid.three .album-body h3 { font-size: 1.1rem; }
@media (max-width: 960px) { .album-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .album-grid, .album-grid.three { grid-template-columns: 1fr; } }

.album-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.album-bar p { flex: 1 1 320px; margin: 0; color: var(--muted); }
.album-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-weight: 800;
  font-size: .88rem;
}
.album-back:hover { background: var(--maroon); color: #fff; }
.album-meta { font-weight: 800; font-size: .88rem; color: var(--maroon); white-space: nowrap; }
.album-meta .fa { color: var(--gold); margin-right: 4px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}
.photo {
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--maroon-soft);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  position: relative;
}
.photo.tall { grid-row: span 2; aspect-ratio: auto; }
.photo-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo.feature { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.photo.feature img { object-position: center 30%; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo::after {
  content: "\f00e";
  font-family: FontAwesome;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(86, 20, 32, .45);
  opacity: 0;
  transition: opacity .3s;
}
.photo:hover img { transform: scale(1.06); }
.photo:hover::after, .photo:focus-visible::after { opacity: 1; }
@media (max-width: 1000px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .photo-grid, .photo-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .photo.feature { aspect-ratio: 16 / 9; }
}

.album-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }
.album-pager a {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 48%;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.album-pager a:hover { border-color: var(--maroon); color: var(--maroon); }
.album-pager .next { text-align: right; margin-left: auto; }
.album-pager small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.album-pager .fa { color: var(--maroon); }
@media (max-width: 560px) {
  .album-pager { flex-direction: column; }
  .album-pager a { max-width: none; }
}

/* ---------- Contact page ---------- */

.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: stretch; }
.contact-info {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.contact-info::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 34px solid rgba(212, 160, 23, .12);
  pointer-events: none;
}
.contact-info .eyebrow { color: var(--gold); }
.contact-info h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.contact-lines { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 22px; position: relative; z-index: 1; }
.contact-lines li { display: flex; gap: 16px; align-items: flex-start; }
.contact-lines li > .fa {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  color: var(--gold-light);
  font-size: 1.1rem;
}
.contact-lines div { min-width: 0; color: rgba(255, 255, 255, .88); line-height: 1.7; }
.contact-lines b { display: block; color: var(--gold-light); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.contact-lines address { font-style: normal; line-height: 1.9; }
.contact-lines a { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--gold-light); }
.contact-quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; position: relative; z-index: 1; }

.contact-form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { font-size: 1.6rem; color: var(--maroon); margin-bottom: 4px; }
.contact-form-card > p { color: var(--muted); margin: 0 0 24px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, .18);
}
.field .invalid { border-color: #c0392b; }
.form-error { margin: 0; color: #c0392b; font-weight: 700; font-size: .9rem; }
.form-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-info, .contact-form-card { padding: 30px 22px; }
  .form-buttons .btn { width: 100%; justify-content: center; }
}

.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.help-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  color: var(--ink);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.help-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.help-card > .fa {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.help-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.help-card p { color: var(--muted); margin: 0 0 18px; }
.help-card .more { margin-top: auto; font-weight: 800; font-size: .9rem; color: var(--maroon); }
@media (max-width: 900px) { .help-grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--maroon);
  color: var(--gold-light);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--saffron); color: #fff; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .banner-slide { transition: opacity .01s; }
}
