/* ============================================
   ANANT YUVA PRATISHTHAN – CULTURAL SEVA DESIGN SYSTEM
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  /* Color Palette */
  --saffron: #E8751A;
  --saffron-light: #F4A942;
  --saffron-deep: #C45E0A;
  --maroon: #6B1D2A;
  --maroon-deep: #4A1019;
  --gold: #C9A84C;
  --gold-light: #DBCA8E;
  --gold-dark: #8B7328;
  --beige: #F5ECD7;
  --cream: #FFF8EE;
  --warm-brown: #4A2C17;
  --earth: #8B6F47;
  --ivory: #FFFFF0;
  --terracotta: #C67B5C;
  --deep-green: #2D5A27;
  --text-dark: #2C1810;
  --text-body: #4A3728;
  --text-light: #7A6555;
  --overlay-dark: rgba(44, 24, 16, 0.85);
  --overlay-saffron: rgba(232, 117, 26, 0.08);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.25s ease;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(74, 44, 23, 0.08);
  --shadow-medium: 0 8px 40px rgba(74, 44, 23, 0.12);
  --shadow-deep: 0 16px 60px rgba(74, 44, 23, 0.18);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--maroon);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 72ch;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ============================================
   PASSWORD GATE
   ============================================ */
#password-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon-deep);
  overflow: hidden;
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

#password-gate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(201, 168, 76, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(232, 117, 26, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(107, 29, 42, 0.9) 0%, rgba(74, 16, 25, 1) 100%);
  z-index: 0;
}

/* Temple arch pattern overlay */
#password-gate::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(201, 168, 76, 0.3) 40px, rgba(201, 168, 76, 0.3) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(201, 168, 76, 0.3) 40px, rgba(201, 168, 76, 0.3) 41px);
  z-index: 0;
}

.gate-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 40px;
  max-width: 500px;
  width: 90%;
}

/* Decorative mandala behind gate */
.gate-mandala {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  position: relative;
}

.gate-mandala svg {
  width: 100%;
  height: 100%;
  animation: rotateSlow 60s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gate-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.gate-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold-light);
  opacity: 0.7;
  margin-bottom: 40px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
}

.gate-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.gate-input-wrapper input {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255, 248, 238, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-align: center;
  outline: none;
  transition: var(--transition-medium);
}

.gate-input-wrapper input::placeholder {
  color: rgba(201, 168, 76, 0.4);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.gate-input-wrapper input:focus {
  border-color: var(--gold);
  background: rgba(255, 248, 238, 0.1);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

.gate-enter-btn {
  display: inline-block;
  padding: 14px 50px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-medium);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.gate-enter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: 0.6s;
}

.gate-enter-btn:hover::before {
  left: 100%;
}

.gate-enter-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.gate-error {
  color: var(--terracotta);
  font-size: 0.85rem;
  margin-top: 16px;
  opacity: 0;
  transition: var(--transition-medium);
  font-style: italic;
}

.gate-error.visible {
  opacity: 1;
}

.gate-ornament {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0.3;
}

.gate-ornament .line {
  width: 60px;
  height: 1px;
  background: var(--gold);
}

.gate-ornament .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Gate opening animation */
#password-gate.gate-opening {
  animation: gateOpen 1.4s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes gateOpen {
  0% { 
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  50% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% { 
    clip-path: inset(0 50% 0 50%);
    opacity: 0;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: var(--transition-medium);
  background: rgba(255, 248, 238, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.main-nav.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 75px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
}

.nav-logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-body);
  color: var(--saffron);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 16px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  position: relative;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: var(--transition-medium);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

/* Hamburger Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 26px;
  height: 2px;
  background: var(--maroon);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   CULTURAL PATTERN DIVIDERS
   ============================================ */
.pattern-divider {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pattern-divider::before,
.pattern-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light), transparent);
}

.pattern-divider .motif {
  padding: 0 20px;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

/* Ornamental section divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 0;
  margin: 0 auto;
  max-width: 400px;
}

.section-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.section-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.section-divider .circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading .overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-heading h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-heading p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 75px;
  background: var(--maroon-deep);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(232, 117, 26, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.25;
  filter: sepia(20%) contrast(0.9);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  max-width: 850px;
}

.hero-content h1 {
  color: var(--cream);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content .hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold-light);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 16px;
}

.hero-content p {
  color: rgba(255, 248, 238, 0.8);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-ornament .line {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light));
}

.hero-ornament .line:last-child {
  background: linear-gradient(to left, transparent, var(--gold-light));
}

.hero-ornament .symbol {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
  padding: var(--section-padding);
  position: relative;
}

.content-section.alt-bg {
  background: var(--beige);
}

.content-section.maroon-bg {
  background: var(--maroon-deep);
}

.content-section.maroon-bg h2,
.content-section.maroon-bg h3,
.content-section.maroon-bg h4 {
  color: var(--cream);
}

.content-section.maroon-bg p {
  color: rgba(255, 248, 238, 0.8);
}

/* Cultural texture overlay */
.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ============================================
   SEVA PILLARS (Home page cards)
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.pillar-card {
  background: var(--cream);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 6px;
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
  transform: scaleX(0);
  transition: var(--transition-medium);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(201, 168, 76, 0.3);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--overlay-saffron);
  border: 1px solid rgba(232, 117, 26, 0.12);
}

.pillar-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--saffron);
}

.pillar-card h4 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 auto;
}

/* ============================================
   IMAGE CARDS (with no-crop rules)
   ============================================ */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid rgba(201, 168, 76, 0.15);
  background: var(--beige);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-slow);
}

.image-frame.cover-safe img {
  object-fit: cover;
  object-position: center top;
}

.image-frame:hover img {
  transform: scale(1.02);
}

/* Temple arch frame */
.arch-frame {
  position: relative;
  padding: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-light));
  border-radius: 6px 6px 0 0;
}

.arch-frame .arch-inner {
  border-radius: 50% 50% 0 0 / 20% 20% 0 0;
  overflow: hidden;
}

.arch-frame .arch-inner img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ============================================
   INFOGRAPHIC COUNTERS
   ============================================ */
.infographics-section {
  padding: 80px 0;
  background: var(--maroon-deep);
  position: relative;
}

.infographics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.infographic-item {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.infographic-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.infographic-item:last-child::after {
  display: none;
}

.infographic-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  opacity: 0.9;
}

.infographic-icon svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
}

.infographic-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.infographic-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 248, 238, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   CONTENT GRID LAYOUTS
   ============================================ */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.text-block h3 {
  margin-bottom: 16px;
}

.text-block p {
  margin-bottom: 16px;
}

.text-block .highlight {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--saffron);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
}

/* ============================================
   INITIATIVE CARDS
   ============================================ */
.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.initiative-card {
  background: var(--cream);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-medium);
}

.initiative-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.initiative-card .card-image {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.initiative-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--beige);
}

.initiative-card .card-body {
  padding: 30px;
}

.initiative-card .card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

.initiative-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.initiative-card p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ============================================
   VALUES / VISION CARDS
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.value-card {
  text-align: center;
  padding: 45px 30px;
  background: var(--cream);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 6px;
  transition: var(--transition-medium);
  position: relative;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  transition: var(--transition-medium);
}

.value-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.value-card:hover::after {
  width: 60%;
}

.value-card .value-symbol {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.value-card h4 {
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 auto;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  height: 300px;

  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(201, 168, 76, 0.12);
  transition: var(--transition-medium);
}

.gallery-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-slow);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(74, 16, 25, 0.85), transparent);
  opacity: 0;
  transition: var(--transition-medium);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay p {
  color: var(--cream);
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 24, 16, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-medium);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  border: 3px solid rgba(201, 168, 76, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold);
  font-size: 1.5rem;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  transition: var(--transition-fast);
  background: transparent;
}

.lightbox-close:hover {
  background: rgba(201, 168, 76, 0.15);
}

/* ============================================
   COLLABORATIONS
   ============================================ */
.collab-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.collab-card {
  background: var(--cream);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 8px;
  padding: 45px 35px;
  text-align: center;
  transition: var(--transition-medium);
}

.collab-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.collab-card .collab-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--overlay-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(201, 168, 76, 0.15);
}

.collab-card .collab-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--saffron);
}

.collab-card h3 {
  margin-bottom: 12px;
}

.collab-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin: 0 auto;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-block {
  padding: 40px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-item .icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--overlay-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 117, 26, 0.15);
}

.contact-info-item .icon svg {
  width: 22px;
  height: 22px;
  fill: var(--saffron);
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-info-item a {
  color: var(--saffron);
}

.contact-info-item a:hover {
  color: var(--maroon);
}

.contact-form {
  background: var(--cream);
  padding: 45px;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.12);
}

.contact-form h3 {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--ivory);
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 117, 26, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.submit-btn {
  display: inline-block;
  padding: 16px 50px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-medium);
  text-transform: uppercase;
}

.submit-btn:hover {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--maroon-deep);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron), var(--gold), var(--saffron));
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 248, 238, 0.6);
  font-size: 0.9rem;
  max-width: 350px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: rgba(255, 248, 238, 0.6);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-contact p {
  color: rgba(255, 248, 238, 0.6);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.footer-contact a {
  color: var(--gold-light);
}

.footer-contact a:hover {
  color: var(--gold);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.social-icons a svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-light);
  color: var(--gold-light);
  stroke: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  color: rgba(255, 248, 238, 0.4);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--gold-light);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger-children .reveal {
  transition-delay: calc(var(--stagger, 0) * 0.12s);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-saffron { color: var(--saffron); }
.text-gold { color: var(--gold); }
.text-maroon { color: var(--maroon); }
.text-cream { color: var(--cream); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-medium);
  text-transform: uppercase;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  display: inline-block;
  padding: 13px 38px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: 1px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-medium);
  text-transform: uppercase;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--maroon-deep);
  transform: translateY(-2px);
}

/* ============================================
   COMMUNITY PAGE SPECIFIC
   ============================================ */
.outreach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.outreach-card {
  background: var(--cream);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-medium);
}

.outreach-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.outreach-card .card-image {
  height: 220px;
  overflow: hidden;
}

.outreach-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.outreach-card .card-body {
  padding: 25px;
}

.outreach-card h4 {
  margin-bottom: 10px;
}

.outreach-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   ABOUT PAGE – TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold), var(--gold-light));
  top: 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 40px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
}

.timeline-item .timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--gold);
  z-index: 1;
}

.timeline-item .timeline-content {
  background: var(--cream);
  padding: 25px;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.12);
}

.timeline-item .timeline-content h4 {
  color: var(--saffron);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-item .timeline-content h3 {
  margin-bottom: 10px;
}

.timeline-item .timeline-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   COMMUNITY QUOTE BANNER
   ============================================ */
.quote-banner {
  background: var(--maroon-deep);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.quote-banner blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--cream);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.quote-banner cite {
  color: var(--gold-light);
  font-size: 0.9rem;
  font-style: normal;
  letter-spacing: 0.1em;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 40px;
    gap: 5px;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-deep);
    border-left: 2px solid rgba(201, 168, 76, 0.15);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  }

  .nav-hamburger {
    display: flex;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-column.reverse {
    direction: ltr;
  }

  .initiatives-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .infographics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .infographic-item::after {
    display: none;
  }

  .collab-cards {
    grid-template-columns: 1fr;
  }

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

  .outreach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 55px;
    padding-right: 0;
    text-align: left;
    flex-direction: row;
  }

  .timeline-item .timeline-dot {
    left: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .hero-section {
    min-height: 70vh;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .infographics-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .outreach-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 60vh;
  }

  .nav-container {
    padding: 0 4%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .infographics-grid {
    grid-template-columns: 1fr;
  }

  .gate-content {
    padding: 40px 20px;
  }
}
