/* ============================================================
   KATTUMANNARKOIL.IN — Main Stylesheet
   Version: 1.0
   Palette: Deep Forest Green · Temple Gold · Warm Cream
   Fonts:   Lato (English) | Noto Sans Tamil (Tamil)
   ============================================================ */

/* 1. GOOGLE FONTS + CSS CUSTOM PROPERTIES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Noto+Sans+Tamil:wght@400;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  /* Colour Palette */
  --primary:        #2d5a1b;   /* Deep forest green  */
  --primary-dark:   #1e3d10;   /* Darker green        */
  --primary-light:  #4a8c2a;   /* Brighter green      */
  --secondary:      #c9921a;   /* Temple gold/ochre   */
  --secondary-light:#e8b84b;   /* Light gold          */
  --accent:         #8b5e3c;   /* Warm earthy brown   */
  --cream:          #faf5e8;   /* Warm parchment      */
  --cream-dark:     #f0e8cc;   /* Slightly darker cream */
  --text:           #2c2c2c;   /* Near-black          */
  --text-muted:     #6b6b6b;   /* Muted body text     */
  --border:         #ddd5b8;   /* Warm border         */
  --white:          #ffffff;
  --danger:         #c0392b;
  --success:        #27ae60;
  --shadow-sm:      0 2px 8px  rgba(0,0,0,0.07);
  --shadow-md:      0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.13);
  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      20px;
  --transition:     0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--white);
}

/* Tamil language override */
body.lang-tamil,
body.lang-tamil p,
body.lang-tamil h1,
body.lang-tamil h2,
body.lang-tamil h3,
body.lang-tamil h4,
body.lang-tamil h5,
body.lang-tamil h6,
body.lang-tamil span,
body.lang-tamil a,
body.lang-tamil button,
body.lang-tamil li {
  font-family: 'Noto Sans Tamil', 'Latha', 'Arial Unicode MS', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

body.lang-tamil h1,
body.lang-tamil h2,
body.lang-tamil h3,
body.lang-tamil h4 {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-weight: 700;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

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

p { margin-bottom: 1rem; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  border-radius: 2px;
  margin-top: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* 3. TOP UTILITY BAR
   ============================================================ */
.utility-bar {
  background: var(--primary-dark);
  color: var(--cream-dark);
  font-size: 0.78rem;
  padding: 5px 0;
  letter-spacing: 0.03em;
}

.utility-bar a { color: var(--cream-dark); }
.utility-bar a:hover { color: var(--secondary-light); }

/* 4. NAVIGATION
   ============================================================ */
.main-navbar {
  background: var(--primary) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  padding: 0;
  transition: background var(--transition);
  z-index: 1050;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
}

.site-text-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.site-text-logo__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.site-text-logo__tagline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-top: 3px;
}

.site-text-logo--footer .site-text-logo__name {
  font-size: 1.25rem;
}

.site-text-logo--footer .site-text-logo__tagline {
  color: var(--secondary);
}


.navbar-nav .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1.1rem 1rem !important;
  transition: color var(--transition), border-color var(--transition);
  border-bottom: 3px solid transparent;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-light) !important;
  border-bottom-color: var(--secondary);
}

.btn-lang {
  background: var(--secondary);
  color: var(--primary-dark) !important;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 20px;
  padding: 6px 16px !important;
  margin-left: 8px;
  border: none;
  border-bottom: none !important;
  transition: background var(--transition), transform var(--transition);
}

.btn-lang:hover { background: var(--secondary-light); transform: scale(1.04); }

.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 5. NOTICE TICKER / MARQUEE
   ============================================================ */
.notice-ticker {
  background: var(--cream-dark);
  border-top: 2px solid var(--secondary);
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--secondary);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 14px;
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 16px;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-inner {
  display: inline-block;
  animation: tickerScroll 80s linear infinite;
  font-size: 0.85rem;
  color: var(--text);
}

.ticker-inner:hover { animation-play-state: paused; }

.ticker-separator {
  margin: 0 2rem;
  opacity: 0.4;
}

@keyframes tickerScroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* 6. HERO SECTIONS
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #3a7a20 100%);
  color: var(--white);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-section.hero-home {
  min-height: 540px;
  padding: 110px 0 70px;
}

/* Temple silhouette decorative overlay */
.hero-section::before {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: 380px;
  height: 380px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280'%3E%3Cellipse cx='100' cy='16' rx='10' ry='10' fill='%23fff'/%3E%3Crect x='92' y='26' width='16' height='10' rx='2' fill='%23fff'/%3E%3Crect x='86' y='36' width='28' height='12' rx='2' fill='%23fff'/%3E%3Crect x='80' y='48' width='40' height='12' rx='2' fill='%23fff'/%3E%3Crect x='74' y='60' width='52' height='12' rx='2' fill='%23fff'/%3E%3Crect x='68' y='72' width='64' height='14' rx='2' fill='%23fff'/%3E%3Crect x='76' y='86' width='48' height='70' fill='%23fff'/%3E%3Crect x='88' y='120' width='24' height='36' rx='2' fill='%23c9921a'/%3E%3Crect x='58' y='156' width='84' height='16' rx='2' fill='%23fff'/%3E%3Crect x='48' y='172' width='104' height='14' rx='2' fill='%23fff'/%3E%3Crect x='36' y='186' width='128' height='18' rx='2' fill='%23fff'/%3E%3C%2FSvg%3E") no-repeat center bottom / contain;
  opacity: 0.06;
  pointer-events: none;
}

/* Subtle dot-grid texture overlay */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--secondary-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero-section h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-section .hero-subtitle {
  font-size: 1.15rem;
  color: var(--secondary-light);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-section .hero-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-section .hero-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-hero-primary {
  background: var(--secondary);
  color: var(--primary-dark);
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 12px 28px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(201,146,26,0.4);
}

.btn-hero-primary:hover {
  background: var(--secondary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,146,26,0.5);
}

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 25px;
  padding: 10px 26px;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

/* 7. SEARCH BOX (Homepage)
   ============================================================ */
.search-bar-wrap {
  position: relative;
  margin-bottom: 2rem;
}

.search-bar-wrap input {
  width: 100%;
  padding: 14px 52px 14px 20px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar-wrap input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(74,140,42,0.12);
}

.search-bar-wrap .search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* 8. HIGHLIGHT CARDS (Homepage)
   ============================================================ */
.highlight-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 2.5rem;
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.highlight-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.highlight-card.gold .card-icon {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--primary-dark);
}

.highlight-card .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 3px;
}

.highlight-card .card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* 9. WHY MATTERS SECTION
   ============================================================ */
.why-section {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--secondary);
  opacity: 0.06;
  border-radius: 50%;
}

.why-list {
  list-style: none;
  padding: 0;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.why-list li i {
  color: var(--secondary);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 1rem;
}

/* 10. CULTURAL IMAGE CARDS
   ============================================================ */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 2.5rem;
}

.culture-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.culture-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.culture-card .cc-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.25;
}

.culture-card .cc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.65) 100%);
}

.culture-card .cc-label {
  position: relative;
  z-index: 1;
  padding: 1rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.culture-card-temple  { background: linear-gradient(135deg, #4a2c0a, #8b5e3c); }
.culture-card-paddy   { background: linear-gradient(135deg, #1e3d10, #4a8c2a); }
.culture-card-canal   { background: linear-gradient(135deg, #0e3350, #1a6fa8); }
.culture-card-town    { background: linear-gradient(135deg, #2c2c2c, #6b4f2c); }

/* 11. QUICK LINKS GRID
   ============================================================ */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 2.5rem;
}

.quick-link-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.6rem;
  text-align: center;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.quick-link-btn i {
  font-size: 1.5rem;
  color: var(--primary);
}

.quick-link-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-link-btn:hover i { color: var(--secondary-light); }

/* 12. SIDEBAR — STICKY PANEL
   ============================================================ */
.sidebar-sticky {
  position: sticky;
  top: 76px;
}

/* 13. CALENDAR WIDGET
   ============================================================ */
.calendar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.calendar-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-header .cal-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.cal-nav-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition);
}

.cal-nav-btn:hover { background: rgba(255,255,255,0.28); }

.calendar-grid {
  padding: 10px;
}

.cal-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cal-day-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 0;
  text-transform: uppercase;
}

.cal-dates-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-date {
  text-align: center;
  font-size: 0.8rem;
  padding: 5px 2px;
  border-radius: 6px;
  cursor: default;
  position: relative;
  color: var(--text);
  min-height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.cal-date.other-month { color: #ccc; }

.cal-date.today {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: 8px;
}

.cal-date.has-event::after {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--secondary);
  border-radius: 50%;
  position: absolute;
  bottom: 3px;
}

.cal-date.today.has-event::after { background: var(--secondary-light); }

/* 14. NEWS PANEL — TABS
   ============================================================ */
.news-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.news-panel .panel-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 12px 16px 0;
}

.news-panel .panel-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-panel .nav-tabs {
  border-bottom: none;
  gap: 4px;
}

.news-panel .nav-tabs .nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border: none;
  border-radius: 6px 6px 0 0;
  padding: 6px 14px;
  background: transparent;
  letter-spacing: 0.03em;
}

.news-panel .nav-tabs .nav-link.active {
  background: var(--white);
  color: var(--primary-dark);
}

.news-panel .tab-content {
  padding: 0;
  max-height: 380px;
  overflow-y: auto;
}

.news-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-dark);
  transition: background var(--transition);
  display: block;
  text-decoration: none;
  color: var(--text);
}

.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--cream); }

.news-item .ni-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--cream-dark);
  color: var(--primary);
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 4px;
}

.news-item .ni-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 3px;
}

.news-item .ni-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.news-item .ni-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 0;
}

.news-loading {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 8px;
}

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

.news-panel .panel-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.btn-view-all {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.btn-view-all:hover { color: var(--secondary); }

/* 15. TIMELINE (History Page)
   ============================================================ */
.timeline-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 0;
  position: sticky;
  top: 60px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.timeline-nav .tnav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline-nav .tnav-inner::-webkit-scrollbar { display: none; }

.tnav-btn {
  background: none;
  border: none;
  padding: 14px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tnav-btn:hover { color: var(--primary); }
.tnav-btn.active { color: var(--primary); border-bottom-color: var(--secondary); }

/* Vertical Timeline */
.timeline-container {
  position: relative;
  padding: 3rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-light), var(--secondary), var(--primary));
  transform: translateX(-50%);
  border-radius: 2px;
}

/* ── 3-column grid: [content] [dot] [image] or [image] [dot] [content] ── */
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: start;
  gap: 0 1.5rem;
  margin-bottom: 4.5rem;
  position: relative;
}

/* Centre column holds the dot; line runs through container::before at left:50% */
.timeline-dot-col {
  grid-column: 2;
  display: flex;
  justify-content: center;
  padding-top: 2rem;
  z-index: 2;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background: var(--secondary);
  border: 4px solid var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 5px rgba(201,146,26,0.2);
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
  width: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.timeline-item:nth-child(even) .timeline-card {
  border-top-color: var(--secondary);
}

/* ── Era visual illustration block ── */
.era-visual {
  border-radius: var(--radius);
  min-height: 300px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.era-visual:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Subtle noise/grain overlay */
.era-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.era-visual .ev-icons {
  font-size: 3.8rem;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
  position: relative;
  z-index: 1;
}

.era-visual .ev-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.era-visual .ev-period {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.era-visual .ev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.era-visual .ev-tag {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.03em;
}

/* Decorative circle accent */
.era-visual .ev-accent {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -40px;
  right: -40px;
  pointer-events: none;
}

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

.timeline-era-badge {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.timeline-card h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.timeline-card .tc-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.quote-box {
  background: var(--cream);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin: 1rem 0;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent);
}

.notable-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.notable-list li {
  font-size: 0.85rem;
  padding: 5px 0 5px 22px;
  position: relative;
  color: var(--text);
  border-bottom: 1px dashed var(--cream-dark);
}

.notable-list li:last-child { border-bottom: none; }

.notable-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 0.6rem;
  top: 8px;
}

.tbu-note {
  background: var(--cream-dark);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.collapse-btn {
  background: none;
  border: 1px solid var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 5px 16px;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: all var(--transition);
}

.collapse-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Kattumannarkoil Today section */
.today-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.today-section::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.today-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.today-stat .stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--secondary-light);
  line-height: 1;
}

.today-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* 16. ADMINISTRATION CARDS
   ============================================================ */
.official-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
}

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

.official-card .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--white);
  margin: 0 auto 1.2rem;
  border: 4px solid var(--cream-dark);
}

.official-card .avatar.avatar-photo {
  background: none;
  overflow: hidden;
  padding: 0;
}

.official-card .avatar.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.official-card .official-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 6px;
}

.official-card .official-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.official-card .official-party {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.official-card .official-constituency {
  font-size: 0.82rem;
  color: var(--text);
  background: var(--cream);
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 10px;
}

.constituency-badge {
  display: inline-block;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Office Table Cards */
.office-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.office-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.office-card .office-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.office-card .office-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.office-card .office-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.office-card .office-detail i { color: var(--primary-light); margin-top: 2px; }

.office-services {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cream-dark);
}

.office-services .service-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin: 2px;
}

/* Citizen Utility Buttons */
.citizen-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  height: 100%;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.citizen-btn i {
  font-size: 2rem;
  color: var(--primary);
  transition: color var(--transition);
}

.citizen-btn .cb-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.citizen-btn .cb-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.citizen-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.citizen-btn:hover i,
.citizen-btn:hover .cb-title,
.citizen-btn:hover .cb-desc { color: var(--white); }

/* 17. CONTACT FORM
   ============================================================ */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(74,140,42,0.12);
  outline: none;
}

.form-control.is-invalid { border-color: var(--danger); }

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: 12px 36px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(45,90,27,0.3);
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  color: var(--white);
}

.form-feedback {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 1rem;
  display: none;
}

.form-feedback.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-feedback.pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.form-feedback.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.captcha-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.captcha-question {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--primary-dark);
}

.captcha-input {
  max-width: 160px;
}

.captcha-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--primary);
  transition: all var(--transition);
}

.captcha-refresh-btn:hover {
  background: var(--cream);
  color: var(--primary-dark);
}

/* 18. IMPORTANT CONTACTS PANEL
   ============================================================ */
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  margin-bottom: 10px;
}

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

.contact-card .cc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card.emergency .cc-icon { background: #fde8e8; color: var(--danger); }
.contact-card.civic     .cc-icon { background: #e8f4e8; color: var(--primary); }
.contact-card.service   .cc-icon { background: #e8f0fe; color: #1a56a0; }
.contact-card.health    .cc-icon { background: #fef3e8; color: var(--secondary); }

.contact-card .cc-name { font-size: 0.88rem; font-weight: 700; color: var(--primary-dark); }
.contact-card .cc-num  { font-size: 0.95rem; font-weight: 900; color: var(--primary); }

/* 19. MAP SECTION
   ============================================================ */
.map-placeholder {
  background: linear-gradient(135deg, #e8f4e8, #d0ecd0);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  gap: 12px;
}

.map-placeholder i { font-size: 3rem; color: var(--primary-light); }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--cream);
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 280px;
}

/* 20. FAQ ACCORDION
   ============================================================ */
.faq-accordion .accordion-button {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  background: var(--cream);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--primary);
  color: var(--white);
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  filter: none;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(10);
}

.faq-accordion .accordion-body {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

/* 21. ABOUT PAGE
   ============================================================ */
.value-card {
  background: var(--cream);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: background var(--transition);
}

.value-card:hover { background: var(--cream-dark); }

.value-card h5 { color: var(--primary-dark); margin-bottom: 0.25rem; }
.value-card p  { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

.roadmap-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border);
}

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

.roadmap-step {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.team-card .team-avatar {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 auto 1rem;
}

/* 22. FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo:hover .site-text-logo__name {
  color: var(--secondary-light);
}


.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-heading {
  color: var(--secondary-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 7px; }

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--secondary-light); }
.footer-links a i { font-size: 0.75rem; color: var(--secondary); }

.footer-contact p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-contact i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: scale(1.1);
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom .copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom .disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* 23. SECTION SEPARATORS & PAGE SECTION PADDING
   ============================================================ */
.page-section {
  padding: 4rem 0;
}

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

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

.section-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light), var(--secondary));
  border: none;
  margin: 0;
  opacity: 1;
}

/* 24. BADGE / PILL STYLES
   ============================================================ */
.badge-civic       { background: #e8f4e8; color: var(--primary-dark); }
.badge-health      { background: #fef3e8; color: #7a4a00; }
.badge-agriculture { background: #e8f7e8; color: #1e5c1e; }
.badge-culture     { background: #fde8f0; color: #7a1a3a; }
.badge-infra       { background: #e8eef8; color: #1a2a5a; }

.important-badge {
  background: var(--danger);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
}

/* 25. SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Hero elements animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-anim { animation: fadeUp 0.8s ease forwards; }
.hero-anim.d1 { animation-delay: 0.15s; opacity: 0; }
.hero-anim.d2 { animation-delay: 0.3s;  opacity: 0; }
.hero-anim.d3 { animation-delay: 0.5s;  opacity: 0; }
.hero-anim.d4 { animation-delay: 0.65s; opacity: 0; }

/* 26. UTILITY CLASSES
   ============================================================ */
.text-primary-custom  { color: var(--primary) !important; }
.text-secondary-custom{ color: var(--secondary) !important; }
.text-accent          { color: var(--accent) !important; }
.bg-primary-custom    { background: var(--primary) !important; }
.bg-cream             { background: var(--cream) !important; }
.border-gold          { border-color: var(--secondary) !important; }

.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-primary-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 7px 22px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
}

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

/* Section intro rule */
.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.8;
}

/* Highlighted info block */
.info-highlight {
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--text);
}

/* 27. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
  .quick-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .sidebar-sticky {
    position: static;
    margin-top: 3rem;
  }

  /* Tablet: collapse to single column, hide centre dot column */
  .timeline-container::before { display: none; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .timeline-dot-col { display: none; }
  .era-visual { min-height: 200px; order: -1; /* image above card on tablet */ }

  .today-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .hero-section { padding: 90px 0 50px; min-height: auto; }
  .hero-section h1 { font-size: 1.8rem; }

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

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

  .quick-links-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-link-btn { font-size: 0.72rem; padding: 0.75rem 0.4rem; }

  .today-stats { grid-template-columns: 1fr 1fr; }

  .timeline-nav { top: 56px; }

  .why-section { padding: 1.5rem; }
  .today-section { padding: 2rem 1.5rem; }

  .contact-form-wrap { padding: 1.5rem; }

  .site-text-logo__name { font-size: 1.15rem; }
  .site-text-logo__tagline { font-size: 0.65rem; }

  .section-title { font-size: 1.6rem; }

  .navbar-nav .nav-link { padding: 0.7rem 1rem !important; border-bottom: none; }
  .navbar-nav .nav-link.active { border-bottom: none; background: rgba(255,255,255,0.1); border-radius: 6px; }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .highlight-cards { grid-template-columns: 1fr; }
  .culture-grid    { grid-template-columns: 1fr; }
  .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
  .today-stats     { grid-template-columns: 1fr; gap: 1rem; }
  .hero-section h1 { font-size: 1.5rem; }
}
