:root {
  --saffron: #FF9933;
  --deep-saffron: #e87f1a;
  --maroon: #800000;
  --gold: #D4A843;
  --cream: #FFF8F0;
  --temple-dark: #2C1810;
  --temple-brown: #5C3A1E;
  --text-primary: #333;
  --text-secondary: #666;
  --border: #e0d5c8;
  --bg-light: #faf7f2;
  --shadow: 0 1px 8px rgba(0,0,0,0.06);
  --radius: 8px;
  --card-bg: #ffffff;
  --card-bg-alt: #ffffff;
}

[data-theme="dark"] {
  --cream: #18100a;
  --bg-light: #201408;
  --text-primary: #e8ddd0;
  --text-secondary: #a8907a;
  --border: #3d2a1a;
  --shadow: 0 1px 8px rgba(0,0,0,0.35);
  --card-bg: #2c1e12;
  --card-bg-alt: #261810;
}

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

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

body {
  font-family: 'Georgia', 'Times New Roman', 'Noto Sans Kannada', serif;
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
}

h4 {
  color: var(--maroon);
  margin-bottom: 0.5rem;
}

/* --- Decorative Border --- */
.ornament-top {
  height: 5px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--maroon), var(--gold), var(--saffron));
  box-shadow: 0 1px 4px rgba(212, 168, 67, 0.3);
}

/* --- Header & Navigation --- */
header {
  background: linear-gradient(135deg, var(--temple-dark), var(--maroon));
  color: white;
  text-align: center;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0.5rem;
  position: relative;
}

.temple-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 0.1rem;
}

.temple-name-sanskrit {
  font-size: 0.85rem;
  color: var(--saffron);
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

.temple-location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

nav {
  background: rgba(0,0,0,0.2);
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-family: 'Segoe UI', sans-serif;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  left: 1rem;
  top: 0.8rem;
}

/* --- Language Slide Toggle --- */
/* --- Header Controls (dark toggle + lang switch) --- */
.header-controls {
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  z-index: 10;
}

.dark-toggle {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.dark-toggle:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.08);
}

.dark-toggle .icon-sun { display: none; }
.dark-toggle .icon-moon { display: flex; }
[data-theme="dark"] .dark-toggle .icon-sun { display: flex; }
[data-theme="dark"] .dark-toggle .icon-moon { display: none; }

.lang-switch {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.lang-en, .lang-kn {
  font-size: 0.7rem;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  transition: color 0.3s;
}

.lang-en { color: var(--gold); }
.lang-kn { color: rgba(255,255,255,0.4); }

.lang-switch.active .lang-en { color: rgba(255,255,255,0.4); }
.lang-switch.active .lang-kn { color: var(--gold); }

.lang-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  border: 1.5px solid var(--gold);
  transition: background 0.3s;
  flex-shrink: 0;
}

.lang-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform 0.3s;
}

.lang-switch.active .lang-slider { background: rgba(255,153,51,0.3); }
.lang-switch.active .lang-slider::after { transform: translateX(16px); }

/* Hide Google Translate chrome */
.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.VIpgJd-ZVi9od-ORHb-OEVmcd, .skiptranslate:not(#google_translate_element) { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* --- Announcement Alerts --- */
.announcement-bar:empty {
  display: none;
}

.alert-item {
  background: linear-gradient(90deg, var(--saffron), #ffb347, var(--gold));
  color: var(--temple-dark);
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  animation: alertSlideIn 0.3s ease-out;
}

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

.alert-item.alert-urgent {
  background: linear-gradient(90deg, #c0392b, #e74c3c, #c0392b);
  color: white;
}

.alert-item.alert-info {
  background: linear-gradient(90deg, #2980b9, #3498db, #2980b9);
  color: white;
}

.alert-item.alert-success {
  background: linear-gradient(90deg, #27ae60, #2ecc71, #27ae60);
  color: white;
}

@keyframes alertSlideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--temple-dark) 0%, var(--maroon) 50%, var(--temple-brown) 100%);
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-with-bg {
  background-size: cover;
  background-position: 45% 48%;
  background-repeat: no-repeat;
  padding: 0.5rem 1.5rem 1rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.05) 70%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1rem 2.5rem;
}

.hero-content-top {
  margin-top: -1.3rem;
}

.hero-content-bottom {
  padding: 0.6rem 2rem;
}


.hero h1 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7), 0 4px 20px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
  text-align: center;
}

.vishnu-icon {
  display: inline-flex;
  align-items: center;
}

.shankha-svg {
  width: 36px;
  height: auto;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(96%) sepia(9%) saturate(251%) hue-rotate(334deg) brightness(106%) contrast(101%) drop-shadow(0 1px 3px rgba(0,0,0,0.75));
}

.chakra-svg {
  width: 36px;
  height: auto;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(96%) sepia(9%) saturate(251%) hue-rotate(334deg) brightness(106%) contrast(101%) drop-shadow(0 1px 3px rgba(0,0,0,0.75));
}

.hero .deity-names {
  font-size: 1.05rem;
  color: #ffe0a0;
  margin-bottom: 1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 2px 12px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.nama-sep {
  display: inline-flex;
  align-items: center;
  margin: 0 0.15rem;
}

.nama-svg {
  width: 13px;
  height: auto;
  opacity: 1;
  display: block;
  filter: brightness(0) saturate(100%) invert(96%) sepia(9%) saturate(251%) hue-rotate(334deg) brightness(106%) contrast(101%) drop-shadow(0 1px 2px rgba(0,0,0,0.55));
}

.hero p {
  max-width: 700px;
  margin: 0 auto 0.5rem;
  color: #f0f0f0;
  font-size: 0.95rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 2px 12px rgba(0,0,0,0.6);
}

.hero-om {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.3rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
}

.hero-kshetra {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.6);
}

/* --- Temple Image Showcase (Home) --- */
.temple-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.showcase-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.15);
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 3px solid rgba(212, 168, 67, 0.2);
}

.showcase-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  border-color: rgba(212, 168, 67, 0.4);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* --- About Page Intro with Image --- */
.about-intro-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.about-intro-text {
  flex: 1;
}

.about-intro-image {
  flex-shrink: 0;
  width: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.about-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Deity Feature (image + text side by side) --- */
.deity-feature {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.deity-feature:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.deity-feature-image {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.deity-feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.deity-feature-text {
  flex: 1;
}

/* --- Main Content --- */
main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* --- Section Styles --- */
.section {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--maroon);
  text-align: center;
  margin-bottom: 0.3rem;
  position: relative;
  letter-spacing: 0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.section-divider {
  width: 120px;
  height: 1px;
  background: var(--border);
  margin: 0.8rem auto 2rem;
  position: relative;
}

.section-divider::before {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.55rem;
  color: var(--gold);
  background: var(--cream);
  padding: 0 0.6rem;
  line-height: 1;
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border-top: 3px solid var(--gold);
}

.card h3 {
  color: var(--maroon);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* --- Quick Links (Home) --- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 1.2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-decoration: none;
  color: var(--maroon);
  transition: transform 0.25s, box-shadow 0.25s;
  font-family: 'Segoe UI', sans-serif;
}

.quick-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.quick-link .ql-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5eb, #ffecd2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-link:hover .ql-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 2px 12px rgba(212, 168, 67, 0.3);
}

.quick-link .ql-icon {
  width: 24px;
  height: 24px;
}

.quick-link .ql-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Highlight Box --- */
.highlight-box {
  background: linear-gradient(135deg, #fdf8f0, #fff5e6);
  border-left: 4px solid var(--gold);
  padding: 1.8rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(212, 168, 67, 0.08);
}

.highlight-box h3 {
  color: var(--maroon);
  margin-bottom: 0.5rem;
}

/* --- Seva Table --- */
.seva-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
}

.seva-table th {
  background: var(--maroon);
  color: white;
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.seva-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.seva-table tr:nth-child(even) {
  background: var(--bg-light);
}

.seva-table tr:hover {
  background: #fff3e0;
}

.seva-table .amount {
  text-align: right;
  font-weight: 600;
  color: var(--maroon);
  white-space: nowrap;
}

/* --- Donation Section --- */
.donation-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.donation-method {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.donation-method h3 {
  color: var(--maroon);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.bank-details {
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.bank-details .detail-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}

.bank-details .label {
  color: var(--text-secondary);
  font-weight: 600;
}

.bank-details .value {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Gallery --- */
.gallery-section {
  margin-bottom: 2rem;
}

.gallery-section h3 {
  color: var(--maroon);
  text-transform: capitalize;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.gallery-toggle {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-toggle:hover {
  opacity: 0.8;
}

.gallery-toggle-arrow {
  font-size: 0.75em;
  transition: transform 0.2s;
  display: inline-block;
}

.gallery-toggle.open .gallery-toggle-arrow {
  transform: rotate(90deg);
}

.gallery-count {
  font-size: 0.8em;
  font-weight: normal;
  color: var(--text-secondary);
}

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s;
  aspect-ratio: 4/3;
  background: var(--border);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-pdf {
  width: 80vw;
  height: 85vh;
  border: none;
  border-radius: 4px;
  background: white;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  border: none;
  line-height: 1;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  z-index: 1001;
}

/* --- Invitations --- */
.invitation-year {
  margin-bottom: 2rem;
}

.invitation-year h3 {
  color: var(--maroon);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.invitation-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.invitation-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.invitation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.invitation-pdf-card {
  cursor: pointer;
  overflow: hidden;
}

.invitation-pdf-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f5f5f5;
}

.invitation-pdf-preview iframe {
  width: 200%;
  height: 200%;
  transform: scale(0.5);
  transform-origin: top left;
  border: none;
  pointer-events: none;
}

.invitation-pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.invitation-pdf-info {
  padding: 0.8rem;
  text-align: center;
}

.invitation-name {
  display: block;
  font-size: 0.85rem;
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  word-break: break-word;
}

.invitation-action {
  font-size: 0.8rem;
  font-family: 'Segoe UI', sans-serif;
  color: var(--maroon);
  font-weight: 600;
}

.invitation-img {
  cursor: pointer;
  aspect-ratio: 3/4;
}

.invitation-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.load-old-invitations {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem auto 0;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
  border-radius: var(--radius);
  font-family: Georgia, serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}

.load-old-invitations:hover {
  background: var(--maroon);
  color: #fff;
}

.load-old-invitations svg {
  flex-shrink: 0;
}

/* --- Utsava Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--saffron), var(--maroon));
  border-radius: 2px;
}

.timeline-day {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-day::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--saffron);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--saffron);
}

.timeline-day.highlight::before {
  background: var(--maroon);
  box-shadow: 0 0 0 2px var(--maroon), 0 0 8px rgba(128,0,0,0.4);
  width: 14px;
  height: 14px;
  left: -2.45rem;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--saffron);
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--maroon);
  font-weight: bold;
  margin: 0.2rem 0 0.5rem;
}

.timeline-events {
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.8;
}

.timeline-events li::before {
  content: '•';
  color: var(--gold);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* --- Seva Section Titles --- */
.seva-category-title {
  color: var(--maroon);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* --- Temple Timings --- */
.timing-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.timing-box {
  flex: 1;
  min-width: 200px;
  background: var(--bg-light);
  padding: 1.2rem;
  border-radius: var(--radius);
  text-align: center;
}

.timing-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Segoe UI', sans-serif;
  margin-bottom: 0.3rem;
}

.timing-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--maroon);
}

.timing-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--maroon);
  font-family: 'Segoe UI', sans-serif;
  font-weight: bold;
  background: #fdf8f0;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--saffron);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* --- Location QR Banner --- */
.location-qr-banner {
  background: linear-gradient(135deg, #fff9f0, #fff3e0);
  border: 2px solid var(--saffron);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1rem;
}

.location-qr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.location-qr-text {
  flex: 1;
}

.location-qr-text h3 {
  color: var(--maroon);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.location-qr-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: 'Segoe UI', sans-serif;
}

.location-qr-code {
  text-align: center;
  flex-shrink: 0;
}

.location-qr-code img {
  border: 3px solid var(--maroon);
  border-radius: var(--radius);
  padding: 6px;
  background: white;
}

.location-qr-code p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  font-family: 'Segoe UI', sans-serif;
}

/* --- Footer Location QR --- */
.footer-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-location img {
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 3px;
  background: white;
}

.footer-location-text {
  text-align: left;
}

.footer-location-text a {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .location-qr-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Info Note --- */
.info-note {
  background: #f5f8fc;
  border-left: 3px solid #7ba1c7;
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  font-family: 'Segoe UI', sans-serif;
  color: #444;
}

/* --- Footer --- */
footer {
  background: linear-gradient(135deg, var(--temple-dark), var(--maroon));
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  font-size: 0.85rem;
  margin-top: auto;
  border-top: 4px solid var(--gold);
}

footer .footer-name {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

footer a {
  color: var(--saffron);
  text-decoration: none;
}

/* --- Admin Panel --- */
.admin-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.login-form {
  max-width: 360px;
  margin: 4rem auto;
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-form h2 {
  color: var(--maroon);
  text-align: center;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  font-family: 'Segoe UI', sans-serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Segoe UI', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 2px rgba(255,153,51,0.2);
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--maroon);
  color: white;
}

.btn-primary:hover {
  background: #600;
}

.btn-saffron {
  background: var(--saffron);
  color: white;
}

.btn-saffron:hover {
  background: var(--deep-saffron);
}

.btn-danger {
  background: #c0392b;
  color: white;
}

.btn-danger:hover {
  background: #a93226;
}

.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.admin-tab {
  padding: 0.7rem 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-family: 'Segoe UI', sans-serif;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.admin-tab.active {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
  font-weight: 600;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--card-bg);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}

.stat-card .stat-value {
  font-size: 1.6rem;
  color: var(--maroon);
  font-weight: bold;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: 'Segoe UI', sans-serif;
}

.msg-box {
  padding: 0.8rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  display: none;
}

.msg-box.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.msg-box.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* --- WhatsApp Floating Widget --- */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  max-width: calc(100vw - 0.75rem);
}

.wa-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  transform-origin: right bottom;
}

.wa-fab:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.wa-panel {
  display: none;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  width: 260px;
  max-width: calc(100vw - 1.5rem);
  animation: waPanelIn 0.25s ease-out;
}

.wa-panel.open {
  display: block;
}

@keyframes waPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-panel-header {
  background: #25D366;
  color: white;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wa-panel-header .wa-panel-close {
  margin-left: auto;
}

.wa-panel-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
}

.wa-panel-body {
  padding: 1.2rem;
  text-align: center;
}

.wa-desc {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.wa-qr {
  border: 3px solid #25D366;
  border-radius: 8px;
  padding: 6px;
  background: white;
}

.wa-scan-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.6rem 0;
  font-family: 'Segoe UI', sans-serif;
}

.wa-join-btn {
  display: inline-block;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.2s;
}

.wa-join-btn:hover {
  background: #1da851;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner { padding: 2.5rem 1rem 0.5rem; }
  .temple-name { font-size: 1.1rem; }
  .temple-name-sanskrit { font-size: 0.75rem; }
  .temple-location { font-size: 0.7rem; margin-bottom: 0.3rem; }

  .nav-toggle { display: block; top: 0.4rem; left: 0.5rem; font-size: 1.3rem; padding: 0.3rem; }
  .header-controls { top: 0.45rem; right: 0.5rem; gap: 0.7rem; }
  .dark-toggle { width: 26px; height: 26px; }
  .lang-switch { gap: 0.3rem; }
  .lang-en, .lang-kn { font-size: 0.6rem; }
  .lang-slider { width: 30px; height: 17px; }
  .lang-slider::after { width: 11px; height: 11px; }
  .lang-switch.active .lang-slider::after { transform: translateX(13px); }

  nav { margin: 0; padding: 0 1rem; }
  nav ul {
    display: none;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }
  nav ul.open { display: flex; }
  nav a {
    padding: 0.5rem 1rem;
    border-bottom: none;
  }

  .hero h1 { font-size: 1.6rem; }
  .hero .deity-names { font-size: 0.95rem; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .section-title { font-size: 1.3rem; }
  .card { padding: 1.2rem; }

  .timeline { padding-left: 1.5rem; }
  .timeline-day { padding-left: 1rem; }

  .temple-showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .showcase-item { aspect-ratio: 4/3; }

  .about-intro-content { flex-direction: column; }
  .about-intro-image { width: 100%; max-height: 300px; }

  .deity-feature { flex-direction: column; }
  .deity-feature-image { width: 100%; max-width: 300px; margin: 0 auto; }

  .hero-with-bg { min-height: 420px; padding: 0.5rem 1rem 1rem; background-position: 45% 40%; background-size: 140% auto; }
  .hero-content { padding: 1.2rem 1.5rem; }

  .wa-float { bottom: 1rem; right: 1rem; }
  .wa-fab { width: 50px; height: 50px; }
  .wa-fab svg { width: 24px; height: 24px; }
  .wa-panel { width: 240px; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .header-inner { padding: 2.2rem 0.8rem 0.4rem; }
  .temple-name { font-size: 0.95rem; }
  .temple-name-sanskrit { font-size: 0.68rem; margin-bottom: 0.15rem; }
  .temple-location { font-size: 0.62rem; }
  .nav-toggle { top: 0.3rem; left: 0.3rem; }
  .header-controls { top: 0.3rem; right: 0.3rem; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 2.5rem 1rem; }
  .hero-with-bg { min-height: 400px; padding: 0.5rem 0.8rem 1rem; background-position: 45% 40%; background-size: 160% auto; }
  .hero-content-top { margin-top: -0.9rem; }
  .hero-content { padding: 0.7rem 0.8rem; }
  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.18;
    display: block;
    position: relative;
    padding: 0 2rem;
    margin-bottom: 0.35rem;
  }
  .hero h1 .vishnu-icon {
    position: absolute;
    top: 0.05rem;
  }
  .hero h1 .vishnu-icon:first-child { left: 0; }
  .hero h1 .vishnu-icon:last-child { right: 0; }
  .hero .deity-names {
    font-size: 0.9rem;
    row-gap: 0.1rem;
  }
  .hero-om {
    font-size: 2.8rem;
    margin-bottom: 0.2rem;
  }
  .shankha-svg, .chakra-svg { width: 28px; }
  main { padding: 1.5rem 1rem; }
  .lightbox-pdf { width: 95vw; height: 80vh; }
  .deity-feature-image { max-width: 100%; }
}

/* --- WhatsApp Contact Box (Contact page) --- */
.wa-contact-box {
  margin-top: 2rem;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #c8e6c9;
  text-align: center;
}

.wa-contact-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.wa-contact-title {
  margin: 0;
  color: #1b5e20;
}

.wa-contact-desc {
  font-size: 0.92rem;
  color: #2e7d32;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.wa-contact-scan {
  font-size: 0.8rem;
  color: #558b2f;
  margin-bottom: 1rem;
}

/* --- Dark Mode Overrides --- */
[data-theme="dark"] body {
  background: var(--cream);
  color: var(--text-primary);
}

[data-theme="dark"] .card {
  background: var(--card-bg);
}

[data-theme="dark"] .map-container iframe {
  filter: invert(90%) hue-rotate(180deg);
  opacity: 0.9;
}

[data-theme="dark"] .wa-contact-box {
  background: #1a2a1a;
  border-color: #2d4a2d;
}

[data-theme="dark"] .wa-contact-title {
  color: #6dbf6d;
}

[data-theme="dark"] .wa-contact-desc {
  color: #8aba8a;
}

[data-theme="dark"] .wa-contact-scan {
  color: #6dbf6d;
}

[data-theme="dark"] .section-divider::before {
  background: var(--cream);
}

[data-theme="dark"] .highlight-box {
  background: #261a0e;
}

[data-theme="dark"] .timing-note {
  background: #261a0e;
}

[data-theme="dark"] .info-note {
  background: #1a2535;
  color: #b8cde0;
}

[data-theme="dark"] .location-qr-banner {
  background: #201408;
}

[data-theme="dark"] .quick-link .ql-icon-wrap {
  background: linear-gradient(135deg, #3d2a1a, #4d3320);
}

[data-theme="dark"] .seva-table tr:nth-child(even) {
  background: #241608;
}

[data-theme="dark"] .seva-table tr:hover {
  background: #3d2a1a;
}

[data-theme="dark"] .invitation-pdf-preview {
  background: #261a0e;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: #261a0e;
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--saffron);
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] td {
  color: var(--text-primary);
}

[data-theme="dark"] .ornament-top {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .dark-toggle { transition: none; }
}
