/* ==========================================================================
   NAIVARANI SREE KRISHNA TEMPLE (നൈവാരണി ശ്രീകൃഷ്ണ ക്ഷേത്രം)
   Traditional Kerala Temple Luxury Minimalism Design System
   ========================================================================== */

/* ----------------- CSS Custom Properties (Theme Tokens) ----------------- */
:root {
  /* Temple Palette */
  --kasavu-gold: #D4AF37;
  --kasavu-gold-light: #F3E5AB;
  --kasavu-gold-dark: #A67C1E;
  --kasavu-gold-glow: rgba(212, 175, 55, 0.35);
  
  --terracotta-ochre: #C85A17;
  --terracotta-ochre-light: #E07A3B;
  --terracotta-ochre-dark: #8F3705;
  --terracotta-soft: rgba(200, 90, 23, 0.1);

  --sandalwood-ivory: #FDFBF7;
  --sandalwood-cream: #F5EFEB;
  --sandalwood-border: #E8DCCF;
  --sandalwood-dark: #4A3E38;

  --temple-teak: #2C1810;
  --temple-teak-deep: #1A0E0A;
  --temple-teak-card: #24140D;
  --temple-teak-light: #3D2319;

  --flame-yellow: #FFB300;
  --flame-glow: rgba(255, 179, 0, 0.6);
  --sacred-green: #2E7D32;
  --sacred-green-light: #E8F5E9;
  --sacred-red: #B71C1C;

  /* Typography */
  --font-heading: 'Cinzel', 'Playfair Display', serif;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-malayalam: 'Noto Sans Malayalam', 'Plus Jakarta Sans', sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 14, 10, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 14, 10, 0.1);
  --shadow-lg: 0 16px 40px rgba(26, 14, 10, 0.15);
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.25);
  --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);

  /* Layout */
  --container-max: 1280px;
  --nav-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ----------------- Reset & Base Styles ----------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--sandalwood-ivory);
  color: var(--temple-teak);
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

/* Structural Lockdown: Prevent layout inflation on mobile browsers */
header, nav, section, footer, main,
.topbar, .site-header, .main-nav, .hero, .section, .footer, .container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.section {
  overflow-x: clip;
}

/* Ensure all direct children of body cannot overflow the viewport */
body > * {
  max-width: 100% !important;
  box-sizing: border-box;
}

body > .floating-actions-bar,
body > .upi-modal,
body > .lightbox-modal,
body > .nav-backdrop {
  max-width: 100vw !important;
}

body.nav-open {
  touch-action: none;
  overscroll-behavior: contain;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--kasavu-gold);
  outline-offset: 3px;
}

body.lang-ml {
  font-family: var(--font-malayalam);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px;
}

/* ----------------- Typography & Text Overflow Safety ----------------- */
h1, h2, h3, h4, h5, h6, p, span, a, label, button, input, select, textarea {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--temple-teak);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.lang-ml h1, .lang-ml h2, .lang-ml h3, .lang-ml h4, .lang-ml h5, .lang-ml h6,
body.lang-ml h1, body.lang-ml h2, body.lang-ml h3, body.lang-ml h4, body.lang-ml h5, body.lang-ml h6 {
  font-family: var(--font-malayalam);
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

/* Global Grid / Flex Column Overflow Safeguards */
.hero-content,
.hero-darshan-wrapper,
.schedule-grid > div,
.vazhipadu-catalog,
.vazhipadu-cart-wrapper,
.vazhipadu-layout > *,
.history-content,
.history-imagery,
.transit-routes,
.map-container-box,
.faq-accordion,
.contact-form-card,
.footer-col {
  min-width: 0;
  max-width: 100%;
}

.text-gold {
  color: var(--kasavu-gold);
}

.text-ochre {
  color: var(--terracotta-ochre);
}

.lead-text {
  font-size: 1.15rem;
  color: var(--sandalwood-dark);
}

/* ----------------- Layout Containers ----------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--temple-teak-deep);
  color: var(--sandalwood-ivory);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--sandalwood-ivory);
}

.section-cream {
  background-color: var(--sandalwood-cream);
}

/* Section Header Motif */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta-ochre);
  margin-bottom: 0.75rem;
  background: var(--terracotta-soft);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
}

.section-dark .section-eyebrow {
  color: var(--kasavu-gold);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--sandalwood-dark);
  line-height: 1.7;
}

.section-dark .section-subtitle {
  color: rgba(253, 251, 247, 0.75);
}

.temple-motif-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.temple-motif-divider::before,
.temple-motif-divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--kasavu-gold));
}

.temple-motif-divider::after {
  background: linear-gradient(90deg, var(--kasavu-gold), transparent);
}

.temple-motif-icon {
  color: var(--kasavu-gold);
  font-size: 1.1rem;
  animation: pulse-flame 3s infinite ease-in-out;
}

/* ----------------- Top Bar (Hotline & Live Clock) ----------------- */
.topbar {
  background-color: var(--temple-teak-deep);
  color: var(--sandalwood-cream);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(253, 251, 247, 0.85);
}

.topbar-item svg {
  color: var(--kasavu-gold);
}

.topbar-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--kasavu-gold-light);
  background: rgba(212, 175, 55, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Language Switcher */
.lang-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: rgba(253, 251, 247, 0.7);
}

.lang-btn.active {
  background: var(--kasavu-gold);
  color: var(--temple-teak-deep);
}

/* Ambient Audio Toggle Button */
.audio-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--kasavu-gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.audio-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.3);
}

.audio-toggle-btn.playing {
  background: var(--kasavu-gold);
  color: var(--temple-teak-deep);
  box-shadow: 0 0 12px var(--flame-glow);
}

/* ----------------- Main Navbar ----------------- */
.main-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--kasavu-gold);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.main-nav.scrolled {
  background: rgba(253, 251, 247, 0.98);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--kasavu-gold-dark);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--nav-height);
  height: auto;
  gap: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--kasavu-gold-light) 0%, var(--kasavu-gold) 70%, var(--kasavu-gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.45);
  border: 2px solid var(--kasavu-gold);
  flex-shrink: 0;
  overflow: hidden;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-logo-title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  font-weight: 800;
  color: var(--temple-teak);
  line-height: 1.2;
}

.nav-logo-malayalam {
  font-family: var(--font-malayalam);
  font-size: clamp(0.65rem, 2.2vw, 0.76rem);
  font-weight: 600;
  color: var(--terracotta-ochre);
  line-height: 1.25;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0.35rem, 1vw, 1.1rem);
  list-style: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--temple-teak);
  padding: 0.35rem 0.2rem;
  position: relative;
  white-space: nowrap !important;
  display: inline-block;
  line-height: 1.2;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--terracotta-ochre);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--terracotta-ochre);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--kasavu-gold) 0%, var(--terracotta-ochre) 100%);
  color: #FFF !important;
  font-weight: 700;
  padding: 0.48rem 1.05rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(200, 90, 23, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 0.84rem;
  line-height: 1.2;
  height: 38px;
  box-sizing: border-box;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 90, 23, 0.45);
}

/* Specific optical sizing & spacing for Malayalam navigation */
body.lang-ml .nav-container {
  gap: 0.45rem;
}

body.lang-ml .nav-links {
  gap: clamp(0.25rem, 0.75vw, 0.75rem);
}

body.lang-ml .nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap !important;
  line-height: 1.2;
  padding: 0.28rem 0.18rem;
}

body.lang-ml .nav-cta-btn {
  font-size: 0.75rem;
  padding: 0.4rem 0.85rem;
  white-space: nowrap !important;
  line-height: 1.2;
  height: 36px;
}

body.lang-ml .nav-logo-title {
  font-size: clamp(0.92rem, 3vw, 1.05rem);
  line-height: 1.25;
}

body.lang-ml .nav-logo-malayalam {
  font-size: clamp(0.64rem, 2.1vw, 0.72rem);
  line-height: 1.25;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  background: none;
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  z-index: 1002;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--temple-teak);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  transform-origin: center;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 14, 10, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  touch-action: none;
}

.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}


/* ----------------- Hero Section ----------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: url('../images/temple_deepastambham_real.jpg') center center / cover no-repeat;
  color: #FFF;
  padding: 6rem 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 14, 10, 0.65) 0%,
    rgba(26, 14, 10, 0.85) 60%,
    rgba(26, 14, 10, 0.98) 100%
  );
  z-index: 1;
}

.hero-kasavu-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--kasavu-gold) 0px,
    var(--kasavu-gold) 20px,
    #FFF 20px,
    #FFF 24px,
    var(--terracotta-ochre) 24px,
    var(--terracotta-ochre) 36px
  );
  z-index: 10;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--kasavu-gold-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge .flame-icon {
  color: var(--flame-yellow);
  animation: pulse-flame 2s infinite ease-in-out;
}

.hero-title-malayalam {
  font-family: var(--font-malayalam);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--kasavu-gold-light);
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-title-english {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  font-weight: 800;
  color: #FFF;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(253, 251, 247, 0.9);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--kasavu-gold) 0%, var(--terracotta-ochre) 100%);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(200, 90, 23, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(200, 90, 23, 0.6);
}

.btn-outline-gold {
  background: rgba(26, 14, 10, 0.4);
  color: var(--kasavu-gold-light);
  border: 1.5px solid var(--kasavu-gold);
  backdrop-filter: blur(6px);
}

.btn-outline-gold:hover {
  background: var(--kasavu-gold);
  color: var(--temple-teak-deep);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* Quick Micro-stats in Hero */
.hero-micro-stats {
  display: flex;
  gap: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding-top: 1.5rem;
}

.micro-stat-item {
  display: flex;
  flex-direction: column;
}

.micro-stat-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kasavu-gold);
}

.micro-stat-label {
  font-size: 0.8rem;
  color: rgba(253, 251, 247, 0.7);
}

/* Live Darshan Status Card in Hero */
.darshan-hero-card {
  background: rgba(36, 20, 13, 0.85);
  border: 2px solid var(--kasavu-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.darshan-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kasavu-gold), var(--terracotta-ochre), var(--kasavu-gold));
}

.darshan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 1rem;
}

.darshan-header-title {
  font-size: 1.15rem;
  color: var(--kasavu-gold-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dynamic Live Status Badge */
.live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-status-badge.open {
  background: rgba(46, 125, 50, 0.25);
  border: 1px solid var(--sacred-green);
  color: #81C784;
}

.live-status-badge.closed {
  background: rgba(200, 90, 23, 0.25);
  border: 1px solid var(--terracotta-ochre);
  color: #FFB74D;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.live-status-badge.open .pulse-indicator {
  background-color: #4CAF50;
  box-shadow: 0 0 10px #4CAF50;
  animation: pulse-dot 1.5s infinite;
}

.live-status-badge.closed .pulse-indicator {
  background-color: #FF9800;
  box-shadow: 0 0 8px #FF9800;
}

.darshan-timings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.timing-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.timing-box.active {
  border-color: var(--kasavu-gold);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.15);
}

.timing-box-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kasavu-gold);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.timing-box-time {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFF;
  font-variant-numeric: tabular-nums;
}

.darshan-countdown {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(253, 251, 247, 0.9);
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--kasavu-gold);
}

.darshan-countdown span {
  color: var(--kasavu-gold-light);
  font-weight: 700;
}

.darshan-card-cta {
  display: block;
  width: 100%;
  text-align: center;
}

/* ----------------- Daily Pooja & Darshan Schedule Section ----------------- */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.schedule-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--sandalwood-border);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.schedule-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--sandalwood-cream);
}

.schedule-card-title {
  font-size: 1.35rem;
  color: var(--temple-teak);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.schedule-badge {
  background: var(--terracotta-soft);
  color: var(--terracotta-ochre);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.pooja-timeline {
  --pooja-time-w: 85px;
  --pooja-bullet-col: 24px;
  --pooja-gap: 1rem;
  --pooja-bullet-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.pooja-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: calc(var(--pooja-time-w) + var(--pooja-gap) + (var(--pooja-bullet-col) / 2) - 1px);
  width: 2px;
  background: linear-gradient(180deg, var(--kasavu-gold), var(--terracotta-ochre));
}

.pooja-item {
  display: grid;
  grid-template-columns: var(--pooja-time-w) var(--pooja-bullet-col) 1fr;
  align-items: flex-start;
  gap: var(--pooja-gap);
  position: relative;
}

.pooja-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terracotta-ochre);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.pooja-bullet {
  width: var(--pooja-bullet-size);
  height: var(--pooja-bullet-size);
  border-radius: 50%;
  background: #FFF;
  border: 3px solid var(--kasavu-gold);
  margin-top: 4px;
  justify-self: center;
  z-index: 1;
  transition: transform var(--transition-fast);
}

.pooja-item:hover .pooja-bullet {
  transform: scale(1.3);
  background: var(--terracotta-ochre);
}

.pooja-detail {
  display: flex;
  flex-direction: column;
}

.pooja-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--temple-teak);
}

.pooja-name-ml {
  font-family: var(--font-malayalam);
  font-size: 0.85rem;
  color: var(--sandalwood-dark);
}

.pooja-desc {
  font-size: 0.85rem;
  color: rgba(44, 24, 16, 0.7);
  margin-top: 0.2rem;
}

/* ----------------- Melshanthi Sacred Card ----------------- */
.melshanthi-card {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, rgba(253, 251, 247, 0.95) 0%, rgba(245, 239, 235, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.melshanthi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kasavu-gold), var(--terracotta-ochre), var(--kasavu-gold));
}

.melshanthi-image-col {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 14, 10, 0.18);
  border: 2px solid var(--kasavu-gold);
  aspect-ratio: 3/4;
}

.melshanthi-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--transition-normal);
}

.melshanthi-card:hover .melshanthi-img {
  transform: scale(1.03);
}

.melshanthi-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 14, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--kasavu-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.6);
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  width: auto;
  max-width: 90%;
}

.melshanthi-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.melshanthi-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--temple-teak);
  margin-top: 0.15rem;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.lang-ml .melshanthi-title {
  font-family: var(--font-malayalam);
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.35;
}

.melshanthi-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--terracotta-ochre);
  margin-top: 0.25rem;
  line-height: 1.4;
}

body.lang-ml .melshanthi-subtitle {
  font-family: var(--font-malayalam);
  font-size: 0.9rem;
  font-weight: 600;
}

.melshanthi-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--sandalwood-dark);
}

.melshanthi-contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 0.5rem;
  padding: 1.15rem 1.5rem;
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--sandalwood-border);
  box-shadow: var(--shadow-sm);
}

.melshanthi-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.melshanthi-contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta-ochre);
}

.melshanthi-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--temple-teak);
  transition: color var(--transition-fast);
}

.melshanthi-phone-link:hover {
  color: var(--terracotta-ochre);
}

.melshanthi-phone-link svg {
  color: var(--terracotta-ochre);
}

.melshanthi-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}



/* ----------------- Vazhipadu & Offerings Booking Portal ----------------- */
.vazhipadu-section {
  background-color: var(--sandalwood-cream);
  position: relative;
}

.vazhipadu-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.vazhipadu-catalog {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.vazhipadu-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.v-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: #FFF;
  border: 1px solid var(--sandalwood-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--temple-teak);
  transition: all var(--transition-fast);
}

.v-filter-btn.active, .v-filter-btn:hover {
  background: var(--terracotta-ochre);
  color: #FFF;
  border-color: var(--terracotta-ochre);
}

.vazhipadu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

.vazhipadu-card {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--sandalwood-border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.vazhipadu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--kasavu-gold);
}

.vazhipadu-card.special-card {
  border: 1.5px solid var(--kasavu-gold);
  background: linear-gradient(180deg, #FFF 0%, rgba(245, 239, 235, 0.4) 100%);
}

.vazhipadu-card.special-card::after {
  content: "Sacred";
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--kasavu-gold);
  color: var(--temple-teak-deep);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 30px;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v-card-header {
  margin-bottom: 0.85rem;
}

.v-card-title-en {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--temple-teak);
}

.v-card-title-ml {
  font-family: var(--font-malayalam);
  font-size: 0.85rem;
  color: var(--terracotta-ochre);
  font-weight: 600;
  margin-top: 0.15rem;
}

.v-card-desc {
  font-size: 0.85rem;
  color: var(--sandalwood-dark);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.v-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--sandalwood-border);
}

.v-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--terracotta-ochre-dark);
}

.v-add-btn {
  background: var(--kasavu-gold-light);
  color: var(--temple-teak-deep);
  border: 1px solid var(--kasavu-gold);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-fast);
}

.v-add-btn:hover {
  background: var(--kasavu-gold);
  color: var(--temple-teak-deep);
  transform: scale(1.05);
}

.v-add-btn.added {
  background: var(--sacred-green);
  color: #FFF;
  border-color: var(--sacred-green);
}

/* Vazhipadu Devotee Booking Cart Sidebar */
.vazhipadu-cart-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 2px solid var(--kasavu-gold);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.v-cart-title {
  font-size: 1.25rem;
  color: var(--temple-teak);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sandalwood-border);
  margin-bottom: 1.25rem;
}

.cart-items-list {
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
}

.cart-empty-message {
  text-align: center;
  color: var(--sandalwood-dark);
  font-size: 0.875rem;
  padding: 2rem 0;
}

.cart-empty-message svg {
  margin: 0 auto 0.5rem auto;
  color: var(--kasavu-gold);
  opacity: 0.7;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--sandalwood-border);
  font-size: 0.875rem;
}

.cart-item-name {
  font-weight: 600;
  color: var(--temple-teak);
  max-width: 180px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sandalwood-cream);
  border: 1px solid var(--sandalwood-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.cart-qty-btn:hover {
  background: var(--terracotta-ochre);
  color: #FFF;
}

.devotee-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--temple-teak);
}

.form-input, .form-select {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--sandalwood-border);
  border-radius: var(--radius-sm);
  background: var(--sandalwood-ivory);
  color: var(--temple-teak);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--terracotta-ochre);
  box-shadow: 0 0 0 2px var(--terracotta-soft);
}

.cart-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--sandalwood-border);
}

.cart-total-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--temple-teak);
}

.cart-total-amount {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--terracotta-ochre-dark);
}

.btn-book-checkout {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--kasavu-gold) 0%, var(--terracotta-ochre) 100%);
  color: #FFF;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 4px 15px rgba(200, 90, 23, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-book-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* ----------------- Temple History & Spiritual Lore ----------------- */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.history-image-composition {
  position: relative;
}

.history-main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  border: 3px solid var(--kasavu-gold);
}

.history-floating-card {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--terracotta-ochre);
  max-width: 260px;
}

.h-float-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--terracotta-ochre);
  line-height: 1;
}

.h-float-text {
  font-size: 0.825rem;
  color: var(--temple-teak);
  font-weight: 600;
  margin-top: 0.3rem;
}

.history-content p {
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
  color: var(--sandalwood-dark);
  line-height: 1.8;
}

.lore-callout {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--kasavu-gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--temple-teak-deep);
}

.heritage-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.heritage-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.heritage-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  color: var(--terracotta-ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.heritage-feature-text h4 {
  font-size: 0.95rem;
  color: var(--temple-teak);
}

.heritage-feature-text p {
  font-size: 0.8rem;
  color: var(--sandalwood-dark);
  margin-bottom: 0;
  line-height: 1.4;
}

/* ----------------- Festivals & Events Calendar ----------------- */
.festivals-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.fest-filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--sandalwood-cream);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fest-filter-btn.active, .fest-filter-btn:hover {
  background: var(--kasavu-gold);
  color: var(--temple-teak-deep);
  border-color: var(--kasavu-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.festivals-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.fest-card {
  background: var(--temple-teak-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.fest-card:hover {
  transform: translateY(-6px);
  border-color: var(--kasavu-gold);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.2);
}

.fest-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.fest-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.fest-card:hover .fest-image-wrapper img {
  transform: scale(1.08);
}

.fest-month-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--terracotta-ochre);
  color: #FFF;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fest-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fest-title-en {
  font-size: 1.25rem;
  color: var(--kasavu-gold-light);
  margin-bottom: 0.25rem;
}

.fest-title-ml {
  font-family: var(--font-malayalam);
  font-size: 0.95rem;
  color: var(--terracotta-ochre-light);
  margin-bottom: 0.85rem;
}

.fest-desc {
  font-size: 0.9rem;
  color: rgba(253, 251, 247, 0.8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.fest-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.fest-tag {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--kasavu-gold-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ----------------- Interactive Media Gallery ----------------- */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.gallery-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: #FFF;
  border: 1px solid var(--sandalwood-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--temple-teak);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
  background: var(--terracotta-ochre);
  color: #FFF;
  border-color: var(--terracotta-ochre);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid #FFF;
  cursor: pointer;
  aspect-ratio: 4/3;
  background-color: var(--sandalwood-cream);
}

.gallery-item.featured {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 14, 10, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: #FFF;
  font-size: 1.1rem;
  font-weight: 700;
}

.gallery-item-cat {
  font-size: 0.75rem;
  color: var(--kasavu-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.gallery-item-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(212, 175, 55, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--temple-teak-deep);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 5, 3, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-box {
  position: relative;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

.lightbox-image-display {
  max-height: 75vh;
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 0 auto;
  border: 2px solid var(--kasavu-gold);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-caption-text {
  margin-top: 1rem;
  color: var(--sandalwood-cream);
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-subtext {
  font-size: 0.85rem;
  color: var(--kasavu-gold);
  margin-top: 0.25rem;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #FFF;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--kasavu-gold);
  color: var(--temple-teak-deep);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

/* ----------------- Pilgrim Travel & Transit Guide ----------------- */
.transit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.transit-routes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.transit-card {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--sandalwood-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: transform var(--transition-fast);
}

.transit-card:hover {
  transform: translateX(6px);
  border-color: var(--terracotta-ochre);
}

.transit-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--terracotta-soft);
  color: var(--terracotta-ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transit-card-body h4 {
  font-size: 1.05rem;
  color: var(--temple-teak);
  margin-bottom: 0.25rem;
}

.transit-card-body p {
  font-size: 0.875rem;
  color: var(--sandalwood-dark);
  line-height: 1.55;
}

.transit-distance-tag {
  display: inline-block;
  background: var(--kasavu-gold-light);
  color: var(--temple-teak-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
}

/* Map Wrapper */
.map-container-box {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sandalwood-border);
}

.map-plus-code-banner {
  background: var(--temple-teak-deep);
  color: #FFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.plus-code-badge {
  font-family: monospace;
  font-size: 1rem;
  color: var(--kasavu-gold);
  font-weight: 700;
}

.map-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--sandalwood-border);
}

.map-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----------------- Committee Directory & Contact Section ----------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--sandalwood-border);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--temple-teak);
  text-align: left;
  cursor: pointer;
  background: none;
}

.faq-question svg {
  color: var(--terracotta-ochre);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.5rem;
  color: var(--sandalwood-dark);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

.contact-form-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--sandalwood-border);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.contact-form-title {
  font-size: 1.35rem;
  color: var(--temple-teak);
  margin-bottom: 0.5rem;
}

.contact-form-desc {
  font-size: 0.9rem;
  color: var(--sandalwood-dark);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-contact-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--kasavu-gold) 0%, var(--terracotta-ochre) 100%);
  color: #FFF;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(200, 90, 23, 0.35);
}

.form-alert-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
}

.form-alert-message.success {
  display: block;
  background: var(--sacred-green-light);
  color: var(--sacred-green);
  border: 1px solid var(--sacred-green);
}

/* ----------------- UPI Payment Modal ----------------- */
.upi-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 5, 3, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

.upi-modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.upi-modal-box {
  background: #FFF;
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--kasavu-gold);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.upi-modal-header {
  background: var(--temple-teak-deep);
  color: #FFF;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--kasavu-gold);
}

.upi-modal-header h3 {
  color: var(--kasavu-gold-light);
  font-size: 1.15rem;
}

.upi-modal-body {
  padding: 1.75rem;
  text-align: center;
}

.upi-qr-wrapper {
  background: #FFF;
  padding: 1rem;
  display: inline-block;
  border: 2px solid var(--sandalwood-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.upi-qr-svg {
  width: 180px;
  height: 180px;
}

.upi-vpa-box {
  background: var(--sandalwood-cream);
  border: 1px solid var(--sandalwood-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--temple-teak);
  margin-bottom: 1.25rem;
}

.btn-copy-upi {
  background: var(--terracotta-ochre);
  color: #FFF;
  border: none;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
}

.receipt-summary-box {
  background: var(--sandalwood-ivory);
  border: 1px dashed var(--sandalwood-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: left;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

/* WhatsApp Confirmation Notice Card */
.whatsapp-notice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1.5px solid rgba(37, 211, 102, 0.4);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 0.85rem;
  margin-bottom: 1.15rem;
  text-align: left;
}

.whatsapp-notice-icon {
  color: #128C7E;
  flex-shrink: 0;
  margin-top: 2px;
}

.whatsapp-notice-content {
  flex: 1;
  min-width: 0;
}

.whatsapp-notice-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--temple-teak-deep);
  margin-bottom: 0.25rem;
}

.whatsapp-notice-text {
  font-size: 0.78rem;
  color: var(--sandalwood-dark);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.btn-whatsapp-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #25D366;
  color: #FFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
  width: 100%;
  box-sizing: border-box;
}

.btn-whatsapp-share:hover {
  background: #1EBE5D;
  color: #FFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.upi-action-btns {
  display: flex;
  gap: 0.75rem;
}

/* ----------------- Footer ----------------- */
.footer {
  background: var(--temple-teak-deep);
  color: rgba(253, 251, 247, 0.8);
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--kasavu-gold);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: var(--kasavu-gold-light);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-col h4::after {
  content: "";
  display: block;
  width: 35px;
  height: 2px;
  background: var(--terracotta-ochre);
  margin-top: 0.4rem;
}

.footer-about p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(253, 251, 247, 0.75);
}

.footer-links a:hover {
  color: var(--kasavu-gold);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

.footer-contact-item svg {
  color: var(--kasavu-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(253, 251, 247, 0.6);
}

/* ----------------- Floating Quick Actions Bar ----------------- */
.floating-actions-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-cta-vazhipadu {
  background: linear-gradient(135deg, var(--kasavu-gold) 0%, var(--terracotta-ochre) 100%);
  color: #FFF;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(200, 90, 23, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap !important;
}

.floating-cta-vazhipadu .btn-label-short {
  display: none;
}

.floating-cta-vazhipadu.has-items {
  background: linear-gradient(135deg, var(--flame-yellow) 0%, var(--terracotta-ochre) 100%);
  border-color: #FFF;
}

.cart-badge-count {
  background: #FFF;
  color: var(--temple-teak-deep);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  margin-left: 0.25rem;
  display: none;
  align-items: center;
  justify-content: center;
}

.floating-cta-vazhipadu:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(200, 90, 23, 0.6);
}

.floating-back-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--temple-teak-deep);
  color: var(--kasavu-gold);
  border: 1.5px solid var(--kasavu-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.floating-back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-back-top:hover {
  background: var(--kasavu-gold);
  color: var(--temple-teak-deep);
}

/* ----------------- Keyframe Animations ----------------- */
@keyframes pulse-flame {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px var(--flame-yellow));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px var(--flame-glow));
  }
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* ==========================================================================
   MASTER RESPONSIVE DESIGN SYSTEM
   Pixel-Perfect Layouts & Visibility for All Devices & Orientations
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Ultra-Wide Displays (1440px and above)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
  }
  .hero-content {
    max-width: 720px;
  }
  .hero-title-english {
    font-size: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   2. Small Laptops & Sub-Desktops (1041px to 1240px)
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .nav-links {
    gap: 0.35rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 0.25rem 0.15rem;
  }
  body.lang-ml .nav-links {
    gap: 0.25rem;
  }
  body.lang-ml .nav-link {
    font-size: 0.74rem;
    padding: 0.2rem 0.12rem;
  }
  .nav-cta-btn {
    padding: 0.42rem 0.8rem;
    font-size: 0.78rem;
    height: 36px;
  }
  body.lang-ml .nav-cta-btn {
    font-size: 0.72rem;
    padding: 0.38rem 0.7rem;
    height: 34px;
  }
  .hero-container {
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   3. Tablet Landscape & Mobile Navigation Switch (max-width: 1040px)
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .topbar-address {
    display: none;
  }
  .topbar-container {
    justify-content: space-between;
  }

  /* Mobile Navigation Drawer */
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--nav-height));
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--sandalwood-ivory);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.25rem 2rem;
    box-shadow: 0 20px 40px rgba(26, 14, 10, 0.25);
    border-bottom: 3px solid var(--kasavu-gold);
    gap: 0.35rem;
    z-index: 1001;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease-smooth), opacity 0.22s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links > li {
    width: 100%;
    display: flex;
  }

  .nav-link {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(232, 220, 207, 0.6);
    color: var(--temple-teak);
    white-space: normal !important;
  }

  body.lang-ml .nav-link {
    font-size: 0.95rem;
    white-space: normal !important;
  }

  .nav-link:hover, .nav-link:focus {
    background: var(--terracotta-soft);
    color: var(--terracotta-ochre);
    padding-left: 1.25rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta-btn {
    width: 100%;
    justify-content: center;
    height: 46px;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: normal !important;
  }

  body.lang-ml .nav-cta-btn {
    font-size: 0.88rem;
    white-space: normal !important;
  }

  /* Grid Layouts Stack */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-content {
    max-width: 100%;
    min-width: 0;
  }

  .hero-darshan-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vazhipadu-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .vazhipadu-catalog {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .vazhipadu-cart-card {
    position: static;
    max-width: 100%;
    min-width: 0;
  }

  .history-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .history-content, .history-imagery {
    min-width: 0;
    max-width: 100%;
  }

  .history-floating-card {
    right: 20px;
    bottom: -15px;
    max-width: 260px;
  }

  .transit-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .transit-routes, .map-container-box, .faq-accordion, .contact-form-card {
    min-width: 0;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .gallery-item.featured {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .floating-cta-vazhipadu span.btn-label-long {
    display: none;
  }

  .floating-cta-vazhipadu span.btn-label-short {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   4. Tablets Portrait & Phablets (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: clamp(1.45rem, 4.2vw, 2.05rem);
    line-height: 1.3;
  }

  body.lang-ml .section-title {
    font-size: clamp(1.3rem, 4vw, 1.85rem);
    line-height: 1.45;
  }

  .section-eyebrow {
    font-size: 0.78rem;
    padding: 0.3rem 0.85rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .topbar {
    padding: 0.4rem 0;
    font-size: 0.8rem;
  }

  .topbar-container {
    gap: 0.5rem;
  }

  .topbar-clock {
    font-size: 0.78rem;
    padding: 0.18rem 0.5rem;
  }

  .audio-toggle-btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  /* Hero */
  .hero {
    padding: 3.75rem 0 3rem;
    min-height: auto;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
  }

  .hero-title-malayalam {
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    line-height: 1.35;
    margin-bottom: 0.4rem;
  }

  .hero-title-english {
    font-size: clamp(1.65rem, 5.2vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-tagline {
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    font-size: 0.92rem;
  }

  .hero-micro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: center;
  }

  .micro-stat-num {
    font-size: 1.2rem;
  }

  .darshan-hero-card {
    padding: 1.5rem;
  }

  /* Pooja Schedule */
  .schedule-card {
    padding: 1.5rem;
  }

  .schedule-card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pooja-timeline {
    --pooja-time-w: 78px;
    --pooja-bullet-col: 20px;
    --pooja-gap: 0.75rem;
    --pooja-bullet-size: 13px;
  }

  .pooja-time {
    font-size: 0.8rem;
  }

  /* Melshanthi Card */
  .melshanthi-card {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 1.5rem;
    text-align: center;
  }

  .melshanthi-image-col {
    max-width: 200px;
    margin: 0 auto;
  }

  .melshanthi-badge {
    max-width: 94%;
    white-space: normal;
    line-height: 1.25;
    font-size: clamp(0.72rem, 2.5vw, 0.82rem);
    padding: 0.3rem 0.75rem;
  }

  .melshanthi-contact-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .melshanthi-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  .melshanthi-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  /* Vazhipadu */
  .vazhipadu-catalog {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .vazhipadu-filter-bar {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0 0.5rem;
    scrollbar-width: none;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overscroll-behavior-x: contain;
  }

  .vazhipadu-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .v-filter-btn {
    flex-shrink: 0;
  }

  .vazhipadu-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1.25rem;
  }

  .vazhipadu-cart-card {
    padding: 1.5rem;
    min-width: 0;
    max-width: 100%;
  }

  .cart-item-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
  }

  .cart-item-name {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .cart-item-controls {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: 0.6rem;
  }

  /* History */
  .heritage-features-list {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .history-floating-card {
    position: static;
    margin-top: 1.25rem;
    max-width: 100%;
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    bottom: auto;
    right: auto;
  }

  /* Festivals */
  .festivals-filter {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0 0.75rem;
    justify-content: flex-start;
    scrollbar-width: none;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overscroll-behavior-x: contain;
  }

  .festivals-filter::-webkit-scrollbar {
    display: none;
  }

  .fest-filter-btn {
    flex-shrink: 0;
  }

  .festivals-timeline {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 1.5rem;
  }

  /* Gallery */
  .gallery-filter {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0 0.75rem;
    justify-content: flex-start;
    scrollbar-width: none;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overscroll-behavior-x: contain;
  }

  .gallery-filter::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter-btn {
    flex-shrink: 0;
  }

  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
  }

  .lightbox-modal {
    padding: 1rem;
  }

  .lightbox-close-btn {
    top: -38px;
    right: 0;
    font-size: 2rem;
    z-index: 2010;
  }

  .lightbox-image-display {
    max-height: 68vh;
  }

  /* Transit */
  .map-plus-code-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-align: center;
  }

  .plus-code-badge {
    font-size: clamp(0.78rem, 3.2vw, 0.95rem);
    word-break: break-all;
  }

  .map-plus-code-banner .btn {
    width: 100%;
    justify-content: center;
  }

  .map-iframe-wrapper {
    height: 300px;
  }

  /* Contact */
  .contact-form-card {
    padding: 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Footer */
  .footer {
    padding: 3.5rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Floating Actions */
  .floating-actions-bar {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    right: max(16px, env(safe-area-inset-right, 16px));
    gap: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   5. Standard Smart Phones (max-width: 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-title {
    font-size: clamp(1.3rem, 5.2vw, 1.75rem);
    line-height: 1.35;
  }

  body.lang-ml .section-title {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    line-height: 1.45;
  }

  .topbar {
    padding: 0.35rem 0;
    font-size: 0.78rem;
  }

  .topbar-container {
    flex-direction: column;
    gap: 0.35rem;
    align-items: stretch;
  }

  .topbar-left {
    justify-content: center;
    width: 100%;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
  }

  .topbar-clock {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    white-space: nowrap;
  }

  .audio-toggle-btn {
    font-size: 0.72rem;
    padding: 0.18rem 0.5rem;
    white-space: nowrap;
    flex-shrink: 1;
  }

  .lang-btn {
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
  }

  /* Nav */
  .nav-container {
    min-height: 62px;
  }

  .nav-logo-icon {
    width: 36px;
    height: 36px;
  }

  .nav-logo-title, body.lang-ml .nav-logo-title {
    font-size: clamp(0.88rem, 3.4vw, 1.02rem);
    white-space: normal;
    line-height: 1.2;
  }

  .nav-logo-malayalam, body.lang-ml .nav-logo-malayalam {
    font-size: clamp(0.62rem, 2.3vw, 0.7rem);
    white-space: normal;
    line-height: 1.25;
  }

  /* Hero */
  .hero {
    padding: 3rem 0 2.25rem;
  }

  .hero-badge {
    font-size: 0.74rem;
    padding: 0.3rem 0.75rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .hero-title-malayalam {
    font-size: clamp(1.25rem, 5.4vw, 1.7rem);
    line-height: 1.35;
  }

  .hero-title-english {
    font-size: clamp(1.45rem, 6.2vw, 2.1rem);
    line-height: 1.2;
  }

  .hero-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    font-size: 0.92rem;
    justify-content: center;
  }

  .hero-micro-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1.25rem;
  }

  .micro-stat-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    gap: 0.5rem;
  }

  .micro-stat-num {
    font-size: 1.05rem;
    order: 2;
  }

  .micro-stat-label {
    font-size: 0.75rem;
    order: 1;
    margin-top: 0;
  }

  /* Darshan Card */
  .darshan-hero-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .darshan-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .darshan-header-title {
    font-size: 1.05rem;
  }

  .darshan-timings-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .timing-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.85rem;
    text-align: left;
  }

  .timing-box-label {
    font-size: 0.72rem;
    margin-bottom: 0;
  }

  .timing-box-time {
    font-size: 0.95rem;
  }

  .darshan-countdown {
    font-size: 0.78rem;
    padding: 0.6rem;
  }

  .darshan-card-cta {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
  }

  /* Pooja Schedule */
  .schedule-card {
    padding: 1.25rem;
  }

  .schedule-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .schedule-card-title {
    font-size: 1.12rem;
  }

  .schedule-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
  }

  .pooja-timeline {
    --pooja-time-w: 70px;
    --pooja-bullet-col: 18px;
    --pooja-gap: 0.5rem;
    --pooja-bullet-size: 12px;
  }

  .pooja-time {
    font-size: 0.76rem;
  }

  .pooja-name {
    font-size: 0.92rem;
  }

  .pooja-name-ml {
    font-size: 0.8rem;
  }

  .pooja-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  /* Melshanthi */
  .melshanthi-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .melshanthi-name {
    font-size: 1.2rem;
  }

  .melshanthi-role {
    font-size: 0.82rem;
  }

  .melshanthi-desc {
    font-size: 0.85rem;
  }

  /* Vazhipadu */
  .vazhipadu-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .vazhipadu-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .v-card-title-en {
    font-size: 1.05rem;
  }

  .v-card-title-ml {
    font-size: 0.82rem;
  }

  .v-card-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .v-add-btn {
    min-height: 40px;
    padding: 0.45rem 1rem;
    font-size: 0.825rem;
  }

  .vazhipadu-cart-card {
    padding: 1.25rem;
  }

  .cart-qty-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .form-input, .form-select, textarea.form-input {
    font-size: 16px !important;
    padding: 0.7rem 0.85rem;
  }

  .btn-book-checkout {
    min-height: 48px;
    font-size: 0.95rem;
  }

  /* History */
  .history-content p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .lore-callout {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }

  .heritage-features-list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Festivals */
  .festivals-timeline {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .fest-card {
    border-radius: var(--radius-md);
  }

  .fest-card-body {
    padding: 1.25rem;
  }

  .fest-title-en {
    font-size: 1.12rem;
  }

  .fest-title-ml {
    font-size: 0.85rem;
  }

  .fest-desc {
    font-size: 0.82rem;
  }

  /* Gallery */
  .gallery-masonry {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    aspect-ratio: 4/3;
  }

  .lightbox-content-box {
    padding: 0 0.5rem;
  }

  .lightbox-caption-text {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .lightbox-subtext {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Transit */
  .transit-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .transit-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .map-container-box {
    padding: 0.65rem;
  }

  .map-iframe-wrapper {
    height: 260px;
  }

  /* Contact */
  .faq-question {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    gap: 0.5rem;
  }

  .faq-answer {
    padding: 0 1rem;
    font-size: 0.82rem;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 1rem;
  }

  .contact-form-card {
    padding: 1.25rem;
  }

  .contact-form-title {
    font-size: 1.15rem;
  }

  .contact-form-desc {
    font-size: 0.85rem;
  }

  .btn-contact-submit {
    min-height: 48px;
    font-size: 0.95rem;
  }

  /* UPI Modal */
  .upi-modal {
    padding: 0.5rem;
  }

  .upi-modal-box {
    max-height: 94dvh;
    border-radius: var(--radius-md);
  }

  .upi-modal-header {
    padding: 1rem;
  }

  .upi-modal-header h3 {
    font-size: 0.98rem;
  }

  .upi-modal-body {
    padding: 1.15rem 0.85rem;
  }

  .upi-qr-wrapper {
    padding: 0.65rem;
    margin-bottom: 0.85rem;
  }

  .upi-qr-svg {
    width: 150px;
    height: 150px;
  }

  .upi-vpa-box {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.88rem;
  }

  .btn-copy-upi {
    width: 100%;
    min-height: 38px;
    font-size: 0.82rem;
  }

  .receipt-summary-box {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .receipt-row {
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.45rem;
    text-align: left;
  }

  .upi-action-btns {
    flex-direction: column;
    gap: 0.5rem;
  }

  .upi-action-btns .btn {
    width: 100%;
    min-height: 46px;
  }
}

/* --------------------------------------------------------------------------
   6. Small Mobile Screens (max-width: 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-title {
    font-size: clamp(1.15rem, 5.5vw, 1.45rem);
  }

  body.lang-ml .section-title {
    font-size: clamp(1.08rem, 5.2vw, 1.35rem);
  }

  .topbar-container {
    gap: 0.3rem;
  }

  .topbar-clock {
    font-size: 0.68rem;
    padding: 0.12rem 0.35rem;
  }

  .audio-toggle-btn {
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
  }

  .audio-toggle-btn span {
    display: none;
  }

  .lang-btn {
    font-size: 0.66rem;
    padding: 0.12rem 0.4rem;
  }

  /* Nav */
  .nav-logo-icon {
    width: 32px;
    height: 32px;
  }

  .nav-logo-title, body.lang-ml .nav-logo-title {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .nav-logo-malayalam, body.lang-ml .nav-logo-malayalam {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  /* Hero */
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }

  .hero-title-malayalam {
    font-size: 1.15rem;
  }

  .hero-title-english {
    font-size: 1.35rem;
  }

  .hero-actions .btn {
    font-size: 0.86rem;
    padding: 0.75rem 0.85rem;
  }

  /* Pooja Schedule */
  .pooja-timeline {
    --pooja-time-w: 62px;
    --pooja-bullet-col: 16px;
    --pooja-gap: 0.4rem;
    --pooja-bullet-size: 11px;
  }

  .pooja-time {
    font-size: 0.7rem;
  }

  .pooja-name {
    font-size: 0.86rem;
  }

  .pooja-name-ml {
    font-size: 0.74rem;
  }

  /* Devotee Cart */
  .cart-total-amount {
    font-size: 1.25rem;
  }

  /* UPI Modal */
  .upi-modal {
    padding: 0.35rem;
  }

  .upi-modal-body {
    padding: 0.85rem 0.5rem;
  }

  .upi-qr-svg {
    width: 130px;
    height: 130px;
  }
}

/* --------------------------------------------------------------------------
   6b. Ultra-Compact Mobile Screens (max-width: 330px)
   -------------------------------------------------------------------------- */
@media (max-width: 330px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .hero-title-english {
    font-size: 1.25rem;
  }

  .hero-title-malayalam {
    font-size: 1.08rem;
  }

  .pooja-timeline {
    --pooja-time-w: 58px;
    --pooja-bullet-col: 14px;
    --pooja-gap: 0.35rem;
  }

  .hero-actions .btn {
    padding: 0.65rem 0.65rem;
    font-size: 0.82rem;
  }
}

/* --------------------------------------------------------------------------
   7. Mobile Landscape Mode (max-height: 500px and landscape orientation)
   -------------------------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .nav-links {
    max-height: 82vh;
    overflow-y: auto;
  }

  .lightbox-modal {
    padding: 0.5rem;
  }

  .lightbox-image-display {
    max-height: 58vh;
  }

  .upi-modal-box {
    max-height: 94vh;
    overflow-y: auto;
  }
}

/* --------------------------------------------------------------------------
   8. 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;
  }
}

/* --------------------------------------------------------------------------
   9. Official Devotee Vazhipadu Receipt Print Stylesheet
   -------------------------------------------------------------------------- */
.official-print-receipt {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 14mm;
  }

  /* Force total hide on ALL regular site content */
  html, body {
    background: #FFF !important;
    color: #1A0E0A !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  body > * {
    display: none !important;
  }

  /* Exclusively display the UPI modal root as full width block */
  body > #upiModal {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
  }

  /* Hide the on-screen interactive modal dialog box */
  .upi-modal-box {
    display: none !important;
  }

  /* Display the dedicated authentic printable temple receipt */
  .official-print-receipt {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 16px 20px !important;
    background: #FFF !important;
    color: #1A0E0A !important;
    border: 2px solid #8B2500 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    font-family: 'Noto Sans Malayalam', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  }

  .receipt-header-print {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    border-bottom: 2px solid #8B2500 !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }

  .receipt-logo-print {
    flex-shrink: 0 !important;
  }

  .receipt-logo-print img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    border: 2px solid #C85A17 !important;
    object-fit: cover !important;
    display: block !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .receipt-titles-print {
    flex: 1 !important;
  }

  .receipt-temple-ml {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #8B2500 !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
  }

  .receipt-temple-en {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    color: #2C1810 !important;
    line-height: 1.2 !important;
    margin-bottom: 3px !important;
  }

  .receipt-temple-address,
  .receipt-temple-contact {
    font-size: 0.78rem !important;
    color: #4A3E38 !important;
    line-height: 1.35 !important;
  }

  .receipt-banner-print {
    background: #8B2500 !important;
    color: #FFF !important;
    text-align: center !important;
    padding: 6px 12px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.04em !important;
    border-radius: 4px !important;
    margin-bottom: 12px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .receipt-meta-grid-print {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px 16px !important;
    background: #FAF6F0 !important;
    border: 1px solid #E2D3C0 !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
    margin-bottom: 12px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .receipt-meta-cell {
    font-size: 0.84rem !important;
    line-height: 1.4 !important;
  }

  .meta-label {
    display: block !important;
    font-size: 0.74rem !important;
    color: #66554B !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
  }

  .meta-value {
    color: #1A0E0A !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
  }

  .receipt-table-print {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 12px !important;
    font-size: 0.86rem !important;
  }

  .receipt-table-print th {
    background: #F0E8DC !important;
    color: #2C1810 !important;
    font-weight: 700 !important;
    border: 1px solid #C8B9A6 !important;
    padding: 7px 10px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .receipt-table-print td {
    border: 1px solid #D8CCBD !important;
    padding: 6px 10px !important;
    vertical-align: middle !important;
  }

  .receipt-table-print tfoot td {
    background: #FAF6F0 !important;
    border-top: 2px solid #8B2500 !important;
    padding: 8px 10px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* WhatsApp Confirmation Instruction Box in Print */
  .receipt-whatsapp-alert-print {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    border: 1.5px dashed #8B2500 !important;
    background: #FFF9F2 !important;
    padding: 7px 12px !important;
    border-radius: 4px !important;
    margin-bottom: 10px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .alert-icon-print {
    font-size: 1.25rem !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }

  .alert-body-print {
    flex: 1 !important;
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    color: #2C1810 !important;
  }

  .alert-heading-print {
    color: #8B2500 !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.02em !important;
  }

  .alert-ml {
    margin-bottom: 2px !important;
    font-size: 0.75rem !important;
    color: #2C1810 !important;
  }

  .alert-en {
    margin-bottom: 0 !important;
    font-size: 0.72rem !important;
    color: #554438 !important;
  }

  .receipt-footer-print {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px dashed #C8B9A6 !important;
    padding-top: 10px !important;
    margin-top: 6px !important;
    gap: 16px !important;
  }

  .receipt-footer-blessing {
    flex: 1 !important;
  }

  .blessing-ml {
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    color: #8B2500 !important;
    margin-bottom: 2px !important;
  }

  .blessing-en {
    font-size: 0.78rem !important;
    font-style: italic !important;
    color: #4A3E38 !important;
    margin-bottom: 3px !important;
  }

  .blessing-note {
    font-size: 0.72rem !important;
    color: #77665B !important;
    margin-bottom: 0 !important;
  }

  .receipt-footer-seal {
    text-align: center !important;
    border: 1.5px solid #8B2500 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    background: #FFFDF9 !important;
    min-width: 150px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .seal-badge {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    color: #8B2500 !important;
    border-bottom: 1px solid #C8B9A6 !important;
    padding-bottom: 3px !important;
    margin-bottom: 3px !important;
  }

  .receipt-footer-seal small {
    font-size: 0.68rem !important;
    color: #554438 !important;
    line-height: 1.25 !important;
    display: block !important;
  }
}
