/* ============================================
   Kailasagiri Cave Temple - Custom Styles
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --temple-gold: #D4AF37;
  --temple-maroon: #800020;
  --temple-saffron: #FF671F;
  --temple-cream: #FFF8F0;
  --temple-sand: #F5E6D3;
  --temple-stone: #8B7355;
  --temple-dark: #1A0A00;
  --temple-cave: #2C1810;
}

/* ---- Base Resets ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--temple-dark);
  background-color: var(--temple-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Skip to Content (Accessibility) ---- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--temple-gold);
  color: var(--temple-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* ---- Typography ---- */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: 'Cinzel', serif;
  /* color: var(--temple-maroon);  */
  line-height: 1.3;
}

/* ---- Section Ornament Divider ---- */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 300px;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--temple-gold), transparent);
}

.ornament-divider .diamond {
  width: 10px;
  height: 10px;
  background: var(--temple-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ---- Gold Shimmer Animation ---- */
@keyframes goldShimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.gold-shimmer {
  background: linear-gradient(90deg,
      var(--temple-gold) 0%,
      #F5D76E 25%,
      var(--temple-gold) 50%,
      #F5D76E 75%,
      var(--temple-gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s linear infinite;
}

/* ---- Fade In Up Animation ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Stagger children */
.animate-on-scroll.is-visible:nth-child(2) {
  transition-delay: 0.1s;
}

.animate-on-scroll.is-visible:nth-child(3) {
  transition-delay: 0.2s;
}

.animate-on-scroll.is-visible:nth-child(4) {
  transition-delay: 0.3s;
}

.animate-on-scroll.is-visible:nth-child(5) {
  transition-delay: 0.4s;
}

.animate-on-scroll.is-visible:nth-child(6) {
  transition-delay: 0.5s;
}

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section.hero-short {
  min-height: 50vh;
  padding-top: 5rem;
  /* Account for fixed nav height to prevent breadcrumb/nav overlap */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(26, 10, 0, 0.5) 0%,
      rgba(44, 24, 16, 0.7) 50%,
      rgba(26, 10, 0, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

/* ---- Navigation ---- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-header.scrolled {
  background-color: rgba(44, 24, 16, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: var(--temple-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--temple-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #2C1810;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: var(--temple-gold);
  background: rgba(212, 175, 55, 0.1);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 24, 16, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  overflow-y: auto;
  padding: 5rem 2rem 2rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--temple-gold);
}

.mobile-menu .sub-links a {
  padding-left: 1.5rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.7);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1023px) {
  .hamburger {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }
}

/* ---- Cards ---- */
.temple-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--temple-gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.temple-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ---- CTA Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--temple-gold);
  color: var(--temple-maroon);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid var(--temple-gold);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: #e8c84a;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--temple-gold);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid var(--temple-gold);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ---- Quick Action Cards ---- */
.quick-action-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid var(--temple-gold);
  text-decoration: none;
  color: var(--temple-dark);
}

.quick-action-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.quick-action-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--temple-gold), #e8c84a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--temple-gold), var(--temple-stone), var(--temple-gold));
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 2rem;
  width: 16px;
  height: 16px;
  background: var(--temple-gold);
  border: 3px solid var(--temple-cream);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -8px;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 1rem;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 3rem !important;
    padding-right: 1rem !important;
  }

  .timeline-item::before {
    left: 4px !important;
    right: auto !important;
  }
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 10, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(212, 175, 55, 0.5);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  text-align: center;
  max-width: 80%;
}

/* ---- Image Placeholder ---- */
.img-placeholder {
  background: linear-gradient(135deg, var(--temple-sand), var(--temple-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--temple-stone);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
  min-height: 200px;
  border-radius: 0.5rem;
}

/* ---- Donation Amount Buttons ---- */
.amount-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--temple-gold);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--temple-maroon);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--temple-gold);
  color: var(--temple-maroon);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ---- Forms ---- */
.form-input {
  width: 100%;
  padding: 0.75rem 1.75rem;
  border: 1px solid rgba(139, 115, 85, 0.3);
  border-radius: 0.5rem;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--temple-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--temple-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--temple-maroon);
  margin-bottom: 0.375rem;
  font-weight: 600;
}

/* ---- Seva Cards ---- */
.seva-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  border-left: 4px solid var(--temple-gold);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seva-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ---- Festival Card ---- */
.festival-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.festival-card:hover {
  transform: translateY(-5px);
}

.festival-card .date-badge {
  background: var(--temple-maroon);
  color: var(--temple-gold);
  font-family: 'Cinzel', serif;
  padding: 0.75rem;
  text-align: center;
  font-weight: 700;
}

/* ---- Filter Tabs ---- */
.filter-tab {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--temple-stone);
  border-radius: 2rem;
  background: transparent;
  color: var(--temple-stone);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--temple-gold);
  border-color: var(--temple-gold);
  color: var(--temple-maroon);
}

/* ---- Parallax ---- */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* ---- Footer ---- */
.footer-section {
  background: var(--temple-cave);
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-section a:hover {
  color: var(--temple-gold);
}

.footer-heading {
  color: var(--temple-gold);
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ---- Donation CTA Band ---- */
.donation-band {
  background: linear-gradient(135deg, var(--temple-maroon), var(--temple-cave));
  position: relative;
  overflow: hidden;
}

.donation-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.1) 50%, transparent 100%);
  animation: goldShimmer 6s linear infinite;
  background-size: 200% auto;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--temple-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #e8c84a;
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: white;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--temple-maroon);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(212, 175, 55, 0.05);
}

.faq-question .icon {
  transition: transform 0.3s;
  font-size: 1.25rem;
  color: var(--temple-gold);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.25rem;
  color: var(--temple-dark);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1rem;
}

/* ---- Video Responsive ---- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Nearby Attraction Card ---- */
.attraction-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.attraction-card:hover {
  transform: translateY(-5px);
}

/* ---- Legal Pages ---- */
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* ---- Focus Styles (Accessibility) ---- */
*:focus-visible {
  outline: 2px solid var(--temple-gold);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--temple-gold);
  outline-offset: 2px;
}

/* ---- Utility Classes ---- */
.text-shadow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%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");
}

/* ---- Missing Tailwind Utility: Negative margin for mobile quick actions ---- */
.-mt-8 {
  margin-top: -2rem;
}

@media (min-width: 640px) {
  .sm\:-mt-16 {
    margin-top: -4rem;
  }
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 767px) {

  /* Fix: Center ornament dividers on mobile even when left-aligned on desktop (Issue 14) */
  .ornament-divider {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Fix: Reduce excessive section spacing on mobile (Issue 15 and similar) */
  section.py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  section.py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 1.75rem !important;
  }

  .hero-content p {
    font-size: 1rem !important;
  }
}

/* ---- Scroll to Top Button ---- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--temple-gold);
  color: var(--temple-maroon);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 900;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  font-size: 1.25rem;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* ---- Distance Table ---- */
.distance-table {
  width: 100%;
  border-collapse: collapse;
}

.distance-table th {
  background: var(--temple-maroon);
  color: var(--temple-gold);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
}

.distance-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.distance-table tr:nth-child(even) {
  background: var(--temple-sand);
}

.distance-table tr:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* ---- Blog Card ---- */
.blog-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ---- Reduced Motion (Accessibility) ---- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .gold-shimmer {
    animation: none;
    -webkit-text-fill-color: var(--temple-gold);
  }

  .hero-bg[data-parallax] {
    transform: none !important;
  }
}

/* ---- Button Disabled State ---- */
.btn-primary:disabled,
.btn-primary[aria-disabled="true"],
.btn-secondary:disabled,
.btn-secondary[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- Button Active State ---- */
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.btn-secondary:active {
  transform: translateY(0);
  background: rgba(212, 175, 55, 0.15);
}

/* ---- Mobile Table Scroll ---- */
@media (max-width: 640px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---- Print Styles ---- */
@media print {

  .nav-header,
  .mobile-menu,
  .scroll-top,
  .hamburger {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  body {
    color: #000;
    background: #fff;
  }
}