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

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --saffron:    #FF6B00;
  --gold:       #D4AF37;
  --deep-red:   #8B0000;
  --cream:      #FFF8E7;
  --dark-brown: #3E1C00;
  --light-gold: #FAE27C;
  --maroon:     #6B1A1A;
}

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

body {
  font-family: 'Noto Serif', serif;
  background-color: var(--cream);
  color: var(--dark-brown);
}

body.lang-ta { font-family: 'Noto Sans Tamil', sans-serif; }
body.lang-ta h1, body.lang-ta h2, body.lang-ta h3,
body.lang-ta h4, body.lang-ta .section-title,
body.lang-ta .dark-section-title {
  font-family: 'Noto Sans Tamil', sans-serif;
}

/* ═══════════════════════════════════════════
   LANG BAR
═══════════════════════════════════════════ */
.lang-bar {
  background: #1a0800;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 20px;
  gap: 8px;
}
.lang-bar span { color: #b08040; font-size: 0.8rem; }
.lang-toggle {
  display: flex;
  background: #3E1C00;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--gold);
}
.lang-btn {
  background: transparent;
  border: none;
  color: #b08040;
  padding: 5px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.lang-btn.active { background: var(--gold); color: var(--dark-brown); font-weight: 700; }

/* ═══════════════════════════════════════════
   TOP TICKER
═══════════════════════════════════════════ */
.top-bar {
  background: var(--deep-red);
  color: var(--light-gold);
  text-align: center;
  padding: 7px;
  font-size: 0.88rem;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════ */
.site-header {
  background: linear-gradient(135deg, #3E1C00 0%, #6B1A1A 50%, #8B0000 100%);
  color: var(--cream);
  text-align: center;
  padding: 36px 20px 28px;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.header-om {
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(212,175,55,0.6);
  position: relative;
}
.site-header h1 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--light-gold);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 2px;
  position: relative;
}
body.lang-ta .site-header h1 { font-family: 'Noto Sans Tamil', sans-serif; font-size: 1.8rem; }
.header-divider { color: var(--gold); font-size: 1.3rem; letter-spacing: 8px; margin: 8px 0; position: relative; }
.header-tagline { font-style: italic; color: #f0dca0; font-size: 0.95rem; position: relative; }

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
nav.site-nav {
  background: var(--dark-brown);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
nav.site-nav a {
  color: var(--light-gold);
  text-decoration: none;
  padding: 14px 18px;
  font-size: 0.85rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
body.lang-ta nav.site-nav a {
  font-family: 'Noto Sans Tamil', sans-serif;
  text-transform: none;
  font-size: 0.9rem;
  letter-spacing: 0;
}
nav.site-nav a:hover,
nav.site-nav a.active {
  background: var(--maroon);
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light-gold);
  transition: all 0.3s;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-links { display: flex; flex-wrap: wrap; justify-content: center; }

@media (max-width: 700px) {
  .hamburger { display: flex; }
  nav.site-nav { justify-content: space-between; flex-wrap: nowrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--dark-brown);
    border-top: 1px solid rgba(212,175,55,0.2);
  }
  .nav-links.open { display: flex; }
  nav.site-nav a { width: 100%; text-align: center; border-bottom: 1px solid rgba(212,175,55,0.1); }
}

/* ═══════════════════════════════════════════
   HERO BANNER — 2-panel side-by-side slider
═══════════════════════════════════════════ */
.deity-hero {
  width: 100%;
  background: var(--cream);
  position: relative;
  height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero-panel-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-panel-img.active { opacity: 1; }
@media (max-width: 768px) {
  .deity-hero { height: 320px; grid-template-columns: 1fr 1fr; }
  .deity-hero .hero-panel:last-child { display: none; }
}
@media (max-width: 480px) {
  .deity-hero { height: 260px; grid-template-columns: 1fr; }
  .deity-hero .hero-panel:not(:first-child) { display: none; }
}

/* ═══════════════════════════════════════════
   TICKER STRIP
═══════════════════════════════════════════ */
.ticker-wrap {
  background: var(--deep-red);
  overflow: hidden;
  padding: 9px 0;
  border-bottom: 2px solid rgba(212,175,55,0.4);
}
.ticker-move {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 35s linear infinite;
}
.ticker-move:hover { animation-play-state: paused; }
.ticker-move span {
  color: var(--light-gold);
  font-size: 0.86rem;
  font-family: 'Noto Sans Tamil', sans-serif;
  padding-right: 90px;
  letter-spacing: 0.3px;
}
@keyframes marquee-scroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ═══════════════════════════════════════════
   TIMING STRIP
═══════════════════════════════════════════ */
.timing-strip {
  background: var(--dark-brown);
  color: var(--light-gold);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.6px;
  border-bottom: 2px solid var(--gold);
}
.timing-strip .sep { opacity: 0.5; margin: 0 10px; }

/* ═══════════════════════════════════════════
   HOME TWO-COLUMN (Panchang + Welcome)
═══════════════════════════════════════════ */
.home-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.home-panchang-col,
.home-welcome-col { display: flex; flex-direction: column; }
/* Force panchangam to portrait (single-stack) layout */
.home-panchang-col .kp-row { grid-template-columns: 1fr !important; }
.home-panchang-col .kp-col-date {
  border-right: none !important;
  border-bottom: 1px dashed rgba(201,145,47,0.5);
  padding-bottom: 10px; padding-right: 0;
}
.home-panchang-col .kp-col-times {
  border-left: none !important;
  border-top: 1px dashed rgba(201,145,47,0.5);
  padding-left: 0 !important; padding-top: 10px;
}
.home-panchang-col #karadi-panchangam { flex: 1; }
.home-welcome-col .welcome-box { flex: 1; }
@media (max-width: 850px) { .home-two-col { grid-template-columns: 1fr; } }
/* Overlay spans full hero width, sits above both panels */
.deity-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(to bottom, transparent 50%, rgba(26,8,0,0.82) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 20px;
  text-align: center;
  pointer-events: none;
}
.deity-hero-title {
  color: var(--light-gold);
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin-bottom: 4px;
}
body.lang-ta .deity-hero-title { font-family: 'Noto Sans Tamil', sans-serif; font-size: 1.2rem; }
.deity-hero-sub {
  color: var(--gold);
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 0.95rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--deep-red);
  text-align: center;
  margin-bottom: 8px;
}
body.lang-ta .section-title { font-family: 'Noto Sans Tamil', sans-serif; }
.section-sub {
  text-align: center;
  color: var(--saffron);
  font-size: 1rem;
  margin-bottom: 28px;
  font-family: 'Noto Sans Tamil', sans-serif;
}
.section-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--saffron), var(--gold));
  margin: 0 auto 32px;
  border-radius: 2px;
}

/* Full-width bands */
.full-bg { width: 100%; }
.full-bg.bg-cream { background: #fffaf0; border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold); }
.full-bg.bg-dark  { background: var(--dark-brown); }
.full-bg.bg-light-saffron { background: #fff9ee; border-top: 4px solid var(--saffron); }
.inner { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }

/* ═══════════════════════════════════════════
   WELCOME BOX
═══════════════════════════════════════════ */
.welcome-box {
  background: linear-gradient(135deg, #fff3dc, #ffe8b0);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 36px 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(212,175,55,0.2);
}
.welcome-box p { font-size: 1.05rem; line-height: 1.9; color: #4a2800; }
.mantra-banner {
  background: var(--deep-red);
  color: var(--light-gold);
  text-align: center;
  padding: 18px;
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-top: 24px;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════
   TIMINGS
═══════════════════════════════════════════ */
.timings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.timing-card {
  background: white;
  border-top: 4px solid var(--saffron);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.timing-card .icon { font-size: 1.8rem; margin-bottom: 6px; }
.timing-card h4 { color: var(--deep-red); font-size: 1rem; margin-bottom: 6px; }
.timing-card p  { font-size: 0.9rem; color: #555; line-height: 1.6; }

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { font-size: 1rem; line-height: 1.9; margin-bottom: 14px; color: #3a1c00; }
/* Right column: image stacked above highlights */
.about-right-col { display: flex; flex-direction: column; gap: 0; }
.about-temple-img {
  height: 320px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-temple-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.about-highlights {
  background: linear-gradient(135deg, #8B0000, #6B1A1A);
  color: var(--cream);
  border-radius: 0 0 12px 12px;
  padding: 24px 28px;
}
.about-highlights h3 { font-family: 'Cinzel', serif; color: var(--gold); margin-bottom: 14px; font-size: 1.05rem; }
body.lang-ta .about-highlights h3 { font-family: 'Noto Sans Tamil', sans-serif; }
.highlight-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; line-height: 1.6; }
.highlight-item .bul { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   EVENTS
═══════════════════════════════════════════ */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-4px); }
.event-header {
  background: linear-gradient(135deg, var(--deep-red), var(--maroon));
  color: var(--light-gold);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.event-date-badge {
  background: var(--gold);
  color: var(--dark-brown);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  font-weight: 700;
  min-width: 52px;
  font-size: 0.88rem;
  line-height: 1.3;
  flex-shrink: 0;
}
.event-header h3 { font-family: 'Cinzel', serif; font-size: 0.95rem; line-height: 1.3; }
body.lang-ta .event-header h3 { font-family: 'Noto Sans Tamil', sans-serif; }
.event-body { padding: 14px 18px; font-size: 0.9rem; color: #444; line-height: 1.7; }
.event-body .time { color: var(--saffron); font-weight: 600; margin-bottom: 4px; font-size: 0.85rem; }

/* ═══════════════════════════════════════════
   TAMIL CALENDAR
═══════════════════════════════════════════ */
.tamil-month-title {
  font-family: 'Noto Sans Tamil', sans-serif;
  text-align: center;
  font-size: 1.3rem;
  color: var(--saffron);
  margin-bottom: 20px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  background: white;
  border: 2px solid var(--gold);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.cal-day-hdr {
  background: var(--deep-red);
  color: var(--light-gold);
  text-align: center;
  padding: 10px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Noto Sans Tamil', sans-serif;
}
.cal-cell { padding: 7px 5px; min-height: 62px; border: 1px solid #f0e0c0; font-size: 0.8rem; background: white; }
.cal-cell.empty    { background: #fdf7ec; }
.cal-cell.today    { background: #fff3cd; border-color: var(--gold); }
.cal-cell.fest-day { background: #fff0f0; }
.cal-cell .eng     { font-weight: 700; color: var(--dark-brown); font-size: 0.88rem; }
.cal-cell .tam     { font-family: 'Noto Sans Tamil', sans-serif; font-size: 0.7rem; color: var(--saffron); margin-top: 1px; }
.cal-cell .fest    { font-size: 0.65rem; color: var(--deep-red); font-weight: 600; line-height: 1.2; margin-top: 2px; font-family: 'Noto Sans Tamil', sans-serif; }
.cal-legend { display: flex; gap: 18px; justify-content: center; margin-top: 12px; flex-wrap: wrap; font-size: 0.8rem; }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.leg-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ═══════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════ */
.gallery-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.gtab {
  background: white;
  border: 2px solid var(--gold);
  color: var(--dark-brown);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  transition: background 0.2s, color 0.2s;
}
body.lang-ta .gtab { font-family: 'Noto Sans Tamil', sans-serif; }
.gtab.active, .gtab:hover { background: var(--deep-red); color: var(--light-gold); border-color: var(--deep-red); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0,0,0,0.15);
  aspect-ratio: 3/4;
  background: #f0e0c0;
  transition: transform 0.22s, box-shadow 0.22s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(60,10,0,0.75) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay-label { color: var(--light-gold); font-size: 0.8rem; font-family: 'Noto Sans Tamil', sans-serif; line-height: 1.4; }

/* ═══════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════ */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 10px; border: 3px solid var(--gold); box-shadow: 0 0 40px rgba(212,175,55,0.3); object-fit: contain; }
.lb-close { position: absolute; top: 18px; right: 22px; color: var(--gold); font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }
.lb-nav { display: flex; gap: 24px; margin-top: 14px; }
.lb-btn { background: rgba(212,175,55,0.15); border: 1px solid var(--gold); color: var(--gold); padding: 8px 22px; border-radius: 30px; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
.lb-btn:hover { background: rgba(212,175,55,0.35); }
.lb-counter { color: #b08040; font-size: 0.85rem; margin-top: 8px; }

/* ═══════════════════════════════════════════
   SOCIAL & CONNECT
═══════════════════════════════════════════ */
.social-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Cinzel', serif;
}
body.lang-ta .social-btn { font-family: 'Noto Sans Tamil', sans-serif; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-youtube  { background: #FF0000; color: white; }
.social-btn svg { width: 22px; height: 22px; fill: white; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--cream);
}
.contact-card .icon { font-size: 2rem; margin-bottom: 10px; }
.contact-card h4 { font-family: 'Cinzel', serif; color: var(--gold); margin-bottom: 8px; }
body.lang-ta .contact-card h4 { font-family: 'Noto Sans Tamil', sans-serif; }
.contact-card p { font-size: 0.9rem; line-height: 1.7; opacity: 0.9; }
.contact-card a { color: var(--light-gold); }
.dark-section-title { font-family: 'Cinzel', serif; font-size: 1.8rem; color: var(--light-gold); text-align: center; margin-bottom: 8px; }
body.lang-ta .dark-section-title { font-family: 'Noto Sans Tamil', sans-serif; }
.dark-section-sub  { text-align: center; color: var(--gold); font-size: 1rem; margin-bottom: 28px; font-family: 'Noto Sans Tamil', sans-serif; }
.dark-divider { width: 80px; height: 3px; background: linear-gradient(to right, var(--gold), var(--saffron)); margin: 0 auto 32px; border-radius: 2px; }
.map-box {
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(212,175,55,0.4);
  border-radius: 12px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 22px;
  text-align: center;
  padding: 20px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: #1a0800;
  color: #b08040;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.85rem;
}
footer .footer-om { font-size: 2rem; color: var(--gold); margin-bottom: 6px; }
footer p { opacity: 0.8; line-height: 1.8; }
footer .footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 10px 0; }
footer .footer-links a { color: var(--gold); text-decoration: none; font-size: 0.82rem; }
footer .footer-links a:hover { color: var(--light-gold); }

/* ═══════════════════════════════════════════
   SCROLL-TO-TOP
═══════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--deep-red);
  color: var(--gold);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  z-index: 200;
  transition: background 0.2s;
  display: none;
}
.scroll-top.visible { display: block; }
.scroll-top:hover { background: var(--maroon); }

/* ═══════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════ */
.breadcrumb {
  background: #fff3dc;
  border-bottom: 1px solid #f0d890;
  padding: 10px 24px;
  font-size: 0.82rem;
  color: #7a4000;
}
.breadcrumb a { color: var(--maroon); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #b08040; margin: 0 6px; }

/* ═══════════════════════════════════════════
   DEITY GRID (deities/index.html)
═══════════════════════════════════════════ */
.deity-section-label {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.deity-section-label::before,
.deity-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
body.lang-ta .deity-section-label { font-family: 'Noto Sans Tamil', sans-serif; letter-spacing: 0; }

.deity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.deity-grid.featured { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.deity-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(0,0,0,0.1);
  transition: transform 0.22s, box-shadow 0.22s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.deity-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }

.deity-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #f0e0c0;
}
.deity-card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--dark-brown), var(--maroon));
}
.deity-card-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.deity-card-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--deep-red);
  margin-bottom: 4px;
  line-height: 1.3;
}
body.lang-ta .deity-card-name { font-family: 'Noto Sans Tamil', sans-serif; }
.deity-card-ta {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 0.9rem;
  color: var(--saffron);
  margin-bottom: 8px;
}
.deity-card-desc { font-size: 0.82rem; color: #666; line-height: 1.55; flex: 1; }
.deity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0e0c0;
}
.deity-badge {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-main     { background: #fff0e0; color: var(--saffron); border: 1px solid var(--saffron); }
.badge-guardian { background: #fff0f0; color: var(--deep-red); border: 1px solid var(--deep-red); }
.badge-madan    { background: #f0e8ff; color: #5a2d82; border: 1px solid #a070c0; }
.badge-attendant{ background: #f0fff0; color: #2a6a2a; border: 1px solid #70b070; }
.badge-vahana   { background: #fff8e0; color: #7a5000; border: 1px solid #c8960a; }
.deity-card-link { font-size: 0.78rem; color: var(--maroon); font-weight: 600; }
.deity-card-link:hover { color: var(--saffron); }

/* ═══════════════════════════════════════════
   INDIVIDUAL DEITY PAGE HERO
═══════════════════════════════════════════ */
.page-hero {
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-title {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 6px;
}
body.lang-ta .page-hero-title { font-family: 'Noto Sans Tamil', sans-serif; font-size: 1.8rem; }
.page-hero-ta {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}
.page-hero-tagline {
  font-style: italic;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}
.page-hero-badge {
  display: inline-block;
  margin-top: 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-family: 'Cinzel', serif;
}

/* ═══════════════════════════════════════════
   DEITY SUMMARY LAYOUT (individual pages)
═══════════════════════════════════════════ */
.deity-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px;
}
@media (max-width: 800px) { .deity-layout { grid-template-columns: 1fr; } }

.deity-sidebar {}
.deity-photo {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  display: block;
  object-fit: cover;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--dark-brown), var(--maroon));
}
.deity-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gold);
}

.quick-facts {
  background: white;
  border: 2px solid var(--gold);
  border-radius: 12px;
  margin-top: 20px;
  overflow: hidden;
}
.quick-facts-title {
  background: linear-gradient(135deg, var(--deep-red), var(--maroon));
  color: var(--light-gold);
  padding: 12px 16px;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}
body.lang-ta .quick-facts-title { font-family: 'Noto Sans Tamil', sans-serif; }
.quick-facts table { width: 100%; border-collapse: collapse; }
.quick-facts td { padding: 10px 14px; font-size: 0.84rem; border-bottom: 1px solid #f0e0c0; vertical-align: top; }
.quick-facts td:first-child { color: var(--maroon); font-weight: 600; width: 40%; white-space: nowrap; }
.quick-facts td:last-child { color: #444; }

.deity-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--deep-red);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
}
body.lang-ta .deity-content h2 { font-family: 'Noto Sans Tamil', sans-serif; }
.deity-content p { font-size: 0.98rem; line-height: 1.9; color: #3a1c00; margin-bottom: 14px; }
.deity-content ul { padding-left: 20px; margin-bottom: 14px; }
.deity-content li { font-size: 0.95rem; line-height: 1.8; color: #3a1c00; margin-bottom: 4px; }

.blog-link-box {
  margin-top: 32px;
  background: linear-gradient(135deg, #fff3dc, #ffe8b0);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.blog-link-box p { font-size: 0.95rem; color: #4a2800; margin-bottom: 16px; }
.btn-primary {
  display: inline-block;
  background: var(--deep-red);
  color: var(--light-gold);
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--maroon); transform: translateY(-2px); }
body.lang-ta .btn-primary { font-family: 'Noto Sans Tamil', sans-serif; }

/* Ashta Shasta grid */
.deity-ashta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.ashta-card {
  background: linear-gradient(135deg, #fff8ec, #fff0d0);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
}
.ashta-num {
  width: 30px; height: 30px;
  background: var(--deep-red);
  color: var(--light-gold);
  border-radius: 50%;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.ashta-name {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--deep-red);
  margin-bottom: 6px;
  line-height: 1.3;
}
body.lang-ta .ashta-name { font-family: 'Noto Sans Tamil', sans-serif; }
.ashta-desc { font-size: 0.76rem; color: #6b3a1a; line-height: 1.5; }
body.lang-ta .ashta-desc { font-family: 'Noto Sans Tamil', sans-serif; }

/* Vahana photo-card grid */
.vahana-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  margin: 24px 0 32px;
}
.vahana-photo-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(62,28,0,0.14);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vahana-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(62,28,0,0.22);
}
.vahana-photo-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}
.vahana-photo-img-bg {
  width: 100%;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.vahana-photo-body {
  padding: 20px 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fffcf4;
}
.vahana-photo-ring {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saffron);
  margin-bottom: 6px;
  font-family: 'Cinzel', serif;
}
body.lang-ta .vahana-photo-ring { font-family: 'Noto Sans Tamil', sans-serif; }
.vahana-photo-title {
  font-family: 'Cinzel', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--deep-red);
  margin-bottom: 10px;
  line-height: 1.3;
}
body.lang-ta .vahana-photo-title { font-family: 'Noto Sans Tamil', sans-serif; }
.vahana-photo-desc {
  font-size: 0.84rem;
  color: #5a3010;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 16px;
}
body.lang-ta .vahana-photo-desc { font-family: 'Noto Sans Tamil', sans-serif; }
.vahana-photo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #eddfc8;
}
.vahana-badge {
  display: inline-block;
  border: 1.5px solid var(--deep-red);
  color: var(--deep-red);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  padding: 3px 13px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}
body.lang-ta .vahana-badge { font-family: 'Noto Sans Tamil', sans-serif; }
.vahana-learn-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--saffron);
  opacity: 0.85;
}

/* Vahana detailed page elements */
.deity-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8d0a0;
}
body.lang-ta .deity-content h3 { font-family: 'Noto Sans Tamil', sans-serif; }
.vahana-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  margin: 14px 0 22px;
}
.vahana-cosmos-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.84rem;
}
.vahana-cosmos-table th {
  background: var(--deep-red);
  color: var(--light-gold);
  padding: 9px 14px;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
body.lang-ta .vahana-cosmos-table th { font-family: 'Noto Sans Tamil', sans-serif; }
.vahana-cosmos-table td {
  padding: 8px 14px;
  border: 1px solid #e8d5b0;
  color: #5a3010;
  vertical-align: top;
}
.vahana-cosmos-table tr:nth-child(even) td { background: #fff8ee; }
.vahana-approach-block {
  background: linear-gradient(135deg, #fffaf0, #fff4d8);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.vahana-approach-title {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  color: var(--deep-red);
  font-weight: 700;
  margin-bottom: 6px;
}
body.lang-ta .vahana-approach-title { font-family: 'Noto Sans Tamil', sans-serif; }
.vahana-approach-text { font-size: 0.84rem; color: #5a3010; line-height: 1.75; }
body.lang-ta .vahana-approach-text { font-family: 'Noto Sans Tamil', sans-serif; }
.vahana-closing-quote {
  margin: 28px 0 0;
  background: linear-gradient(135deg, #2a0a00, #5a1a00);
  color: #f5d98a;
  border-radius: 12px;
  padding: 28px 32px;
  font-style: italic;
  line-height: 1.9;
  font-size: 0.92rem;
}

/* Wide single deity card (horizontal layout) */
.deity-card-wide { flex-direction: row; min-height: 240px; }
.deity-card-wide .deity-card-img {
  width: 300px;
  height: auto;
  min-height: 240px;
  flex-shrink: 0;
  border-radius: 14px 0 0 14px;
}
@media (max-width: 640px) {
  .deity-card-wide { flex-direction: column; min-height: auto; }
  .deity-card-wide .deity-card-img { width: 100%; height: 200px; border-radius: 14px 14px 0 0; }
}

/* Deity page invocation block */
.deity-invocation {
  margin-top: 36px;
  background: linear-gradient(135deg, #3E1C00, #6B1A1A);
  color: var(--light-gold);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
}
.invocation-om {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0.85;
}
.deity-invocation p {
  font-size: 1rem;
  line-height: 1.8;
  color: #f5d98a;
  margin: 0;
}

/* Related deities strip */
.related-deities { background: #fff9ee; border-top: 3px solid var(--gold); padding: 36px 20px; }
.related-deities h3 { font-family: 'Cinzel', serif; color: var(--deep-red); text-align: center; margin-bottom: 20px; }
.related-grid { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.related-card {
  background: white;
  border: 1px solid #f0e0c0;
  border-radius: 10px;
  padding: 14px 18px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-width: 130px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.related-card .icon { font-size: 1.8rem; margin-bottom: 6px; }
.related-card .name { font-size: 0.8rem; font-weight: 600; color: var(--deep-red); }
.related-card .name-ta { font-family: 'Noto Sans Tamil', sans-serif; font-size: 0.75rem; color: var(--saffron); }

/* ═══════════════════════════════════════════
   FESTIVALS PAGE
═══════════════════════════════════════════ */
.fest-timeline { position: relative; padding-left: 30px; }
.fest-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--saffron), var(--gold)); }
.fest-item { position: relative; margin-bottom: 32px; }
.fest-item::before { content: ''; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; background: var(--gold); border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 2px var(--saffron); }
.fest-item h3 { font-family: 'Cinzel', serif; font-size: 1rem; color: var(--deep-red); margin-bottom: 4px; }
body.lang-ta .fest-item h3 { font-family: 'Noto Sans Tamil', sans-serif; }
.fest-item .month-tag { display: inline-block; background: var(--saffron); color: white; font-size: 0.72rem; padding: 2px 10px; border-radius: 20px; margin-bottom: 6px; font-weight: 600; }
.fest-item p { font-size: 0.9rem; color: #555; line-height: 1.7; }

/* ═══════════════════════════════════════════
   VISIT PAGE
═══════════════════════════════════════════ */
.visit-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.visit-card { background: white; border-radius: 14px; padding: 28px; box-shadow: 0 3px 16px rgba(0,0,0,0.08); border-left: 4px solid var(--saffron); }
.visit-card h3 { font-family: 'Cinzel', serif; color: var(--deep-red); margin-bottom: 12px; font-size: 1.05rem; }
body.lang-ta .visit-card h3 { font-family: 'Noto Sans Tamil', sans-serif; }
.visit-card p, .visit-card li { font-size: 0.92rem; color: #444; line-height: 1.8; }
.visit-card ul { padding-left: 18px; }

/* ═══════════════════════════════════════════
   BLOG PAGE
═══════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin: 32px 0;
}
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(62,28,0,0.12);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(62,28,0,0.2); }
.blog-card-header { padding: 26px 24px 20px; color: var(--light-gold); }
.blog-card-category {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-family: 'Cinzel', serif; opacity: 0.75; margin-bottom: 10px;
}
.blog-card-title {
  font-family: 'Cinzel', serif; font-size: 1.06rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 6px;
}
body.lang-ta .blog-card-title { font-family: 'Noto Sans Tamil', sans-serif; }
.blog-card-ta { font-family: 'Noto Sans Tamil', sans-serif; font-size: 0.88rem; opacity: 0.72; }
.blog-card-body { padding: 18px 24px 20px; flex: 1; display: flex; flex-direction: column; background: #fffcf4; }
.blog-card-meta {
  display: flex; gap: 14px; font-size: 0.72rem; color: var(--saffron);
  font-weight: 600; margin-bottom: 12px; font-family: 'Cinzel', serif; letter-spacing: 0.04em;
}
.blog-card-excerpt { font-size: 0.84rem; color: #5a3010; line-height: 1.75; flex: 1; margin-bottom: 18px; }
.blog-card-footer { display: flex; align-items: center; justify-content: flex-end; padding-top: 12px; border-top: 1px solid #eddfc8; }
.blog-read-more { font-size: 0.82rem; font-weight: 700; color: var(--deep-red); font-family: 'Cinzel', serif; letter-spacing: 0.04em; }

/* Blog post article */
.blog-post-meta {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #e8d0a0;
}
.blog-post-meta-item { font-size: 0.78rem; color: var(--saffron); font-weight: 600; font-family: 'Cinzel', serif; letter-spacing: 0.04em; }
.blog-category-badge {
  display: inline-block; background: #fff0e0; color: var(--saffron);
  border: 1px solid var(--saffron); font-size: 0.68rem; font-weight: 700;
  font-family: 'Cinzel', serif; padding: 3px 12px; border-radius: 20px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.blog-post-content p { font-size: 0.98rem; line-height: 1.9; color: #3a1c00; margin-bottom: 14px; }
.blog-post-content ul, .blog-post-content ol { padding-left: 22px; margin-bottom: 14px; }
.blog-post-content li { font-size: 0.95rem; line-height: 1.8; color: #3a1c00; margin-bottom: 5px; }
.blog-post-content strong { color: var(--maroon); font-weight: 700; }
.blog-highlight-box {
  background: linear-gradient(135deg, #fffaf0, #fff4d8);
  border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0;
  padding: 16px 20px; margin: 16px 0 20px;
}
.blog-highlight-box p { margin: 0; font-size: 0.92rem; color: #5a3010; line-height: 1.8; font-style: italic; }

/* ═══════════════════════════════════════════
   RESPONSIVE UTILITIES
═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .site-header h1 { font-size: 1.4rem; }
  .section-title, .dark-section-title { font-size: 1.4rem; }
  .welcome-box { padding: 24px 16px; }
  .page-hero-title { font-size: 1.6rem; }
  .deity-layout { padding: 28px 16px; }
}
