/*
Theme Name: Shirdi Sai Sansthan
Theme URI: https://shirdisansthan.org.in/
Description: Custom Astra child theme for Shirdi Sai Sansthan — saffron / gold / cream temple aesthetic with sai_ shortcode system.
Author: Shirdi Sansthan Editorial
Template: astra
Version: 1.0.12
Text Domain: shirdi-sai-child
*/

/* =====================================================
 * 1. DESIGN TOKENS
 * ===================================================== */
:root {
  --sai-maroon: #7a0c20;
  --sai-maroon-dark: #5d0817;
  --sai-saffron: #d97706;
  --sai-saffron-light: #f59e0b;
  --sai-gold: #c19a3e;
  --sai-cream: #fff8ec;
  --sai-cream-soft: #fff3da;
  --sai-ink: #1f1a17;
  --sai-ink-soft: #3b342e;
  --sai-muted: #6b6357;
  --sai-line: #e7d8b8;
  --sai-shadow-sm: 0 4px 14px rgba(122, 12, 32, 0.06);
  --sai-shadow: 0 10px 30px rgba(122, 12, 32, 0.08);
  --sai-shadow-lg: 0 24px 50px rgba(122, 12, 32, 0.14);
  --sai-radius: 14px;
  --sai-radius-sm: 8px;
  --sai-radius-lg: 20px;
}

/* =====================================================
 * 2. GLOBALS
 * ===================================================== */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  font-family:
    "Inter",
    "Mukta",
    "Noto Sans",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--sai-ink);
  background: #fffaf0;
  font-size: 17px;
  line-height: 1.7;
}
h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
  font-family: "Mukta", "Tiro Devanagari Hindi", "Noto Serif", Georgia, serif;
  color: var(--sai-maroon);
  letter-spacing: 0.2px;
  line-height: 1.25;
}
h1 {
  font-weight: 800;
}
h2 {
  font-weight: 700;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
h3 {
  font-weight: 700;
  color: var(--sai-maroon-dark);
}
a {
  color: var(--sai-maroon);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--sai-saffron);
}
img {
  max-width: 100%;
  height: auto;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
::selection {
  background: var(--sai-saffron);
  color: #fff8ec;
}

/* =====================================================
 * 3. TOP NOTIFICATION BAR
 * ===================================================== */
.sai-topbar {
  background: linear-gradient(
    90deg,
    var(--sai-maroon) 0%,
    var(--sai-maroon-dark) 100%
  );
  color: #fff8ec;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: 0.4px;
}
.sai-topbar strong {
  color: var(--sai-gold);
}
.sai-topbar a {
  color: #fff8ec;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================================================
 * 4. HEADER + NAVIGATION
 * ===================================================== */
.site-header,
.ast-primary-header-bar,
.main-header-bar {
  background: #fff8ec !important;
  border-bottom: 3px solid var(--sai-gold) !important;
  box-shadow: 0 2px 12px rgba(122, 12, 32, 0.06) !important;
  transition: padding 0.2s;
}
.ast-primary-header-bar .ast-container,
.main-header-bar .ast-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  max-width: 1220px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  min-height: 84px;
}
.ast-site-identity {
  padding: 6px 0 !important;
  flex: 0 0 auto;
}
.site-branding,
.ast-site-branding-direction-horizontal {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 0 0 auto !important;
}

/* Logo size constraint (kills Astra default 512px) */
.custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
}
.custom-logo,
.ast-logo-svg-image .custom-logo,
.transparent-custom-logo .custom-logo {
  max-width: 70px !important;
  width: 70px !important;
  max-height: 70px !important;
  height: auto !important;
  display: inline-block !important;
  vertical-align: middle !important;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(122, 12, 32, 0.18);
}
/* Hide site title text when logo present */
.wp-custom-logo .site-title,
.wp-custom-logo .site-description,
.ast-site-title-wrap,
.ast-header-break-point .site-description {
  display: none !important;
}

/* Main menu */
.ast-builder-menu,
.main-header-menu,
.main-navigation,
.ast-builder-menu-1,
#site-navigation {
  flex: 1 1 auto !important;
  justify-content: flex-end !important;
  display: flex !important;
  align-items: center !important;
}
.main-header-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.main-header-menu > li {
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
  position: relative;
}
.main-header-menu > li > a {
  color: var(--sai-ink) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 12.5px !important;
  letter-spacing: 0.7px !important;
  font-family: "Mukta", sans-serif !important;
  padding: 11px 13px !important;
  white-space: nowrap !important;
  border-radius: 6px;
  transition: all 0.15s;
}
.main-header-menu > li > a:hover,
.main-header-menu > li.current-menu-item > a,
.main-header-menu > li.current-menu-ancestor > a {
  color: var(--sai-maroon) !important;
  background: var(--sai-cream-soft) !important;
}
.menu-item-has-children > a::after {
  content: "\25BE";
  margin-left: 5px;
  font-size: 10px;
  color: var(--sai-saffron);
}

/* Dropdown */
.main-header-menu .sub-menu {
  background: #fff !important;
  border: 1px solid var(--sai-line) !important;
  border-top: 3px solid var(--sai-gold) !important;
  border-radius: 0 0 12px 12px !important;
  min-width: 280px !important;
  padding: 6px 0 !important;
  box-shadow: 0 18px 36px rgba(122, 12, 32, 0.18) !important;
  margin-top: 0 !important;
}
.main-header-menu .sub-menu li {
  list-style: none !important;
  display: block !important;
}
.main-header-menu .sub-menu li a {
  color: var(--sai-ink) !important;
  font-size: 13.5px !important;
  text-transform: none !important;
  padding: 11px 18px !important;
  letter-spacing: 0.1px !important;
  white-space: normal !important;
  display: block !important;
  border-bottom: 1px dashed var(--sai-line);
  font-weight: 500 !important;
}
.main-header-menu .sub-menu li:last-child a {
  border-bottom: none !important;
}
.main-header-menu .sub-menu li a:hover {
  background: var(--sai-cream-soft) !important;
  color: var(--sai-maroon) !important;
}

/* Mobile */
@media (max-width: 921px) {
  .menu-toggle,
  .ast-mobile-menu-buttons {
    display: inline-flex !important;
  }
  .main-header-menu,
  .ast-builder-menu-mobile .main-header-menu {
    display: none !important;
  }
  .ast-mobile-header-active .main-header-menu {
    display: block !important;
    width: 100% !important;
    background: #fff8ec !important;
    border-top: 2px solid var(--sai-gold) !important;
    padding: 14px 0 !important;
  }
  .ast-mobile-header-active .main-header-menu > li {
    display: block !important;
    width: 100% !important;
  }
  .ast-mobile-header-active .main-header-menu > li > a {
    padding: 14px 22px !important;
    font-size: 14.5px !important;
  }
}
@media (min-width: 922px) {
  .menu-toggle,
  .ast-mobile-menu-buttons {
    display: none !important;
  }
}

/* Astra title bar + entry header hide */
.ast-archive-description,
.ast-single-post-banner,
.ast-blog-single-element.ast-blog-meta-container {
  display: none !important;
}
.home .entry-header,
.home .ast-archive-description {
  display: none !important;
}

/* =====================================================
 * 5. BREADCRUMBS
 * ===================================================== */
.sai-breadcrumbs-bar {
  background: var(--sai-cream-soft);
  border-bottom: 1px solid var(--sai-line);
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--sai-muted);
}
.sai-breadcrumbs-bar p {
  margin: 0;
}
.sai-breadcrumbs-bar .sai-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.sai-breadcrumbs-bar a {
  color: var(--sai-maroon);
  font-weight: 600;
}
.sai-breadcrumbs-bar a:hover {
  color: var(--sai-saffron);
}
.sai-breadcrumbs-bar .breadcrumb_last {
  color: var(--sai-ink);
  font-weight: 600;
}

/* =====================================================
 * 6. HERO (FULL-BLEED)
 * ===================================================== */
.sai-hero {
  position: relative;
  min-height: 640px;
  height: 78vh;
  max-height: 840px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff8ec;
  overflow: hidden;
  border-bottom: 4px solid var(--sai-gold);
  /* Full bleed: break out of any constraint */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
}
.sai-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: saturate(1.1) brightness(0.94);
  transform: scale(1.02);
}
.sai-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(31, 17, 10, 0.55) 0%,
    rgba(60, 25, 15, 0.62) 55%,
    rgba(122, 50, 18, 0.74) 100%
  );
}
.sai-hero-inner {
  position: relative;
  z-index: 2;
  padding: 40px 22px;
  max-width: 920px;
  animation: vdFadeUp 0.9s ease-out;
}
@keyframes vdFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sai-hero h1 {
  color: #fff8ec;
  font-size: clamp(34px, 5.4vw, 64px);
  margin: 0 0 0.35em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
  font-weight: 800;
}
.sai-hero .sai-sanskrit {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--sai-gold);
  font-family: "Tiro Devanagari Hindi", serif;
  margin-bottom: 0.6em;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.sai-hero .sai-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  color: #fff8ec;
  max-width: 760px;
  margin: 0 auto 1.4em;
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  opacity: 0.95;
}
.sai-hero .sai-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}
.sai-hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.6;
  animation: vdBounce 2s ease-in-out infinite;
}
.sai-hero-scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid var(--sai-gold);
  border-radius: 14px;
  position: relative;
}
.sai-hero-scroll-hint span::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--sai-gold);
  border-radius: 2px;
  animation: vdScrollDot 2s ease-in-out infinite;
}
@keyframes vdScrollDot {
  0%,
  100% {
    opacity: 1;
    top: 6px;
  }
  50% {
    opacity: 0;
    top: 20px;
  }
}
@keyframes vdBounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* Inner-page hero shorter */
:not(.home) .sai-hero {
  min-height: 440px;
  height: 54vh;
  max-height: 580px;
}
:not(.home) .sai-hero h1 {
  font-size: clamp(28px, 4.4vw, 48px);
}

/* =====================================================
 * 7. BUTTONS
 * ===================================================== */
.sai-btn,
.wp-block-button__link,
a.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--sai-saffron);
  color: #fff8ec !important;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.6px;
  border: 2px solid transparent;
  text-transform: uppercase;
  font-size: 13.5px;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.35);
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  font-family: "Mukta", sans-serif;
  white-space: nowrap;
  text-decoration: none !important;
}
.sai-btn:hover,
.sai-btn:focus {
  text-decoration: none !important;
}
.sai-btn:hover,
.wp-block-button__link:hover {
  background: var(--sai-maroon);
  color: #fff8ec !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(122, 12, 32, 0.4);
}
.sai-btn.sai-btn-primary {
  background: var(--sai-saffron);
}
.sai-btn.sai-btn-outline {
  background: transparent;
  border-color: var(--sai-gold);
  color: var(--sai-gold) !important;
  box-shadow: 0 4px 12px rgba(193, 154, 62, 0.18);
}
.sai-btn.sai-btn-outline:hover {
  background: var(--sai-gold);
  color: var(--sai-maroon) !important;
  border-color: var(--sai-gold);
}

/* =====================================================
 * 8. INFO STRIP
 * ===================================================== */
.sai-strip {
  background: linear-gradient(180deg, var(--sai-cream-soft), #fff8ec);
  padding: 28px 16px;
  border-bottom: 1px solid var(--sai-line);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.sai-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.sai-strip-item {
  padding: 8px 4px;
  border-right: 1px dashed var(--sai-line);
}
.sai-strip-item:last-child {
  border-right: none;
}
.sai-strip-item .sai-strip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--sai-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.sai-strip-item .sai-strip-value {
  font-weight: 700;
  color: var(--sai-maroon);
  font-size: 17px;
}
@media (max-width: 768px) {
  .sai-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .sai-strip-item {
    border-right: none;
    border-bottom: 1px dashed var(--sai-line);
    padding-bottom: 10px;
  }
  .sai-strip-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

/* =====================================================
 * 9. SECTIONS
 * ===================================================== */
.sai-section {
  padding: 64px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}
.sai-section > .sai-container,
.sai-section > .sai-cards,
.sai-section > p,
.sai-section > h2,
.sai-section > h3,
.sai-section > div:not(.sai-festival) {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
.sai-section + .sai-section {
  margin-top: 0;
}
.sai-section:nth-of-type(odd) {
  background: #fffaf0;
}
.sai-section:nth-of-type(even) {
  background: linear-gradient(180deg, #fff8ec 0%, #fffaf0 100%);
}
.sai-section-title {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--sai-maroon);
  margin-bottom: 10px;
  font-weight: 800;
}
.sai-section-title::before {
  content: "\0950";
  display: block;
  color: var(--sai-saffron);
  font-size: 34px;
  font-family: "Tiro Devanagari Hindi", serif;
  line-height: 1;
  margin-bottom: 8px;
}
.sai-section-lede {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
  font-size: 17px;
  color: var(--sai-ink-soft);
  line-height: 1.7;
}

/* =====================================================
 * 10. CARDS
 * ===================================================== */
.sai-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 992px) {
  .sai-cards {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (min-width: 600px) and (max-width: 991px) {
  .sai-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 599px) {
  .sai-cards {
    grid-template-columns: 1fr !important;
  }
}

.sai-card {
  background: #fff;
  border: 1px solid var(--sai-line);
  border-radius: var(--sai-radius);
  overflow: hidden;
  box-shadow: var(--sai-shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s,
    opacity 0.5s;
  position: relative;
}
/* Reveal-on-scroll ONLY when JS is loaded (progressive enhancement).
   Without .js class on <html>, components stay visible by default. */
html.js .sai-card,
html.js .sai-festival,
html.js .sai-factbox {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out,
    box-shadow 0.25s;
}
html.js .sai-card.sai-in,
html.js .sai-festival.sai-in,
html.js .sai-factbox.sai-in {
  opacity: 1;
  transform: translateY(0);
}
.sai-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sai-shadow-lg);
  border-color: var(--sai-gold);
}
.sai-card-imgwrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--sai-cream-soft), var(--sai-cream));
}
.sai-card-imgwrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 60%,
    rgba(31, 26, 23, 0.32) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.sai-card:hover .sai-card-imgwrap::after {
  opacity: 1;
}
.sai-card-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.sai-card:hover .sai-card-imgwrap img {
  transform: scale(1.06);
}
.sai-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--sai-maroon);
  color: #fff8ec;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
}

.sai-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sai-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--sai-maroon);
}
.sai-card h3 a {
  color: var(--sai-maroon);
  text-decoration: none;
}
.sai-card h3 a:hover {
  color: var(--sai-saffron);
  text-decoration: none;
}
.sai-card p {
  margin: 0 0 18px;
  color: var(--sai-ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
}
.sai-card-link {
  color: var(--sai-saffron);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.8px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sai-card-link:hover {
  color: var(--sai-maroon);
}
.sai-card-link span {
  transition: transform 0.2s;
}
.sai-card-link:hover span {
  transform: translateX(3px);
}

/* =====================================================
 * 11. FACT BOX + FESTIVAL BANNER
 * ===================================================== */
.sai-factbox {
  background: var(--sai-cream);
  border-left: 5px solid var(--sai-saffron);
  padding: 20px 24px;
  border-radius: var(--sai-radius-sm);
  margin: 26px 0;
  font-size: 15.5px;
  line-height: 1.7;
  box-shadow: var(--sai-shadow-sm);
}
.sai-factbox strong {
  color: var(--sai-maroon);
}

.sai-festival {
  background: linear-gradient(
    120deg,
    var(--sai-maroon) 0%,
    var(--sai-saffron) 100%
  );
  color: #fff8ec;
  padding: 42px 32px;
  border-radius: var(--sai-radius-lg);
  text-align: center;
  margin: 30px auto;
  max-width: 1148px;
  box-shadow: var(--sai-shadow-lg);
  position: relative;
  overflow: hidden;
}
.sai-festival::before {
  content: "\0950";
  position: absolute;
  top: 10px;
  right: 24px;
  font-family: "Tiro Devanagari Hindi", serif;
  font-size: 64px;
  color: rgba(255, 248, 236, 0.18);
  line-height: 1;
}
.sai-festival h2 {
  color: #fff8ec;
  margin: 0 0 10px;
  border: none;
  font-size: clamp(22px, 2.6vw, 32px);
}
.sai-festival p {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  opacity: 0.95;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.55;
}

/* =====================================================
 * 12. TABLES
 * ===================================================== */
.sai-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  box-shadow: var(--sai-shadow);
  border-radius: var(--sai-radius);
  overflow: hidden;
  background: #fff;
}
.sai-table thead {
  background: var(--sai-maroon);
  color: #fff8ec;
}
.sai-table th,
.sai-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--sai-line);
}
.sai-table th {
  font-weight: 700;
  font-family: "Mukta", sans-serif;
  letter-spacing: 0.3px;
}
.sai-table tbody tr:nth-child(even) {
  background: var(--sai-cream);
}
.sai-table tbody tr:hover {
  background: var(--sai-cream-soft);
}
.sai-table tbody tr:last-child td {
  border-bottom: none;
}

/* Scrollable on mobile */
.entry-content table,
.entry-content .sai-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .entry-content table,
  .entry-content .sai-table {
    display: table;
  }
}

/* =====================================================
 * 13. SCHEDULE LIST
 * ===================================================== */
.sai-schedule {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.sai-schedule li {
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px dashed var(--sai-line);
  font-size: 15.5px;
}
.sai-schedule li:last-child {
  border: none;
}
.sai-schedule li strong {
  color: var(--sai-maroon);
}
.sai-schedule li .sai-time {
  font-weight: 700;
  color: var(--sai-saffron);
  font-family: Menlo, Consolas, monospace;
}

/* =====================================================
 * 14. ENTRY CONTENT (POSTS + PAGES)
 * ===================================================== */
.entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--sai-ink-soft);
}
.entry-content p {
  margin-bottom: 1.2em;
}
.entry-content ul,
.entry-content ol {
  margin: 1em 0 1.5em 1.5em;
}
.entry-content li {
  margin-bottom: 0.5em;
}
.entry-content blockquote {
  border-left: 5px solid var(--sai-saffron);
  background: var(--sai-cream);
  padding: 18px 26px;
  margin: 1.8em 0;
  font-style: italic;
  border-radius: var(--sai-radius-sm);
}
.entry-content img {
  border-radius: 12px;
  box-shadow: var(--sai-shadow);
}
.entry-content figure {
  margin: 1.4em 0;
}
.entry-content figcaption {
  text-align: center;
  font-size: 13.5px;
  color: var(--sai-muted);
  font-style: italic;
  margin-top: 8px;
}

/* Home: zero entry-content padding */
.home #primary,
.home .ast-container,
.page-template-default.home .site-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.home .entry-content,
.home .ast-no-sidebar .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
.home main#main,
.home .site-main {
  padding: 0 !important;
}
.home .ast-container-fluid > .ast-container,
.home .site-content > .ast-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}

/* Inner page: readable column */
body:not(.home) .entry-content > p,
body:not(.home) .entry-content > h2,
body:not(.home) .entry-content > h3,
body:not(.home) .entry-content > h4,
body:not(.home) .entry-content > ul,
body:not(.home) .entry-content > ol,
body:not(.home) .entry-content > blockquote,
body:not(.home) .entry-content > figure,
body:not(.home) .entry-content > .sai-table,
body:not(.home) .entry-content > table,
body:not(.home) .entry-content > .sai-factbox {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.entry-content > .sai-hero,
.entry-content > .sai-strip,
.entry-content > .sai-section,
.entry-content > .sai-festival {
  max-width: none;
}

/* Inner-page H2 has bottom rule */
body:not(.home) .entry-content > h2 {
  border-bottom: 2px solid var(--sai-gold);
  padding-bottom: 0.35em;
  margin-top: 2.2em;
}

/* Featured image at top of inner pages — none, sai_hero handles it */

/* =====================================================
 * 15. STICKY MOBILE CTA BAR
 * ===================================================== */
.sai-stickybar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff8ec;
  border-top: 2px solid var(--sai-gold);
  box-shadow: 0 -8px 24px rgba(122, 12, 32, 0.18);
  padding: 6px 4px;
}
.sai-stickybar a {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--sai-maroon);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.sai-stickybar a span {
  font-size: 20px;
  color: var(--sai-saffron);
}
.sai-stickybar a:hover {
  background: var(--sai-cream-soft);
  color: var(--sai-maroon);
}
@media (max-width: 720px) {
  .sai-stickybar {
    display: flex;
  }
  body {
    padding-bottom: 64px;
  }
}

/* =====================================================
 * SCROLL-PROGRESS BAR
 * ===================================================== */
.sai-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--sai-saffron), var(--sai-maroon));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* =====================================================
 * STICKY HEADER ON SCROLL
 * ===================================================== */
body.sai-scrolled .site-header,
body.sai-scrolled .ast-primary-header-bar,
body.sai-scrolled .main-header-bar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  animation: vdSlideDown 0.25s ease-out;
  background: rgba(255, 248, 236, 0.97) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(122, 12, 32, 0.12) !important;
}
body.sai-scrolled .ast-primary-header-bar .ast-container,
body.sai-scrolled .main-header-bar .ast-container {
  min-height: 64px !important;
}
body.sai-scrolled .custom-logo {
  max-width: 50px !important;
  width: 50px !important;
}
body.sai-scrolled .sai-topbar {
  display: none;
}
@keyframes vdSlideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* =====================================================
 * META BAR (updated/reviewed/verified)
 * ===================================================== */
.sai-meta-bar {
  background: var(--sai-cream-soft);
  border-left: 4px solid var(--sai-gold);
  padding: 12px 18px;
  margin: 0 auto 32px;
  max-width: 880px;
  font-size: 13.5px;
  color: var(--sai-ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-radius: 6px;
  line-height: 1.45;
}
.sai-meta-bar .sai-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sai-meta-bar strong {
  color: var(--sai-maroon);
  font-weight: 700;
}

/* =====================================================
 * AUTHOR BIO (blog posts)
 * ===================================================== */
.sai-author-bio {
  display: flex;
  gap: 18px;
  background: linear-gradient(
    135deg,
    var(--sai-cream) 0%,
    var(--sai-cream-soft) 100%
  );
  border: 1px solid var(--sai-line);
  border-left: 5px solid var(--sai-maroon);
  border-radius: var(--sai-radius);
  padding: 22px 26px;
  margin: 48px auto 36px;
  max-width: 880px;
  box-shadow: var(--sai-shadow-sm);
}
.sai-author-bio img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 3px solid var(--sai-gold);
  background: #fff;
  object-fit: contain;
  padding: 4px;
}
.sai-author-bio h4 {
  margin: 0 0 8px;
  color: var(--sai-maroon);
  font-size: 17px;
}
.sai-author-bio p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--sai-ink-soft);
}
.sai-author-bio a {
  color: var(--sai-maroon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================================================
 * IN-CONTENT CTA BOX
 * ===================================================== */
.sai-cta-box {
  background: linear-gradient(135deg, var(--sai-maroon), var(--sai-saffron));
  color: #fff8ec;
  padding: 28px 30px;
  border-radius: var(--sai-radius);
  margin: 32px auto;
  max-width: 880px;
  text-align: center;
  box-shadow: var(--sai-shadow);
}
.sai-cta-box h3 {
  color: #fff8ec;
  margin: 0 0 10px;
  font-size: 22px;
}
.sai-cta-box p {
  margin: 0 0 18px;
  font-size: 15.5px;
  opacity: 0.95;
}
.sai-cta-box .sai-btn {
  background: #fff8ec;
  color: var(--sai-maroon) !important;
  border-color: #fff8ec;
}
.sai-cta-box .sai-btn:hover {
  background: var(--sai-ink);
  color: #fff8ec !important;
}

/* =====================================================
 * BLOG ARCHIVE / POSTS LIST
 * ===================================================== */
.blog .ast-row,
.archive .ast-row {
  max-width: 1180px;
  margin: 0 auto;
}
.blog article.post,
.archive article.post {
  background: #fff;
  border: 1px solid var(--sai-line);
  border-radius: var(--sai-radius);
  padding: 0;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--sai-shadow-sm);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.blog article.post:hover,
.archive article.post:hover {
  transform: translateY(-3px);
  box-shadow: var(--sai-shadow);
}
.blog .post-thumb-img-content,
.archive .post-thumb-img-content {
  margin: 0;
}
.blog .post-thumb-img-content img,
.archive .post-thumb-img-content img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog .entry-content-wrapper,
.archive .entry-content-wrapper {
  padding: 22px 26px;
}
.blog .entry-title,
.archive .entry-title {
  font-size: 23px;
  margin: 0 0 8px;
}
.blog .entry-title a,
.archive .entry-title a {
  color: var(--sai-maroon);
}
.blog .entry-title a:hover,
.archive .entry-title a:hover {
  color: var(--sai-saffron);
}

/* =====================================================
 * RELATED POSTS (YARPP)
 * ===================================================== */
.yarpp-related,
.related-posts {
  margin: 48px auto;
  max-width: 1180px;
}
.yarpp-related h3,
.related-posts h3 {
  text-align: center;
  font-size: 28px;
  color: var(--sai-maroon);
  margin-bottom: 24px;
}

/* =====================================================
 * SEARCH FORM
 * ===================================================== */
.sai-search-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.sai-search-form input[type="search"] {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--sai-line);
  border-radius: 999px;
  font-size: 14.5px;
  background: #fff;
  outline: none;
}
.sai-search-form input[type="search"]:focus {
  border-color: var(--sai-gold);
  box-shadow: 0 0 0 3px rgba(193, 154, 62, 0.25);
}
.sai-search-form button {
  padding: 10px 22px;
  background: var(--sai-maroon);
  color: #fff8ec;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s;
}
.sai-search-form button:hover {
  background: var(--sai-saffron);
}

/* =====================================================
 * 16. FOOTER (DARK)
 * ===================================================== */
.sai-footer {
  background: linear-gradient(180deg, #2a1f1a 0%, #1f1a17 60%, #0e0a07 100%);
  color: #cfc1a1;
  padding: 60px 16px 0;
  margin-top: 60px;
  border-top: 4px solid var(--sai-gold);
}
.sai-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .sai-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .sai-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.sai-footer-col h4 {
  color: #fff8ec;
  font-family: "Mukta", serif;
  font-size: 16px;
  letter-spacing: 0.5px;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 10px;
}
.sai-footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--sai-gold);
  border-radius: 2px;
}
.sai-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sai-footer-col li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
}
.sai-footer-col a {
  color: #cfc1a1;
  text-decoration: none;
  transition: color 0.15s;
}
.sai-footer-col a:hover {
  color: var(--sai-gold);
  text-decoration: none;
}
.sai-footer-col p {
  color: #a59478;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.sai-footer-brand .sai-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.sai-footer-brand .sai-footer-logo-row img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--sai-gold);
}
.sai-footer-brand strong {
  color: #fff8ec;
  font-family: "Mukta", serif;
  font-size: 18px;
  display: block;
}
.sai-footer-brand span {
  color: var(--sai-gold);
  font-size: 12.5px;
  display: block;
  letter-spacing: 0.5px;
}
.sai-footer-helpline .sai-footer-phone {
  display: inline-block;
  background: var(--sai-maroon);
  color: #fff8ec !important;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  box-shadow: 0 6px 18px rgba(122, 12, 32, 0.4);
}
.sai-footer-helpline .sai-footer-phone:hover {
  background: var(--sai-saffron);
  color: #fff8ec !important;
}
.sai-footer-helpline .sai-footer-tag {
  font-size: 11.5px;
  color: var(--sai-gold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sai-footer-bottom {
  border-top: 1px solid #3a2e26;
  margin-top: 48px;
  padding: 18px 0 22px;
  text-align: center;
  font-size: 12.5px;
  color: #7d6b54;
}
.sai-footer-bottom p {
  margin: 4px 0;
  color: #7d6b54;
}
.sai-footer-bottom a {
  color: var(--sai-gold);
  text-decoration: none;
}
.sai-footer-bottom a:hover {
  color: #fff8ec;
}

/* Kill Astra small footer if anything sneaks through */
.ast-small-footer,
.site-info,
.ast-builder-html-element {
  display: none !important;
}

/* =====================================================
 * 17. WIDGETS (SIDEBAR)
 * ===================================================== */
.widget-area .widget {
  background: #fff;
  border: 1px solid var(--sai-line);
  border-radius: var(--sai-radius);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: var(--sai-shadow-sm);
}
.widget-title {
  color: var(--sai-maroon);
  font-size: 17px;
  border-bottom: 2px solid var(--sai-gold);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

/* =====================================================
 * 18. TOC, AUTHOR BOX, MISC
 * ===================================================== */
.ez-toc-container,
#ez-toc-container {
  background: var(--sai-cream) !important;
  border: 1px solid var(--sai-line) !important;
  border-left: 5px solid var(--sai-saffron) !important;
  border-radius: var(--sai-radius-sm) !important;
  box-shadow: none !important;
}
.ez-toc-title {
  color: var(--sai-maroon) !important;
  font-family: "Mukta", serif;
}

.simple-author-box,
.author-box {
  background: var(--sai-cream-soft);
  border-left: 5px solid var(--sai-maroon);
  border-radius: var(--sai-radius-sm);
  padding: 20px 26px;
  margin: 36px 0;
  font-size: 14.5px;
}

/* =====================================================
 * 19. ACCESSIBILITY + PRINT
 * ===================================================== */
a:focus-visible,
button:focus-visible,
.sai-btn:focus-visible {
  outline: 3px solid var(--sai-gold);
  outline-offset: 3px;
}
.skip-link {
  background: var(--sai-maroon);
  color: #fff8ec;
  font-weight: 700;
}
@media print {
  .sai-topbar,
  .site-header,
  .sai-footer,
  .sai-stickybar,
  .sai-cta,
  .widget-area {
    display: none;
  }
  body {
    background: #fff;
    padding-bottom: 0;
  }
}

/* =====================================================
 * 20. MOBILE TUNING
 * ===================================================== */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .sai-section {
    padding: 44px 0;
  }
  .sai-section-title {
    font-size: 24px;
  }
  .sai-section-title::before {
    font-size: 26px;
  }
  .sai-section-lede {
    font-size: 15.5px;
    margin-bottom: 28px;
  }
  .sai-hero {
    min-height: 520px;
    height: auto;
  }
  .sai-hero h1 {
    font-size: 30px;
  }
  .sai-hero .sai-sub {
    font-size: 14.5px;
  }
  .sai-hero-inner {
    padding: 30px 18px;
  }
  .sai-card-imgwrap {
    aspect-ratio: 16/9;
  }
  .sai-card-body {
    padding: 18px 18px 16px;
  }
  .sai-card h3 {
    font-size: 17.5px;
  }
  .sai-festival {
    padding: 30px 22px;
    margin: 24px 14px;
    border-radius: var(--sai-radius);
  }
  .sai-footer {
    padding: 48px 16px 0;
    margin-top: 40px;
  }
  .sai-footer-inner {
    gap: 28px;
  }
}

/* ===================================================================
 * v1.3.0 — MODERN COMPONENTS
 * =================================================================== */

/* -------- STATS (animated counters) -------- */
.sai-stats {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 70px 16px;
  background:
    radial-gradient(circle at 0% 100%, rgba(217, 119, 6, 0.1), transparent 50%),
    radial-gradient(
      circle at 100% 0%,
      rgba(122, 12, 32, 0.08),
      transparent 50%
    ),
    linear-gradient(180deg, #fff8ec 0%, #fffaf0 100%);
  position: relative;
  overflow: hidden;
}
.sai-stats::before,
.sai-stats::after {
  content: "\0950";
  position: absolute;
  font-family: "Tiro Devanagari Hindi", serif;
  font-size: 200px;
  color: rgba(122, 12, 32, 0.04);
  line-height: 1;
  pointer-events: none;
}
.sai-stats::before {
  top: -30px;
  left: -10px;
}
.sai-stats::after {
  bottom: -60px;
  right: -10px;
  transform: rotate(180deg);
}
.sai-stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.sai-stats-title {
  text-align: center;
  color: var(--sai-maroon);
  margin: 0 0 36px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}
.sai-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 768px) {
  .sai-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.sai-stat {
  background: #fff;
  border: 1px solid var(--sai-line);
  border-radius: var(--sai-radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--sai-shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    opacity 0.6s,
    transform 0.6s,
    box-shadow 0.25s,
    border-color 0.25s;
}
html.js .sai-stat {
  opacity: 0;
  transform: translateY(20px);
}
html.js .sai-stat.sai-in {
  opacity: 1;
  transform: translateY(0);
}
.sai-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sai-saffron), var(--sai-maroon));
}
.sai-stat:hover {
  box-shadow: var(--sai-shadow);
  border-color: var(--sai-gold);
  transform: translateY(-4px);
}
.sai-stat-value {
  font-family: "Mukta", serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--sai-maroon);
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.sai-stat-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sai-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* -------- SPLIT (image + text) -------- */
.sai-split {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px 16px;
  background: #fffaf0;
  transition:
    opacity 0.7s,
    transform 0.7s;
}
html.js .sai-split {
  opacity: 0;
  transform: translateY(15px);
}
html.js .sai-split.sai-in {
  opacity: 1;
  transform: translateY(0);
}
.sai-split-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sai-split-reverse .sai-split-inner {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}
.sai-split-reverse .sai-split-inner > * {
  direction: ltr;
}
@media (max-width: 768px) {
  .sai-split {
    padding: 50px 16px;
  }
  .sai-split-inner,
  .sai-split-reverse .sai-split-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }
}
.sai-split-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--sai-radius-lg);
  overflow: hidden;
  box-shadow: var(--sai-shadow-lg);
}
.sai-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.sai-split-media:hover img {
  transform: scale(1.05);
}
.sai-split-decor {
  position: absolute;
  top: -16px;
  left: -16px;
  right: 24px;
  bottom: 24px;
  border: 2px solid var(--sai-gold);
  border-radius: var(--sai-radius-lg);
  z-index: -1;
  opacity: 0.6;
}
.sai-split-reverse .sai-split-decor {
  top: -16px;
  right: -16px;
  left: 24px;
  bottom: 24px;
}
.sai-split-tagline {
  display: inline-block;
  background: var(--sai-cream);
  color: var(--sai-maroon);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--sai-gold);
  margin-bottom: 14px;
}
.sai-split-text h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--sai-maroon);
  margin: 0 0 18px;
  border: none;
  font-weight: 800;
  line-height: 1.2;
}
.sai-split-body {
  color: var(--sai-ink-soft);
  font-size: 16.5px;
  line-height: 1.7;
}
.sai-split-body p {
  margin: 0 0 14px;
}
.sai-split-body p:last-child {
  margin: 0;
}

/* -------- STEPS (numbered process) -------- */
.sai-steps-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px 16px;
  background: linear-gradient(180deg, #fff3da 0%, #fff8ec 100%);
}
.sai-steps {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.sai-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--sai-gold) 0,
    var(--sai-gold) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 0;
}
@media (max-width: 768px) {
  .sai-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .sai-steps::before {
    display: none;
  }
}
.sai-step {
  background: #fff;
  border: 1px solid var(--sai-line);
  border-radius: var(--sai-radius);
  padding: 30px 22px 22px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--sai-shadow-sm);
  transition:
    opacity 0.5s,
    transform 0.5s,
    box-shadow 0.25s;
}
html.js .sai-step {
  opacity: 0;
  transform: translateY(15px);
}
html.js .sai-step.sai-in {
  opacity: 1;
  transform: translateY(0);
}
.sai-step:hover {
  box-shadow: var(--sai-shadow);
}
.sai-step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: -52px auto 16px;
  background: linear-gradient(135deg, var(--sai-saffron), var(--sai-maroon));
  color: #fff8ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Mukta", serif;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(122, 12, 32, 0.3);
  border: 3px solid #fff;
}
.sai-step h3 {
  font-size: 17.5px;
  color: var(--sai-maroon);
  margin: 0 0 8px;
}
.sai-step h3 a {
  color: inherit;
}
.sai-step p {
  font-size: 14.5px;
  color: var(--sai-ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* -------- TODAY WIDGET -------- */
.sai-today {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 16px;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
html.js .sai-today {
  opacity: 0;
  transform: translateY(10px);
}
html.js .sai-today.sai-in {
  opacity: 1;
  transform: translateY(0);
}
.sai-today-inner {
  background: linear-gradient(135deg, #fff 0%, var(--sai-cream-soft) 100%);
  border: 1px solid var(--sai-line);
  border-left: 5px solid var(--sai-saffron);
  border-radius: var(--sai-radius);
  padding: 22px 26px;
  box-shadow: var(--sai-shadow);
}
.sai-today-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: "Mukta", serif;
  font-size: 17px;
  color: var(--sai-maroon);
  border-bottom: 1px dashed var(--sai-line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.sai-today-head strong {
  font-weight: 800;
}
.sai-today-date {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--sai-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.sai-today-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: vdPulse 1.6s ease-in-out infinite;
}
@keyframes vdPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}
.sai-today-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .sai-today-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.sai-today-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  background: rgba(255, 248, 236, 0.6);
  border: 1px solid var(--sai-line);
  border-radius: var(--sai-radius-sm);
}
.sai-today-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--sai-muted);
  font-weight: 700;
}
.sai-today-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--sai-ink);
  font-family: "Mukta", sans-serif;
}
.sai-today-ok {
  color: #15803d;
}
.sai-today-foot {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--sai-muted);
}
.sai-today-foot a {
  color: var(--sai-maroon);
  font-weight: 600;
}

/* -------- QUOTE BLOCK -------- */
.sai-quote {
  max-width: 880px;
  margin: 50px auto;
  padding: 36px 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 119, 6, 0.06), transparent 50%),
    linear-gradient(135deg, var(--sai-cream) 0%, #fff 100%);
  border: 1px solid var(--sai-line);
  border-radius: var(--sai-radius);
  position: relative;
  box-shadow: var(--sai-shadow-sm);
}
.sai-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Mukta", serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--sai-ink);
  text-align: center;
  position: relative;
}
.sai-quote-mark {
  display: block;
  font-size: 60px;
  color: var(--sai-saffron);
  line-height: 0.6;
  font-family: Georgia, serif;
  margin-bottom: -10px;
}
.sai-quote figcaption {
  text-align: center;
  margin-top: 16px;
  color: var(--sai-maroon);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* -------- ARCHIVE / BLOG / SEARCH / 404 HERO -------- */
.sai-archive-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 64px 16px 56px;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 119, 6, 0.1), transparent 50%),
    radial-gradient(
      circle at 80% 100%,
      rgba(122, 12, 32, 0.1),
      transparent 50%
    ),
    linear-gradient(180deg, #fff8ec 0%, #fff3da 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--sai-gold);
}
.sai-archive-hero::before {
  content: "\0950";
  position: absolute;
  top: 14px;
  right: 28px;
  font-size: 120px;
  font-family: "Tiro Devanagari Hindi", serif;
  color: rgba(122, 12, 32, 0.07);
  line-height: 1;
  pointer-events: none;
}
.sai-archive-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.sai-archive-tag {
  display: inline-block;
  background: var(--sai-cream);
  color: var(--sai-maroon);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--sai-gold);
  margin-bottom: 18px;
}
.sai-archive-hero h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  margin: 0 0 14px;
  color: var(--sai-maroon);
  font-weight: 800;
  line-height: 1.15;
  border: none;
}
.sai-archive-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16.5px;
  color: var(--sai-ink-soft);
  line-height: 1.6;
}
.sai-archive-hero-404 h1 {
  color: var(--sai-saffron);
}
.sai-archive-hero-404 {
  background: linear-gradient(180deg, #fff3da 0%, #fff8ec 100%);
}

/* -------- BENTO GALLERY -------- */
.sai-gallery-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px 16px;
  background: #fff8ec;
}
.sai-gallery {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  grid-gap: 14px;
}
.sai-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--sai-radius);
  cursor: zoom-in;
  transition:
    opacity 0.5s,
    transform 0.5s,
    box-shadow 0.25s;
  box-shadow: var(--sai-shadow-sm);
}
html.js .sai-gallery-item {
  opacity: 0;
  transform: translateY(15px);
}
html.js .sai-gallery-item.sai-in {
  opacity: 1;
  transform: translateY(0);
}
.sai-gallery-item.sai-in {
  opacity: 1;
  transform: translateY(0);
}
.sai-gallery-item:hover {
  box-shadow: var(--sai-shadow-lg);
}
.sai-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.sai-gallery-item:hover img {
  transform: scale(1.08);
}
.sai-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(31, 26, 23, 0.85));
  color: #fff8ec;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.sai-gallery-item:hover .sai-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
/* Bento sizing */
.sai-gallery-item-0 {
  grid-column: span 2;
  grid-row: span 2;
}
.sai-gallery-item-1 {
  grid-column: span 2;
}
.sai-gallery-item-2,
.sai-gallery-item-3 {
  grid-column: span 1;
}
.sai-gallery-item-4,
.sai-gallery-item-5 {
  grid-column: span 1;
}
@media (max-width: 768px) {
  .sai-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 180px 180px 180px;
    grid-gap: 10px;
  }
  .sai-gallery-item-0 {
    grid-column: span 2;
    grid-row: span 1;
  }
  .sai-gallery-item-1 {
    grid-column: span 2;
  }
}

/* -------- FLOATING HELP BUTTON -------- */
.sai-help-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
}
.sai-help-trigger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sai-saffron), var(--sai-maroon));
  color: #fff8ec;
  border: 3px solid #fff8ec;
  font-family: "Mukta", serif;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(122, 12, 32, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
}
.sai-help-trigger:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 40px rgba(122, 12, 32, 0.55);
}
.sai-help-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  animation: vdPulse 2s ease-in-out infinite;
}
.sai-help-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 304px;
  padding: 18px;
  background: rgba(255, 248, 236, 0.97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--sai-line);
  border-radius: var(--sai-radius);
  box-shadow: 0 30px 60px rgba(122, 12, 32, 0.28);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  transform-origin: bottom right;
}
.sai-help-fab.sai-open .sai-help-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.sai-help-panel h4 {
  margin: 0 0 14px;
  color: var(--sai-maroon);
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sai-line);
}
.sai-help-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--sai-radius-sm);
  color: var(--sai-ink) !important;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background 0.12s;
}
.sai-help-row:hover {
  background: var(--sai-cream-soft);
}
.sai-help-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sai-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--sai-saffron);
  border: 1px solid var(--sai-line);
}
.sai-help-row strong {
  font-weight: 700;
  color: var(--sai-maroon);
  font-size: 14.5px;
}
.sai-help-row small {
  color: var(--sai-muted);
  font-size: 11.5px;
  line-height: 1.3;
}
@media (max-width: 720px) {
  .sai-help-fab {
    right: 14px;
    bottom: 76px;
  }
  .sai-help-trigger {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
  .sai-help-panel {
    width: calc(100vw - 28px);
    max-width: 320px;
    right: 0;
    bottom: 64px;
  }
}

/* -------- DRAWER MOBILE MENU -------- */
.sai-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 84vw;
  max-width: 360px;
  background: linear-gradient(180deg, #fff8ec 0%, #fff3da 100%);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--sai-gold);
  box-shadow: -20px 0 50px rgba(122, 12, 32, 0.2);
}
body.sai-drawer-open .sai-drawer {
  transform: translateX(0);
}
.sai-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(31, 26, 23, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}
body.sai-drawer-open .sai-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}
.sai-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--sai-line);
}
.sai-drawer-head img {
  border-radius: 50%;
  border: 2px solid var(--sai-gold);
}
.sai-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 32px;
  color: var(--sai-maroon);
  padding: 0;
  line-height: 1;
  width: 44px;
  height: 44px;
}
.sai-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}
.sai-drawer-nav ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}
.sai-drawer-nav li {
  display: block !important;
  margin: 0 !important;
}
.sai-drawer-nav li a {
  display: block !important;
  padding: 13px 24px !important;
  color: var(--sai-ink) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--sai-line);
  text-transform: none !important;
  background: transparent !important;
  white-space: normal !important;
}
.sai-drawer-nav li a:hover {
  background: var(--sai-cream) !important;
  color: var(--sai-maroon) !important;
}
.sai-drawer-nav ul.sub-menu {
  background: rgba(122, 12, 32, 0.04);
}
.sai-drawer-nav ul.sub-menu li a {
  padding-left: 40px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}
.sai-drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--sai-line);
  display: flex;
  gap: 10px;
}
.sai-drawer-foot .sai-btn {
  flex: 1;
  padding: 12px 14px !important;
  font-size: 12px !important;
}
body.sai-drawer-open {
  overflow: hidden;
}

/* -------- LIGHTBOX -------- */
.sai-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(31, 26, 23, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: zoom-out;
}
.sai-lightbox.sai-lightbox-open {
  opacity: 1;
}
.sai-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--sai-radius);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.sai-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff8ec;
  font-size: 30px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.sai-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* -------- HERO POLISH (solid cream + strong shadow; no text-clip gradient) -------- */
.sai-hero h1 {
  color: #fff8ec;
  -webkit-text-fill-color: #fff8ec;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 6px 28px rgba(0, 0, 0, 0.55);
  background: transparent;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.sai-hero-bg-img {
  animation: vdHeroKenBurns 18s ease-in-out infinite alternate;
}
@keyframes vdHeroKenBurns {
  0% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1.1) translate(-1%, 1%);
  }
}
.sai-hero-inner {
  will-change: transform;
}

/* Tag pill above hero title (optional decoration) */
.sai-hero .sai-tag-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sai-hero .sai-tag-pill {
  background: rgba(255, 248, 236, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 248, 236, 0.35);
  color: #fff8ec;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.sai-hero .sai-tag-pill.is-live {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
}

/* -------- IMPROVED CARDS -------- */
.sai-card-imgwrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sai-saffron), var(--sai-maroon));
  transition: width 0.35s ease-out;
  z-index: 3;
}
.sai-card:hover .sai-card-imgwrap::before {
  width: 100%;
}

/* Mobile nav drawer trigger */
@media (max-width: 921px) {
  .ast-mobile-header-active .main-header-menu,
  .ast-mobile-menu-buttons .ast-mobile-menu-trigger-fill {
    display: none !important;
  }
}

/* Hide Astra's own mobile menu container since we replace with drawer */
.ast-builder-menu-mobile.is-active {
  display: none !important;
}

/* ===========================================================
 * DESIGN POLISH PASS (v1.0.4)
 * Tightens typography, card grids, festival layout and section
 * rhythm so every page feels intentional at 1440 / 1024 / 375.
 * =========================================================== */

/* --- 1. Better typography in entry content -------------------- */
.entry-content {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--sai-charcoal, #1f1b16);
}
.entry-content > h2,
.sai-section > h2,
.sai-section > .sai-container > h2,
.entry-content section > h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.25;
  margin: 64px 0 14px;
  letter-spacing: -0.01em;
  color: var(--sai-maroon, #7a0c20);
  position: relative;
  padding-bottom: 14px;
}
.entry-content > h2::after,
.sai-section > h2::after,
.entry-content section > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(
    90deg,
    var(--sai-saffron, #f59e0b),
    var(--sai-gold, #c19a3e)
  );
  border-radius: 2px;
}
.entry-content > h3,
.sai-section > h3 {
  font-size: clamp(20px, 1.7vw, 24px);
  margin: 42px 0 10px;
  color: var(--sai-deep, #b45309);
  font-weight: 700;
}
.entry-content > p,
.sai-section > p {
  max-width: 760px;
  margin: 0 auto 22px;
  font-size: 17.5px;
}
.entry-content > p:first-of-type {
  font-size: 19px;
  line-height: 1.7;
  color: #2a221c;
}

/* Drop cap on the first paragraph of a post body */
.single-post .entry-content > p:first-of-type::first-letter {
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  font-family: "Mukta", Georgia, serif;
  color: var(--sai-deep, #b45309);
  font-weight: 800;
}

.entry-content a:not(.sai-btn):not(.sai-card-link):not([class*="sai-"]) {
  color: var(--sai-deep, #b45309);
  text-decoration: underline;
  text-decoration-color: rgba(180, 83, 9, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s ease;
}
.entry-content a:not(.sai-btn):not(.sai-card-link):not([class*="sai-"]):hover {
  text-decoration-color: var(--sai-deep, #b45309);
}

/* --- 2. Cards: auto-fit grid (no orphan rows on 4-card groups) - */
.sai-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  max-width: 1240px !important;
  gap: 24px !important;
  padding: 0 20px !important;
}
@media (min-width: 992px) {
  .sai-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  }
}

/* Card visual polish */
.sai-card {
  border-radius: 14px !important;
  border-color: rgba(231, 211, 168, 0.7) !important;
}
.sai-card-imgwrap {
  aspect-ratio: 4/3;
}
.sai-card-body {
  padding: 22px 22px 24px !important;
}
.sai-card h3 {
  font-size: 19px !important;
  line-height: 1.3 !important;
  margin: 0 0 10px !important;
}
.sai-card p {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #4a3f33 !important;
  margin: 0 0 16px !important;
}

/* --- 3. Festival cards: 2-up at desktop ------------------------ */
.entry-content > .sai-festival,
.sai-section .sai-festival {
  margin: 0;
}

/* Wrap consecutive festivals into a CSS grid using the section as
   the implicit container. Each .sai-festival is half-width on >=900. */
@media (min-width: 900px) {
  .entry-content .sai-festival,
  .sai-section .sai-festival {
    float: left;
    width: calc(50% - 16px);
    margin: 12px 8px !important;
    max-width: none !important;
    text-align: left;
    padding: 32px 36px;
    box-sizing: border-box;
  }
  /* Clear floats so following content (sections, FAQ etc.) sits below */
  .entry-content .sai-festival + .sai-festival ~ *:not(.sai-festival),
  .sai-section .sai-festival + .sai-festival ~ *:not(.sai-festival) {
    clear: both;
  }
  /* Defensive clearfix using ::after on entry-content */
  .entry-content::after,
  .sai-section::after {
    content: "";
    display: table;
    clear: both;
  }
  .entry-content .sai-festival h2,
  .sai-section .sai-festival h2 {
    text-align: left;
    font-size: clamp(20px, 1.9vw, 26px);
  }
  .entry-content .sai-festival p,
  .sai-section .sai-festival p {
    text-align: left;
    margin: 0 0 8px;
    max-width: none;
  }
}

/* The date pill (added in v1.0.3) */
.sai-festival-date {
  display: inline-block;
  background: rgba(255, 248, 236, 0.18);
  color: #fff8ec;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
.sai-festival-body {
  font-size: 15.5px;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 720px;
}

/* --- 4. Section padding rhythm + alternating bg ---------------- */
.entry-content > section,
.sai-section {
  padding: 48px 0 !important;
  margin: 0 !important;
}
/* Zebra-stripe content sections on pages so the page has visual rhythm */
.page .entry-content > section.sai-section:nth-of-type(even),
.page .entry-content > section.sai-section:nth-of-type(even) {
  background: linear-gradient(
    180deg,
    rgba(255, 248, 236, 0.5),
    rgba(255, 248, 236, 0.85)
  ) !important;
}

/* Section title with Om symbol + decorative underline already on it */
.sai-section-title {
  text-align: center;
  font-size: clamp(28px, 2.6vw, 38px) !important;
  margin: 0 0 18px !important;
}
.sai-section-lede {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px !important;
  font-size: 17px !important;
  color: #4a3f33;
  line-height: 1.65;
}

/* --- 5. Factbox: cleaner heading + spacing -------------------- */
.sai-factbox {
  background: linear-gradient(180deg, #fffaef 0%, #fff8ec 100%);
  border-left: 4px solid var(--sai-saffron, #f59e0b);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 28px auto;
  max-width: 920px;
  box-shadow: 0 2px 12px rgba(180, 83, 9, 0.08);
}
.sai-factbox-title {
  margin: 0 0 14px !important;
  color: var(--sai-maroon, #7a0c20) !important;
  font-size: 17px !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0 !important;
}
.sai-factbox-title::after {
  display: none !important;
}
.sai-factbox ul {
  margin: 0;
  padding-left: 22px;
  list-style: none;
}
.sai-factbox ul li {
  position: relative;
  padding-left: 6px;
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.55;
}
.sai-factbox ul li::before {
  content: "•";
  position: absolute;
  left: -16px;
  color: var(--sai-gold, #c19a3e);
  font-weight: 800;
}

/* --- 6. Today status card polish ------------------------------ */
.sai-today-inner {
  border-radius: 14px !important;
  box-shadow: 0 4px 24px rgba(180, 83, 9, 0.12) !important;
  border: 1px solid rgba(231, 211, 168, 0.7) !important;
}

/* --- 7. Quote block ------------------------------------------- */
.sai-quote {
  max-width: 820px !important;
  margin: 36px auto !important;
  padding: 36px 32px !important;
  background: linear-gradient(180deg, #fffaef 0%, #fff5da 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(180, 83, 9, 0.08);
  border-left: none;
}
.sai-quote blockquote {
  font-size: clamp(20px, 2vw, 26px) !important;
  font-style: italic;
  line-height: 1.4;
  color: var(--sai-maroon, #7a0c20) !important;
  margin: 0 !important;
}

/* --- 8. Lists in body --- */
.entry-content > ul,
.entry-content > ol,
.sai-section ul,
.sai-section ol {
  max-width: 760px;
  margin: 0 auto 22px;
  padding-left: 26px;
}
.entry-content > ul li,
.entry-content > ol li {
  margin: 6px 0;
  line-height: 1.65;
}

/* --- 9. Strip block visual upgrade ---------------------------- */
.sai-strip {
  background: linear-gradient(180deg, var(--sai-cream, #fff8ec), #fffaef);
  border-top: 3px solid var(--sai-gold, #c19a3e);
  border-bottom: 3px solid var(--sai-gold, #c19a3e);
  padding: 28px 0;
  margin: 0;
}
.sai-strip-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.sai-strip-item {
  text-align: center;
}
.sai-strip-value {
  font-family: "Mukta", Georgia, serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--sai-maroon, #7a0c20);
  line-height: 1.1;
}
.sai-strip-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  color: var(--sai-deep, #b45309);
  font-weight: 700;
}

/* --- 10. Mobile tweaks --------------------------------------- */
@media (max-width: 700px) {
  .entry-content > h2,
  .sai-section > h2 {
    font-size: 24px;
    margin: 44px 0 12px;
  }
  .entry-content > p,
  .sai-section > p {
    font-size: 16.5px;
    line-height: 1.7;
    padding: 0 4px;
  }
  .entry-content .sai-festival,
  .sai-section .sai-festival {
    display: block;
    width: auto;
    margin: 12px 4px;
  }
  .sai-card-body {
    padding: 18px 18px 22px !important;
  }
  .sai-factbox {
    padding: 20px 22px;
  }
  .sai-quote {
    padding: 28px 22px !important;
  }
}

/* ===========================================================
 * v1.0.6 — home-page visual journey CSS
 * Gallery grid + hero CTA visible + meta-bar hidden on home
 * =========================================================== */

/* Hero CTA buttons should be VISIBLE + prominent */
.sai-hero .sai-cta {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.sai-hero .sai-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  border: 2px solid transparent;
}
.sai-hero .sai-btn-primary {
  background: var(--sai-saffron, #f59e0b);
  color: #1f1b16;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}
.sai-hero .sai-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.55);
  background: var(--sai-gold, #c19a3e);
  color: #1f1b16;
}
.sai-hero .sai-btn-outline {
  border: 2px solid #fff8ec;
  color: #fff8ec;
  background: transparent;
}
.sai-hero .sai-btn-outline:hover {
  background: rgba(255, 248, 236, 0.15);
  transform: translateY(-2px);
}

/* Hero typography refinement */
.sai-hero .sai-sanskrit {
  font-family: "Tiro Devanagari Hindi", "Mukta", serif;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--sai-gold, #c19a3e);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.sai-hero h1 {
  font-size: clamp(32px, 4vw, 54px) !important;
  line-height: 1.15 !important;
  max-width: 880px;
  margin: 0 auto !important;
}
.sai-hero .sai-sub {
  font-size: clamp(15.5px, 1.5vw, 19px);
  color: #fff8ec;
  max-width: 720px;
  margin: 18px auto 0 !important;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Hide the editorial meta-bar (Updated/Reviewed/Verified) on the home page —
   it's helpful on content pages but clutters the visual home. */
.home .sai-meta-bar {
  display: none !important;
}

/* --- Gallery: clean 3-col grid with rounded thumbnails ---------- */
.sai-gallery-section {
  padding: 48px 0;
  background: linear-gradient(180deg, #fffaef, #fff8ec);
}
.sai-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 900px) {
  .sai-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .sai-gallery {
    grid-template-columns: 1fr;
  }
}
.sai-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.sai-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.25);
}
.sai-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.sai-gallery-item:hover img {
  transform: scale(1.05);
}
.sai-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(31, 17, 10, 0.85), transparent);
  color: #fff8ec;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.sai-gallery-item:hover .sai-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* --- Split image+text block visual upgrade --------------------- */
.sai-split {
  padding: 56px 20px;
  max-width: 1240px;
  margin: 0 auto;
}
.sai-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.sai-split-reverse .sai-split-inner {
  grid-template-areas: "text media";
}
.sai-split-reverse .sai-split-media {
  grid-area: media;
}
.sai-split-reverse .sai-split-text {
  grid-area: text;
}
.sai-split-media {
  position: relative;
}
.sai-split-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.18);
}
.sai-split-decor {
  position: absolute;
  inset: -12px -12px auto auto;
  width: 80px;
  height: 80px;
  border: 3px solid var(--sai-gold, #c19a3e);
  border-radius: 14px;
  z-index: -1;
}
.sai-split-text h2 {
  font-size: clamp(24px, 2.4vw, 32px) !important;
  margin: 0 0 16px !important;
  color: var(--sai-maroon, #7a0c20) !important;
}
.sai-split-text h2::after {
  display: none !important;
}
.sai-split-body {
  font-size: 17px;
  line-height: 1.7;
  color: #2a221c;
}
.sai-split-body strong {
  color: var(--sai-maroon, #7a0c20);
}
.sai-split-body p {
  margin: 0 0 14px;
}
.sai-split-body a {
  color: var(--sai-deep, #b45309);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(180, 83, 9, 0.3);
}
.sai-split-body a:hover {
  border-bottom-color: var(--sai-deep, #b45309);
}
@media (max-width: 760px) {
  .sai-split-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sai-split-reverse .sai-split-inner {
    grid-template-areas: "media" "text";
  }
}

/* --- Card images: ensure proper rendering when img= present ---- */
.sai-card:has(.sai-card-imgwrap) .sai-card-body {
  padding: 18px 22px 24px !important;
}

/* --- Section paragraphs: keep them comfortable ---------------- */
.entry-content > h2 + p,
.sai-section + p {
  margin-top: 12px;
}

/* --- Stats block enhancement ---------------------------------- */
.sai-stats {
  padding: 48px 20px;
  background: linear-gradient(
    135deg,
    var(--sai-maroon, #7a0c20) 0%,
    var(--sai-deep, #b45309) 100%
  );
  color: #fff8ec;
  margin: 0;
}
.sai-stats-title {
  text-align: center;
  font-size: clamp(20px, 2vw, 26px);
  margin: 0 0 32px !important;
  color: #fff8ec !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sai-stats-title::after {
  display: none !important;
}
.sai-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.sai-stat {
  text-align: center;
}
.sai-stat-value {
  font-family: "Mukta", Georgia, serif;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1;
  color: #fff8ec;
  margin-bottom: 8px;
}
.sai-stat-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.88;
}

/* v1.0.7 — stats block fix: clear inherited white bg, force cream text */
.sai-stats * {
  background: transparent !important;
}
.sai-stat,
.sai-stat-value,
.sai-stat-label {
  background: transparent !important;
  color: #fff8ec !important;
}
.sai-stat-value {
  color: #fff8ec !important;
  font-weight: 800 !important;
  font-size: clamp(34px, 3.6vw, 52px) !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.sai-stat-label {
  color: rgba(255, 248, 236, 0.88) !important;
}
/* Also: make sure the entire .sai-stats section has the maroon bg even if Astra wraps it */
.sai-stats {
  background: linear-gradient(
    135deg,
    var(--sai-maroon, #7a0c20) 0%,
    var(--sai-deep, #b45309) 100%
  ) !important;
  margin: 0 !important;
  padding: 56px 20px !important;
}

/* ============================================================
 * v1.0.8 — DESKTOP DESIGN OVERHAUL
 * Goal: feel like a temple destination site, not a WP template.
 * ============================================================ */

/* HERO — tall, immersive, refined typography */
.sai-hero {
  min-height: 80vh !important;
  height: 80vh;
  max-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.sai-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sai-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(20, 12, 6, 0.45) 0%,
    rgba(40, 18, 8, 0.55) 50%,
    rgba(90, 30, 12, 0.72) 100%
  ) !important;
}
.sai-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 980px;
  animation: heroFadeUp 1.1s ease-out;
}
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sai-hero .sai-sanskrit {
  font-size: 14px !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif !important;
  color: #f5d68b !important;
  margin-bottom: 28px !important;
  font-weight: 600;
}
.sai-hero h1 {
  font-family: "Mukta", Georgia, serif !important;
  font-size: clamp(36px, 5vw, 64px) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  margin: 0 auto 24px !important;
  max-width: 920px;
  color: #fff8ec !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}
.sai-hero .sai-sub {
  font-size: clamp(16px, 1.5vw, 20px) !important;
  font-weight: 400;
  color: rgba(255, 248, 236, 0.92) !important;
  max-width: 720px;
  margin: 0 auto 36px !important;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.sai-hero .sai-cta {
  margin-top: 0;
}
.sai-hero .sai-btn-primary {
  background: var(--sai-saffron, #f59e0b);
  color: #1f1b16;
  padding: 16px 36px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 4px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.sai-hero .sai-btn-primary:hover {
  background: #ffb432;
  transform: translateY(-2px);
}
.sai-hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* ARTI STRIP — refined --------------------------- */
.sai-strip {
  background: #1f1b16 !important;
  border: none !important;
  padding: 24px 0 !important;
  margin: 0 !important;
}
.sai-strip-item {
  border-right: 1px solid rgba(255, 248, 236, 0.12);
  padding: 0 24px;
}
.sai-strip-item:last-child {
  border-right: none;
}
.sai-strip-value {
  color: #f5d68b !important;
  font-family: "Mukta", Georgia, serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 6px;
}
.sai-strip-label {
  color: rgba(255, 248, 236, 0.65) !important;
  font-size: 11px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

/* SECTION HEADERS — temple-grade typography ----- */
.entry-content > h2,
.sai-section > h2,
.sai-section > .sai-container > h2 {
  font-family: "Mukta", Georgia, serif !important;
  font-size: clamp(30px, 3vw, 44px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.015em !important;
  color: #1f1b16 !important;
  text-align: center !important;
  margin: 80px auto 16px !important;
  padding-bottom: 0 !important;
  max-width: 800px;
}
.entry-content > h2::before,
.sai-section > h2::before {
  content: "ॐ";
  display: block;
  font-family: "Tiro Devanagari Hindi", serif;
  font-size: 28px;
  color: var(--sai-saffron, #f59e0b);
  margin: 0 auto 12px;
  font-weight: 400;
  opacity: 0.85;
}
.entry-content > h2::after,
.sai-section > h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 18px auto 0 !important;
  background: var(--sai-saffron, #f59e0b);
  border-radius: 0 !important;
}
.entry-content > h2 + p,
.sai-section > h2 + p {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px !important;
  color: #4a3f33;
  font-size: 17px;
  line-height: 1.65;
}

/* STATS BLOCK — refined, less garish ------------ */
.sai-stats {
  background: linear-gradient(
    135deg,
    #1a0e08 0%,
    #3a1a08 50%,
    #5a2a10 100%
  ) !important;
  padding: 72px 24px !important;
  border-top: 1px solid rgba(255, 248, 236, 0.06);
}
.sai-stats-title {
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  color: var(--sai-saffron, #f59e0b) !important;
  text-align: center;
  margin: 0 0 36px !important;
}
.sai-stats-title::after {
  display: none !important;
}
.sai-stat-value {
  font-family: "Mukta", Georgia, serif !important;
  font-size: clamp(36px, 4vw, 56px) !important;
  font-weight: 800 !important;
  color: #fff8ec !important;
  text-shadow: none !important;
  line-height: 1;
  margin-bottom: 12px;
}
.sai-stat-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: rgba(255, 248, 236, 0.65) !important;
}

/* SECTION SPACING — tighter and more rhythmic --- */
.entry-content > section {
  padding: 72px 0 !important;
}
.entry-content > .sai-strip,
.entry-content > .sai-stats {
  padding: 0 !important;
}
.entry-content > .sai-strip > .sai-strip-grid {
  padding: 24px 20px !important;
}

/* CARDS — premium feel -------------------------- */
.sai-cards {
  max-width: 1320px !important;
  gap: 28px !important;
}
.sai-card {
  border: 1px solid rgba(231, 211, 168, 0.4) !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.28s ease !important;
}
.sai-card:hover {
  border-color: var(--sai-saffron, #f59e0b) !important;
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.18) !important;
  transform: translateY(-4px) !important;
}
.sai-card-imgwrap {
  aspect-ratio: 4/3;
  background: #1f1b16;
}
.sai-card-body {
  padding: 24px 24px 28px !important;
}
.sai-card h3 {
  font-family: "Mukta", Georgia, serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 12px !important;
  color: #1f1b16 !important;
}
.sai-card h3 a {
  color: inherit;
  text-decoration: none;
}
.sai-card p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #5a4a3a !important;
  margin: 0 0 18px !important;
}
.sai-card-tag {
  background: #1f1b16 !important;
  color: #f5d68b !important;
  font-size: 10.5px !important;
  letter-spacing: 0.14em !important;
  font-weight: 700 !important;
  padding: 5px 11px !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  top: 12px !important;
  left: 12px !important;
}
.sai-card-link {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--sai-deep, #b45309) !important;
}
.sai-card-link:hover {
  color: var(--sai-maroon, #7a0c20) !important;
}

/* SPLIT BLOCKS — full-bleed feel ----------------- */
.sai-split {
  padding: 64px 24px !important;
  max-width: 1320px !important;
}
.sai-split-inner {
  gap: 56px !important;
}
.sai-split-media img {
  border-radius: 4px !important;
  aspect-ratio: 5/4 !important;
}
.sai-split-decor {
  display: none !important;
}
.sai-split-text h2 {
  font-family: "Mukta", Georgia, serif !important;
  font-size: clamp(26px, 2.6vw, 36px) !important;
  text-align: left !important;
  margin: 0 0 20px !important;
}
.sai-split-text h2::before,
.sai-split-text h2::after {
  display: none !important;
}
.sai-split-body {
  font-size: 16.5px !important;
  line-height: 1.7;
}

/* FESTIVALS — premium gradient cards ------------ */
.sai-festival {
  border-radius: 4px !important;
  box-shadow: 0 12px 30px rgba(122, 12, 32, 0.2) !important;
}
.sai-festival h2 {
  font-family: "Mukta", Georgia, serif !important;
  font-weight: 800 !important;
}

/* GALLERY — magazine-style ---------------------- */
.sai-gallery-section {
  background: #f5e9d2 !important;
  padding: 72px 0 !important;
}
.sai-gallery {
  gap: 12px !important;
  max-width: 1320px !important;
}
.sai-gallery-item {
  border-radius: 4px !important;
}

/* FACTBOX — cleaner ----------------------------- */
.sai-factbox {
  border-radius: 4px !important;
  border-left-width: 3px !important;
  max-width: 1000px !important;
}

/* QUOTE BLOCK ----------------------------------- */
.sai-quote {
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  padding: 56px 32px !important;
}
.sai-quote blockquote {
  font-family: "Mukta", Georgia, serif !important;
  font-size: clamp(24px, 2.8vw, 34px) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  color: var(--sai-maroon, #7a0c20) !important;
  text-align: center;
}
.sai-quote figcaption {
  margin-top: 18px !important;
  font-size: 13px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--sai-deep, #b45309) !important;
}

/* TODAY STATUS CARD ----------------------------- */
.sai-today {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}
.sai-today-inner {
  border-radius: 4px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid #e7d3a8 !important;
}

/* Astra container constraints — let our sections breathe full width */
body.home .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}
body.home .site-content {
  padding: 0 !important;
}
body.home .entry-content > h2,
body.home .entry-content > p {
  max-width: 800px;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.home .entry-content > .sai-hero,
body.home .entry-content > .sai-strip,
body.home .entry-content > .sai-stats,
body.home .entry-content > .sai-gallery-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
/* Festivals stay in viewport-bounded 2-col grid */
body.home .entry-content > .sai-festival {
  width: calc(50% - 24px) !important;
  max-width: 640px !important;
  margin: 12px !important;
  float: left !important;
  box-sizing: border-box;
}

/* HIDE the home breadcrumb (not needed on home) */
.home .sai-breadcrumbs-bar {
  display: none !important;
}

/* ============================================================
 * v1.0.10 — order-of-layout fixes (FAQ, gallery, sections)
 * ============================================================ */

/* FAQ: constrain H3 + P to centered 760px column */
.entry-content > h3,
.entry-content > h3 + p {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
  padding: 0 24px;
  box-sizing: border-box;
}
.entry-content > h3 {
  font-family: "Mukta", Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--sai-maroon, #7a0c20) !important;
  margin: 36px auto 12px !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(231, 211, 168, 0.6);
  width: 100%;
}
.entry-content > h3:first-of-type {
  border-top: none;
  padding-top: 0 !important;
}
.entry-content > h3 + p {
  font-size: 16.5px !important;
  line-height: 1.7 !important;
  margin: 0 auto 8px !important;
  color: #2a221c;
}
.entry-content > h3::before {
  display: none !important;
}
.entry-content > h3::after {
  display: none !important;
}

/* Gallery: cap thumbnail height so 9 items don't take 1900px */
.sai-gallery {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  max-width: 1320px !important;
  padding: 0 24px;
}
.sai-gallery-item {
  aspect-ratio: 1/1 !important;
  max-height: 280px;
}
@media (max-width: 1100px) {
  .sai-gallery {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 700px) {
  .sai-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sai-gallery-item {
    aspect-ratio: 4/3 !important;
  }
}

/* H2 section header: tighten spacing — was 444px section height, fix to ~140px */
.entry-content > h2,
.sai-section > h2 {
  margin: 64px auto 12px !important;
  padding-top: 24px !important;
}
.entry-content > h2::before,
.sai-section > h2::before {
  font-size: 22px !important;
  margin-bottom: 8px !important;
}
.entry-content > h2 + p {
  margin-bottom: 32px !important;
}

/* Remove wpautop noise: hide stray <br> and empty <p> between block shortcodes */
.entry-content > br {
  display: none !important;
}
.entry-content > p:empty {
  display: none !important;
}
.entry-content > p:has(br:only-child) {
  display: none !important;
}

/* Festival float clear before next H2 (so gallery section sits cleanly below 2x2) */
.entry-content > .sai-festival + h2,
.entry-content > .sai-festival ~ h2:not(.sai-festival ~ .sai-festival ~ h2) {
  clear: both !important;
}
.entry-content > .sai-festival + br + .sai-festival,
.entry-content > .sai-festival + br + br + .sai-festival {
  margin-top: 12px !important;
}

/* Defensive: any H2 that comes after .sai-festival cards must clear floats */
.entry-content > h2 {
  clear: both !important;
}
.entry-content > section {
  clear: both !important;
}

/* "Welcome to the home of..." section was 504px tall — likely empty p children */
.sai-section {
  padding: 56px 24px !important;
}
.sai-section .sai-container > p:empty,
.sai-section > p:empty {
  display: none !important;
}

/* Stats grid: ensure 4-up at desktop, not stacking */
.sai-stats-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  max-width: 1100px;
}
@media (max-width: 800px) {
  .sai-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Cards (.sai-cards) — ensure they don't get pulled by floats */
.sai-cards {
  clear: both !important;
}

/* Footer: clear any residual floats from above */
.sai-footer {
  clear: both !important;
}

/* v1.0.11 — a11y: minimum 24x24 tap targets for mobile */
@media (max-width: 700px) {
  .sai-stickybar a {
    min-width: 56px;
    min-height: 48px;
  }
  .sai-strip-item {
    min-height: 44px;
  }
  .sai-help-fab,
  .sai-help-trigger {
    min-width: 48px !important;
    min-height: 48px !important;
  }
  .sai-card-link {
    padding: 8px 0;
    min-height: 32px;
  }
  .sai-meta-bar a,
  .sai-author-bio a,
  .sai-footer a {
    min-height: 32px;
    display: inline-block;
    padding: 4px 0;
  }
}

/* v1.0.12 — WCAG AA contrast fix on hero CTA + a11y polish */

/* Hero CTA primary button: cream-on-saffron was 3.02 (FAIL AA).
   Use maroon button with cream text → 11:1 (AAA pass) and reads
   as a deliberate accent against the saffron hero overlay. */
.sai-hero .sai-btn.sai-btn-primary,
.sai-hero .sai-cta .sai-btn-primary {
  background: var(--sai-maroon, #7a0c20) !important;
  color: #fff8ec !important;
  border: 2px solid rgba(255, 248, 236, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
.sai-hero .sai-btn.sai-btn-primary:hover,
.sai-hero .sai-cta .sai-btn-primary:hover {
  background: #5a0817 !important; /* deeper maroon */
  color: #fff8ec !important;
  border-color: var(--sai-gold, #c19a3e) !important;
}

/* Body buttons (outside hero): saffron with DARK text → 7:1 (AAA pass) */
.entry-content .sai-btn.sai-btn-primary:not(.sai-hero .sai-btn-primary),
.sai-section .sai-btn.sai-btn-primary {
  background: var(--sai-saffron, #f59e0b) !important;
  color: #1f1b16 !important;
}
.entry-content .sai-btn.sai-btn-primary:hover {
  background: var(--sai-deep, #b45309) !important;
  color: #fff8ec !important;
}

/* Editorial mailto CTA box ("Email Editorial Desk") — bump contrast */
.sai-cta-box .sai-btn.sai-btn-primary {
  background: var(--sai-maroon, #7a0c20) !important;
  color: #fff8ec !important;
}

/* Focus-visible outline for keyboard nav (a11y) */
a:focus-visible,
button:focus-visible,
.sai-btn:focus-visible {
  outline: 3px solid var(--sai-gold, #c19a3e) !important;
  outline-offset: 3px !important;
}
