/* ==========================================================================
   84 Batch College Reunion (1990–2000 Class Batch) | Rajarata Vidyalaya
   Shared Stylesheet & Design System (styles.css)
   ========================================================================== */

:root {
  /* Color Palette — Warm Heritage & Celebration */
  --navy-950: #090e1a;
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;

  --gold-700: #B45309;
  --gold-600: #D97706;
  --gold-500: #F59E0B;
  --gold-400: #FBBF24;
  --gold-300: #FCD34D;
  --gold-100: #FEF3C7;
  --gold-50: #FFFBEB;

  --emerald-700: #15803D;
  --emerald-600: #16A34A;
  --emerald-100: #DCFCE7;

  --cream: #FAF9F6;
  --cream-warm: #F5F2EB;
  --white: #FFFFFF;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, Cambria, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Radius */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-gold: 0 10px 25px -5px rgba(217, 119, 6, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
  --navbar-height: 82px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--navy-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Container & Layout Helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background-color: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-navy {
  background: linear-gradient(135deg, var(--navy-900) 0%, #16223d 100%);
  color: var(--white);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-600);
  background-color: var(--gold-100);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-navy .eyebrow {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
  border-color: rgba(245, 158, 11, 0.3);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.section-navy .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.section-navy .section-subtitle {
  color: var(--slate-400);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.55rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  box-shadow: 0 14px 28px -5px rgba(217, 119, 6, 0.45);
}

.btn-navy {
  background-color: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-navy:hover {
  background-color: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--navy-900);
  border-color: var(--slate-200);
}

.btn-outline-navy:hover {
  border-color: var(--gold-600);
  color: var(--gold-600);
  background-color: var(--gold-50);
}

/* ==========================================================================
   Sticky Glassmorphism Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 10px 30px -10px rgba(9, 14, 26, 0.5);
}

.nav-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--navy-950);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.nav-brand-sub {
  font-size: 0.72rem;
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--slate-200);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav-link.active {
  color: var(--gold-400);
  background: rgba(245, 158, 11, 0.14);
  font-weight: 600;
}

.nav-cta {
  padding: 0.6rem 1.2rem;
  font-size: 0.86rem;
}

/* Mobile Menu Button */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-400);
}

/* ==========================================================================
   Page Banner (Interior Pages)
   ========================================================================== */
.page-hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.22), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(22, 163, 74, 0.15), transparent 45%),
              linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, #172542 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  border-bottom: 3px solid var(--gold-600);
  overflow: hidden;
}

.page-hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 1rem;
  color: var(--white);
}

.page-hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: var(--gold-300);
  margin-bottom: 0.85rem;
}

.page-hero-desc {
  color: var(--slate-200);
  font-size: 1.04rem;
  max-width: 660px;
  margin: 0 auto;
}

/* ==========================================================================
   Page 1: Home Hero & Countdown
   ========================================================================== */
.hero-home {
  position: relative;
  background: radial-gradient(circle at 82% 24%, rgba(245, 158, 11, 0.24), transparent 42%),
              radial-gradient(circle at 14% 75%, rgba(21, 128, 61, 0.18), transparent 45%),
              linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 55%, #16233f 100%);
  color: var(--white);
  padding: 5rem 0 5.5rem;
  border-bottom: 4px solid var(--gold-600);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
}

.hero-school-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--slate-200);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.14;
  margin-bottom: 1.1rem;
  color: var(--white);
}

.hero-headline span {
  color: var(--gold-400);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--gold-300);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 1.02rem;
  color: var(--slate-200);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-event-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  font-weight: 600;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

/* Hero Right Column: Crest Showcase & Live Countdown Card */
.hero-showcase-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  text-align: center;
  position: relative;
}

.hero-logo-medallion {
  width: 148px;
  height: 148px;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  background: var(--white);
  padding: 8px;
  border: 4px solid var(--gold-500);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-medallion img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.countdown-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.countdown-target {
  font-size: 0.83rem;
  color: var(--gold-300);
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.countdown-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  margin-top: 0.35rem;
  font-weight: 600;
}

.countdown-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Quick Navigation Feature Strip */
.quick-strip {
  margin-top: -2.25rem;
  position: relative;
  z-index: 10;
}

.quick-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.quick-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-lg);
}

.quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--gold-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.quick-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy-900);
  margin-bottom: 0.2rem;
}

.quick-card p {
  font-size: 0.83rem;
  color: var(--slate-600);
  line-height: 1.45;
}

/* ==========================================================================
   Organizing Committee Cards (Section 04)
   ========================================================================== */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}

.committee-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.committee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--navy-900), var(--gold-500));
}

.committee-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(217, 119, 6, 0.4);
}

.committee-avatar-wrap {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-500), var(--navy-900));
  margin-bottom: 1.15rem;
  position: relative;
}

.committee-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  background-color: var(--slate-100);
}

.role-badge {
  display: inline-block;
  background: var(--gold-100);
  color: var(--gold-700);
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.committee-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.3rem;
}

.committee-sub {
  font-size: 0.86rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
  flex: 1;
}

.committee-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
}

.action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  flex: 1;
}

.action-whatsapp {
  background-color: var(--emerald-100);
  color: var(--emerald-700);
}

.action-whatsapp:hover {
  background-color: var(--emerald-600);
  color: var(--white);
}

.action-phone {
  background-color: var(--slate-100);
  color: var(--navy-800);
}

.action-phone:hover {
  background-color: var(--navy-900);
  color: var(--white);
}

/* ==========================================================================
   Batch Wall & Comment Section (Section 07)
   ========================================================================== */
.wall-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 2.5rem;
  align-items: start;
}

.wall-form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--navbar-height) + 1.5rem);
}

.wall-form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}

.wall-form-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background-color: var(--cream);
  color: var(--navy-900);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-600);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.wall-messages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.wall-count-badge {
  background: var(--navy-900);
  color: var(--gold-400);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}

.wall-feed {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.comment-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.comment-card:hover {
  box-shadow: var(--shadow-sm);
}

.comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-author {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.98rem;
}

.comment-location {
  font-size: 0.8rem;
  color: var(--gold-700);
  font-weight: 600;
}

.comment-date {
  font-size: 0.76rem;
  color: var(--slate-400);
  white-space: nowrap;
}

.comment-body {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ==========================================================================
   Page 2: Interactive Timeline (timeline.html)
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: linear-gradient(180deg, var(--gold-500) 0%, var(--navy-900) 50%, var(--gold-500) 100%);
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: calc(50% - 2.75rem);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-lg);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 4px solid var(--gold-500);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 3;
  box-shadow: 0 0 0 6px var(--cream);
}

.timeline-item.highlight-milestone .timeline-dot {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--navy-900);
  transform: translateX(-50%) scale(1.12);
}

.timeline-item.highlight-milestone .timeline-content {
  border: 2px solid var(--gold-500);
  background: linear-gradient(to bottom right, var(--white), var(--gold-50));
}

.year-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy-900);
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}

.timeline-item.highlight-milestone .year-pill {
  background: var(--gold-600);
  color: var(--white);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  color: var(--navy-900);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.timeline-story {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin-bottom: 1.15rem;
}

.timeline-photo-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  height: 195px;
  border: 1px solid var(--slate-200);
  background: var(--slate-100);
}

.timeline-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.timeline-photo-wrap:hover img {
  transform: scale(1.05);
}

.timeline-zoom-hint {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(15, 23, 42, 0.82);
  color: var(--white);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   Page 3: Member Directory & Past Teachers (members-teachers.html)
   ========================================================================== */
.directory-controls {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.search-box-wrap {
  position: relative;
  flex: 1 1 320px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  background: var(--cream);
  color: var(--navy-900);
  font-size: 0.94rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--cream);
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--gold-500);
  color: var(--navy-900);
}

.filter-btn.active {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--navy-900);
}

.directory-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--slate-600);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.5rem;
}

.member-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}

.member-avatar-box {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin-bottom: 1rem;
  position: relative;
  border: 3px solid var(--gold-500);
  padding: 2px;
  background: var(--white);
  overflow: hidden;
}

.member-avatar-box img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.member-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.member-profession {
  font-size: 0.87rem;
  color: var(--gold-700);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.member-location {
  font-size: 0.83rem;
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.attendance-badge {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}

.badge-attending {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.badge-overseas {
  background: var(--gold-100);
  color: var(--gold-700);
}

/* Past Teachers Tribute Cards (Section 05) */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.teacher-card {
  background: var(--white);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.teacher-top {
  background: linear-gradient(135deg, var(--navy-900), #1e2d4d);
  padding: 1.75rem 1.5rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  color: var(--white);
  border-bottom: 3px solid var(--gold-500);
}

.teacher-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-400);
  flex-shrink: 0;
  background: var(--navy-800);
}

.teacher-subject {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  margin-bottom: 0.2rem;
}

.teacher-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.teacher-era {
  font-size: 0.78rem;
  color: var(--slate-400);
  margin-top: 0.15rem;
}

.teacher-body {
  padding: 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teacher-quote {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ==========================================================================
   Page 4: Photo Gallery & Lightbox (gallery.html)
   ========================================================================== */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-500);
}

.gallery-img-box {
  position: relative;
  height: 245px;
  overflow: hidden;
  background: var(--navy-900);
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-box img {
  transform: scale(1.07);
}

.gallery-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(15, 23, 42, 0.86);
  color: var(--gold-400);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.gallery-caption-box {
  padding: 1.15rem 1.35rem;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.gallery-meta {
  font-size: 0.82rem;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 14, 26, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-container {
  position: relative;
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.35);
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-height: 75vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-caption-bar {
  margin-top: 1rem;
  text-align: center;
  color: var(--white);
}

.lightbox-caption-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-400);
  margin-bottom: 0.2rem;
}

.lightbox-caption-sub {
  font-size: 0.88rem;
  color: var(--slate-300);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-btn:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.lightbox-prev {
  left: -3.75rem;
}

.lightbox-next {
  right: -3.75rem;
}

.lightbox-close {
  position: absolute;
  top: -3.2rem;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

/* ==========================================================================
   Page 5: Event Fund & Official Bank Details (bank.html)
   ========================================================================== */
.bank-layout {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.bank-card {
  background: var(--white);
  border: 2px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.bank-card-header {
  background: linear-gradient(135deg, var(--navy-900) 0%, #1c2b4b 100%);
  color: var(--white);
  padding: 2rem 2.2rem;
  border-bottom: 3px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bank-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.bank-verified-pill {
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(22, 163, 74, 0.5);
  color: #86EFAC;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.bank-card-body {
  padding: 2.2rem;
}

.bank-detail-row {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--slate-200);
}

.bank-detail-row:first-child {
  padding-top: 0;
}

.bank-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.bank-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
}

.account-number-box {
  margin: 1.25rem 0;
  background: var(--gold-50);
  border: 1.5px solid var(--gold-400);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-digits {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.reference-alert {
  background: var(--slate-100);
  border-left: 4px solid var(--gold-600);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--navy-800);
}

.bank-steps-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 1.5rem 0 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 0.98rem;
  color: var(--gold-300);
  margin-bottom: 0.2rem;
}

.step-text p {
  font-size: 0.85rem;
  color: var(--slate-300);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  background: var(--navy-900);
  color: var(--white);
  border: 1px solid var(--gold-500);
  border-left: 5px solid var(--gold-500);
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  transform: translateY(130%);
  opacity: 0;
  transition: var(--transition);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Page 6: Live Embedded Member Web App Portal (portal.html)
   ========================================================================== */
.portal-utility-bar {
  background: linear-gradient(90deg, #131d36 0%, var(--navy-900) 100%);
  border-bottom: 2px solid var(--gold-600);
  color: var(--white);
  padding: 0.75rem 0;
}

.portal-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.portal-utility-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--slate-200);
}

.portal-otp-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--gold-300);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.portal-fullscreen-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.portal-fullscreen-link:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.portal-embed-wrapper {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 140px);
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.portal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  z-index: 5;
  transition: opacity 0.4s ease;
  padding: 2rem;
  text-align: center;
}

.portal-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--gold-100);
  border-top-color: var(--gold-600);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 1.1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.portal-iframe {
  width: 100%;
  min-height: calc(100vh - 140px);
  border: none;
  flex: 1;
  position: relative;
  z-index: 6;
  background: transparent;
}

/* ==========================================================================
   Shared Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy-950);
  color: var(--slate-400);
  border-top: 3px solid var(--gold-600);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-heading {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.12rem;
  margin-bottom: 1.1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--slate-400);
}

.footer-links a:hover {
  color: var(--gold-400);
  transform: translateX(3px);
}

.footer-event-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.footer-event-date {
  color: var(--gold-400);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--navy-950);
    border-bottom: 2px solid var(--gold-600);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.45rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .wall-layout,
  .bank-layout {
    grid-template-columns: 1fr;
  }

  .wall-form-card {
    position: static;
  }

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

  .lightbox-prev {
    left: 0.75rem;
  }

  .lightbox-next {
    right: 0.75rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .timeline-wrapper::before {
    left: 24px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 64px;
  }

  .timeline-dot,
  .timeline-item.highlight-milestone .timeline-dot {
    left: 24px;
    top: 0;
  }

  .timeline-content {
    width: 100%;
  }

  .hero-event-meta {
    grid-template-columns: 1fr;
  }

  .quick-strip-grid {
    grid-template-columns: 1fr;
  }

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