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

:root {
  --primary: #c8651a;
  --primary-dark: #a04e10;
  --primary-light: #e8894a;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --cream: #fdf6ee;
  --dark: #2c1a0e;
  --text: #3a2410;
  --text-light: #7a5a3a;
  --border: #e0b07a;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Malayalam', sans-serif;
  background: #f5ede0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2640 40%, #1a4a6c 70%, #0d3050 100%);
  padding: 16px 0;
  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='%23ffffff' fill-opacity='0.03'%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-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.header-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: radial-gradient(circle at 40% 38%, #7a3800, #3a1400);
  box-shadow: 0 0 0 2px rgba(212,160,23,0.25), 0 0 18px rgba(212,160,23,0.3), inset 0 0 14px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.header-logo-circle::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.35);
}
.om-icon {
  font-size: 54px;
  line-height: 1;
  background: linear-gradient(160deg, #ffe88a 0%, #d4a017 40%, #f5c842 70%, #c8651a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 900;
  filter:
    drop-shadow(0 0 1px #d4a017)
    drop-shadow(0 0 1px #d4a017)
    drop-shadow(0 0 2px #c8651a)
    drop-shadow(1px  1px 0 #8a4000)
    drop-shadow(-1px -1px 0 #8a4000)
    drop-shadow(1px -1px 0 #8a4000)
    drop-shadow(-1px  1px 0 #8a4000);
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.header-text { flex: 1; text-align: center; }

.header-text .temple-name-ml {
  font-family: 'Noto Serif Malayalam', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.3;
  display: block;
}

.header-text .temple-name-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1.5px;
  margin-top: 4px;
  display: block;
}

.header-text .om-symbol {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  display: block;
  font-style: italic;
}

.header-contact {
  text-align: right;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  flex-shrink: 0;
}

.header-contact a {
  color: var(--gold-light);
  text-decoration: none;
  display: block;
  margin-top: 4px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: linear-gradient(to right, var(--primary-dark), var(--primary), var(--primary-dark));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.navbar ul li a {
  display: block;
  padding: 13px 15px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  background: rgba(255,255,255,0.15);
  border-bottom-color: var(--gold-light);
  color: var(--gold-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 10px;
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #1a0a00;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

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

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.0) 100%);
}

.slide-content {
  position: absolute;
  left: 60px;
  bottom: 70px;
  color: white;
  max-width: 500px;
}

.slide-content h2 {
  font-family: 'Noto Serif Malayalam', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-text-box {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 340px;
  background: rgba(200, 101, 26, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  padding: 30px 25px;
}

.hero-text-box-content {
  color: white;
}

.hero-text-box-content p {
  font-size: 14px;
  line-height: 1.8;
  text-align: justify;
}

.hero-text-box-content .temple-icon {
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.slider-btn:hover { background: rgba(255,255,255,0.4); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 360px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid rgba(255,255,255,0.5);
}

.slider-dots span.active { background: var(--gold-light); }

/* ===== TICKER ===== */
.ticker-bar {
  background: var(--dark);
  color: var(--gold-light);
  padding: 8px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 20px;
  border-radius: 0 4px 4px 0;
}

.ticker-content {
  white-space: nowrap;
  animation: ticker 55s linear infinite;
  font-size: 13px;
}

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

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* ===== SECTION CARDS ===== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.content-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.content-grid-location {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
  margin-bottom: 25px;
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(200,101,26,0.15);
}

.card-header {
  background: linear-gradient(to right, rgba(200,101,26,0.08), rgba(212,160,23,0.08));
  border-bottom: 2px solid var(--primary);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--dark);
  text-transform: uppercase;
}

.card-body { padding: 18px; }

.card-scroll-btn {
  background: none;
  border: 1.5px solid var(--primary);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-scroll-btns {
  display: flex;
  gap: 5px;
}

/* ===== LOCATION ===== */
.location-map {
  width: 100%;
  height: 200px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  width: 100%;
  height: 200px;
  background: #e8f0f8;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #5a7a9a;
  margin-bottom: 14px;
  cursor: pointer;
  text-decoration: none;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a6ab1;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  text-decoration: none;
}

.map-link:hover { text-decoration: underline; }

.location-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.location-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.location-meta-item .icon {
  font-size: 18px;
  color: var(--primary);
}

.location-address {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.location-address strong { color: var(--dark); font-size: 14px; }

/* ===== TEMPLE TIMINGS ===== */
.timings-card {
  border: 2px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
}

.timings-header {
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timings-list {
  list-style: none;
}

.timings-list li {
  padding: 10px 16px;
  border-bottom: 1px solid #f0e8de;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.15s;
}

.timings-list li:hover { background: #fdf6ee; }
.timings-list li:last-child { border-bottom: none; }

.timing-name {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
}

.timing-time {
  color: var(--dark);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

/* ===== DEITIES ===== */
.deities-section { margin-bottom: 6px; }
.deities-section h4 {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deities-section h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.deity-list {
  list-style: none;
  margin-bottom: 14px;
}

.deity-list li {
  padding: 5px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed #f0e0d0;
}

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

.deity-list li::before {
  content: '•';
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
}

.deity-list li a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.deity-list li a:hover { color: var(--primary); }

/* ===== EVENTS & ANNOUNCEMENTS ===== */
.event-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0e8de;
  display: flex;
  gap: 12px;
}

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

.event-date-box {
  background: var(--primary);
  color: white;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
  min-width: 48px;
  flex-shrink: 0;
}

.event-date-box .day { font-size: 20px; font-weight: 700; line-height: 1; }
.event-date-box .month { font-size: 11px; margin-top: 3px; }

.event-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.event-info p { font-size: 12px; color: var(--text-light); }

.empty-notice {
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  padding: 20px;
  font-style: italic;
}

/* ===== TEMPLE RULES ===== */
.rules-list {
  list-style: none;
  font-size: 13.5px;
  line-height: 1.7;
}

.rules-list li {
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px dotted #f0e0d0;
  color: var(--text);
}

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

.rules-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 10px;
  top: 9px;
}

/* ===== PRIEST ===== */
.priest-card {
  text-align: center;
}

.priest-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--gold));
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid var(--border);
  overflow: hidden;
}

.priest-avatar img { width: 100%; height: 100%; object-fit: cover; }

.priest-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.priest-role {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== PRAYER ===== */
.prayer-text {
  font-family: 'Noto Serif Malayalam', serif;
  font-size: 15px;
  line-height: 2;
  color: var(--dark);
  text-align: center;
  background: linear-gradient(135deg, #fdf6ee, #fef9f2);
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ===== SOCIAL MEDIA ===== */
.social-fb-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.fb-header {
  background: #1877f2;
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.fb-page-info {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.fb-page-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.fb-page-name { font-weight: 700; font-size: 14px; color: #1a1a1a; }
.fb-page-followers { font-size: 12px; color: #666; }

.fb-follow-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  background: #1877f2;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.fb-post-preview {
  padding: 12px 16px;
  border-top: 1px solid #e8e8e8;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

.fb-post-preview img {
  width: 100%;
  border-radius: 4px;
  margin-top: 8px;
  object-fit: cover;
  max-height: 160px;
}

/* ===== GALLERY STRIP ===== */
.gallery-strip {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.gallery-strip .card-header { background: linear-gradient(to right, var(--primary), var(--gold)); }
.gallery-strip .card-header h3 { color: white; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 2px;
}

.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover { transform: scale(1.05); z-index: 1; position: relative; }

/* ===== DONATION STRIP ===== */
.donation-strip {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 25px;
}

.donation-strip h3 {
  font-family: 'Noto Serif Malayalam', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.donation-strip p { font-size: 14px; opacity: 0.9; margin-bottom: 16px; }

.btn-donation {
  display: inline-block;
  background: var(--gold-light);
  color: var(--dark);
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0 8px;
}

.btn-donation:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, var(--dark), #1a0e06);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 0;
  margin-top: 10px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-col p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  padding: 4px 0;
  font-size: 13px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  background: rgba(0,0,0,0.3);
  text-align: center;
  padding: 14px 20px;
  margin-top: 30px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a { color: var(--gold-light); text-decoration: none; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.2s;
  font-size: 26px;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { height: 350px; }
  .hero-text-box { display: none; }
  .slider-btn.next { right: 15px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid-3 { grid-template-columns: 1fr 1fr; }
  .content-grid-location { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 120px; }
}

@media (max-width: 600px) {
  .header-inner { flex-direction: column; text-align: center; }
  .header-contact { display: none; }
  .header-text .temple-name-ml { font-size: 20px; }
  .mobile-menu-btn { display: block; }
  .navbar ul { display: none; flex-direction: column; width: 100%; }
  .navbar ul.open { display: flex; }
  .navbar ul li a { padding: 11px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hero { height: 280px; }
  .slide-content { left: 20px; bottom: 40px; }
  .slide-content h2 { font-size: 18px; }
  .content-grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .location-meta { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* image fallback */
.img-bg {
  background: linear-gradient(135deg, #c8651a22, #d4a01722);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.6;
}

/* ===== NAGA PRATHISHTA FEATURE BOX ===== */
.naga-feature-box {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,0.12);
  border: 2px solid #2a6a2a;
}

.naga-header {
  background: linear-gradient(135deg, #0a2a0a, #1a4a1a, #0a2a0a);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.naga-icon {
  font-size: 42px;
  filter: drop-shadow(0 0 8px rgba(100,200,100,0.5));
  animation: nagaSway 3s ease-in-out infinite;
}

@keyframes nagaSway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.naga-title {
  font-family: 'Noto Serif Malayalam', serif;
  font-size: 22px;
  font-weight: 700;
  color: #a0e080;
  margin: 0 0 4px;
}

.naga-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.naga-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
}

.naga-image-wrap {
  position: relative;
  overflow: hidden;
  background: #0a1a0a;
  min-height: 300px;
}

.naga-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease;
  min-height: 300px;
}

.naga-img:hover { transform: scale(1.04); }

.naga-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  padding: 20px 12px 10px;
  text-align: center;
}

.naga-content {
  padding: 22px 24px;
  background: linear-gradient(135deg, #f8fff8, #f0faf0);
}

.naga-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1a4a1a, #2a6a2a);
  color: #a0e080;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.naga-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  text-align: justify;
  margin-bottom: 12px;
}

.naga-divider {
  height: 2px;
  background: linear-gradient(to right, #2a6a2a, rgba(42,106,42,0.1));
  border-radius: 2px;
  margin: 14px 0;
}

.naga-section-title {
  font-family: 'Noto Serif Malayalam', serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a4a1a;
  margin: 0 0 10px;
}

.naga-info-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #c8e0c8;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(42,106,42,0.08);
}

@media (max-width: 700px) {
  .naga-body { grid-template-columns: 1fr; }
  .naga-image-wrap { min-height: 220px; }
  .naga-img { min-height: 220px; }
}

/* ===== MANTRA / PRAYER ===== */
.mantra-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.prayer-text {
  font-family: 'Noto Serif Malayalam', serif;
  font-size: 14.5px;
  line-height: 2.2;
  color: var(--dark);
  text-align: center;
  background: linear-gradient(135deg, #fdf6ee, #fef9f4);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.meaning-details {
  margin-top: 8px;
}

.meaning-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--primary);
  background: rgba(200,101,26,0.05);
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

.meaning-toggle::-webkit-details-marker { display: none; }
.meaning-toggle::marker { display: none; }
.meaning-toggle:hover { background: rgba(200,101,26,0.12); }

details[open] .meaning-toggle {
  background: var(--primary);
  color: white;
}

.meaning-body {
  margin-top: 10px;
  background: #fff8f0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  animation: fadeInUp 0.25s ease;
}

.meaning-body p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.meaning-body p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.meaning-body p strong {
  color: var(--primary);
  display: block;
  margin-bottom: 2px;
}

/* ===== DEITY SECTION RESPONSIVE ===== */
@media (max-width: 700px) {
  #deity-section > div > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #deity-section > div > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Timings list scroll container */
.timings-list {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f0e8de;
}

.timings-list::-webkit-scrollbar { width: 4px; }
.timings-list::-webkit-scrollbar-track { background: #f0e8de; }
.timings-list::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

/* 4-col responsive */
@media (max-width: 1000px) {
  div[style*="grid-template-columns:1fr 1fr 1.2fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
