/* ==========================================================================
   HOLY IMMANUEL CHURCH (தூய இம்மானுவேல் ஆலயம்)
   Official Church Website Design System
   Palette: White, Warm Cream, Navy Blue, Subtle Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Noto+Sans+Tamil:wght@400;500;600;700&family=Noto+Serif+Tamil:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-white: #ffffff;
  --bg-cream: #faf6ee;
  --bg-cream-deep: #f2e9d8;
  --bg-surface: #ffffff;

  --navy-950: #081224;
  --navy-900: #0f213e;
  --navy-800: #18325b;
  --navy-700: #25487d;
  --navy-100: #e9eff7;

  --gold-600: #a27a26;
  --gold-500: #c89d42;
  --gold-400: #dec073;
  --gold-100: #fbf3de;

  --text-main: #1b2538;
  --text-secondary: #4a5870;
  --text-muted: #6c7a91;
  --text-on-dark: #f9f6ef;

  --success-bg: #e7f6ee;
  --success-text: #166534;
  --warning-bg: #fef5e2;
  --warning-text: #92400e;
  --danger-bg: #fdecec;
  --danger-text: #b91c1c;

  --border-soft: rgba(15, 33, 62, 0.1);
  --border-gold: rgba(200, 157, 66, 0.35);

  --shadow-xs: 0 2px 6px rgba(9, 21, 41, 0.05);
  --shadow-sm: 0 6px 18px rgba(9, 21, 41, 0.07);
  --shadow-md: 0 14px 36px rgba(9, 21, 41, 0.1);
  --shadow-lg: 0 24px 56px rgba(9, 21, 41, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-serif: 'Cormorant Garamond', 'Noto Serif Tamil', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Tamil', system-ui, -apple-system, sans-serif;

  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1220px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.92rem + 0.18vw, 1.02rem);
  color: var(--text-main);
  background-color: var(--bg-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  animation: pageFadeIn 0.45s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

/* Typography Helpers */
h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.2;
}

.tamil-title {
  font-family: 'Noto Serif Tamil', var(--font-serif);
}

.section {
  padding: clamp(52px, 7vw, 84px) 0;
}

.section-cream {
  background-color: var(--bg-cream);
}

.section-white {
  background-color: var(--bg-white);
}

.section-navy {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--text-on-dark);
}

.section-navy h2, .section-navy h3, .section-navy h4 {
  color: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 48px);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.7rem, 1.1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: var(--gold-100);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-navy .section-eyebrow {
  background: rgba(200, 157, 66, 0.16);
  color: var(--gold-400);
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
}

.section-navy .section-subtitle {
  color: rgba(249, 246, 239, 0.78);
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 0;
  width: min(180px, 60%);
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.gold-divider span {
  color: var(--gold-500);
  font-size: 0.95rem;
}

/* ==========================================================================
   TOP BAR & NAVIGATION
   ========================================================================== */
.top-announcement-bar {
  background: var(--navy-950);
  color: var(--gold-400);
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(200, 157, 66, 0.25);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

#top-announcement-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.top-bar-badge {
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
}

.site-header .container {
  max-width: 1380px;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.8vw, 24px);
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 12px);
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: clamp(38px, 4.5vw, 48px);
  height: clamp(38px, 4.5vw, 48px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-500);
  background: var(--navy-900);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name-en {
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-name-ta {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  font-weight: 600;
  color: var(--gold-600);
  line-height: 1.3;
  white-space: nowrap;
}

.nav-menu-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.7vw, 10px);
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px clamp(8px, 0.9vw, 13px);
  border-radius: var(--radius-sm);
  font-size: clamp(0.84rem, 0.8vw + 0.1rem, 0.92rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

html[lang="ta"] .nav-links {
  gap: clamp(2px, 0.35vw, 5px);
}

html[lang="ta"] .nav-link {
  font-size: clamp(0.78rem, 0.3vw + 0.55rem, 0.82rem);
  padding: 8px clamp(6px, 0.55vw, 9px);
  line-height: 1.35;
}

.nav-link:hover,
.nav-link.active {
  background: var(--gold-100);
  color: var(--navy-900);
}

.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--gold-500);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-cream);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

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

.mobile-menu-toggle {
  display: none;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--navy-900);
  font-size: 1.25rem;
  line-height: 1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px clamp(18px, 2.5vw, 24px);
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: clamp(0.86rem, 1.2vw, 0.94rem);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-sm {
  padding: 8px 16px;
  min-height: 38px;
  font-size: 0.84rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 6px 18px rgba(200, 157, 66, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(200, 157, 66, 0.4);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--bg-white);
}

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

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

.btn-outline:hover {
  background: var(--navy-900);
  color: var(--bg-white);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--bg-white);
  backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
  background: var(--bg-white);
  color: var(--navy-900);
}

.btn-danger {
  background: var(--danger-text);
  color: #fff;
}

.btn-danger:hover {
  background: #991b1b;
}

/* ==========================================================================
   HERO & PAGE HEADERS
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(460px, 72vh, 620px);
  display: flex;
  align-items: center;
  padding: clamp(56px, 9vw, 96px) 0;
  color: var(--bg-white);
  background: var(--navy-950);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}

.hero-bg-video {
  opacity: 0.52;
  transform: none;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 18, 36, 0.72) 0%,
    rgba(15, 33, 62, 0.65) 55%,
    rgba(8, 18, 36, 0.9) 100%
  );
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(200, 157, 66, 0.18);
  border: 1px solid rgba(222, 192, 115, 0.45);
  color: var(--gold-400);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  color: var(--bg-white);
  font-size: clamp(2.05rem, 5.2vw, 4.1rem);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-title-tamil {
  font-family: 'Noto Serif Tamil', var(--font-serif);
  font-size: clamp(1.15rem, 2.8vw, 2.05rem);
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  color: rgba(249, 246, 239, 0.9);
  max-width: 660px;
  margin: 0 auto clamp(24px, 4vw, 32px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Page Sub-Hero */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: var(--bg-white);
  padding: clamp(48px, 7vw, 74px) 0 clamp(44px, 6.5vw, 68px);
  text-align: center;
  overflow: hidden;
  border-bottom: 3px solid var(--gold-500);
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(200, 157, 66, 0.16), transparent 65%);
  pointer-events: none;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  color: var(--bg-white);
  font-size: clamp(1.75rem, 4.2vw, 3.2rem);
  margin-bottom: 10px;
}

.page-banner p {
  color: rgba(249, 246, 239, 0.82);
  max-width: 650px;
  margin: 0 auto;
}

/* ==========================================================================
   DAILY BIBLE VERSE CARD
   ========================================================================== */
.verse-banner-wrap {
  margin-top: clamp(-54px, -4.5vw, -24px);
  position: relative;
  z-index: 10;
}

.verse-card {
  background: var(--bg-white);
  border: 1px solid var(--border-gold);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 28px);
}

.verse-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-600);
  margin-bottom: 6px;
}

.verse-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  font-weight: 600;
  color: var(--navy-900);
  font-style: italic;
}

.verse-ref {
  font-weight: 700;
  color: var(--navy-800);
  margin-top: 6px;
  font-size: 0.92rem;
}

.verse-content {
  min-width: 0;
  flex: 1 1 auto;
}

.verse-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.verse-cross {
  font-size: 2.2rem;
  color: var(--gold-500);
  line-height: 1;
}

.verse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.verse-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold);
  background: var(--bg-cream);
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.verse-share-btn:hover {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--navy-900);
}

.verse-share-btn--primary {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--navy-900);
}

.verse-share-btn--primary:hover {
  background: var(--navy-800);
}

.verse-share-btn--wa {
  background: #e7f6ee;
  color: #166534;
  border-color: rgba(22, 163, 74, 0.35);
}

.verse-share-btn--wa:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.card-media {
  position: relative;
  height: clamp(185px, 24vw, 220px);
  background: var(--navy-900);
  overflow: hidden;
}

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

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: clamp(18px, 2.5vw, 24px);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-gold {
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid var(--border-gold);
}

.badge-navy {
  background: var(--navy-100);
  color: var(--navy-900);
}

.badge-upcoming {
  background: var(--success-bg);
  color: var(--success-text);
}

.badge-completed {
  background: #edf0f5;
  color: #4b5563;
}

.badge-dc {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
}

.card-title {
  font-size: clamp(1.16rem, 1.8vw, 1.38rem);
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.card-text {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.3vw, 0.95rem);
  margin-bottom: 16px;
  flex: 1;
  overflow-wrap: break-word;
}

.card-footer-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-footer-link:hover {
  color: var(--gold-600);
}

/* ==========================================================================
   HOME INTRO & ABOUT SPLIT
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4.5vw, 48px);
  align-items: center;
}

.framed-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg-white);
}

.framed-image img {
  width: 100%;
  height: clamp(220px, 40vw, 410px);
  object-fit: cover;
}

.framed-image--compact img {
  height: clamp(200px, 34vw, 280px);
}

.history-summary-card {
  padding: clamp(20px, 3.5vw, 32px);
  margin-bottom: clamp(32px, 5vw, 52px);
  border-left: 5px solid var(--gold-500);
}

.history-summary-title {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.dc-members-grid {
  max-width: 860px;
  margin: 0 auto clamp(44px, 6vw, 72px);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.year-pill-float {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(15, 33, 62, 0.92);
  color: var(--gold-400);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-500);
  backdrop-filter: blur(8px);
}

.year-pill-float strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1;
}

/* ==========================================================================
   WORSHIP CARDS
   ========================================================================== */
.worship-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.worship-day {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  background: var(--gold-100);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.worship-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-800);
  margin: 8px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   TIMELINE (CHURCH HISTORY)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 0;
}

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

.timeline-item {
  position: relative;
  width: 50%;
  padding: 16px 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 32px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 4px solid var(--bg-cream);
  box-shadow: 0 0 0 2px var(--navy-900);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.timeline-card img {
  width: 100%;
  height: clamp(165px, 26vw, 210px);
  object-fit: cover;
}

.timeline-body {
  padding: clamp(16px, 2.5vw, 22px);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 6px;
}

/* ==========================================================================
   COUNTDOWN BANNER (FESTIVALS)
   ========================================================================== */
.countdown-highlight {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  margin-bottom: clamp(28px, 4.5vw, 48px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 3.5vw, 32px);
  align-items: center;
}

.countdown-highlight h2 {
  color: var(--bg-white);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin: 8px 0 10px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 12px);
}

.countdown-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(222, 192, 115, 0.35);
  border-radius: var(--radius-md);
  padding: clamp(12px, 2vw, 16px) 8px;
  text-align: center;
}

.countdown-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}

.countdown-unit {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  display: block;
}

/* ==========================================================================
   COMMITTEE MEMBERS
   ========================================================================== */
.member-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 26px) clamp(16px, 2.5vw, 22px);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

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

.member-card.dc-featured {
  border-top: 4px solid var(--gold-500);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.member-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-500);
  margin-bottom: 16px;
  background: var(--navy-900);
}

.member-initials {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-400);
  border: 3px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.member-designation {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 10px;
}

.member-responsibilities {
  font-size: 0.86rem;
  color: var(--text-secondary);
  background: var(--bg-cream);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  width: 100%;
  margin-top: auto;
  overflow-wrap: break-word;
}

/* ==========================================================================
   FILTER BAR, SEARCH & NEWS DETAIL
   ========================================================================== */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 16px;
  margin-bottom: clamp(22px, 3.5vw, 32px);
  background: var(--bg-white);
  padding: clamp(14px, 2.2vw, 16px) clamp(14px, 2.5vw, 20px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  padding: 8px 16px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-cream);
  color: var(--navy-900);
  font-weight: 600;
  font-size: clamp(0.82rem, 1.2vw, 0.88rem);
  cursor: pointer;
  transition: all var(--transition);
}

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

.search-box {
  position: relative;
  width: 100%;
  min-width: 0;
  flex: 1 1 220px;
  max-width: 360px;
}

.search-box input {
  width: 100%;
  min-height: 42px;
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-cream);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition);
}

.search-box input:focus {
  border-color: var(--gold-500);
  background: var(--bg-white);
}

.search-box-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.news-spotlight-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
}

.news-spotlight-media {
  min-height: clamp(210px, 32vw, 280px);
  background: var(--navy-900);
}

.news-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-spotlight-body {
  padding: clamp(20px, 3.5vw, 32px);
}

.news-spotlight-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.news-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  margin-top: auto;
}

.news-detail-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.news-detail-hero {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.news-detail-body {
  padding: clamp(20px, 4.5vw, 40px);
}

.news-detail-content {
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  line-height: 1.85;
  color: var(--text-main);
  white-space: pre-line;
  margin-top: 24px;
  overflow-wrap: break-word;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(22px, 3.5vw, 32px);
  align-items: start;
}

.contact-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.8vw, 32px);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.contact-item {
  display: flex;
  gap: clamp(12px, 2vw, 16px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

.contact-item > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-item:last-child {
  border-bottom: none;
}

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

.whatsapp-btn {
  background: #16a34a;
  color: #fff;
}

.whatsapp-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
}

.map-frame {
  width: 100%;
  height: clamp(260px, 45vw, 440px);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--navy-100);
}

/* ==========================================================================
   ADMIN LOGIN & DASHBOARD
   ========================================================================== */
.auth-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px) clamp(14px, 3vw, 20px);
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-cream-deep) 100%);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px) clamp(20px, 5vw, 36px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
  border-top: 5px solid var(--navy-900);
}

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

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 33, 62, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  background: var(--bg-white);
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200, 157, 66, 0.18);
}

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

.admin-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  background: #f4f6fa;
}

.admin-sidebar {
  background: var(--navy-950);
  color: var(--text-on-dark);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(200, 157, 66, 0.2);
}

.admin-nav {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(249, 246, 239, 0.82);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
  background: rgba(200, 157, 66, 0.18);
  color: var(--gold-400);
}

.admin-main {
  min-width: 0;
  padding: clamp(16px, 3vw, 28px) clamp(14px, 3.2vw, 34px);
  overflow-x: hidden;
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 16px;
  background: var(--bg-white);
  padding: clamp(14px, 2.5vw, 18px) clamp(16px, 3vw, 24px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.5vw, 22px);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--gold-500);
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

.admin-panel {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 18px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.84rem, 1.2vw, 0.9rem);
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.admin-table th {
  background: var(--bg-cream);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table td .btn {
  margin: 2px 4px 2px 0;
}

.thumb-preview {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-soft);
}

.upload-preview-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-gold);
}

.upload-preview-box img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* ==========================================================================
   MODAL, ALERTS, STATES, FOOTER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 36, 0.68);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vw, 20px);
  z-index: 1200;
}

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

.modal-dialog {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 3.5vw, 28px);
  animation: pageFadeIn 0.25s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.modal-close {
  border: none;
  background: var(--bg-cream);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
}

.notice-banner {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid rgba(200, 157, 66, 0.45);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.88rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-gold);
  color: var(--text-secondary);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--gold-100);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--navy-900);
  color: var(--bg-white);
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold-500);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  min-width: min(260px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.success {
  border-left-color: #22c55e;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(249, 246, 239, 0.8);
  padding: clamp(44px, 6vw, 64px) 0 28px;
  border-top: 4px solid var(--gold-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(24px, 3.5vw, 36px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-title {
  color: var(--gold-400);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.92rem;
}

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

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(249, 246, 239, 0.62);
}
