/* ==========================================================================
   VANNIYARNADU - Modern Community Platform Stylesheet
   Theme: Royal Navy (#0c1e38), Heritage Gold (#cba343), Maroon (#7b1b2d)
   Typography: Outfit & Noto Sans Tamil
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Noto+Sans+Tamil:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ==========================================================================
     3-LIGHT COLOR WHEEL PALETTE
     ========================================================================== */
  /* Light Hue 1: Warm Alabaster Silk (Canvas & Foundations) */
  --light-canvas: #fcfbfa;
  --light-canvas-soft: #f7f4ed;
  --light-canvas-subtle: #f3eee4;
  
  /* Light Hue 2: Luminous Champagne Gold (Imperial Luxury Accent) */
  --royal-gold: #cba343;
  --royal-gold-light: #dfbe6f;
  --royal-gold-dark: #a87e24;
  --light-gold-glow: rgba(203, 163, 67, 0.22);
  --light-gold-tint: #fbf6ea;

  /* Light Hue 3: Cerulean Pearl Mist (Complementary Aerial Light Tint) */
  --light-cerulean: #edf3fc;
  --light-cerulean-soft: #f4f8fd;
  --light-cerulean-glow: rgba(218, 230, 247, 0.65);

  /* Contrast Anchors (WCAG AAA Precision) */
  --primary-navy: #0b192c;
  --primary-navy-dark: #050d18;
  --primary-navy-light: #162f55;
  --heritage-maroon: #7b1b2d;
  --heritage-maroon-dark: #58111e;
  
  --bg-cream: var(--light-canvas);
  --bg-surface: #ffffff;
  --bg-subtle: var(--light-canvas-soft);
  
  --text-main: #0b192c;
  --text-muted: #536278;
  --text-light: #ffffff;
  --text-gold: #cba343;
  
  --border-light: rgba(203, 163, 67, 0.22);
  --border-subtle: rgba(203, 163, 67, 0.15);

  /* ==========================================================================
     LUXURY GLASSMORPHISM TOKENS
     ========================================================================== */
  --glass-bg: rgba(255, 255, 255, 0.74);
  --glass-bg-elevated: rgba(255, 255, 255, 0.88);
  --glass-bg-tinted: rgba(247, 244, 237, 0.78);
  --glass-bg-gold: rgba(254, 250, 240, 0.82);
  --glass-border: 1px solid rgba(255, 255, 255, 0.82);
  --glass-border-gold: 1px solid rgba(203, 163, 67, 0.32);
  --glass-blur: blur(20px) saturate(180%);
  --glass-blur-sm: blur(12px) saturate(160%);
  --glass-shadow: 0 14px 40px -8px rgba(11, 25, 44, 0.07), 0 4px 14px -2px rgba(11, 25, 44, 0.03), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  --glass-shadow-hover: 0 22px 50px -10px rgba(203, 163, 67, 0.24), 0 8px 18px -4px rgba(11, 25, 44, 0.06), inset 0 1px 2px 0 rgba(255, 255, 255, 1);
  --glass-highlight: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  
  --shadow-sm: 0 2px 8px rgba(11, 25, 44, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 25, 44, 0.08);
  --shadow-lg: 0 18px 45px rgba(11, 25, 44, 0.12);
  --shadow-gold: 0 12px 32px rgba(203, 163, 67, 0.28);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-tamil: 'Noto Sans Tamil', 'Outfit', sans-serif;
  --font-display: 'Cinzel', serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.18s ease;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--light-canvas);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(203, 163, 67, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(218, 230, 247, 0.35) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-tamil {
  font-family: var(--font-tamil);
}

.font-display {
  font-family: var(--font-display);
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 880px;
}

/* ==========================================================================
   HEADER & NAVIGATION (FLOATING FROSTED GLASS)
   ========================================================================== */
.top-notice-bar {
  background: linear-gradient(90deg, #1b0a10 0%, #0b192c 50%, #162f55 100%);
  color: #f7e6c4;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(203, 163, 67, 0.35);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(203, 163, 67, 0.28);
  box-shadow: 0 8px 32px -4px rgba(11, 25, 44, 0.06), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1380px;
  margin: 0 auto;
  gap: 20px;
  min-height: 92px;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 74px;
  max-height: 78px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

@media (min-width: 1300px) {
  .brand-logo-img {
    height: 78px;
    max-height: 82px;
  }
}

@media (max-width: 992px) {
  .nav-container {
    min-height: 82px;
    padding: 8px 18px;
  }
  .brand-logo-img {
    height: 64px;
    max-height: 68px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    min-height: 70px;
    padding: 6px 14px;
  }
  .brand-logo-img {
    height: 52px;
    max-height: 56px;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-navy);
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--heritage-maroon);
  background: rgba(203, 163, 67, 0.12);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--royal-gold);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--primary-navy);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-dark) 100%);
  color: var(--primary-navy-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-navy {
  background: var(--primary-navy);
  color: #ffffff;
}

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

.btn-maroon {
  background: var(--heritage-maroon);
  color: #ffffff;
}

.btn-maroon:hover {
  background: var(--heritage-maroon-dark);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  border: 2px solid var(--royal-gold);
  color: var(--royal-gold-dark);
}

.btn-outline-gold:hover {
  background: var(--royal-gold);
  color: var(--primary-navy-dark);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary-navy);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: rgba(203, 163, 67, 0.18);
  color: var(--royal-gold-dark);
  border: 1px solid rgba(203, 163, 67, 0.4);
}

.badge-maroon {
  background: rgba(123, 27, 45, 0.12);
  color: var(--heritage-maroon);
  border: 1px solid rgba(123, 27, 45, 0.25);
}

.badge-green {
  background: rgba(26, 128, 64, 0.12);
  color: #1a8040;
  border: 1px solid rgba(26, 128, 64, 0.3);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(145deg, #09172c 0%, #0e2444 50%, #1a1738 100%);
  color: #ffffff;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(203, 163, 67, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(123, 27, 45, 0.22) 0%, transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(203, 163, 67, 0.18);
  border: 1px solid var(--royal-gold);
  color: var(--royal-gold-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.hero-title-tamil {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--royal-gold-light);
  display: block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cfd9e8;
  max-width: 580px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-crest-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-crest-img {
  max-width: 380px;
  width: 100%;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.55));
  animation: floatCrest 6s ease-in-out infinite;
}

@keyframes floatCrest {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   STATS BAR (FLOATING GLASS DOCK)
   ========================================================================== */
.stats-bar-wrapper {
  margin-top: -48px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.stats-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid rgba(203, 163, 67, 0.28);
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--royal-gold), transparent);
}

.stat-item {
  text-align: center;
  padding: 8px 12px;
  border-right: 1px solid rgba(203, 163, 67, 0.2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.02em;
}

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

/* ==========================================================================
   VISUAL BREADCRUMBS (LUXURY GLASSMORPHIC PILL)
   ========================================================================== */
.breadcrumb-nav {
  padding: 16px 0 6px;
  position: relative;
  z-index: 5;
}

.breadcrumb-card {
  display: inline-flex;
  align-items: center;
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid rgba(203, 163, 67, 0.2);
  box-shadow: 0 4px 20px -2px rgba(11, 25, 44, 0.05), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  padding: 8px 18px;
  border-radius: var(--radius-full);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-link {
  color: var(--primary-navy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--heritage-maroon);
}

.breadcrumb-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--royal-gold-dark);
}

.breadcrumb-separator {
  color: #b5c2d4;
  font-size: 0.8rem;
  user-select: none;
}

.breadcrumb-item.active {
  color: var(--heritage-maroon);
  font-weight: 700;
}

/* ==========================================================================
   SECTION COMMONS
   ========================================================================== */
.section {
  padding: 75px 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 46px;
}

.section-pre {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--royal-gold-dark);
  margin-bottom: 10px;
  display: block;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.3;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.gold-divider {
  height: 3px;
  width: 70px;
  background: linear-gradient(90deg, var(--royal-gold), var(--heritage-maroon));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   PILLARS / FEATURE CARDS (LUXURY GLASS)
   ========================================================================== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: var(--glass-border);
  outline: 1px solid rgba(203, 163, 67, 0.18);
  padding: 32px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal-gold), var(--heritage-maroon));
  opacity: 0.7;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(203, 163, 67, 0.45);
  background: var(--glass-bg-elevated);
}

.pillar-card:hover::before {
  opacity: 1;
  height: 4px;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(203, 163, 67, 0.18), rgba(218, 230, 247, 0.4));
  border: 1px solid rgba(203, 163, 67, 0.3);
  color: var(--heritage-maroon);
  font-size: 1.65rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(203, 163, 67, 0.12);
}

.pillar-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.pillar-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
}

.pillar-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--heritage-maroon);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.pillar-link:hover {
  color: var(--royal-gold-dark);
  gap: 10px;
}

/* ==========================================================================
   4 ZONES SECTION (TAMIL NADU ZONES - 3 LIGHT PALETTE)
   ========================================================================== */
.zones-section {
  background: linear-gradient(180deg, var(--light-canvas-soft) 0%, rgba(237, 243, 252, 0.45) 100%);
  border-top: 1px solid rgba(203, 163, 67, 0.2);
  border-bottom: 1px solid rgba(203, 163, 67, 0.2);
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.zone-box {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: var(--glass-border);
  outline: 1px solid rgba(203, 163, 67, 0.18);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.zone-box:hover {
  transform: translateY(-4px);
  border-color: rgba(203, 163, 67, 0.45);
  box-shadow: var(--glass-shadow-hover);
  background: var(--glass-bg-elevated);
}

.zone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.zone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.zone-tamil {
  font-size: 0.92rem;
  color: var(--royal-gold-dark);
  font-weight: 600;
  display: block;
}

.zone-districts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.district-tag {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(203, 163, 67, 0.22);
  color: var(--primary-navy);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(11, 25, 44, 0.04);
}

/* ==========================================================================
   TRUST DISCLAIMER BANNER (LUXURY GLASS)
   ========================================================================== */
.trust-banner {
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 5px solid var(--royal-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  margin: 35px auto 0;
}

.trust-banner h4 {
  color: var(--primary-navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.trust-banner p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ==========================================================================
   FORMS & INPUTS (LUXURY GLASSMORPHIC)
   ========================================================================== */
.form-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid rgba(203, 163, 67, 0.22);
  padding: 36px;
  box-shadow: var(--glass-shadow);
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(203, 163, 67, 0.28);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.85);
}

.form-control:focus {
  outline: none;
  border-color: var(--royal-gold);
  box-shadow: 0 0 0 4px rgba(203, 163, 67, 0.18);
  background: #ffffff;
}

.form-control::placeholder {
  color: #94a3b8;
  font-style: italic;
  font-weight: 400;
  opacity: 0.85;
}

.form-control:user-invalid {
  border-color: #dc3545;
  background-color: #fffafa;
}

.form-control:focus:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--primary-navy-dark);
  color: #cfd8e6;
  padding: 65px 0 25px;
  border-top: 3px solid var(--royal-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 45px;
}

.footer-logo {
  max-width: 270px;
  width: 100%;
  margin-bottom: 16px;
  filter: brightness(1.1);
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #abb9cf;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--royal-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.92rem;
  color: #abb9cf;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--royal-gold-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.88rem;
  color: #8c9cb3;
}

/* ==========================================================================
   TOAST ALERTS
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--royal-gold);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE, TABLET & COMPACT LAPTOP)
   ========================================================================== */

/* Compact Desktop / Large Tablet Landscape (1101px - 1280px) */
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav-container {
    gap: 10px;
    padding: 8px 16px;
  }
  .brand-logo-img {
    height: 60px;
    max-height: 64px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.88rem;
    gap: 4px;
  }
  .header-cta .btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* Tablet & Mobile Navigation Breakpoint (<= 1100px) */
@media (max-width: 1100px) {
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 14px 34px -4px rgba(11, 25, 44, 0.12);
    gap: 8px;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
    animation: fadeIn 0.25s ease;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 11px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(203, 163, 67, 0.12);
  }

  .header-cta {
    display: none;
  }
}

/* Medium Tablet & Below (<= 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-crest-img {
    max-width: 230px;
    margin: 0 auto;
  }
  
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item:nth-child(2) {
    border-right: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Small Tablet & Mobile (<= 768px) */
@media (max-width: 768px) {
  .section {
    padding: 55px 0;
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .hero-title-tamil {
    font-size: 2.15rem;
  }

  .section-heading {
    font-size: 1.85rem;
  }

  .breadcrumb-card {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 6px 14px;
  }

  .pillar-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .stats-card {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
  }
  
  .stat-item:last-child {
    border-bottom: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .top-bar-inner {
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
}

/* Compact Mobile (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .hero-section {
    padding: 45px 0 65px;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-title-tamil {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .section-heading {
    font-size: 1.55rem;
  }

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

  .pillar-card {
    padding: 22px 18px;
  }

  .form-card {
    padding: 28px 18px !important;
  }

  .district-pill {
    font-size: 0.78rem;
    padding: 4px 10px;
  }

  #zoneLiveSearchBtn {
    font-size: 0.85rem !important;
    padding: 9px 16px !important;
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   BILINGUAL LANGUAGE TOGGLE & SPLASH SCREEN
   ========================================================================== */

/* Strict Language Visibility Rules: No Mixing Allowed */
body.lang-ta .lang-en,
body.lang-ta [data-lang-content="en"] {
  display: none !important;
}

body.lang-en .lang-ta,
body.lang-en .hero-title-tamil,
body.lang-en .zone-tamil,
body.lang-en [data-lang-content="ta"] {
  display: none !important;
}

/* Header Language Switcher Pill */
.lang-switch-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--primary-navy);
}

.lang-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

body.lang-ta .lang-btn[data-lang="ta"],
body.lang-en .lang-btn[data-lang="en"] {
  background: var(--primary-navy) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

body.lang-en .lang-btn[data-lang="ta"],
body.lang-ta .lang-btn[data-lang="en"] {
  background: transparent !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   OPENING LANGUAGE SPLASH SCREEN MODAL
   ========================================================================== */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(7, 19, 37, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.splash-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-card {
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid rgba(203, 163, 67, 0.35);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 44px 34px;
  text-align: center;
  box-shadow: 0 30px 70px -10px rgba(11, 25, 44, 0.4), inset 0 1px 2px rgba(255, 255, 255, 1);
  position: relative;
  overflow: hidden;
  animation: splashScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes splashScaleUp {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.splash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--royal-gold), var(--heritage-maroon), var(--royal-gold));
}

.splash-emblem {
  max-width: 130px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}

.splash-title-ta {
  font-family: var(--font-tamil);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.3;
}

.splash-title-en {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--royal-gold-dark);
  margin-top: 4px;
}

.splash-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 16px 0 26px;
  line-height: 1.5;
}

.splash-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.splash-btn-ta {
  background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-dark) 100%);
  color: #050d18;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 15px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  font-family: var(--font-tamil);
}

.splash-btn-ta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.splash-btn-en {
  background: var(--primary-navy);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--royal-gold);
  cursor: pointer;
  transition: var(--transition);
}

.splash-btn-en:hover {
  background: var(--primary-navy-light);
  transform: translateY(-2px);
}

.splash-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 18px;
}

/* ==========================================================================
   COMMUNITY HERITAGE, SUB-CASTES & GOTRAS (LUXURY GLASS)
   ========================================================================== */
.subcaste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.subcaste-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: var(--glass-border);
  outline: 1px solid rgba(203, 163, 67, 0.18);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.subcaste-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--royal-gold), var(--heritage-maroon));
}

.subcaste-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(203, 163, 67, 0.45);
  background: var(--glass-bg-elevated);
}

.subcaste-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.subcaste-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.gotra-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.gotra-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(203, 163, 67, 0.35);
  color: var(--primary-navy);
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(11, 25, 44, 0.04);
}

.gotra-badge:hover {
  background: var(--royal-gold);
  color: #050d18;
  border-color: var(--royal-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(203, 163, 67, 0.25);
}

/* ==========================================================================
   FAQ ACCORDION & CARDS (LUXURY GLASSMORPHIC)
   ========================================================================== */
.faq-section {
  background: linear-gradient(180deg, var(--light-canvas-soft) 0%, rgba(237, 243, 252, 0.5) 100%);
  padding: 75px 0;
  border-top: 1px solid rgba(203, 163, 67, 0.18);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 30px auto 0;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: var(--glass-border);
  outline: 1px solid rgba(203, 163, 67, 0.18);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(203, 163, 67, 0.45);
  box-shadow: var(--glass-shadow-hover);
}

.faq-item details {
  width: 100%;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-navy);
  user-select: none;
  transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--royal-gold-dark);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item details[open] summary {
  background: rgba(254, 250, 240, 0.7);
  border-bottom: 1px solid rgba(203, 163, 67, 0.2);
  color: var(--heritage-maroon);
}

.faq-answer {
  padding: 20px 24px;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   KEYWORD PILLS / SEO BREADTH CHIPS
   ========================================================================== */
.seo-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.seo-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
}

.seo-chip:hover {
  background: var(--royal-gold);
  color: var(--primary-navy-dark);
  border-color: var(--royal-gold);
}

/* ==========================================================================
   MATRIMONY PORTAL DISTRICT FILTER PILLS & LIVE SEARCH WIDGET
   ========================================================================== */
.district-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-navy);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.district-pill:hover,
.district-pill.active {
  background: var(--royal-gold);
  color: var(--primary-navy-dark);
  border-color: var(--royal-gold);
  box-shadow: 0 4px 12px rgba(203, 163, 67, 0.28);
  transform: translateY(-2px);
}

.live-search-widget {
  background: #ffffff;
  border: 2px solid var(--royal-gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(11, 25, 44, 0.06);
}

@media (max-width: 768px) {
  .live-search-widget {
    padding: 16px 14px;
  }
}


