/*
Theme Name: Saptbandhu Mandal
Theme URI: https://saptbandhumandal.com
Author: Saptabandhu Krida Mandal
Description: Official theme for Saptabandhu Krida Mandal, Gandhinagar, Worli, Mumbai. Established 1977.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: saptbandhu
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --saffron:       #FF6B00;
  --saffron-dark:  #CC5500;
  --saffron-light: #FFF0E5;
  --gold:          #E6A817;
  --gold-light:    #FFF8E1;
  --green:         #2E7D32;
  --green-light:   #E8F5E9;
  --white:         #FFFFFF;
  --off-white:     #FAFAF8;
  --dark:          #1A1A1A;
  --text:          #333333;
  --muted:         #666666;
  --border:        #E5E0D8;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.12);
  --font-head:     'Noto Sans Devanagari', 'Tiro Devanagari Hindi', Georgia, serif;
  --font-body:     'Poppins', 'Segoe UI', sans-serif;
  --nav-h:         64px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--off-white); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--saffron); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--saffron-dark); }
button { font-family: var(--font-body); }

/* ============================================================
   TYPOGRAPHY — fluid with clamp()
   ============================================================ */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.3; color: var(--dark); }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p  { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section     { padding: 4rem 0; }
.section-alt { background: var(--white); }

.section-title            { text-align: center; margin-bottom: 2.5rem; }
.section-title h2         { position: relative; display: inline-block; padding-bottom: 0.75rem; }
.section-title h2::after  { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--saffron); border-radius: 2px; }
.section-title p          { color: var(--muted); font-size: 1rem; margin-top: 0.75rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================================================
   NAVBAR
   ============================================================ */
#site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

/* Logo */
.site-logo      { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; }
.site-logo img  { height: 48px; width: auto; object-fit: contain; }
.logo-text .name    { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--saffron); line-height: 1.15; }
.logo-text .tagline { font-size: 0.68rem; color: var(--muted); }

/* Nav right controls (lang + hamburger) */
.nav-controls { display: flex; align-items: center; gap: 0.6rem; }

/* Desktop nav links */
.nav-menu { display: flex; gap: 0.2rem; list-style: none; align-items: center; }
.nav-menu a             { padding: 0.45rem 0.8rem; border-radius: 6px; font-size: 0.88rem; font-weight: 500; color: var(--text); transition: all 0.2s; display: block; }
.nav-menu a:hover,
.nav-menu a.active      { background: var(--saffron-light); color: var(--saffron); }
.nav-menu .btn-nav      { background: var(--saffron); color: white !important; padding: 0.45rem 1rem; border-radius: 6px; }
.nav-menu .btn-nav:hover{ background: var(--saffron-dark) !important; }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--saffron-light); }
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
/* Animate hamburger → X */
.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language toggle */
.lang-toggle { display: flex; background: var(--off-white); border: 1px solid var(--border); border-radius: 50px; padding: 2px; gap: 2px; flex-shrink: 0; }
.lang-btn    { padding: 0.28rem 0.7rem; border-radius: 50px; border: none; background: transparent; font-size: 0.75rem; font-weight: 600; cursor: pointer; color: var(--muted); transition: all 0.2s; font-family: var(--font-body); white-space: nowrap; }
.lang-btn.active { background: var(--saffron); color: white; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  background: linear-gradient(135deg, #1a0a00 0%, #3d1200 40%, #CC5500 100%);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' fill-opacity='0.03'%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/svg%3E");
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: white;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.stat-box          { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 0.9rem 0.5rem; text-align: center; }
.stat-box .number  { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; color: var(--gold); line-height: 1; }
.stat-box .label   { font-size: 0.72rem; color: rgba(255,255,255,0.7); margin-top: 0.3rem; }

.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary       { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-primary:hover { background: #d4970f; color: var(--dark); }
.btn-outline       { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }

/* Hero image grid */
.hero-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.hero-img-card   { border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.hero-img-card:first-child { grid-column: span 2; }
.hero-img-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-placeholder {
  width: 100%; background: rgba(255,255,255,0.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 0.8rem; text-align: center;
  gap: 0.5rem; padding: 1.5rem; min-height: 140px;
}
.hero-img-placeholder .icon { font-size: 1.8rem; opacity: 0.5; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--saffron-light);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: var(--saffron); font-size: 0.9rem;
  border: 2px dashed var(--saffron);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.about-content .est-badge {
  display: inline-block;
  background: var(--saffron-light); color: var(--saffron);
  font-size: 0.95rem; font-weight: 700;
  padding: 0.28rem 0.8rem; border-radius: 50px; margin-bottom: 0.9rem;
  border: 1px solid rgba(255,107,0,0.2);
}
.about-content h2 { margin-bottom: 0.9rem; }
.about-content p  { color: var(--muted); margin-bottom: 0.9rem; font-size: 0.95rem; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 1.75rem; }
.pillar  { background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem; }
.pillar .icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
.pillar h4    { font-size: 0.88rem; color: var(--saffron); margin-bottom: 0.2rem; }
.pillar p     { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ============================================================
   EVENTS
   ============================================================ */
#events { background: var(--off-white); }

.year-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.year-tab {
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}
.year-tab:hover       { border-color: var(--saffron); color: var(--saffron); }
.year-tab.active      { background: var(--saffron); border-color: var(--saffron); color: white; }

.event-panel          { display: none; }
.event-panel.active   { display: block; }
.events-grid-inner    { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.event-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.event-img img              { width: 100%; height: 100%; object-fit: cover; }
.event-month-badge          { position: absolute; top: 0.65rem; left: 0.65rem; background: var(--saffron); color: white; font-size: 0.7rem; font-weight: 700; padding: 0.22rem 0.6rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.event-img-placeholder      { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--saffron); font-size: 0.8rem; text-align: center; gap: 0.3rem; padding: 1.25rem; }
.event-img-placeholder .big-icon { font-size: 2.2rem; opacity: 0.5; }

.event-body    { padding: 1.1rem; }
.event-body h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.event-meta    { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.65rem; flex-wrap: wrap; }
.event-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.event-body p  { font-size: 0.86rem; color: var(--muted); line-height: 1.6; margin: 0; }
.event-impact  { margin-top: 0.5rem; font-size: 0.78rem; color: var(--green); font-weight: 600; }

/* Gallery strip */
.event-gallery      { padding: 0 1.1rem 1.1rem; }
.event-gallery-grid   {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.gallery-thumb      { aspect-ratio: 1; border-radius: 5px; overflow: hidden; cursor: zoom-in; background: var(--saffron-light); border: 1px solid var(--border); transition: transform 0.15s; }
.gallery-thumb:hover { transform: scale(1.05); }
.gallery-thumb img  { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--saffron); opacity: 0.4; }

.no-events-msg { text-align: center; color: var(--muted); padding: 2rem; font-size: 0.9rem; }

/* ============================================================
   COMMITTEE
   ============================================================ */
/*.committee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; justify-content: center; }*/
.committee-grid { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1.25rem; 
  /* This shifts the entire block to the center */
  justify-content: center; 
}

/* This rule leaves your card layout footprint exactly as it was originally */
.committee-grid > * {
  flex: 1 1 180px;
  max-width: 220px; /* Adjust this to match the exact maximum width your cards had in grid mode */
}
.member-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.member-card:hover  { transform: translateY(-3px); }
.member-photo       { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--saffron-light), var(--gold-light)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.member-photo img   { width: 100%; height: 100%; object-fit: cover; }
.member-initials    { width: 72px; height: 72px; border-radius: 50%; background: var(--saffron); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; font-family: var(--font-head); }
.member-info        { padding: 0.9rem; }
.member-info h3     { font-size: 0.95rem; margin-bottom: 0.2rem; }
.member-role        { font-size: 0.78rem; color: var(--saffron); font-weight: 600; display: block; margin-bottom: 0.2rem; }
.member-since       { font-size: 0.72rem; color: var(--muted); }
.president-card     { border: 2px solid var(--gold); }
.president-card .member-initials { background: linear-gradient(135deg, var(--saffron), var(--gold)); }

/* ============================================================
   SOCIAL WORK
   ============================================================ */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }

.social-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--saffron);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Soft oversized icon watermark in the corner — gives texture without
   needing real photography for each initiative */
.social-bg-icon {
  position: absolute;
  top: -18px;
  right: -14px;
  font-size: 5.5rem;
  line-height: 1;
  opacity: 0.07;
  transform: rotate(12deg);
  pointer-events: none;
  user-select: none;
}

.social-card .icon-circle {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}
.social-card h3 {
  position: relative;
  z-index: 1;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
  line-height: 1.3;
}
.social-tagline {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--saffron-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.social-card .impact {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
}

/* Collapsed by default — smoothly grows open on tap */
.social-expand {
  position: relative;
  z-index: 1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.social-expand p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0.75rem 0 0;
}
.social-when {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.18rem 0.6rem;
  margin-top: 0.75rem;
}
.social-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.social-tag  { font-size: 0.68rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: 50px; white-space: nowrap; }

/* Read more / show less toggle button */
.social-toggle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--saffron);
  cursor: pointer;
  font-family: var(--font-body);
}
.social-toggle:hover { color: var(--saffron-dark); }
.social-toggle .toggle-arrow { transition: transform 0.25s; font-size: 0.7rem; }
.social-toggle .less-label   { display: none; }
.social-card-open .social-toggle .more-label  { display: none; }
.social-card-open .social-toggle .less-label  { display: inline; }
.social-card-open .social-toggle .toggle-arrow { transform: rotate(180deg); }

/* Featured stat badge — small corner circle for milestone numbers */
.social-card-featured { border-width: 1px 1px 1px 4px; }
.social-stat-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  text-align: center;
}
.social-stat-num { font-size: 0.95rem; font-weight: 800; font-family: var(--font-head); }

/* ── Social Work page hero stats strip ───────────────────────────────────── */
.social-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 880px;
  margin: 1.5rem auto 0;
}
.social-stats-strip .stat-box {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 0.75rem 0.4rem;
  text-align: center;
  backdrop-filter: blur(6px);
}
.social-stats-strip .stat-box .number { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 800; color: #fff; font-family: var(--font-head); }
.social-stats-strip .stat-box .label  { font-size: 0.64rem; color: rgba(255,255,255,0.85); margin-top: 0.2rem; line-height: 1.25; }

/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
#contact { background: #1a0a00; color: white; padding: 3rem 0 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info h4,
.contact-links h4     { color: var(--gold); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.9rem; }
.contact-info li,
.contact-links li     { list-style: none; margin-bottom: 0.55rem; font-size: 0.95rem; color: rgba(255,255,255,0.7); display: flex; align-items: flex-start; gap: 0.45rem; }
.contact-links a      { color: rgba(255,255,255,0.7); }
.contact-links a:hover{ color: var(--gold); }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Social icons */
.social-links { display: flex; gap: 0.7rem; margin-top: 0.9rem; }
.social-link  { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.95rem; transition: all 0.2s; }
.social-link:hover { background: var(--saffron); border-color: var(--saffron); color: white; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open  { display: flex; }
.lightbox-inner { position: relative; max-width: 92vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox img   { max-width: 90vw; max-height: 82vh; border-radius: 8px; object-fit: contain; }
.lightbox-close { position: absolute; top: -2.5rem; right: 0; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; line-height: 1; padding: 0.25rem 0.5rem; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: white;
  font-size: 1.6rem; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; touch-action: manipulation;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: -52px; }
.lightbox-next { right: -52px; }
.lightbox-counter { position: absolute; bottom: -1.8rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.82rem; white-space: nowrap; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--saffron); color: white; border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,107,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.section-title, .event-card, .member-card, .social-card, .pillar { opacity: 0; animation: fadeInUp 0.45s ease forwards; }

/* ============================================================
   ██████████  RESPONSIVE  ██████████
   Breakpoints:
     1024px  — small laptops / large tablets landscape
      768px  — tablets portrait (iPad)
      640px  — large phones landscape / small tablets
      480px  — phones portrait (most common mobile)
      360px  — small Android phones
   ============================================================ */

/* ── 1024px: small laptops, tablets landscape ── */
@media (max-width: 1024px) {
  .container { padding: 0 1.25rem; }
  .section   { padding: 3.5rem 0; }

  .hero-inner       { gap: 2rem; padding: 3rem 1.25rem; }
  .hero-image-grid  { gap: 0.6rem; }

  .about-grid { gap: 2.5rem; }

  .contact-grid { gap: 2rem; }
}

/* ── 900px: hide hero image grid, stack about ── */
@media (max-width: 900px) {
  .hero-inner      { grid-template-columns: 1fr; }
  .hero-image-grid { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img  { aspect-ratio: 16/9; max-height: 300px; }

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

/* ── 768px: tablet portrait (iPad) ── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Nav: show hamburger, hide desktop links */
  .nav-toggle  { display: flex; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-top: 1px solid var(--border);
    z-index: 999;
    gap: 0.25rem;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a    { font-size: 1rem; padding: 0.7rem 1rem; border-radius: 8px; }
  .nav-menu .btn-nav { text-align: center; margin-top: 0.25rem; }

  /* Logo text — shrink on tablet */
  .logo-text .name    { font-size: 0.95rem; }
  .logo-text .tagline { display: none; }
  .site-logo img      { height: 42px; }

  /* Hero */
  .section { padding: 3rem 0; }
  #hero    { min-height: auto; padding: 0; }
  .hero-inner    { padding: 2.5rem 1.25rem; }
  .hero-badge    { font-size: 0.78rem; padding: 0.35rem 0.85rem; margin-bottom: 1rem; }
  .hero-subtitle { font-size: 0.92rem; margin-bottom: 1.5rem; }
  .hero-stats    { gap: 0.6rem; margin-bottom: 1.5rem; }
  .stat-box      { padding: 0.75rem 0.4rem; }
  .hero-btns     { gap: 0.6rem; }
  .btn           { padding: 0.7rem 1.3rem; font-size: 0.88rem; }

  /* About */
  .pillars { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* Events */
  .events-grid-inner { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

  /* Committee — 3 columns on tablet */
  .committee-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  /* Social */
  .social-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Footer */
  .contact-grid  { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.3rem; }
}

/* ── 640px: large phones landscape / small tablets ── */
@media (max-width: 640px) {
  :root { --nav-h: 56px; }

  .container { padding: 0 1rem; }
  .section   { padding: 2.5rem 0; }

  /* Section headings smaller */
  .section-title     { margin-bottom: 2rem; }
  .section-title p   { font-size: 0.92rem; }

  /* Hero */
  .hero-inner     { padding: 2rem 1rem; }
  .hero-stats     { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .stat-box       { padding: 0.65rem 0.3rem; }
  .stat-box .number  { font-size: 1.25rem; }
  .stat-box .label   { font-size: 0.65rem; }
  .hero-btns      { flex-direction: column; }
  .btn            { justify-content: center; width: 100%; }

  /* About */
  .about-img  { aspect-ratio: 3/2; }
  .pillars    { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .pillar     { padding: 0.75rem; }

  /* Events — single column */
  .events-grid-inner { grid-template-columns: 1fr; }
  .year-tab          { padding: 0.45rem 1rem; font-size: 0.82rem; }

  /* Committee — 2 columns */
  .committee-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .member-initials { width: 60px; height: 60px; font-size: 1.4rem; }

  /* Social — single column */
  .social-grid { grid-template-columns: 1fr; }

  /* Footer — stack */
  .contact-grid  { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Lightbox arrows move closer on small screens */
  .lightbox-prev { left: -38px; }
  .lightbox-next { right: -38px; }

  /* Back to top — closer to edge */
  #back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1rem; }
}

/* ── 480px: phones portrait ── */
@media (max-width: 480px) {
  :root { --nav-h: 54px; }

  /* Logo: show only image on very small screens */
  .logo-text .name { font-size: 0.88rem; }
  .site-logo img   { height: 38px; }

  /* Lang toggle smaller */
  .lang-btn { padding: 0.22rem 0.55rem; font-size: 0.7rem; }

  /* Hero */
  .hero-inner     { padding: 1.75rem 1rem 2rem; }
  .hero-badge     { font-size: 0.72rem; padding: 0.3rem 0.75rem; }
  .hero-stats     { gap: 0.4rem; }
  .stat-box       { border-radius: 8px; }
  .hero-btns      { gap: 0.5rem; }
  .btn            { padding: 0.72rem 1rem; font-size: 0.86rem; }

  /* About pillars: stack to 1 col on very small */
  .pillars { grid-template-columns: 1fr; gap: 0.6rem; }

  /* Events */
  .event-body h3 { font-size: 0.95rem; }
  .gallery-thumb-placeholder { font-size: 1.1rem; }

  /* Committee: 2 columns still, but smaller cards */
  .member-info h3   { font-size: 0.88rem; }
  .member-role      { font-size: 0.72rem; }
  .member-since     { font-size: 0.68rem; }

  /* Lightbox: arrows inside the image area on phones */
  .lightbox-prev { left: 4px; background: rgba(0,0,0,0.5); }
  .lightbox-next { right: 4px; background: rgba(0,0,0,0.5); }
  .lightbox img  { max-width: 98vw; max-height: 78vh; }

  /* Footer */
  .footer-bottom { font-size: 0.75rem; }
  .contact-info li,
  .contact-links li { font-size: 0.95rem; }
}

/* ── 360px: small Android phones ── */
@media (max-width: 360px) {
  :root { --nav-h: 52px; }

  .site-logo img  { height: 34px; }
  .logo-text .name { font-size: 0.82rem; }

  .hero-inner  { padding: 1.5rem 0.85rem; }
  .hero-stats  { gap: 0.35rem; }
  .stat-box .number { font-size: 1.1rem; }

  .committee-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .member-initials { width: 52px; height: 52px; font-size: 1.2rem; }

  .year-tab { padding: 0.4rem 0.85rem; font-size: 0.78rem; }

  .social-card { padding: 1.1rem; }
}

/* ============================================================
   TOUCH / INTERACTION improvements for mobile
   ============================================================ */

/* Larger touch targets */
@media (hover: none) and (pointer: coarse) {
  .year-tab   { min-height: 44px; }
  .lang-btn   { min-height: 36px; }
  .nav-menu a { min-height: 48px; display: flex; align-items: center; }
  .gallery-thumb { cursor: pointer; }
  /* Disable hover lift on touch — avoids stuck hover states */
  .event-card:hover,
  .member-card:hover,
  .social-card:hover { transform: none; }
}

/* Prevent tap highlight on interactive elements */
a, button, .year-tab, .gallery-thumb, .lang-btn {
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   SMOOTH OPEN OVERLAY — mobile nav slide animation
   ============================================================ */
@media (max-width: 768px) {
  .nav-menu {
    animation: none;
    transform-origin: top;
  }
  .nav-menu.open {
    animation: slideDown 0.22s ease forwards;
  }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   UTILITY: hide scrollbar on year-tabs horizontal scroll on mobile
   ============================================================ */
@media (max-width: 480px) {
  .year-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .year-tabs::-webkit-scrollbar { display: none; }
  .year-tab { flex-shrink: 0; }
}

/* ── Gallery photo count label ───────────────────────────────────────────── */
.gallery-count {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.4rem 0 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.gallery-count::before { content: '🖼️'; font-size: 0.8rem; }

/* ── Event impact line ───────────────────────────────────────────────────── */
.event-impact {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}

/* ============================================================
   PASTE THIS ENTIRE BLOCK AT THE BOTTOM OF YOUR style.css
   ============================================================ */

/* ── Tagline strip ─────────────────────────────────────────── */
.tagline-strip {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  padding: 0.85rem 1.25rem;
}
.tagline-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-head);
  letter-spacing: 0.5px;
}
.tagline-inner .sep { opacity: 0.5; }

/* ── Quick nav section ─────────────────────────────────────── */
.quick-nav-section { padding: 3rem 0; background: var(--off-white); }
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.qnav-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.qnav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--saffron);
  transform: scaleX(0);
  transition: transform 0.25s;
  transform-origin: left;
}
.qnav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--saffron); color: var(--text); }
.qnav-card:hover::before { transform: scaleX(1); }
.qnav-featured { border-color: var(--saffron); }
.qnav-featured::before { transform: scaleX(1); }
.qnav-icon { font-size: 2rem; margin-bottom: 0.25rem; }
.qnav-card h3 { font-size: 1.1rem; color: var(--dark); margin: 0; }
.qnav-card p  { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.5; flex: 1; }
.qnav-arrow   { font-size: 1.1rem; color: var(--saffron); font-weight: 700; margin-top: 0.5rem; }

/* ── About teaser (homepage 2-col) ────────────────────────── */
.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}
.about-teaser-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--saffron-light);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--saffron);
}
.about-teaser-img img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser-content h2 { margin-bottom: 0.9rem; }
.about-teaser-content p  { color: var(--muted); font-size: 0.95rem; }

/* ── Saffron button variant ─────────────────────────────────── */
.btn-saffron {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.6rem;
  background: var(--saffron);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid var(--saffron);
  transition: all 0.2s;
  margin-top: 1rem;
}
.btn-saffron:hover { background: var(--saffron-dark); border-color: var(--saffron-dark); color: white; }

/* ── Page hero (used on inner pages) ───────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1a0a00 0%, #3d1200 40%, #CC5500 100%);
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' fill-opacity='0.03'%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/svg%3E");
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 753px; margin: 0 auto; }
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gold);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.page-hero h1 { color: white; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.78); font-size: 1rem; line-height: 1.7; }

/* ── Timeline (About page) ──────────────────────────────────── */
.timeline { position: relative; max-width: 700px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 71px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--saffron);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--saffron);
  z-index: 1;
}
.timeline-year {
  min-width: 60px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--saffron);
  padding-top: 4px;
  text-align: right;
}
.timeline-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  flex: 1;
  box-shadow: var(--shadow);
}
.timeline-content h4 { margin-bottom: 0.3rem; font-size: 1rem; }
.timeline-content p  { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ── Pillars large variant (About page) ─────────────────────── */
.pillars-large {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.pillars-large .pillar {
  padding: 1.5rem;
  text-align: center;
}
.pillars-large .pillar .icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.pillars-large .pillar h4    { font-size: 1rem; margin-bottom: 0.4rem; }
.pillars-large .pillar p     { font-size: 0.86rem; }

/* ── Active nav link (current page) ─────────────────────────── */
.nav-menu a.current-page {
  background: var(--saffron-light);
  color: var(--saffron);
}

/* ── Gallery count ───────────────────────────────────────────── */
.gallery-count {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.4rem 0 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.gallery-count::before { content: '🖼️'; font-size: 0.8rem; }

/* ── Event impact ─────────────────────────────────────────────── */
.event-impact { margin-top: 0.5rem; font-size: 0.8rem; color: var(--green); font-weight: 600; }

/* ── Responsive for new elements ─────────────────────────────── */
@media (max-width: 900px) {
  .quick-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .about-teaser-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillars-large { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .quick-nav-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .tagline-inner  { font-size: 0.88rem; gap: 0.6rem; }
  .pillars-large  { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 60px; }
  .timeline-year    { min-width: 44px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .quick-nav-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .qnav-card      { padding: 1.1rem 0.9rem; }
  .qnav-icon      { font-size: 1.6rem; }
  .qnav-card h3   { font-size: 0.95rem; }
  .pillars-large  { grid-template-columns: 1fr; }
}

/* ── Gallery +N more button ──────────────────────────────────── */
.gallery-more-btn {
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--saffron);
  color: white;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body);
  width: 100%;
  padding: 0;
}
.gallery-more-btn:hover { background: var(--saffron-dark); transform: scale(1.05); }

/* "show less" inline text link */
.gallery-less-link { margin-left: 0.25rem; }
.gallery-less-btn  { color: var(--saffron); font-size: 0.75rem; text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; font-family: var(--font-body); }
.gallery-less-btn:hover { color: var(--saffron-dark); }

/* Responsive: fewer columns on smaller screens */
@media (max-width: 480px) {
  .event-gallery-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 360px) {
  .event-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.about-grid .about-img.event-card {
  box-shadow: none;
  border: none;
  background: transparent;
  transform: none !important; /* Prevents card hovering effects if undesired here */
}

.about-teaser-img.event-card,
.about-img.event-card {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important; /* Removes the card shadow so it looks clean */
}

/* Subtle skeleton-loading tint while an image's src hasn't loaded yet.
   Paste this at the bottom of style.css */
.event-img-deferred {
  background: var(--saffron-light, #ffe9d6);
}

.hero-single-brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.hero-brand-emblem {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  
  /* 1. Force absolute transparency and strip layout frames */
  background: transparent !important; 
  border: none !important; 
  
  /* 2. CRITICAL: Kill the square box shadow */
  box-shadow: none !important; 
  
  /* 3. OPTIONAL: Adds a realistic glow strictly behind the gold shapes, NOT a box */
  /*filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.6));*/
  
  transition: transform 0.3s ease;
}

.hero-brand-emblem:hover {
  transform: scale(1.02); /* Clean, low-risk interactive micro-animation */
}

@media (max-width: 1024px) {
  .hero-brand-emblem {
    max-width: 460px;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding-top: 1.5rem !important;
  }
  .hero-brand-emblem {
    max-width: 90px;
  }
  .hero-title, 
  .hero-subtitle {
    padding-right: 100px !important;
  }
}

@media (max-width: 768px) {
  /* 1. Make the content area relative so the image anchors safely */
  .hero-inner {
    position: relative !important;
    display: block !important; 
    /* REMOVED: Extra padding-top removed to bring content back up */
    padding-top: 2rem !important; 
  }

  /* 2. Reposition the image wrapper right into the upper corner */
  .hero-single-brand-wrapper {
    position: absolute !important;
    top: 0.5rem;
    right: 0.5rem;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    z-index: 10;
  }

  /* 3. Balanced badge-size for mobile headers */
  .hero-brand-emblem {
    max-width: 105px; 
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.45));
  }
  
  /* 4. Keeps text safe from overlapping the logo badge */
  .hero-title, 
  .hero-subtitle {
    padding-right: 115px !important;
  }
}