* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  background-color: #fffbf5;
  color: #2b1810;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

img,
iframe,
svg {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* 1st Section: Welcome Card */
.welcome-section {
  padding: 46px 0 28px;
  background: linear-gradient(180deg, #fffbf5 0%, #fff4e2 100%);
}

.welcome-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 38px;
  border-radius: 24px;
  background: linear-gradient(155deg, #5c0a14 0%, #7a0e1b 55%, #46060e 100%);
  border: 2px solid #d4af37;
  box-shadow: 0 18px 40px rgba(92, 10, 20, 0.16);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.welcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    #ffd700,
    #fff3c4,
    #ffd700,
    transparent
  );
}

.devotional-tag {
  display: inline-block;
  background: rgba(255, 215, 0, 0.16);
  border: 1px solid #ffd700;
  color: #ffd700;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.welcome-card h2 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: 36px;
  font-weight: 800;
  color: #ffe28a;
  line-height: 1.32;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.welcome-card p {
  font-size: 15.5px;
  color: #fff7ec;
  line-height: 1.68;
  max-width: 720px;
  margin: 0 auto 24px;
  overflow-wrap: break-word;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700, #d4af37);
  color: #4a070f;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  max-width: 100%;
  overflow-wrap: break-word;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  display: inline-block;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 215, 0, 0.35);
}

.btn-outline {
  border: 2px solid #ffd700;
  color: #ffd700;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  max-width: 100%;
  overflow-wrap: break-word;
  display: inline-block;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.btn-outline:hover {
  background: #ffd700;
  color: #4a070f;
}

/* 2nd Section: Image Slides Only (4:3) */
.slides-section {
  padding: 16px 0 64px;
  background: #fff4e2;
}

.hero-slider {
  position: relative;
  max-width: 820px;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid #d4af37;
  box-shadow: 0 20px 45px rgba(92, 10, 20, 0.16);
  background: #2b080c;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide-img.logo-slide-img {
  object-fit: contain;
  background: radial-gradient(circle, #5c0a14 0%, #2b080c 100%);
  padding: 28px;
}

.slide-content h2 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: 40px;
  font-weight: 800;
  color: #ffe28a;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(70, 6, 14, 0.72);
  border: 1.5px solid #ffd700;
  color: #ffd700;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 19px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.slider-arrow:hover {
  background: #ffd700;
  color: #4a070f;
}

.prev {
  left: 16px;
}
.next {
  right: 16px;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 9px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(43, 8, 12, 0.65);
  max-width: calc(100% - 24px);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.dot.active {
  width: 24px;
  border-radius: 10px;
  background: #ffd700;
}

@media (max-width: 768px) {
  .welcome-section {
    padding: 32px 0 20px;
  }

  .welcome-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .welcome-card h2 {
    font-size: 24px;
  }

  .welcome-card p {
    font-size: 14px;
  }

  .hero-slider {
    border-radius: 18px;
  }

  .slide-content h2 {
    font-size: 32px;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .prev {
    left: 10px;
  }
  .next {
    right: 10px;
  }
}

/* Stats Section: Optimized & Animated */
.stats-section {
  position: relative;
  padding: 26px 0 64px;
  background: #fff4e2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.stat-card {
  position: relative;
  height: 100%;
  min-width: 0;
  border-radius: 20px;
  background: linear-gradient(160deg, #ffffff 0%, #fffdf9 65%, #fff5e4 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow:
    0 14px 32px rgba(92, 10, 20, 0.08),
    0 2px 6px rgba(92, 10, 20, 0.04);
  overflow: hidden;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.stat-top-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #7a0e1b, #ffd700, #d4af37, #7a0e1b);
  background-size: 200% 100%;
  animation: goldBarSlide 4s linear infinite;
}

@keyframes goldBarSlide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.stat-card-body {
  padding: 22px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: #d4af37;
  box-shadow:
    0 22px 44px rgba(92, 10, 20, 0.15),
    0 0 0 1px rgba(255, 215, 0, 0.35);
}

.stat-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  font-size: 26px;
  border-radius: 15px;
  background: linear-gradient(145deg, #6a0b17 0%, #42050c 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 8px 18px rgba(92, 10, 20, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gentleIconFloat 3.4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.stat-card:nth-child(2) .stat-icon {
  animation-delay: 0.4s;
}
.stat-card:nth-child(3) .stat-icon {
  animation-delay: 0.8s;
}
.stat-card:nth-child(4) .stat-icon {
  animation-delay: 1.2s;
}

@keyframes gentleIconFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.stat-card:hover .stat-icon {
  transform: scale(1.08) rotate(-3deg);
}

.stat-info {
  flex: 1;
  min-width: 0;
}

.stat-info h3 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: 800;
  line-height: 1.25;
  color: #5c0a14;
  margin-bottom: 4px;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
}

.stat-info p {
  font-size: 13.5px;
  font-weight: 600;
  color: #6e4f43;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: break-word;
}

/* Scroll Reveal Animation */
.stat-anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

.stat-anim.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .stats-section {
    padding: 18px 0 48px;
  }

  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .stat-card-body {
    padding: 18px 16px;
  }

  .stat-info h3 {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-anim,
  .stat-top-bar,
  .stat-icon {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 3rd Section: About Clickable Card */
.about-section {
  padding: 50px 0 80px;
}

.about-clickable-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  box-shadow: 0 15px 40px rgba(92, 10, 20, 0.08);
  border: 1px solid #f0dfc8;
  cursor: pointer;
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}

.about-clickable-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(92, 10, 20, 0.16);
}

.about-img-box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #270308;
}

.about-img-box img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

.img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #5c0a14;
  color: #ffd700;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #d4af37;
  max-width: calc(100% - 40px);
  overflow-wrap: break-word;
}

.about-story-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #5c0a14;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.25),
    rgba(212, 175, 55, 0.14)
  );
  border: 1px solid rgba(184, 134, 11, 0.55);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(92, 10, 20, 0.06);
  overflow-wrap: break-word;
}

.about-story-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a111f;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45);
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .about-story-badge {
    font-size: 11px;
    letter-spacing: 1.4px;
    padding: 5px 14px;
  }
}

.about-text-box {
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.about-text-box h2 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: 30px;
  color: #5c0a14;
  margin-bottom: 16px;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.about-text-box p {
  color: #21110a;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
  overflow-wrap: break-word;
}

.read-more-link {
  margin-top: 10px;
  color: #8a111f;
  font-weight: 700;
  font-size: 15px;
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .about-clickable-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-img-box {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: #2b0409;
    overflow: hidden;
  }

  .about-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(1.06);
  }

  .about-text-box {
    padding: 28px 22px;
  }

  .about-text-box h2 {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .about-section {
    padding: 28px 0 56px;
  }

  .about-clickable-card {
    border-radius: 18px;
  }

  .about-img-box {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: #2b0409;
    overflow: hidden;
  }

  .about-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(1.01);
  }

  .about-text-box {
    padding: 22px 18px;
  }

  .about-text-box h2 {
    font-size: 21px;
    margin-bottom: 12px;
  }

  .about-text-box p {
    font-size: 14px;
    line-height: 1.72;
    text-align: justify;
    text-align-last: left;
  }
}

/* Upcoming Poojai Section */
.poojai-section {
  padding: 90px 0;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(212, 175, 55, 0.16),
      transparent 38%
    ),
    radial-gradient(
      circle at 88% 85%,
      rgba(122, 14, 27, 0.08),
      transparent 42%
    ),
    linear-gradient(180deg, #fff5e6 0%, #fffdf8 55%, #fff7eb 100%);
  position: relative;
}

.poojai-section .section-header {
  text-align: center;
  margin-bottom: 44px;
}

.poojai-section .section-subtitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a0e1b;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.24),
    rgba(212, 175, 55, 0.14)
  );
  border: 1px solid rgba(184, 134, 11, 0.6);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(92, 10, 20, 0.06);
  max-width: 100%;
  overflow-wrap: break-word;
}

.poojai-section .section-header h2 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  color: #5c0a14;
  margin: 0 auto 12px;
  text-shadow: 0 2px 10px rgba(92, 10, 20, 0.08);
  overflow-wrap: break-word;
}

.poojai-section .section-header p {
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #5c4338;
  max-width: 640px;
  margin: 0 auto;
  overflow-wrap: break-word;
}

.poojai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.poojai-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  box-shadow:
    0 14px 30px rgba(92, 10, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.poojai-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #c9972c,
    #7a0e1b,
    #f0c869,
    #7a0e1b,
    #c9972c
  );
}

.poojai-card:hover {
  transform: translateY(-6px);
  border-color: #d4af37;
  box-shadow: 0 20px 40px rgba(92, 10, 20, 0.12);
}

/* 1st Big Card Spanning Full Width on Top */
.poojai-card.featured-first-card {
  grid-column: 1 / -1;
  padding: 36px 38px;
  border-radius: 26px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 226, 138, 0.16),
      transparent 45%
    ),
    linear-gradient(135deg, #4a060e 0%, #6e0c18 52%, #3d040b 100%);
  border: 1.5px solid rgba(240, 200, 105, 0.72);
  box-shadow:
    0 24px 48px rgba(74, 6, 14, 0.24),
    inset 0 1px 0 rgba(255, 236, 179, 0.35);
  color: #fff9f0;
}

.poojai-card.featured-first-card::before {
  height: 5px;
  background: linear-gradient(
    90deg,
    #ffe699,
    #d4af37,
    #fff3c4,
    #d4af37,
    #ffe699
  );
}

.poojai-card.featured-first-card:hover {
  border-color: #ffe699;
  box-shadow: 0 28px 54px rgba(74, 6, 14, 0.32);
}

.poojai-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.poojai-status-pill {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #fff2d2;
  color: #6e0c18;
  border: 1px solid rgba(212, 175, 55, 0.6);
  max-width: 100%;
  overflow-wrap: break-word;
}

.poojai-card.featured-first-card .poojai-status-pill {
  background: linear-gradient(
    135deg,
    rgba(255, 230, 153, 0.24),
    rgba(212, 175, 55, 0.14)
  );
  color: #ffe699;
  border: 1px solid rgba(255, 230, 153, 0.65);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.poojai-card-date {
  font-size: 13px;
  font-weight: 600;
  color: #6e0c18;
  background: #fbf2e1;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  max-width: 100%;
  overflow-wrap: break-word;
}

.poojai-card.featured-first-card .poojai-card-date {
  color: #ffe699;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 230, 153, 0.35);
}

.poojai-card h3 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: 21px;
  color: #5c0a14;
  margin: 2px 0 4px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.poojai-card.featured-first-card h3 {
  font-size: 29px;
  color: #ffe699;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.poojai-time {
  font-size: 13px;
  color: #b8860b;
  font-weight: 600;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.poojai-card p {
  font-size: 14px;
  color: #5c4338;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: break-word;
}

.poojai-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poojai-card.featured-first-card .poojai-details-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.poojai-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 12px;
  background: #fcf7ee;
  border: 1px solid #efe0c2;
  font-size: 13.5px;
  min-width: 0;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.poojai-card:hover .poojai-detail-row {
  border-color: #e5c687;
}

.poojai-detail-row span {
  color: #6e5346;
  font-weight: 500;
  overflow-wrap: break-word;
}

.poojai-detail-row strong {
  color: #4a070f;
  font-weight: 700;
  text-align: right;
  overflow-wrap: break-word;
}

.poojai-card.featured-first-card .poojai-detail-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 230, 153, 0.26);
}

.poojai-card.featured-first-card .poojai-detail-row span {
  color: #f4dfb0;
  font-size: 12px;
}

.poojai-card.featured-first-card .poojai-detail-row strong {
  color: #ffffff;
  font-size: 15px;
  text-align: left;
}

/* Urumaiyalargal Heading & High-Contrast Chips */
.poojai-section .poojai-detail-row.urumai-block {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.poojai-section .poojai-detail-row.urumai-block .urumai-heading {
  color: #4a070f;
  font-weight: 700;
  font-size: 13.5px;
  opacity: 1;
}

.poojai-section
  .poojai-card.featured-first-card
  .poojai-detail-row.urumai-block {
  grid-column: 1 / -1;
  background: rgba(20, 2, 5, 0.45);
  border: 1px solid rgba(255, 230, 153, 0.45);
}

.poojai-section
  .poojai-card.featured-first-card
  .poojai-detail-row.urumai-block
  .urumai-heading {
  color: #ffe699;
  font-weight: 700;
  font-size: 14px;
  opacity: 1;
}

.poojai-section .urumai-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.poojai-section .urumai-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #fff2cf;
  color: #4a070f;
  border: 1px solid #c9972c;
  box-shadow: 0 2px 6px rgba(74, 7, 15, 0.08);
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: break-word;
}

.poojai-section .poojai-card.featured-first-card .urumai-chip {
  background: #fff4d4;
  color: #38030a;
  border: 1px solid #ffe28a;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.poojai-section .poojai-card.featured-first-card .urumai-chip.urumai-empty {
  background: rgba(255, 244, 212, 0.95);
  color: #38030a;
}

/* Action Button */
.center-btn-box {
  text-align: center;
  margin-top: 46px;
}

.btn-primary {
  background: linear-gradient(135deg, #7a0e1b, #5c0a14);
  color: #ffd700;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid #d4af37;
  box-shadow: 0 8px 20px rgba(92, 10, 20, 0.18);
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(92, 10, 20, 0.3);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .poojai-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .poojai-card.featured-first-card {
    grid-column: span 1;
    padding: 28px 22px;
  }

  .poojai-card.featured-first-card .poojai-details-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poojai-card.featured-first-card h3 {
    font-size: 23px;
  }
}

@media (max-width: 560px) {
  .poojai-section {
    padding: 64px 0;
  }

  .poojai-section .section-header {
    margin-bottom: 30px;
  }

  .poojai-section .section-header h2 {
    font-size: 24px;
  }

  .poojai-section .section-header p {
    font-size: 14px;
  }

  .poojai-card {
    padding: 20px 16px;
  }

  .poojai-card.featured-first-card {
    padding: 22px 16px;
  }

  .poojai-card.featured-first-card .poojai-details-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .poojai-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .poojai-detail-row strong {
    text-align: left;
  }
}

/* 5th Section: Gallery */
.gallery-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
  max-width: 100%;
  padding: 0 8px;
}

.section-header .section-subtitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7a0e1b;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.24),
    rgba(212, 175, 55, 0.14)
  );
  border: 1px solid rgba(184, 134, 11, 0.6);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(92, 10, 20, 0.06);
  overflow-wrap: break-word;
}

.section-header h2 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  color: #5c0a14;
  margin: 0 auto;
  max-width: 100%;
  text-shadow: 0 2px 10px rgba(92, 10, 20, 0.08);
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 26px;
  }

  .section-header .section-subtitle {
    font-size: 11px;
    letter-spacing: 1.3px;
    padding: 5px 15px;
    margin-bottom: 10px;
  }

  .section-header h2 {
    font-size: 23px;
  }
}

@media (max-width: 420px) {
  .section-header {
    margin-bottom: 20px;
    padding: 0 4px;
  }

  .section-header .section-subtitle {
    font-size: 10.5px;
    letter-spacing: 1px;
    padding: 5px 12px;
    margin-bottom: 8px;
  }

  .section-header h2 {
    font-size: 20px;
    line-height: 1.32;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  height: 250px;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(92, 10, 20, 0.85), transparent);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #ffd700;
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: break-word;
}

/* 6th Section: Contact Us */
.contact-section {
  padding: 40px 0 90px;
}

.contact-reach-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #ffe58f;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.2),
    rgba(212, 175, 55, 0.1)
  );
  border: 1px solid rgba(255, 215, 0, 0.65);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  overflow-wrap: break-word;
}

.contact-reach-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.35);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .contact-reach-badge {
    font-size: 11px;
    letter-spacing: 1.4px;
    padding: 5px 14px;
  }
}

@media (max-width: 420px) {
  .contact-reach-badge {
    font-size: 10.5px;
    letter-spacing: 1px;
    padding: 5px 12px;
    margin-bottom: 10px;
  }
}

.contact-card {
  background: linear-gradient(135deg, #5c0a14 0%, #3e050c 100%);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  color: #ffffff;
  border: 2px solid #d4af37;
  box-shadow: 0 20px 50px rgba(92, 10, 20, 0.25);
}

.contact-details {
  padding: 45px;
  min-width: 0;
}

.contact-details h2 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: 30px;
  color: #ffd700;
  margin-bottom: 25px;
  overflow-wrap: break-word;
}

.info-row {
  display: flex;
  gap: 15px;
  margin-bottom: 22px;
  min-width: 0;
}

.info-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.info-row > div {
  min-width: 0;
  flex: 1;
}

.info-row h4 {
  color: #ffd700;
  font-size: 16px;
  margin-bottom: 4px;
  overflow-wrap: break-word;
}

.info-row p {
  color: #f5e6e8;
  font-size: 14px;
  overflow-wrap: break-word;
}

.contact-map {
  min-height: 340px;
  min-width: 0;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  border: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-clickable-card,
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .poojai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: #5c0a14;
    padding: 20px;
    border-bottom: 2px solid #d4af37;
    z-index: 999;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .slide-content h2 {
    font-size: 32px;
  }
  .poojai-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-details {
    padding: 28px 20px;
  }
  .contact-details h2 {
    font-size: 24px;
  }
}

/* Poojai Page Styles */
.poojai-page-intro {
  padding: 68px 0 38px;
  text-align: center;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 215, 0, 0.15), transparent 42%),
    linear-gradient(180deg, #fff5e6 0%, #fffbf5 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.poojai-intro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7a0e1b;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.24),
    rgba(212, 175, 55, 0.14)
  );
  border: 1px solid rgba(184, 134, 11, 0.6);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(92, 10, 20, 0.06);
  overflow-wrap: break-word;
}

.poojai-intro-badge::before {
  content: "🪔";
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.poojai-page-intro h2 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  color: #5c0a14;
  line-height: 1.32;
  margin: 0 auto 12px;
  max-width: 860px;
  overflow-wrap: break-word;
}

.poojai-page-intro p {
  max-width: 720px;
  margin: 0 auto;
  color: #5c4338;
  font-size: 15px;
  line-height: 1.68;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .poojai-page-intro {
    padding: 46px 0 28px;
  }

  .poojai-intro-badge {
    font-size: 11px;
    letter-spacing: 1.3px;
    padding: 5px 14px;
    margin-bottom: 12px;
    gap: 6px;
  }

  .poojai-page-intro h2 {
    font-size: 24px;
  }

  .poojai-page-intro p {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .poojai-page-intro {
    padding: 34px 0 22px;
  }

  .poojai-intro-badge {
    font-size: 10.5px;
    letter-spacing: 0.9px;
    padding: 5px 12px;
    margin-bottom: 10px;
    gap: 5px;
    border-radius: 16px;
  }

  .poojai-intro-badge::before {
    font-size: 12px;
  }

  .poojai-page-intro h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .poojai-page-intro p {
    font-size: 13px;
    line-height: 1.62;
  }
}

.featured-poojai-section {
  padding: 25px 0 55px;
}

.featured-poojai-card {
  background: linear-gradient(135deg, #5c0a14 0%, #3a050b 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 38px;
  border: 2px solid #d4af37;
  box-shadow: 0 20px 45px rgba(92, 10, 20, 0.22);
  min-width: 0;
}

.featured-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.featured-tag {
  background: rgba(255, 215, 0, 0.16);
  border: 1px solid #ffd700;
  color: #ffd700;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.featured-date-pill {
  background: #ffd700;
  color: #4a070f;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: break-word;
}

.featured-title {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: 34px;
  color: #ffd700;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

.featured-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.featured-meta-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 16px 18px;
  min-width: 0;
}

.featured-meta-item.featured-urumai-item {
  grid-column: 1 / -1;
  background: rgba(255, 215, 0, 0.08);
}

.meta-label {
  display: block;
  font-size: 12px;
  color: #f3d999;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  overflow-wrap: break-word;
}

.featured-meta-item strong {
  font-size: 16px;
  color: #ffffff;
  overflow-wrap: break-word;
}

.all-poojais-section {
  padding: 20px 0 85px;
}

.schedule-list-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7a0e1b;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.24),
    rgba(212, 175, 55, 0.14)
  );
  border: 1px solid rgba(184, 134, 11, 0.6);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(92, 10, 20, 0.06);
  overflow-wrap: break-word;
}

.schedule-list-badge::before {
  content: "🗓️";
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .schedule-list-badge {
    font-size: 11px;
    letter-spacing: 1.3px;
    padding: 5px 15px;
    margin-bottom: 8px;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .schedule-list-badge {
    font-size: 10.5px;
    letter-spacing: 0.9px;
    padding: 5px 12px;
    margin-bottom: 8px;
    gap: 5px;
    border-radius: 16px;
  }

  .schedule-list-badge::before {
    font-size: 12px;
  }
}

.poojai-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.poojai-toolbar h3 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: 30px;
  color: #5c0a14;
  overflow-wrap: break-word;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  color: #5c0a14;
  border: 1.5px solid #d4af37;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: break-word;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #7a0e1b, #5c0a14);
  color: #ffd700;
  border-color: #5c0a14;
}

.poojai-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.single-poojai-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #eed9b7;
  border-top: 4px solid #d4af37;
  box-shadow: 0 10px 25px rgba(92, 10, 20, 0.07);
  min-width: 0;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.single-poojai-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(92, 10, 20, 0.14);
}

.poojai-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.poojai-status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.status-upcoming {
  background: #fff3cd;
  color: #7a0e1b;
  border: 1px solid #d4af37;
}

.status-done {
  background: #f1efea;
  color: #6b5e57;
}

.poojai-card-date {
  font-size: 13px;
  font-weight: 600;
  color: #5c4338;
}

.poojai-card-title {
  font-size: 20px;
  color: #5c0a14;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.poojai-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed #e5d1b1;
  padding-top: 14px;
  flex: 1;
}

.poojai-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  min-width: 0;
}

.poojai-detail-row span {
  color: #6e554a;
}

.poojai-detail-row strong {
  color: #2b1810;
  text-align: right;
  overflow-wrap: break-word;
}

/* Neat Urumaiyalargal Chips */
.poojai-detail-row.urumai-block {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #f1e1c6;
}

.urumai-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7a0e1b !important;
}

.urumai-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
}

.urumai-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fff8ea 0%, #ffefd1 100%);
  color: #4a070f;
  border: 1px solid #e2ba63;
  border-left: 3px solid #8a111f;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(92, 10, 20, 0.05);
  max-width: 100%;
  overflow-wrap: break-word;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.urumai-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(92, 10, 20, 0.12);
}

.featured-chips .urumai-chip {
  background: rgba(255, 248, 234, 0.96);
  border-color: #ffd700;
  border-left-color: #d4af37;
}

.urumai-chip.urumai-empty {
  background: #f6f3ee;
  color: #6b5e57;
  border-color: #dcd2c4;
  border-left-color: #9e8e82;
  font-weight: 500;
}

.empty-poojai-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: #5c4338;
}

@media (max-width: 992px) {
  .featured-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .poojai-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .featured-meta-grid,
  .poojai-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .featured-poojai-card {
    padding: 24px;
  }
  .featured-title {
    font-size: 26px;
  }
  .poojai-page-intro h2,
  .poojai-toolbar h3 {
    font-size: 25px;
  }
}

/* About Us Page Styles */
.about-page-hero {
  padding: 68px 0 42px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 215, 0, 0.14), transparent 42%),
    linear-gradient(180deg, #fff5e6 0%, #fffbf5 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7a0e1b;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.24),
    rgba(212, 175, 55, 0.14)
  );
  border: 1px solid rgba(184, 134, 11, 0.6);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(92, 10, 20, 0.06);
  overflow-wrap: break-word;
}

.about-page-hero h2 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  color: #5c0a14;
  line-height: 1.32;
  margin: 0 auto 10px;
  max-width: 860px;
  overflow-wrap: break-word;
}

.about-page-hero h4 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  color: #9e5808;
  line-height: 1.45;
  margin: 0 auto 12px;
  max-width: 780px;
  overflow-wrap: break-word;
}

.about-page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: #5c4338;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.temple-address-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin: 4px auto 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.16),
    rgba(122, 14, 27, 0.08)
  );
  border: 1px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 6px 16px rgba(92, 10, 20, 0.08);
  color: #5c0a14 !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: break-word;
}

.temple-address-pill::before {
  content: "📍";
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .temple-address-pill {
    padding: 7px 15px;
    font-size: 13px !important;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .temple-address-pill {
    padding: 6px 12px;
    font-size: 12px !important;
    border-radius: 16px;
    gap: 5px;
  }

  .temple-address-pill::before {
    font-size: 12.5px;
  }
}

@media (max-width: 768px) {
  .about-page-hero {
    padding: 46px 0 30px;
  }

  .about-hero-badge {
    font-size: 11px;
    letter-spacing: 1.3px;
    padding: 5px 14px;
    margin-bottom: 12px;
  }

  .about-page-hero h2 {
    font-size: 24px;
  }

  .about-page-hero h4 {
    font-size: 16px;
  }

  .about-page-hero p {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .about-page-hero {
    padding: 34px 0 24px;
  }

  .about-hero-badge {
    font-size: 10.5px;
    letter-spacing: 1px;
    padding: 5px 12px;
    margin-bottom: 10px;
  }

  .about-page-hero h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .about-page-hero h4 {
    font-size: 14.5px;
    margin-bottom: 8px;
  }

  .about-page-hero p {
    font-size: 13px;
  }
}

/* 1st Section: Temple Image 1 & God Image 1 */
.visual-showcase-section {
  padding: 35px 0 60px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.showcase-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #eed9b7;
  box-shadow: 0 14px 35px rgba(92, 10, 20, 0.08);
  min-width: 0;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(92, 10, 20, 0.16);
}

.showcase-img-wrap {
  height: 310px;
  overflow: hidden;
}

.showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-img-wrap img {
  transform: scale(1.06);
}

.showcase-caption {
  padding: 24px 26px;
  min-width: 0;
}

.showcase-badge {
  display: inline-block;
  background: #fff3d6;
  color: #7a0e1b;
  border: 1px solid #d4af37;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.showcase-caption h3 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: 22px;
  color: #5c0a14;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.showcase-caption p {
  color: #5c4338;
  font-size: 14px;
  overflow-wrap: break-word;
}

/* 2nd Section: Temple History */
.temple-history-section {
  padding: 40px 0 80px;
}

.history-header-box {
  text-align: center;
  margin-bottom: 40px;
}

.temple-chronicle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7a0e1b;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.24),
    rgba(212, 175, 55, 0.14)
  );
  border: 1px solid rgba(184, 134, 11, 0.6);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(92, 10, 20, 0.06);
  overflow-wrap: break-word;
}

.temple-chronicle-badge::before {
  content: "📜";
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .temple-chronicle-badge {
    font-size: 11px;
    letter-spacing: 1.3px;
    padding: 5px 15px;
    margin-bottom: 10px;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .temple-chronicle-badge {
    font-size: 10.5px;
    letter-spacing: 0.9px;
    padding: 5px 12px;
    margin-bottom: 8px;
    gap: 5px;
    border-radius: 16px;
  }

  .temple-chronicle-badge::before {
    font-size: 12px;
  }
}

.history-header-box h2 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: 34px;
  color: #5c0a14;
  overflow-wrap: break-word;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  text-align: justify;
  text-align-last: left;
  gap: 22px;
}

.history-block {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 30px;
  border: 1px solid #eed9b7;
  border-left: 5px solid #8a111f;
  box-shadow: 0 10px 25px rgba(92, 10, 20, 0.06);
  display: flex;
  gap: 22px;
  align-items: flex-start;
  min-width: 0;
}

.history-step-num {
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a0e1b, #5c0a14);
  color: #ffd700;
  border: 2px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.history-content {
  min-width: 0;
  flex: 1;
}

.history-content h3 {
  font-size: 21px;
  color: #5c0a14;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.history-content p {
  color: #4a352c;
  font-size: 15px;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.history-content p:last-child {
  margin-bottom: 0;
}

/* 3rd & 4th Sections: Line-by-line Family Cards */
.families-section {
  padding: 75px 0;
}

.temple-families-bg {
  background: linear-gradient(180deg, #fff5e6 0%, #fffbf5 100%);
}

.village-families-bg {
  background: #fffbf5;
}

.family-line-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.family-line-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 15px 22px;
  border: 1px solid #eed9b7;
  border-left: 4px solid #d4af37;
  box-shadow: 0 6px 16px rgba(92, 10, 20, 0.05);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.family-line-card:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 22px rgba(92, 10, 20, 0.11);
}

.family-index {
  background: #5c0a14;
  color: #ffd700;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  min-width: 34px;
  text-align: center;
  flex-shrink: 0;
}

.family-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.family-name {
  font-size: 15.5px;
  font-weight: 600;
  color: #2b1810;
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase-img-wrap {
    height: 230px;
  }
  .history-block {
    flex-direction: column;
    padding: 22px;
  }
  .about-page-hero h2,
  .history-header-box h2 {
    font-size: 28px;
  }
}

/* Contact Us Page*/
.contact-hero {
  padding: 72px 0 54px;
  background: linear-gradient(135deg, #5c0a14 0%, #7a0e1b 55%, #46060e 100%);
  color: #fff8ee;
  text-align: center;
  border-bottom: 3px solid #d4af37;
}

.contact-hero .section-subtitle {
  color: #ffd700;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.contact-hero h1 {
  font-family: "Cinzel", "Noto Sans Tamil", serif;
  font-size: 38px;
  color: #ffe28a;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.contact-hero p {
  max-width: 740px;
  margin: 0 auto;
  font-size: 15px;
  color: #f7ebda;
  line-height: 1.7;
  overflow-wrap: break-word;
}

/* Info Cards Section */
.contact-info-section {
  padding: 56px 0 24px;
  background: #fffbf5;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.contact-box-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #ead3b0;
  box-shadow: 0 12px 28px rgba(92, 10, 20, 0.06);
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.contact-box-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #7a0e1b, #d4af37);
}

.contact-box-card:hover {
  transform: translateY(-5px);
  border-color: #d4af37;
}

.contact-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff3d6;
  border: 1px solid rgba(212, 175, 55, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.contact-box-card h3 {
  color: #5c0a14;
  font-size: 19px;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.contact-box-card p {
  color: #5c4338;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  overflow-wrap: break-word;
}

/* Bus Routes & Timings Image Section */
.bus-routes-section {
  padding: 46px 0 36px;
  background: #fffbf5;
}

.bus-routes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.bus-route-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 28px;
  border: 1.5px solid #e5c88b;
  box-shadow: 0 14px 30px rgba(92, 10, 20, 0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.bus-badge {
  display: inline-block;
  background: #5c0a14;
  color: #ffd700;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.bus-route-header h3 {
  color: #5c0a14;
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.bus-frequency-banner {
  background: #fff3d6;
  border-left: 4px solid #7a0e1b;
  color: #4a070f;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.bus-meta-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bus-meta-pill {
  background: #fcf7ee;
  border: 1px solid #efe0c2;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bus-meta-pill span {
  font-size: 12px;
  color: #6e5346;
  overflow-wrap: break-word;
}

.bus-meta-pill strong {
  font-size: 14px;
  color: #4a070f;
  overflow-wrap: break-word;
}

.bus-timing-img-box {
  background: #fdf8ef;
  border: 1px dashed #d4af37;
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
}

.bus-route-note {
  background: #fff2d2;
  border: 1px solid #dfb862;
  border-left: 4px solid #5c0a14;
  color: #3d040b;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.bus-img-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.bus-img-top-bar .img-caption-label {
  margin-bottom: 0;
}

.img-caption-label {
  font-size: 13px;
  font-weight: 700;
  color: #5c0a14;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.zoom-chart-btn {
  background: linear-gradient(135deg, #5c0a14, #7a0e1b);
  color: #ffd700;
  border: 1px solid #d4af37;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
  transition: transform 0.2s ease;
}

.zoom-chart-btn:hover {
  transform: translateY(-1px);
}

.bus-timing-img.full-chart-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  background: #ffffff;
  border: 1px solid #eed9b7;
  cursor: zoom-in;
}

.bus-img-fallback {
  min-height: 160px;
  border-radius: 12px;
  background: #fff6e3;
  color: #5c0a14;
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

/* Large Map & Nearby Cities Section */
.contact-main-section {
  padding: 36px 0 85px;
  background: linear-gradient(180deg, #fffbf5 0%, #fff5e6 100%);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.large-map-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  border: 1.5px solid #e5c88b;
  box-shadow: 0 16px 36px rgba(92, 10, 20, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.map-card-header .section-subtitle {
  color: #b8860b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  overflow-wrap: break-word;
}

.map-card-header h2 {
  color: #5c0a14;
  font-size: 22px;
  margin-top: 2px;
  overflow-wrap: break-word;
}

.btn-gold-sm {
  text-decoration: none;
  background: linear-gradient(135deg, #ffe28a, #d4af37);
  color: #4a070f;
  padding: 9px 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #c9972c;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  transition: transform 0.25s ease;
}

.btn-gold-sm:hover {
  transform: translateY(-2px);
}

.large-map-frame {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid #eed9b7;
  min-width: 0;
}

.large-map-frame iframe {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  border: 0;
}

/* Nearby Cities Stack */
.nearby-cities-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.cities-card {
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: 0 14px 32px rgba(92, 10, 20, 0.08);
  min-width: 0;
}

.district-cities-card {
  background: linear-gradient(165deg, #5c0a14 0%, #7a0e1b 60%, #46060e 100%);
  color: #fff8ee;
  border: 1.5px solid #e5b94c;
}

.district-cities-card .section-subtitle {
  color: #ffd700;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
  overflow-wrap: break-word;
}

.district-cities-card h2 {
  color: #ffe28a;
  font-size: 20px;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.small-cities-card {
  background: #ffffff;
  color: #3d040b;
  border: 1.5px solid #e5c88b;
}

.small-cities-card .section-subtitle {
  color: #b8860b;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
  overflow-wrap: break-word;
}

.small-cities-card h2 {
  color: #5c0a14;
  font-size: 20px;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.distance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.distance-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  min-width: 0;
}

.district-cities-card .distance-list li {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 230, 153, 0.28);
}

.district-cities-card .distance-list li span {
  color: #fff6e5;
  font-weight: 600;
  overflow-wrap: break-word;
}

.district-cities-card .distance-list li strong {
  background: #fff3cc;
  color: #3d040b;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.small-cities-card .distance-list li {
  background: #fcf7ee;
  border: 1px solid #efe0c2;
}

.small-cities-card .distance-list li span {
  color: #4a070f;
  font-weight: 600;
  overflow-wrap: break-word;
}

.small-cities-card .distance-list li strong {
  background: #5c0a14;
  color: #ffd700;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Full Screen Chart Zoom Modal */
.bus-chart-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(24, 3, 6, 0.82);
  backdrop-filter: blur(6px);
  padding: 24px;
  align-items: center;
  justify-content: center;
}

.bus-chart-modal.open {
  display: flex;
}

.bus-chart-modal-box {
  background: #fffdf8;
  border: 2px solid #d4af37;
  border-radius: 20px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.bus-chart-modal-header {
  background: linear-gradient(135deg, #5c0a14, #7a0e1b);
  color: #ffe28a;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bus-chart-modal-header h3 {
  font-size: 16px;
  margin: 0;
  color: #ffe28a;
  overflow-wrap: break-word;
}

.close-chart-btn {
  background: rgba(255, 226, 138, 0.16);
  border: 1px solid #ffe28a;
  color: #ffe28a;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.bus-chart-modal-body {
  padding: 16px;
  overflow-y: auto;
  background: #ffffff;
  text-align: center;
}

.bus-chart-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .contact-cards-grid,
  .bus-routes-grid,
  .contact-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .large-map-frame,
  .large-map-frame iframe {
    min-height: 360px;
  }

  .contact-hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .bus-meta-boxes {
    grid-template-columns: minmax(0, 1fr);
  }
  .bus-route-card,
  .contact-box-card,
  .large-map-card,
  .cities-card {
    padding: 20px 16px;
  }
  .large-map-frame,
  .large-map-frame iframe {
    min-height: 280px;
  }
}

/* Gallary Page Code */
.gallery-page {
  background: #fff4e2;
  min-height: 75vh;
}

.gallery-wrap {
  padding: 46px 0 80px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.gallery-filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #5c0a14;
  background: #fffdf9;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 6px 16px rgba(92, 10, 20, 0.06);
  max-width: 100%;
  overflow-wrap: break-word;
  transition: all 0.25s ease;
}

.gallery-filter-btn:hover {
  border-color: #d4af37;
  transform: translateY(-2px);
}

.gallery-filter-btn.active {
  color: #ffe58f;
  background: linear-gradient(135deg, #6e0d19 0%, #46060e 100%);
  border-color: #d4af37;
  box-shadow: 0 10px 22px rgba(92, 10, 20, 0.22);
}

/* Masonry Grid: Different Image Sizes Without Extra Spaces */
.gallery-photos-grid {
  column-count: 3;
  column-gap: 20px;
}

.gallery-photo-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  border-radius: 18px;
  overflow: hidden;
  background: #2b0409;
  border: 2px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 26px rgba(92, 10, 20, 0.1);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.gallery-photo-item:hover {
  transform: translateY(-4px);
  border-color: #ffd700;
  box-shadow: 0 18px 34px rgba(92, 10, 20, 0.18);
}

.gallery-photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-photo-item:hover img {
  transform: scale(1.03);
}

/* Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(20, 2, 5, 0.85);
  backdrop-filter: blur(6px);
}

.gallery-modal-box {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  padding: 14px;
  border-radius: 22px;
  background: #3a050c;
  border: 2px solid #d4af37;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.gallery-modal-box img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.gallery-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #ffd700;
  background: rgba(48, 4, 10, 0.9);
  color: #ffd700;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .gallery-photos-grid {
    column-count: 2;
    column-gap: 16px;
  }

  .gallery-photo-item {
    margin-bottom: 16px;
  }
}

@media (max-width: 576px) {
  .gallery-wrap {
    padding: 30px 0 60px;
  }

  .gallery-filters {
    gap: 8px;
    margin-bottom: 24px;
  }

  .gallery-filter-btn {
    padding: 8px 15px;
    font-size: 12.5px;
  }

  .gallery-photos-grid {
    column-count: 1;
    column-gap: 0;
  }

  .gallery-photo-item {
    margin-bottom: 14px;
    border-radius: 16px;
  }
}

/* Strict 400px & Small Mobile Optimization */
@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }

  .welcome-section {
    padding: 20px 0 14px;
  }

  .welcome-card {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .welcome-card::before {
    left: 14px;
    right: 14px;
  }

  .devotional-tag {
    font-size: 11px;
    padding: 5px 12px;
    letter-spacing: 0.4px;
  }

  .welcome-card h2 {
    font-size: 20px;
  }

  .welcome-card p {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .hero-btns {
    gap: 10px;
  }

  .btn-gold,
  .btn-outline {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 13.5px;
  }

  .slides-section {
    padding: 10px 0 36px;
  }

  .hero-slider {
    border-radius: 14px;
  }

  .slide-img.logo-slide-img {
    padding: 14px;
  }

  .slide-content h2 {
    font-size: 22px;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .prev {
    left: 6px;
  }

  .next {
    right: 6px;
  }

  .slider-dots {
    bottom: 8px;
    padding: 4px 8px;
    gap: 6px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 18px;
  }

  .stats-section {
    padding: 12px 0 34px;
  }

  .stat-card-body {
    padding: 14px 12px;
    gap: 10px;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 12px;
  }

  .stat-info h3 {
    font-size: 16.5px;
  }

  .stat-info p {
    font-size: 12.5px;
  }

  .about-section {
    padding: 20px 0 40px;
  }

  .about-text-box {
    padding: 18px 14px;
  }

  .about-text-box h2 {
    font-size: 19px;
  }

  .about-text-box p {
    font-size: 13.5px;
    line-height: 1.68;
  }

  .img-badge {
    bottom: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 11.5px;
  }

  .poojai-section {
    padding: 44px 0;
  }

  .poojai-section .section-header h2,
  .poojai-page-intro h2,
  .poojai-toolbar h3,
  .about-page-hero h2,
  .history-header-box h2,
  .contact-hero h1 {
    font-size: 21px;
  }

  .poojai-card,
  .poojai-card.featured-first-card,
  .featured-poojai-card,
  .single-poojai-card {
    padding: 16px 13px;
    border-radius: 16px;
  }

  .poojai-card h3,
  .poojai-card.featured-first-card h3,
  .featured-title {
    font-size: 19px;
  }

  .btn-primary {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .gallery-section {
    padding: 44px 0;
  }

  .gallery-item {
    height: 195px;
  }

  .contact-section {
    padding: 24px 0 56px;
  }

  .contact-details {
    padding: 20px 14px;
  }

  .contact-details h2 {
    font-size: 21px;
    margin-bottom: 16px;
  }

  .info-row {
    gap: 10px;
    margin-bottom: 14px;
  }

  .info-icon {
    font-size: 20px;
  }

  .contact-map,
  .contact-map iframe,
  .large-map-frame,
  .large-map-frame iframe {
    min-height: 240px;
  }

  .large-map-frame,
  .large-map-frame iframe {
    border-radius: 14px;
  }

  .bus-timing-img.full-chart-img {
    max-height: 320px;
  }

  .history-block {
    padding: 16px 14px;
    gap: 12px;
  }

  .history-step-num {
    min-width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .family-line-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .family-name {
    font-size: 14px;
  }

  .gallery-modal,
  .bus-chart-modal {
    padding: 10px;
  }

  .gallery-modal-box {
    padding: 10px;
    border-radius: 16px;
  }

  .gallery-modal-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 19px;
  }
}