/* ==========================================================================
   MOOKAMBIKA TEMPLE THEME - MAIN STYLESHEET
   Supports full Malayalam Unicode fonts, responsive layouts, and admin tokens.
   ========================================================================== */

:root {
  --accent-color: #B3271E;
  --accent-color-dark: #8B1E17;
  --accent-color-light: #D4392E;
  --bg-light: #F9F9F9;
  --bg-cream: #EFE6D8;
  --bg-grey: #EFEFEF;
  --text-main: #2D2D2D;
  --text-muted: #555555;
  --text-white: #FFFFFF;
  --font-heading: 'Baloo Chettan 2', 'Noto Sans Malayalam', serif;
  --font-body: 'Manjari', 'Noto Sans Malayalam', sans-serif;
  --font-latin: 'Montserrat', sans-serif;
  --container-max: 1200px;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 15px 35px rgba(179, 39, 30, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--accent-color-dark);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent-color-dark);
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #F0F0F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}

.site-logo-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(179, 39, 30, 0.2);
  border: 2px solid var(--accent-color);
  flex-shrink: 0;
}

.site-title-container {
  display: flex;
  flex-direction: column;
}

.site-title-main {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.site-title-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Nav Menu */
.primary-nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
}

.primary-nav-desktop a {
  font-family: var(--font-latin);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #333333;
  padding: 0.6rem 0.25rem;
  position: relative;
  transition: var(--transition);
}

.primary-nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  transition: var(--transition);
  border-radius: 2px;
}

.primary-nav-desktop a:hover::after,
.primary-nav-desktop .current-menu-item > a::after {
  width: 100%;
}

.primary-nav-desktop a:hover,
.primary-nav-desktop .current-menu-item > a {
  color: var(--accent-color);
}

/* Defensive CSS: Hide any accidentally duplicated header/branding in content body */
.history-main-content .site-header,
.history-main-content .site-branding,
.history-main-content .primary-nav-desktop,
.history-main-content header,
.entry-content .site-header,
.entry-content .site-branding,
.entry-content .primary-nav-desktop,
.entry-content header,
.page-content .site-header,
.page-content .site-branding {
  display: none !important;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Off-canvas Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: #FFFFFF;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  transition: right 0.4s ease;
}

.mobile-drawer.is-active {
  right: 0;
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer a {
  font-family: var(--font-latin);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #EEEEEE;
}

/* Overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   HOMEPAGE - SECTION 1: HERO
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
  color: var(--text-white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: #FFFFFF;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p, .hero-content div {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.hero-image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 4px solid rgba(255,255,255,0.2);
}

.hero-image-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   HOMEPAGE - SECTION 2: TWO-CARD INFO ROW
   ========================================================================== */
.card-row-section {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  padding-bottom: 4rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-card {
  background-color: #FFFFFF;
  border-radius: var(--border-radius);
  padding: 2.25rem;
  box-shadow: var(--box-shadow);
  border-top: 4px solid var(--accent-color);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(179, 39, 30, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card-header h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.card-body {
  font-size: 1.05rem;
  color: var(--text-main);
}

/* ==========================================================================
   HOMEPAGE - SECTION 3: HISTORY TEASER
   ========================================================================== */
.history-teaser-section {
  background-color: var(--bg-grey);
  padding: 4rem 0;
}

.history-teaser-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.teaser-photo-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border: 4px solid #FFFFFF;
  margin: 0 auto;
}

.teaser-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teaser-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.teaser-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-pill {
  display: inline-block;
  background-color: var(--accent-color);
  color: #FFFFFF !important;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(179, 39, 30, 0.3);
  transition: var(--transition);
}

.btn-pill:hover {
  background-color: var(--accent-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 39, 30, 0.4);
}

/* ==========================================================================
   HOMEPAGE - SECTION 4: SPECIAL DAYS GRID
   ========================================================================== */
.special-days-section {
  padding: 5rem 0;
  background-color: #FFFFFF;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-wrap h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
}

.section-title-wrap h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.special-days-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.special-day-card {
  background-color: var(--bg-light);
  border: 1px solid #E5E5E5;
  border-radius: var(--border-radius);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}

.special-day-card:hover {
  border-color: var(--accent-color);
  background-color: #FFFFFF;
  box-shadow: var(--box-shadow);
  transform: translateY(-4px);
}

.special-day-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 1rem;
  background: radial-gradient(circle, rgba(179,39,30,0.15) 0%, rgba(255,255,255,0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.8rem;
}

.special-day-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.special-day-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   HOMEPAGE - SECTION 5: DARSHAN TIMINGS & ROUTE
   ========================================================================== */
.darshan-route-section {
  background-color: var(--bg-cream);
  padding: 5rem 0;
}

.darshan-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.darshan-box {
  background-color: #FFFFFF;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.darshan-box h3 {
  font-size: 1.35rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.timing-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timing-item svg, .timing-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-top: 3px;
}

.upadevanmar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.upadeva-tag {
  background-color: rgba(179, 39, 30, 0.08);
  color: var(--accent-color-dark);
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.map-embed-container {
  width: 100%;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-embed-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   HOMEPAGE - SECTION 6 & FOOTER CONTACT STRIP
   ========================================================================== */
.footer-contact-strip {
  background-color: var(--accent-color);
  color: var(--text-white);
  padding: 4rem 0;
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-strip-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 1.75rem;
}

.contact-strip-card h3 {
  color: #FFFFFF;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.5rem;
}

.contact-strip-card p, .contact-strip-card div {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-line;
}

/* Main Site Footer */
.site-footer {
  background-color: #1A1A1A;
  color: #888888;
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #CCCCCC;
}

.site-footer a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   PAGE TEMPLATES (HISTORY, GALLERY, CONTACT)
   ========================================================================== */
/* Page Hero Banner */
.page-hero-banner {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
  color: var(--text-white);
  padding: 3.5rem 0;
  text-align: center;
}

.hero-sun-icon {
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.9);
  display: flex;
  justify-content: center;
}

.page-hero-banner h1 {
  color: #FFFFFF;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* History Page Article Content */
.history-article-section {
  padding: 4rem 0;
  background-color: #F5F5F5;
}

.history-grid-layout {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

.history-story-card {
  background-color: #FFFFFF;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #E2E2E2;
}

.history-main-title {
  font-size: 1.85rem;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.history-text-content p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: #333333;
  margin-bottom: 1.75rem;
  text-align: justify;
}

/* History Sidebar Cards (Matching Reference Screenshots 1, 2, 3) */
.history-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-photo-card {
  background-color: #FFFFFF;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid #E2E2E2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.sidebar-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.sidebar-photo-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.lightbox-hint {
  text-align: center;
  padding: 0.5rem;
  background-color: #FDFDFD;
  border-top: 1px solid #EEEEEE;
}

.lightbox-hint span {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 700;
  color: #777777;
  letter-spacing: 1px;
}

.sidebar-timing-box {
  background-color: #F8F8F8;
  border: 1px solid #EAEAEA;
  border-radius: var(--border-radius);
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.sidebar-timing-box h3 {
  color: var(--accent-color);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.sidebar-timing-box p {
  font-size: 0.98rem;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* Bottom Festival Photo Gallery Row */
.bottom-festival-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
}

.festival-photo-card {
  display: block;
  height: 280px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border: 1px solid #E2E2E2;
  transition: var(--transition);
}

.festival-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.festival-photo-card:hover img {
  transform: scale(1.06);
}

/* Gallery Page Layout */
.gallery-section {
  padding: 4rem 0;
}

.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  background-color: #FFFFFF;
  border: 1px solid #DDDDDD;
  color: var(--text-main);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-latin);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
  background-color: var(--accent-color);
  color: #FFFFFF;
  border-color: var(--accent-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.gallery-card {
  background-color: #FFFFFF;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.gallery-card-thumb {
  height: 240px;
  overflow: hidden;
  position: relative;
}

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

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

.gallery-card-info {
  padding: 1.25rem;
}

.gallery-card-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.gallery-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal-content {
  max-width: 85vw;
  max-height: 85vh;
  position: relative;
  text-align: center;
}

.lightbox-modal-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #FFFFFF;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
}

/* Contact Page Layout */
.contact-page-section {
  padding: 4rem 0;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.contact-form-card {
  background-color: #FFFFFF;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #CCCCCC;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(179, 39, 30, 0.15);
}

.btn-submit {
  background-color: var(--accent-color);
  color: #FFFFFF;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--accent-color-dark);
  box-shadow: 0 6px 20px rgba(179, 39, 30, 0.35);
}

.contact-info-red-card {
  background-color: var(--accent-color);
  color: #FFFFFF;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
}

.contact-info-red-card h2, .contact-info-red-card h3 {
  color: #FFFFFF;
}

.contact-info-red-card p {
  color: rgba(255,255,255,0.95);
  font-size: 1.05rem;
}

.form-notice {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-notice.success {
  background-color: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.form-notice.error {
  background-color: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE FIRST & TABLET REFLOW)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid, .cards-grid, .history-grid-layout, .contact-page-grid {
    grid-template-columns: 1fr !important;
  }
  .special-days-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .darshan-route-grid, .contact-strip-grid, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .history-teaser-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .primary-nav-desktop {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .special-days-grid, .darshan-route-grid, .contact-strip-grid, .gallery-grid, .bottom-festival-gallery {
    grid-template-columns: 1fr !important;
  }
  .hero-content h1 {
    font-size: 1.85rem;
  }
  .hero-image-frame img {
    height: 280px;
  }
  .history-story-card {
    padding: 1.5rem;
  }
  .history-main-title {
    font-size: 1.5rem;
  }
  .history-text-content p {
    font-size: 1rem;
    line-height: 1.8;
  }
  .page-hero-banner h1 {
    font-size: 1.8rem;
  }
}
