/* Karinkalikavu Temple — Premium Kerala devotional design system */
:root {
  --maroon: #5b1a1a;
  --maroon-deep: #3a0f0f;
  --maroon-soft: #7a2424;
  --gold: #c9a14a;
  --gold-soft: #e6c97a;
  --cream: #faf4e6;
  --cream-deep: #f1e7cf;
  --ink: #2a1a14;
  --muted: #6b5a4c;
  --border: #e3d4b1;
  --shadow: 0 18px 40px -24px rgba(58, 15, 15, .35), 0 1px 0 rgba(201, 161, 74, .3);
  --radius: 10px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-ml: "Noto Sans Malayalam", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--maroon-deep)
}

.ml {
  font-family: var(--font-ml);
  font-weight: 500
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: .2s;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: .01em
}

.btn-primary {
  background: var(--maroon);
  color: var(--cream);
  border-color: rgba(201, 161, 74, .4)
}

.btn-primary:hover {
  background: var(--maroon-deep)
}

.btn-gold {
  background: var(--gold);
  color: var(--maroon-deep)
}

.btn-gold:hover {
  background: var(--gold-soft)
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 244, 230, .4)
}

.btn-ghost:hover {
  background: rgba(250, 244, 230, .08);
  border-color: var(--gold)
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon)
}

.btn-outline:hover {
  background: var(--maroon);
  color: var(--cream)
}

.yt-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.yt-icon:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Gold dividers / underlines */
.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-soft) 50%, var(--gold) 80%, transparent);
  margin: 0
}

.gold-underline::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 2px
}

.gold-underline.center::after {
  margin-left: auto;
  margin-right: auto
}

/* Section base */
section {
  padding: 80px 0;
  position: relative
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px
}

.section-title {
  font-size: clamp(28px, 3.6vw, 42px)
}

.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin-top: 14px
}

/* Top strip */
.topstrip {
  background: var(--maroon-deep);
  color: rgba(250, 244, 230, .9);
  font-size: 13px
}

.topstrip .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap
}

.topstrip .ml {
  color: var(--gold-soft);
  letter-spacing: .04em
}

.topstrip .links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: rgba(250, 244, 230, .8)
}

.topstrip .links a,
.topstrip .links button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer
}

.topstrip .links a:hover,
.topstrip .links button:hover {
  color: var(--gold)
}

.topstrip .icon {
  color: var(--gold)
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 230, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--maroon);
  display: grid;
  place-items: center;
  color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 161, 74, .55);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--maroon-deep);
  line-height: 1;
  white-space: nowrap;
}

.brand-text .sub {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(42, 26, 20, .8);
  position: relative;
  padding: 6px 0
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--gold);
  transition: width .2s
}

.nav-links a:hover {
  color: var(--maroon)
}

.nav-links a:hover::after {
  width: 100%
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px
}

.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--maroon-deep);
  cursor: pointer
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--cream)
}

.mobile-menu a {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(227, 212, 177, .5);
  font-size: 15px
}

.mobile-menu.open {
  display: block
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
  padding: 0
}

.hero-slides {
  position: absolute;
  inset: 0
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease
}

.hero-slide.active {
  opacity: 1
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowzoom 14s ease-out forwards
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 15, 15, .55), rgba(58, 15, 15, .85))
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 20px 140px;
  animation: fadeUp .9s ease-out both
}

.hero .ml-name {
  font-family: var(--font-ml);
  color: var(--gold-soft);
  font-size: 18px;
  letter-spacing: .04em;
  margin-bottom: 18px
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600
}

.hero .gold-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  margin: 18px auto 22px;
  border-radius: 2px
}

.hero .place {
  font-size: 18px;
  color: var(--gold-soft);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500
}

.hero p.tag {
  font-size: 18px;
  color: rgba(250, 244, 230, .85);
  max-width: 620px;
  margin: 22px auto 36px;
  font-family: var(--font-display);
  font-style: italic
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(250, 244, 230, .4);
  border: 0;
  cursor: pointer;
  transition: .2s;
  padding: 0
}

.hero-dots button.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px
}

@keyframes slowzoom {
  from {
    transform: scale(1)
  }

  to {
    transform: scale(1.08)
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

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

/* Quick action cards */
.quick {
  margin-top: -70px;
  position: relative;
  z-index: 5;
  padding: 0 0 60px
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.quick-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: .3s;
  cursor: pointer
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold)
}

.quick-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--maroon-deep)
}

.quick-card h3 {
  font-size: 17px;
  margin-bottom: 4px
}

.quick-card p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center
}

.about-image {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 14px;
  transform: translate(14px, 14px);
  z-index: -1
}

.about-image {
  position: relative
}

.about-image-wrap {
  position: relative;
  padding: 0 14px 14px 0
}

.about-image-wrap::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border: 2px solid var(--gold);
  border-radius: 14px
}

.about-text p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px
}

.about-text .ml-quote {
  font-family: var(--font-ml);
  color: var(--maroon);
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 3px solid var(--gold)
}

/* Deity / spiritual significance — dark maroon */
.deity {
  background: var(--maroon-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden
}

.deity::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(circle at 20% 30%, var(--gold) 0, transparent 35%), radial-gradient(circle at 80% 70%, var(--gold) 0, transparent 35%), repeating-linear-gradient(45deg, transparent 0 24px, rgba(201, 161, 74, .18) 24px 25px);
  pointer-events: none
}

.deity .container {
  position: relative
}

.deity h2 {
  color: var(--cream)
}

.deity .section-sub {
  color: rgba(250, 244, 230, .75)
}

.deity-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px
}

.deity-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 161, 74, .4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4)
}

.deity-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.deity-card {
  background: rgba(250, 244, 230, .06);
  border: 1px solid rgba(201, 161, 74, .25);
  border-radius: 12px;
  padding: 22px;
  backdrop-filter: blur(6px);
  transition: .3s
}

.deity-card:hover {
  border-color: var(--gold);
  background: rgba(250, 244, 230, .1)
}

.deity-card .icon {
  color: var(--gold);
  margin-bottom: 10px
}

.deity-card h4 {
  color: var(--gold-soft);
  font-size: 18px;
  margin-bottom: 6px
}

.deity-card p {
  color: rgba(250, 244, 230, .8);
  font-size: 13.5px
}

/* Timings */
.timings {
  background: var(--cream-deep)
}

.timing-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px
}

.timing-card {
  flex: 1 1 340px;
  max-width: 420px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px -16px rgba(58, 15, 15, 0.4), 0 2px 8px rgba(201, 161, 74, 0.3);
  border-color: var(--gold);
}

.timing-card .label {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--gold);
  font-weight: 700
}

.timing-card .time {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--maroon-deep);
  margin: 14px 0 6px;
  font-weight: 600
}

.timing-card .note {
  font-size: 13px;
  color: var(--muted)
}

.timing-note {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-style: italic
}

/* Festival countdown */
.countdown-bar {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--cream);
  padding: 30px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
  border: 1px solid rgba(201, 161, 74, .3);
  box-shadow: var(--shadow);
  flex-wrap: wrap
}

.countdown-bar .label {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-soft)
}

.countdown-bar .label small {
  display: block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(250, 244, 230, .65);
  font-family: var(--font-body);
  margin-bottom: 6px
}

.countdown {
  display: flex;
  gap: 16px
}

.cd-cell {
  background: rgba(201, 161, 74, .15);
  border: 1px solid rgba(201, 161, 74, .4);
  border-radius: 10px;
  padding: 14px 18px;
  min-width: 74px;
  text-align: center
}

.cd-cell .n {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1
}

.cd-cell .l {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250, 244, 230, .7);
  margin-top: 6px
}

/* Sacred Chant Container */
.sacred-chant-card {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: stretch;
}

/* Chant Text Card */
.chant-content {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  border: 1px solid rgba(201, 161, 74, 0.35);
  border-radius: 18px;
  padding: 46px 54px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.chant-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -20px rgba(108, 39, 39, 0.7), 0 0 20px rgba(201, 161, 74, 0.2);
  border-color: var(--gold);
}

.chant-content::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 161, 74, 0.15);
  border-radius: 10px;
  pointer-events: none;
}


.chant-content .eyebrow {
  color: var(--gold-soft);
}

.chant-content h3 {
  color: var(--gold-soft);
  font-size: 34px;
  margin-bottom: 18px;
}

.chant-text {
  color: rgba(250, 244, 230, 0.92);
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
}

.chant-note {
  margin-top: 18px;
  color: rgba(250, 244, 230, 0.72);
  font-size: 15px;
}

.chant-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.chant-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250, 244, 230, 0.45);
}

.chant-outline:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* Chant Image Card */
.chant-symbol {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  border: 1px solid rgba(201, 161, 74, 0.35);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.chant-symbol:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -20px rgba(58, 15, 15, 0.7), 0 0 20px rgba(201, 161, 74, 0.2);
  border-color: var(--gold);
}

.chant-symbol-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.chant-symbol-inner::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50% / 45%;
  background: radial-gradient(ellipse at center, rgba(201, 161, 74, 0.35) 0%, rgba(180, 60, 30, 0.25) 40%, transparent 70%);
  pointer-events: none;
}

.chant-symbol-inner img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(201, 161, 74, 0.3));
}

/* Premium Vazhipadu Collage Section */
.vazhipadu-highlight {
  background: var(--cream);
  overflow: hidden;
  padding: 95px 0;
}

.vazhipadu-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}

/* Left collage */
.vazhipadu-collage {
  position: relative;
  min-height: 500px;
}

.vazhipadu-dot {
  position: absolute;
  top: 38px;
  right: 65px;
  width: 32px;
  height: 32px;
  background: #6b1b1b;
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(91, 26, 26, 0.25);
  z-index: 5;
}

.vazhipadu-img {
  position: absolute;
  object-fit: cover;
  border: 6px solid #fffaf0;
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(58, 15, 15, 0.18);
}

.vazhipadu-img-main {
  width: 62%;
  height: 360px;
  left: 24%;
  top: 105px;
  z-index: 3;
}

.vazhipadu-img-small.top {
  width: 43%;
  height: 260px;
  left: 0;
  top: 0;
  z-index: 1;
}

.vazhipadu-img-small.bottom {
  width: 42%;
  height: 230px;
  right: 2%;
  bottom: 8px;
  z-index: 2;
}

/* Right content */
.vazhipadu-content {
  max-width: 660px;
}

.vazhipadu-title {
  font-size: 40.5px;
  color: var(--maroon-deep);
  margin-bottom: 20px;
}

.vazhipadu-divider {
  width: 170px;
  height: 28px;
  position: relative;
  margin: 0 0 28px;
}

.vazhipadu-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
      var(--gold),
      var(--gold-soft),
      transparent);
}

.vazhipadu-divider span {
  position: absolute;
  left: 72px;
  top: 4px;
  width: 22px;
  height: 22px;
  background: var(--maroon);
  border-radius: 50%;
  border: 5px solid var(--cream);
  box-shadow: 0 0 0 1px var(--gold);
}

.vazhipadu-content p {
  max-width: 620px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.vazhipadu-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.vazhipadu-chips a {
  background: rgba(255, 250, 240, 0.65);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px 18px;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: 0.25s ease;
}

.vazhipadu-chips a:hover {
  border-color: var(--gold);
  color: var(--maroon);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(58, 15, 15, 0.1);
}

.vazhipadu-red-btn {
  background: #df1717;
  color: #fff;
  border-radius: 999px;
  padding: 15px 34px;
  font-size: 15px;
  border: 0;
  margin-bottom: 24px;
}

.vazhipadu-red-btn:hover {
  background: #b90f0f;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .vazhipadu-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .vazhipadu-collage {
    min-height: 470px;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
  }

  .vazhipadu-content {
    text-align: center;
    margin: 0 auto;
  }

  .vazhipadu-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .vazhipadu-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .vazhipadu-highlight {
    padding: 65px 0;
  }

  .vazhipadu-collage {
    min-height: 360px;
  }

  .vazhipadu-dot {
    width: 24px;
    height: 24px;
    top: 20px;
    right: 35px;
  }

  .vazhipadu-img {
    border-width: 4px;
  }

  .vazhipadu-img-main {
    width: 72%;
    height: 250px;
    left: 16%;
    top: 75px;
  }

  .vazhipadu-img-small.top {
    width: 48%;
    height: 170px;
    left: 0;
    top: 0;
  }

  .vazhipadu-img-small.bottom {
    width: 46%;
    height: 150px;
    right: 0;
    bottom: 12px;
  }

  .vazhipadu-title {
    font-size: 40px;
  }

  .vazhipadu-content p {
    font-size: 15px;
  }

  .vazhipadu-chips {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vazhipadu-chips a {
    padding: 13px 14px;
  }

  .vazhipadu-red-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Festivals */
.festivals {
  background: var(--cream-deep)
}

.fest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px
}

.fest-card {
  background: var(--cream);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: .3s
}

.fest-card:hover {
  transform: translateY(-4px)
}

.fest-card .img {
  height: 240px;
  overflow: hidden;
  position: relative
}

.fest-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s
}

.fest-card:hover .img img {
  transform: scale(1.06)
}

.fest-card .img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(58, 15, 15, .35), transparent 50%)
}

.fest-body {
  padding: 24px
}

.fest-body .tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px
}

.fest-body h3 {
  font-size: 24px;
  margin-bottom: 8px
}

.fest-body p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px
}

.fest-body a {
  color: var(--maroon);
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px
}

/* Gallery */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.gallery-tab {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--gold);
  color: var(--cream);
}

.gallery-panel {
  display: none;
  animation: fade 0.4s ease;
}

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

/* Media Grid for Video Placeholders */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Audio List line-by-line */
.audio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.audio-item {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 10px 0;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--maroon-deep);
  color: var(--gold);
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}

.audio-wrap {
  width: 100%;
}

.audio-wrap audio {
  width: 100%;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  margin-top: 44px
}

.v-item {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  background: var(--maroon-deep);
  display: flex;
}

.v-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-item {
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  background: var(--maroon-deep)
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s
}

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

.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(58, 15, 15, .5), transparent 60%);
  opacity: 0;
  transition: .3s
}

.g-item:hover::after {
  opacity: 1
}

.g-tall {
  grid-row: span 2
}

.g-wide {
  grid-column: span 2
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 8, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
  animation: fade .2s ease-out
}

.lightbox.open {
  display: flex
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5)
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 0;
  color: var(--cream);
  cursor: pointer
}

@keyframes fade {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* Announcements */
.ann-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 44px
}

.ann {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  gap: 18px;
  transition: .3s
}

.ann:hover {
  box-shadow: var(--shadow)
}

.ann .date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: var(--maroon-deep);
  color: var(--cream);
  border-radius: 8px;
  padding: 10px 6px;
  height: fit-content
}

.ann .date .d {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1
}

.ann .date .m {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 4px
}

.ann h4 {
  font-size: 17px;
  margin-bottom: 6px
}

.ann p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 8px
}

.ann a {
  color: var(--maroon);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px
}

/* Donation */
.donation {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--cream);
  text-align: center;
  padding: 90px 20px
}

.donation h2 {
  color: var(--cream);
  font-size: clamp(30px, 4vw, 44px)
}

.donation .gold-line {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 18px auto;
  border-radius: 2px
}

.donation p {
  max-width: 580px;
  margin: 0 auto 30px;
  color: rgba(250, 244, 230, .85);
  font-size: 16px
}

.donation .ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px
}

.trust-warning {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 161, 74, .12);
  border: 1px solid rgba(201, 161, 74, .35);
  color: var(--gold-soft);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px
}

/* Contact / Map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 44px
}

.contact-info {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 18px
}

.contact-info .row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border)
}

.contact-info .row:last-of-type {
  border-bottom: 0
}

.contact-info .row .ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--maroon);
  display: grid;
  place-items: center;
  flex-shrink: 0
}

.contact-info .row .t {
  font-weight: 600;
  color: var(--maroon-deep);
  margin-bottom: 2px
}

.contact-info .row .v {
  color: var(--muted);
  font-size: 14px
}

.contact-info .actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap
}

.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
  background: var(--cream)
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block
}

/* Footer */
footer {
  background: var(--maroon-deep);
  color: rgba(250, 244, 230, .8);
  padding: 70px 0 0;
  position: relative;
  border-top: 3px solid var(--gold)
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px
}

.footer-brand .name {
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 22px;
  margin-bottom: 12px
}

.footer-brand p {
  font-size: 14px;
  color: rgba(250, 244, 230, .7);
  max-width: 300px
}

.footer-brand .ml {
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 8px
}

footer h5 {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 600
}

footer ul {
  list-style: none
}

footer ul li {
  margin-bottom: 10px
}

footer ul a {
  font-size: 14px;
  color: rgba(250, 244, 230, .7);
  transition: .2s
}

footer ul a:hover {
  color: var(--gold)
}

.footer-bottom {
  margin-top: 50px;
  padding: 22px 0;
  border-top: 1px solid rgba(201, 161, 74, .2);
  font-size: 12.5px;
  color: rgba(250, 244, 230, .55);
  text-align: center
}

/* Sticky mobile bar */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--maroon-deep);
  border-top: 2px solid var(--gold);
  z-index: 60
}

.sticky-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 11px;
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 500;
  border-right: 1px solid rgba(201, 161, 74, .15)
}

.sticky-bar a:last-child {
  border-right: 0
}

.sticky-bar a svg {
  color: var(--gold)
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.in {
  opacity: 1;
  transform: translateY(0)
}

/* Responsive */
@media (max-width:1024px) {
  .nav-links {
    display: none
  }

  .hamburger {
    display: block
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .about-grid,
  .deity-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .cards-grid,
  .fest-grid,
  .ann-grid {
    grid-template-columns: 1fr 1fr
  }

  .timing-grid {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width: 768px) {
  .sacred-chant-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .chant-content {
    padding: 34px 24px;
  }

  .chant-symbol {
    padding: 24px;
  }

  .chant-text {
    font-size: 17px;
    line-height: 1.9;
  }

  .chant-symbol-inner {
    width: 180px;
    height: 240px;
    margin: 10px auto 0;
  }

  .chant-actions {
    justify-content: center;
  }

  .chant-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width:640px) {
  section {
    padding: 60px 0
  }

  .hero {
    min-height: 78vh
  }

  .hero-content {
    padding: 90px 20px 110px
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center
  }

  .nav-cta .btn {
    display: none
  }

  .cards-grid,
  .fest-grid,
  .ann-grid,
  .footer-grid {
    grid-template-columns: 1fr
  }

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

  .g-wide {
    grid-column: span 1
  }

  .topstrip .row {
    justify-content: center;
    text-align: center
  }

  .countdown-bar {
    flex-direction: column;
    text-align: center
  }

  .countdown {
    justify-content: center
  }

  .cd-cell {
    min-width: 64px;
    padding: 10px 12px
  }

  .cd-cell .n {
    font-size: 26px
  }

  .sticky-bar {
    display: flex
  }

  body {
    padding-bottom: 62px
  }

  .about-info-actions {
    flex-direction: column
  }
}

/* Offerings Rates Page */
.offerings-page {
  padding: 70px 0 90px;
  background: var(--cream);
}

.offerings-header {
  max-width: 980px;
  margin: 0 auto 30px;
}

.offerings-header h1 {
  font-size: clamp(36px, 5vw, 62px);
  color: var(--maroon-deep);
  margin-bottom: 14px;
}

.offerings-header h1 .ml {
  font-family: var(--font-ml);
  font-size: 0.82em;
}

.offerings-header p {
  color: var(--muted);
  font-size: 15px;
  max-width: 900px;
  margin-top: 20px;
}

.table-wrapper {
  max-width: 980px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--cream);
}

.offerings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.offerings-table thead {
  background: var(--maroon);
  color: var(--cream);
}

.offerings-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
}

.offerings-table th:last-child,
.offerings-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--maroon);
}

.offerings-table thead th:last-child {
  color: var(--cream);
}

.offerings-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(227, 212, 177, 0.75);
  color: var(--ink);
}

.offerings-table tbody tr:nth-child(odd) {
  background: rgba(241, 231, 207, 0.65);
}

.offerings-table tbody tr:nth-child(even) {
  background: rgba(255, 250, 240, 0.9);
}

.offerings-table tbody tr:hover {
  background: rgba(230, 201, 122, 0.22);
}

.offerings-table .ml {
  font-family: var(--font-ml);
  font-weight: 600;
}

.advance-note {
  max-width: 980px;
  margin: 22px auto 0;
  background: #f7e8bc;
  color: #5b3d1a;
  border: 1px solid #e2c978;
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.7;
}

.offerings-actions {
  max-width: 980px;
  margin: 28px auto 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.offerings-actions .btn {
  min-width: 130px;
  justify-content: center;
}

/* Offerings page mobile */
@media (max-width: 768px) {
  .offerings-page {
    padding: 45px 0 70px;
  }

  .offerings-header {
    text-align: left;
  }

  .offerings-table {
    min-width: 760px;
    font-size: 13px;
  }

  .offerings-table th,
  .offerings-table td {
    padding: 11px 12px;
  }

  .advance-note {
    font-size: 12.5px;
  }

  .offerings-actions {
    flex-direction: column;
  }

  .offerings-actions .btn {
    width: 100%;
  }
}

/* Temple History Page */
.history-page {
  background: var(--cream);
  padding: 80px 0 90px;
}

.history-container {
  max-width: 920px;
}

.history-header {
  margin-bottom: 28px;
}

.history-header h1 {
  font-size: clamp(36px, 5vw, 58px);
  color: var(--maroon-deep);
  max-width: 860px;
}

.history-content {
  margin-top: 28px;
}

.history-content p {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.82;
  margin-bottom: 14px;
}

.history-content em {
  color: var(--maroon);
  font-style: italic;
}

.history-content strong {
  color: var(--maroon-deep);
  font-weight: 700;
}

.history-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* History mobile */
@media (max-width: 768px) {
  .history-page {
    padding: 55px 0 70px;
  }

  .history-content p {
    font-size: 15px;
    line-height: 1.75;
  }

  .history-actions {
    flex-direction: column;
  }

  .history-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Vazhipadu booking bottom section */
.vazhipadu-booking {
  margin-top: 38px;
}

.vazhipadu-booking p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.vazhipadu-booking-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.vazhipadu-booking-actions .btn {
  min-width: 150px;
  justify-content: center;
  border-radius: 10px;
  padding: 13px 24px;
}

@media (max-width: 1024px) {
  .vazhipadu-booking {
    text-align: center;
  }

  .vazhipadu-booking-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .vazhipadu-booking {
    margin-top: 30px;
  }

  .vazhipadu-booking p {
    font-size: 15px;
  }

  .vazhipadu-booking-actions {
    flex-direction: column;
  }

  .vazhipadu-booking-actions .btn {
    width: 100%;
  }
}

body.ml-mode {
  font-family: var(--font-ml);
}

body.ml-mode h1,
body.ml-mode h2,
body.ml-mode h3,
body.ml-mode h4,
body.ml-mode .section-title,
body.ml-mode .brand-text .name {
  font-family: var(--font-ml);
  letter-spacing: 0;
}

body.ml-mode .eyebrow {
  letter-spacing: 0.08em;
}

body.ml-mode .hero h1 {
  font-size: clamp(32px, 5vw, 56px);
}

body.ml-mode .section-title {
  font-size: clamp(28px, 3.2vw, 42px);
}

body.ml-mode .vazhipadu-title {
  font-size: clamp(36px, 4.5vw, 58px);
}

body.ml-mode .nav-links {
  gap: 14px;
}

body.ml-mode .nav-links a {
  font-size: 13px;
  white-space: nowrap;
}

body.ml-mode p {
  line-height: 1.85;
}

body.ml-mode .sticky-bar a {
  font-family: var(--font-ml);
  letter-spacing: 0;
  font-size: 13px;
}



body.ml-mode .fest-body h3,
body.ml-mode .fest-body p,
body.ml-mode .fest-body .tag,
body.ml-mode .festivals .section-title,
body.ml-mode .festivals .section-sub {
  font-family: var(--font-ml);
  letter-spacing: 0;
}

body.ml-mode .fest-body h3 {
  font-size: 22px;
}

body.ml-mode .fest-body p {
  line-height: 1.8;
}

body.ml-mode .history-header h1,
body.ml-mode .history-header .eyebrow,
body.ml-mode .history-content p,
body.ml-mode .history-actions .btn {
  font-family: var(--font-ml);
  letter-spacing: 0;
}

body.ml-mode .history-content p {
  line-height: 1.9;
  font-size: 16px;
}

body.ml-mode .history-header h1 {
  font-size: clamp(30px, 4vw, 48px);
}

body.ml-mode .history-header h1,
body.ml-mode .history-header .eyebrow,
body.ml-mode .history-content p,
body.ml-mode .history-actions .btn {
  font-family: var(--font-ml);
  letter-spacing: 0;
}

body.ml-mode .history-content p {
  line-height: 1.9;
  font-size: 16px;
}

body.ml-mode .history-header h1 {
  font-size: clamp(30px, 4vw, 48px);
}

body.ml-mode .chant-content .eyebrow,
body.ml-mode .chant-content h3,
body.ml-mode .chant-text,
body.ml-mode .chant-note,
body.ml-mode .chant-actions .btn {
  font-family: var(--font-ml);
  letter-spacing: 0;
}

body.ml-mode .chant-text {
  line-height: 1.9;
}

body.ml-mode .offerings-header,
body.ml-mode .offerings-header h1,
body.ml-mode .offerings-header p,
body.ml-mode .offerings-table th,
body.ml-mode .offerings-table td,
body.ml-mode .advance-note,
body.ml-mode .offerings-actions .btn {
  font-family: var(--font-ml);
  letter-spacing: 0;
}

body.ml-mode .offerings-header p,
body.ml-mode .advance-note {
  line-height: 1.85;
}

body.ml-mode .offerings-table {
  font-size: 13.5px;
}