:root {
  --gold: #d4af37;
  --deep-gold: #b8860b;
  --saffron: #ff6b00;
  --saffron-light: #ffb347;
  --crimson: #8b0000;
  --maroon: #4a0e0e;
  --cream: #fff8e7;
  --dark: #1a0a00;
  --text: #2c1810;
  --lotus-pink: #e8748a;
  --font-size-multiplier: 1;
}

html {
  font-size: calc(100% * var(--font-size-multiplier, 1));
  transition: font-size 0.3s ease;
}

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

img {
  display: block;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 248, 231, 0.28);
  background: linear-gradient(
    145deg,
    rgba(255, 248, 231, 0.16),
    rgba(212, 175, 55, 0.1)
  );
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.45),
    0 8px 18px rgba(255, 107, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'Tiro Devanagari Hindi', serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% -10%,
      rgba(212, 175, 55, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 80%,
      rgba(255, 107, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 40% 60% at 10% 60%,
      rgba(139, 0, 0, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

/* Mandala decoration */
.mandala-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  animation: rotateSlow 60s linear infinite;
}

@keyframes rotateSlow {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* HEADER */
header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px 30px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  background: linear-gradient(
    180deg,
    rgba(26, 10, 0, 0.95) 0%,
    rgba(26, 10, 0, 0.7) 100%
  );
  backdrop-filter: blur(10px);
}

.om-symbol {
  font-size: 3rem;
  color: var(--gold);
  display: block;
  animation: glow 3s ease-in-out infinite alternate;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
  }

  to {
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 1))
      drop-shadow(0 0 60px rgba(255, 107, 0, 0.5));
  }
}

header h1 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, #d4af37, #ffb347, #d4af37, #ff6b00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  letter-spacing: 2px;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

header p {
  color: rgba(255, 248, 231, 0.6);
  font-size: 0.95rem;
  margin-top: 8px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.divider-line {
  height: 1px;
  width: 100px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 10px var(--saffron);
}

/* NAVIGATION (Mobile Friendly & Glassmorphism) */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 10, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 10px;
}

.nav-inner-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.nav-inner-wrapper.is-scrollable {
  justify-content: flex-start;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 20px,
    black calc(100% - 20px),
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 20px,
    black calc(100% - 20px),
    transparent
  );
}

.nav-inner-wrapper::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.nav-inner {
  display: flex;
  justify-content: center;
  min-width: max-content;
  gap: 8px;
  padding: 4px 0;
  align-items: center;
}

.nav-inner-wrapper.is-scrollable .nav-inner {
  padding: 4px 6px;
}

.nav-arrow {
  background: rgba(255, 248, 231, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  z-index: 10;
}

.nav-arrow:hover {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

@media (min-width: 601px) {
  nav {
    justify-content: center;
  }

  .nav-inner-wrapper {
    flex: 0 0 auto;
    width: auto;
    overflow-x: visible;
  }

  .nav-inner {
    width: auto;
  }
}

.nav-btn {
  background: rgba(255, 248, 231, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: rgba(255, 248, 231, 0.8);
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 0.9rem;
  padding: 8px 18px;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn-home {
  flex-shrink: 0;
}

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
}

.nav-btn.active .nav-icon {
  border-color: rgba(26, 10, 0, 0.4);
}

.nav-icon-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--dark);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
  transform: translateY(-1px);
}

.nav-btn:hover:not(.active) {
  background: rgba(255, 248, 231, 0.1);
  border-color: var(--gold);
  color: var(--cream);
}

.accessibility-controls {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 8px;
  isolation: isolate;
  animation: floatControl 4.2s ease-in-out infinite;
}

.accessibility-controls::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 231, 0.4);
  background: radial-gradient(
    circle at center,
    rgba(255, 179, 71, 0.2),
    rgba(255, 179, 71, 0) 70%
  );
  box-shadow:
    0 0 26px rgba(255, 107, 0, 0.38),
    0 0 10px rgba(212, 175, 55, 0.3);
  z-index: -1;
  pointer-events: none;
  animation: controlPulse 2.1s ease-out infinite;
}

.quick-nav-btn,
.font-size-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 248, 231, 0.4);
  background: linear-gradient(
    145deg,
    rgba(255, 248, 231, 0.18),
    rgba(212, 175, 55, 0.1)
  );
  color: rgba(255, 248, 231, 0.9);
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 0.82rem;
  line-height: 1;
  transition: all 0.25s ease;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  animation: fontSizeBtnGlow 2.8s ease-in-out infinite alternate;
}

.quick-nav-btn {
  justify-content: center;
  padding: 7px 10px;
  min-width: 40px;
  font-size: 1rem;
  line-height: 1;
  overflow: visible;
}

.quick-nav-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 6px);
  opacity: 0;
  pointer-events: none;
  background: rgba(26, 10, 0, 0.95);
  color: var(--cream);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 8px;
  padding: 6px 8px;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 0.72rem;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 3;
}

.quick-nav-btn[data-tooltip]:hover::after,
.quick-nav-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.font-size-btn {
  gap: 8px;
  padding: 7px 12px;
}

.font-size-btn::before {
  content: '';
  position: absolute;
  inset: -25% -40%;
  background: linear-gradient(
    120deg,
    transparent 25%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 72%
  );
  transform: translateX(-70%);
  transition: transform 0.45s ease;
}

.font-size-btn-mark {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.font-size-btn .label {
  font-size: 0.78rem;
  color: rgba(255, 248, 231, 0.72);
}

.quick-nav-btn:hover,
.font-size-btn:hover {
  border-color: rgba(255, 248, 231, 0.4);
  color: #fff8e7;
  transform: translateY(-1px);
  box-shadow:
    0 0 24px rgba(212, 175, 55, 0.35),
    0 14px 28px rgba(255, 107, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.font-size-btn:hover::before {
  transform: translateX(70%);
}

.font-size-btn.active-scaling {
  border-color: transparent;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--dark);
  box-shadow:
    0 0 30px rgba(255, 107, 0, 0.45),
    0 10px 22px rgba(255, 107, 0, 0.4);
}

.font-size-btn.active-scaling .label {
  color: rgba(26, 10, 0, 0.84);
}

@keyframes floatControl {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes fontSizeBtnGlow {
  0% {
    box-shadow:
      0 0 12px rgba(212, 175, 55, 0.18),
      0 8px 22px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  100% {
    box-shadow:
      0 0 22px rgba(255, 107, 0, 0.35),
      0 10px 24px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

@keyframes controlPulse {
  0% {
    transform: scale(0.94);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.07);
    opacity: 0.15;
  }

  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

/* MAIN LAYOUT */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  position: relative;
  z-index: 1;
}

/* PAGE: HOME */
.home-search-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.home-hero-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.home-hero-row .section-subtitle {
  flex: 1;
  margin-bottom: 0;
}

.home-hero-row .home-search-wrap {
  margin-top: 0;
  flex: 0 0 auto;
}

.home-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.home-search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.95rem;
  opacity: 0.8;
  pointer-events: none;
}

.home-search-input {
  width: min(520px, 100%);
  background: rgba(255, 248, 231, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--cream);
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 11px 44px 11px 36px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.home-search-input::placeholder {
  color: rgba(255, 248, 231, 0.45);
}

.home-search-input::-webkit-search-cancel-button,
.home-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.home-search-input::-ms-clear,
.home-search-input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.home-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: rgba(255, 248, 231, 0.1);
}

.home-search-clear {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(255, 248, 231, 0.1);
  color: rgba(255, 248, 231, 0.8);
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.home-search-clear.visible {
  opacity: 1;
  pointer-events: auto;
}

.home-search-clear:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.home-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: rgba(255, 248, 231, 0.04);
  border-radius: 16px;
  padding: 26px 16px;
  color: rgba(255, 248, 231, 0.85);
}

.home-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.home-empty-title {
  color: var(--gold);
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.home-empty-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 248, 231, 0.6);
}

.deity-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.deity-filter-btn {
  background: rgba(255, 248, 231, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: rgba(255, 248, 231, 0.75);
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 0.88rem;
  padding: 7px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.deity-filter-btn.active,
.deity-filter-btn:hover {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--dark);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
  transform: translateY(-2px);
}

.deity-card {
  background: linear-gradient(
    145deg,
    rgba(255, 107, 0, 0.08),
    rgba(212, 175, 55, 0.05)
  );
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.deity-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.15),
    rgba(212, 175, 55, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.deity-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gold);
  box-shadow:
    0 20px 40px rgba(212, 175, 55, 0.2),
    0 0 0 1px rgba(255, 107, 0, 0.3);
}

.deity-card:hover::before {
  opacity: 1;
}

.deity-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  transition: all 0.5s ease;
  filter: blur(0.6px) brightness(0.95);
}

.deity-card:hover .deity-img {
  transform: scale(1.05);
  filter: blur(0px) brightness(1);
}

.deity-img-fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1),
    rgba(255, 107, 0, 0.05)
  );
}

.deity-info {
  padding: 15px;
  position: relative;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(26, 10, 0, 0.82) 0%,
    rgba(26, 10, 0, 0.94) 35%,
    rgba(26, 10, 0, 0.94) 100%
  );
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deity-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--gold);
  display: block;
}

.deity-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.deity-meta {
  font-size: 0.75rem;
  color: rgba(255, 248, 231, 0.5);
}

.deity-type-badge {
  display: inline-flex;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.32);
}

.deity-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}

.tag {
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.25s ease;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.32);
  font-weight: 600;
  white-space: nowrap;
}

.tag:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.38);
}

.tag-aarti {
  border-color: var(--saffron-light);
  color: var(--saffron-light);
}

.tag-aarti:hover {
  background: rgba(255, 107, 0, 0.15);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

.tag-chalisa {
  border-color: #ff9fb4;
  color: #ff9fb4;
}

.tag-chalisa:hover {
  background: rgba(255, 133, 161, 0.15);
  box-shadow: 0 2px 8px rgba(255, 133, 161, 0.2);
}

.tag-mantra {
  border-color: #7df9ff;
  color: #7df9ff;
}

.tag-mantra:hover {
  background: rgba(125, 249, 255, 0.15);
  box-shadow: 0 2px 8px rgba(125, 249, 255, 0.2);
}

.tag-katha {
  border-color: #ffd36b;
  color: #ffd36b;
}

.tag-katha:hover {
  background: rgba(255, 211, 107, 0.15);
  box-shadow: 0 2px 8px rgba(255, 211, 107, 0.2);
}

/* Mantra styles */
.mantra-grid {
  display: grid;
  gap: 20px;
}

.mantra-card {
  background: linear-gradient(
    135deg,
    rgba(125, 249, 255, 0.05),
    rgba(212, 175, 55, 0.06)
  );
  border: 1px solid rgba(125, 249, 255, 0.2);
  border-radius: 16px;
  padding: 25px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mantra-card:hover {
  border-color: rgba(125, 249, 255, 0.5);
  box-shadow: 0 8px 30px rgba(125, 249, 255, 0.1);
  transform: translateY(-2px);
}

.mantra-card::before {
  content: 'ॐ';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 80px;
  color: rgba(125, 249, 255, 0.04);
  pointer-events: none;
  font-family: serif;
}

.mantra-type {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #7df9ff;
  margin-bottom: 10px;
  font-family: 'EB Garamond', serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mantra-type::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 249, 255, 0.3), transparent);
}

.mantra-text {
  font-size: 1.5rem;
  line-height: 2;
  color: #fff8e7;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(125, 249, 255, 0.2);
  margin-bottom: 12px;
}

.mantra-meaning {
  font-size: 1.1rem;
  color: rgba(255, 248, 231, 0.55);
  font-family: 'EB Garamond', serif;
  font-style: italic;
  line-height: 1.7;
  border-top: 1px dashed rgba(125, 249, 255, 0.15);
  padding-top: 10px;
}

.mantra-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: rgba(255, 248, 231, 0.4);
  font-family: 'EB Garamond', serif;
}

.copy-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(125, 249, 255, 0.1);
  border: 1px solid rgba(125, 249, 255, 0.3);
  color: #7df9ff;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'EB Garamond', serif;
}

.copy-btn:hover {
  background: rgba(125, 249, 255, 0.2);
  transform: scale(1.05);
}

.copy-btn.copied {
  background: rgba(0, 200, 100, 0.2);
  border-color: rgba(0, 200, 100, 0.5);
  color: #00c864;
}

/* PAGE: CONTENT */
.page {
  display: none;
}

.page.active {
  display: block;
}

.content-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.08),
    rgba(255, 107, 0, 0.05)
  );
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
}

.deity-portrait {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.7);
  box-shadow:
    0 0 24px rgba(212, 175, 55, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.deity-portrait-emoji {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: rgba(212, 175, 55, 0.1);
  flex-shrink: 0;
}

.content-header-text h2 {
  font-size: 2rem;
  color: var(--gold);
  font-family: 'Cinzel Decorative', cursive;
}

.content-header-text p {
  color: rgba(255, 248, 231, 0.6);
  margin-top: 5px;
  font-style: italic;
  font-family: 'EB Garamond', serif;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 248, 231, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: rgba(255, 248, 231, 0.7);
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--dark);
  border-color: transparent;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.katha-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-content {
  display: none;
}

.text-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lyrics-box {
  background: linear-gradient(
    145deg,
    rgba(212, 175, 55, 0.06),
    rgba(255, 107, 0, 0.03)
  );
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 35px 40px;
  line-height: 2.2;
  font-size: 1.35rem;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.lyrics-box::before {
  content: 'ॐ';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 120px;
  color: rgba(212, 175, 55, 0.04);
  pointer-events: none;
  font-family: serif;
}

.lyrics-box .stanza {
  margin-bottom: 25px;
}

.lyrics-box .refrain {
  color: var(--saffron-light);
  font-weight: bold;
  text-align: center;
  padding: 10px 0;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
  margin: 20px 0;
}

.lyrics-box .title-line {
  text-align: center;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ABOUT SECTION ENHANCEMENTS */
.about-content {
  border: 0;
  position: relative;
  background: linear-gradient(
    165deg,
    rgba(26, 10, 0, 0.9) 0%,
    rgba(42, 20, 0, 0.8) 100%
  );
  box-shadow: none;
}

.about-content h3 {
  color: var(--saffron-light);
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.35rem;
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-content h3::before {
  content: '🚩';
  font-size: 1.1rem;
}

.about-content p {
  margin-bottom: 20px;
  color: rgba(255, 248, 231, 0.9);
  text-align: justify;
  font-size: 1.15rem;
}

.about-content ul {
  list-style: none;
  margin: 20px 0;
  display: grid;
  gap: 15px;
}

.about-content li {
  background: rgba(255, 248, 231, 0.03);
  padding: 15px 20px;
  border-radius: 12px;
  border-left: 3px solid var(--gold);
  transition: transform 0.3s ease;
}

.about-content li:hover {
  transform: translateX(5px);
  background: rgba(255, 248, 231, 0.06);
}

.about-content strong {
  color: var(--gold);
  font-weight: bold;
  font-size: 1.2rem;
}

.about-content .info-section {
  background: rgba(212, 175, 55, 0.04);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  margin-bottom: 30px;
}

.back-btn {
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(-3px);
}

/* Section title */
.section-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.5), transparent);
}

.section-subtitle {
  color: rgba(255, 248, 231, 0.5);
  font-size: 0.9rem;
  margin-bottom: 25px;
  font-style: italic;
  font-family: 'EB Garamond', serif;
}

/* Diya decoration */
.diya {
  display: inline-block;
  animation: flicker 2s ease-in-out infinite alternate;
}

@keyframes flicker {
  0%,
  100% {
    text-shadow:
      0 0 10px #ff6b00,
      0 0 20px #ffb347;
  }

  50% {
    text-shadow:
      0 0 5px #ff6b00,
      0 0 10px #ffb347;
  }
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  color: rgba(255, 248, 231, 0.4);
  font-size: 0.85rem;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.footer-links {
  margin: 10px 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
}

.footer-links a {
  color: rgba(255, 248, 231, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 10, 0, 0.5);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 600px) {
  .nav-inner-wrapper {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-inner {
    justify-content: flex-start;
    width: max-content;
  }

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

  .home-search-input {
    width: 100%;
    font-size: 0.9rem;
  }

  .home-search-wrap {
    width: 100%;
    justify-content: stretch;
  }

  .home-hero-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .home-hero-row .section-subtitle {
    margin-bottom: 0;
  }

  .home-search-input-wrap {
    width: 100%;
  }

  .deity-img,
  .deity-img-fallback {
    height: 140px;
  }

  .lyrics-box {
    padding: 20px;
    font-size: 1rem;
  }

  .content-header {
    flex-direction: column;
    text-align: center;
  }

  .accessibility-controls {
    bottom: 10px;
    right: 10px;
  }

  .font-size-btn {
    padding: 7px 9px;
    min-width: 38px;
    justify-content: center;
  }

  .quick-nav-btn {
    min-width: 36px;
    padding: 7px 8px;
  }

  .font-size-btn .label {
    display: none;
  }
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-om {
  animation: glow 1s ease-in-out infinite alternate;
}

.loader-logo {
  width: min(150px, 38vw);
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
  filter:
    drop-shadow(0 0 10px rgba(212, 175, 55, 0.55))
    drop-shadow(0 0 24px rgba(255, 107, 0, 0.35));
}

.loader-text {
  margin-top: -8px;
  color: rgba(255, 248, 231, 0.6);
  font-family: 'EB Garamond', serif;
  font-style: italic;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.particle {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  animation: floatUp linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ============ TEMPLES PAGE ============ */
.temples-header {
  margin-bottom: 30px;
}

.temple-controls {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.temple-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.temple-controls .temple-filters {
  margin-top: 0;
  flex: 1 1 auto;
}

.temple-controls .home-search-wrap {
  margin-top: 0;
  flex: 0 0 auto;
}

.temple-filter-btn {
  background: rgba(255, 248, 231, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: rgba(255, 248, 231, 0.75);
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 0.88rem;
  padding: 7px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.temple-filter-btn.active,
.temple-filter-btn:hover {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--dark);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
  transform: translateY(-2px);
}

.temples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.temple-card {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: templeCardIn 0.5s ease both;
  display: flex;
  flex-direction: column;
  position: relative;
}

@keyframes templeCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.temple-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--temple-color, var(--gold));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--temple-color, rgba(212, 175, 55, 0.3)),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.temple-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 0;
}

.temple-emoji-badge {
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.temple-card:hover .temple-emoji-badge {
  transform: scale(1.15) rotate(-5deg);
}

.temple-type-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--temple-color, var(--gold));
  color: var(--temple-color, var(--gold));
  font-family: 'EB Garamond', serif;
  background: rgba(0, 0, 0, 0.3);
}

.temple-card-body {
  padding: 14px 18px 12px;
  flex: 1;
}

.temple-name {
  font-size: 1.15rem;
  color: var(--temple-color, var(--gold));
  font-family: 'Cinzel Decorative', cursive;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.35;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.temple-name-en {
  font-size: 0.72rem;
  color: rgba(255, 248, 231, 0.4);
  font-family: 'EB Garamond', serif;
  font-style: italic;
  margin-bottom: 10px;
}

.temple-location-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.temple-location-pin {
  font-size: 0.8rem;
}

.temple-state {
  font-size: 0.78rem;
  color: rgba(255, 248, 231, 0.6);
  font-family: 'EB Garamond', serif;
}

.temple-desc {
  font-size: 0.85rem;
  color: rgba(255, 248, 231, 0.75);
  line-height: 1.65;
  margin-bottom: 12px;
}

.temple-deity-badge {
  display: inline-flex;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 248, 231, 0.2);
  color: rgba(255, 248, 231, 0.6);
}

.temple-deity-link-btn {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.temple-deity-link-btn:hover {
  color: var(--gold);
}

.temple-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

.temple-card:hover .temple-card-footer {
  background: rgba(var(--temple-color, 212, 175, 55), 0.08);
}

.temple-map-cta {
  font-size: 0.8rem;
  color: var(--temple-color, var(--gold));
  font-family: 'EB Garamond', serif;
}

.temple-arrow {
  font-size: 1.1rem;
  color: var(--temple-color, var(--gold));
  transition: transform 0.3s;
}

.temple-card:hover .temple-arrow {
  transform: translateX(5px);
}

/* ============ TEMPLE MODAL ============ */
.temple-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.temple-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.temple-modal {
  background: linear-gradient(
    160deg,
    rgba(30, 15, 0, 0.97) 0%,
    rgba(20, 8, 0, 0.99) 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 107, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.temple-modal-overlay.active .temple-modal {
  transform: scale(1) translateY(0);
}

.temple-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.temple-modal-close:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: scale(1.1) rotate(90deg);
}

.temple-modal-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.temple-modal-hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.temple-modal-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
  flex-shrink: 0;
}

.temple-modal-hero h2 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(1.25rem, 3.2vw, 1.9rem);
  color: var(--temple-color, var(--gold));
  line-height: 1.3;
  margin-bottom: 4px;
}

.temple-modal-hero p {
  font-size: 0.98rem;
  color: rgba(255, 248, 231, 0.45);
  font-family: 'EB Garamond', serif;
  font-style: italic;
}

.temple-modal-type {
  display: inline-block;
  margin-top: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--temple-color, var(--gold));
  color: var(--temple-color, var(--gold));
  font-family: 'EB Garamond', serif;
}

.temple-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.temple-type-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'EB Garamond', serif;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.temple-type-link:hover {
  color: #ffcf40;
  border-bottom-color: #ffcf40;
}

.temple-modal-body {
  padding: 0 28px 28px;
}

.temple-detail-shell {
  background: linear-gradient(
    160deg,
    rgba(30, 15, 0, 0.97) 0%,
    rgba(20, 8, 0, 0.99) 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 107, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.temple-detail-body .temple-history p {
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
}

.temple-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.temple-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 248, 231, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.25s;
}

.temple-info-card:hover {
  background: rgba(255, 248, 231, 0.07);
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.temple-info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.temple-info-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 248, 231, 0.35);
  font-family: 'EB Garamond', serif;
  margin-bottom: 4px;
}

.temple-info-val {
  font-size: 1.12rem;
  color: rgba(255, 248, 231, 0.85);
  line-height: 1.4;
}

.temple-info-deity-link {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.temple-info-deity-link:hover {
  color: var(--gold);
}

.temple-history-title {
  font-size: 1.12rem;
  color: var(--gold);
  font-family: 'Cinzel Decorative', cursive;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.temple-history p {
  font-size: 1.35rem;
  color: rgba(255, 248, 231, 0.75);
  line-height: 1.75;
  font-family: 'EB Garamond', serif;
  max-height: min(34vh, 280px);
  overflow-y: auto;
  padding-right: 8px;
  overscroll-behavior: contain;
}

.temple-history {
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.deity-temples-empty {
  background: linear-gradient(
    145deg,
    rgba(255, 107, 0, 0.08),
    rgba(212, 175, 55, 0.05)
  );
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
}

.deity-temples-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.35));
}

.deity-temples-empty p {
  margin: 0;
  color: rgba(255, 248, 231, 0.8);
  font-size: 1.08rem;
  line-height: 1.7;
  font-family: 'Tiro Devanagari Hindi', serif;
}

.deity-tab-wrap {
  border: 2px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  padding: 20px 18px;
  background: linear-gradient(
    165deg,
    rgba(26, 10, 0, 0.9) 0%,
    rgba(42, 20, 0, 0.8) 100%
  );
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.45);
}

.deity-tab-wrap-no-padding {
  padding: 0;
}

.deity-temples-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: rgba(255, 248, 231, 0.72);
  font-size: 1.02rem;
  text-align: center;
}

.deity-temples-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.deity-temples-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 22px auto 0;
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--dark);
  font-weight: 700;
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.deity-temples-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.5);
  background: linear-gradient(135deg, #ff8c00, #ffcf40);
}

/* Temple page responsive */
@media (max-width: 600px) {
  .temples-grid {
    grid-template-columns: 1fr;
  }

  .temple-modal-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px 16px;
  }

  .temple-modal-hero-main {
    width: 100%;
    justify-content: center;
  }

  .temple-modal-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .temple-history p {
    font-size: 1rem;
    max-height: min(30vh, 220px);
  }

  .temple-modal-body {
    padding: 0 16px 20px;
  }

  .temple-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .temple-info-label {
    font-size: 0.85rem;
  }

  .temple-info-val {
    font-size: 1.02rem;
  }

  .temple-history-title {
    font-size: 1.02rem;
  }

  .deity-temples-all-btn {
    width: 100%;
    padding: 12px 16px;
  }

  .deity-temples-intro {
    font-size: 0.95rem;
    gap: 8px;
    margin-bottom: 14px;
  }

  .deity-tab-wrap {
    padding: 16px 14px;
  }

  .deity-tab-wrap-no-padding {
    padding: 0;
  }
}

@media (max-width: 900px) {
  .temple-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .temple-controls .home-search-wrap {
    width: 100%;
    justify-content: stretch;
  }

  .temple-controls .home-search-input-wrap {
    width: 100%;
  }

  .temple-controls .home-search-input {
    width: 100%;
  }
}
