@font-face {
  font-family: 'Ramabhadra';
  src: url('../fonts/ramabhadra/Ramabhadra-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Increase/decrease this to tune the apparent size of all Ramabhadra text. */
  size-adjust: 120%;
}

@font-face {
  font-family: 'Srikaram Telugu Script';
  src: url('../fonts/ramabhadra/Ramabhadra-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 120%;
  unicode-range: U+0C00-0C7F;
}

:root {
  --bg-color: #FCF1D2;
  --heading-color: #2B3E5A;
  --text-color: #000000;
  --card-color: #FFFFFF;
  --btn-color: #F44D08;
  --btn-text-color: #FFFFFF;
  --border-color: #D9D9D9;
  
  --font-telugu-script: 'Srikaram Telugu Script';
  --font-telugu: 'Ramabhadra', 'Noto Sans Telugu', sans-serif;
  --font-english: var(--font-telugu-script), 'Outfit', sans-serif;

  /* Telugu typography controls */
  --telugu-font-weight: 400;
  --telugu-word-spacing: 0.08em;
  --telugu-heading-line-height: 1.35;
  --telugu-ui-line-height: 1.45;
  --telugu-content-line-height: 1.8;
}

.account-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-label {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-nav-button {
  align-items: center;
  background-color: var(--bg-color);
  border: 1px solid rgba(244, 77, 8, 0.24);
  box-shadow: 0 6px 16px rgba(43, 62, 90, 0.08);
  display: inline-flex;
  gap: 8px;
}

.login-nav-button:hover,
.login-nav-button:focus {
  border-color: rgba(244, 77, 8, 0.42);
}

.booking-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background-color: var(--bg-color);
  color: var(--heading-color);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.empty-state {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-meta-grid > div {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
}

/* Global Styles */
html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-english);
}

.page-scroll-next {
  align-items: center;
  background-color: var(--btn-color);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  bottom: max(22px, env(safe-area-inset-bottom));
  box-shadow: 0 12px 28px rgba(43, 62, 90, 0.22), 0 4px 12px rgba(244, 77, 8, 0.24);
  color: var(--btn-text-color);
  display: inline-flex;
  height: 52px;
  justify-content: center;
  opacity: 1;
  padding: 0;
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  width: 52px;
  z-index: 1040;
}

.page-scroll-next[hidden] {
  display: none;
}

.page-scroll-next:hover {
  background-color: #d94306;
  box-shadow: 0 14px 32px rgba(43, 62, 90, 0.26), 0 6px 16px rgba(244, 77, 8, 0.3);
  transform: translateY(-2px);
}

.page-scroll-next:focus-visible {
  outline: 3px solid rgba(244, 77, 8, 0.32);
  outline-offset: 4px;
}

.page-scroll-next-icon {
  display: block;
  fill: none;
  height: 30px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  width: 30px;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .telugu-text {
  font-family: var(--font-telugu);
  color: var(--heading-color);
  word-spacing: var(--telugu-word-spacing);
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--telugu-heading-line-height);
}

.telugu-text {
  line-height: var(--telugu-content-line-height);
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

/* Premium Top Navigation Header */
.header-container {
  background-color: var(--card-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.navbar > .container {
  position: relative;
}

.mobile-account-menu {
  display: none;
}

.site-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.site-brand-title {
  color: var(--heading-color);
  font-family: var(--font-telugu);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  max-width: 180px;
  overflow-wrap: anywhere;
  word-spacing: var(--telugu-word-spacing);
}

/* Navbar Menu Items Styling */
.navbar-nav .nav-link {
  font-family: var(--font-telugu);
  color: var(--heading-color);
  font-size: 1.1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
  background-color: var(--bg-color);
  color: var(--btn-color);
}

/* Hamburger Toggler Icon Styling */
.navbar-toggler {
  border-color: var(--border-color);
  padding: 6px 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(244, 77, 8, 0.25);
  border-color: var(--btn-color);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232B3E5A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.mobile-nav-toggle,
.mobile-account-button {
  align-items: center;
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(244, 77, 8, 0.22);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  width: 46px;
}

.mobile-nav-toggle {
  background-color: var(--btn-color);
  padding: 0;
}

.mobile-nav-toggle:focus,
.mobile-account-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(244, 77, 8, 0.24), 0 8px 20px rgba(244, 77, 8, 0.22);
}

.mobile-nav-toggle:hover,
.mobile-account-button:hover {
  transform: translateY(-1px);
}

.mobile-nav-toggle-lines,
.mobile-nav-toggle-lines::before,
.mobile-nav-toggle-lines::after {
  background-color: #ffffff;
  border-radius: 999px;
  display: block;
  height: 3px;
  width: 22px;
}

.mobile-nav-toggle-lines {
  position: relative;
}

.mobile-nav-toggle-lines::before,
.mobile-nav-toggle-lines::after {
  content: "";
  left: 0;
  position: absolute;
}

.mobile-nav-toggle-lines::before {
  top: -7px;
}

.mobile-nav-toggle-lines::after {
  top: 7px;
}

.mobile-account-button {
  background-color: #fffdf8;
  border: 1px solid rgba(43, 62, 90, 0.12);
  color: var(--heading-color);
  padding: 0;
}

.mobile-account-button-authenticated {
  background-color: var(--btn-color);
  border-color: var(--btn-color);
  color: #ffffff;
}

.mobile-account-icon {
  display: block;
  fill: none;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 25px;
}

@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none;
  }
}

/* Responsive Tweak for Mobile Nav Items Dropdown */
@media (max-width: 991.98px) {
  .navbar > .container {
    display: grid;
    gap: 8px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    min-height: 68px;
  }

  .logo-link {
    gap: 7px;
    justify-content: center;
    min-width: 0;
  }

  .site-logo {
    height: 42px;
  }

  .site-brand-title {
    font-size: clamp(1rem, 4vw, 1.22rem);
    max-width: min(48vw, 190px);
    position: static;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-account-menu {
    display: flex;
    justify-content: flex-end;
    position: relative;
  }

  .navbar-collapse {
    background-color: var(--card-color);
    border-top: 1px solid rgba(217, 217, 217, 0.78);
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 10px 0 2px 0;
    width: 100%;
  }

  .navbar-nav {
    gap: 2px !important;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 15px;
    margin-bottom: 5px;
  }

  .navbar-collapse .account-nav-link,
  .navbar-collapse .login-nav-button {
    display: none;
  }

  .mobile-account-dropdown {
    border: 1px solid rgba(217, 217, 217, 0.88);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(43, 62, 90, 0.18);
    margin-top: 10px !important;
    min-width: 190px;
    overflow: hidden;
  }
}

@media (max-width: 374.98px) {
  .navbar > .container {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .mobile-nav-toggle,
  .mobile-account-button {
    height: 42px;
    width: 42px;
  }

  .site-logo {
    height: 36px;
  }

  .site-brand-title {
    font-size: 0.98rem;
    max-width: 44vw;
  }
}

/* Cards & Containers */
.pooja-card {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pooja-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Page shell and footer */
html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#maincontent {
  flex: 1 0 auto;
  width: 100%;
}

.site-footer {
  background: linear-gradient(135deg, #24364f 0%, #18283d 100%);
  border-top: 4px solid var(--btn-color);
  color: rgba(255, 255, 255, 0.76);
  flex-shrink: 0;
  margin-top: 3rem;
}

.site-footer-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(190px, 1fr));
  padding: 2.75rem 0 2rem;
}

.site-footer-eyebrow {
  color: #ffb08f;
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer h2 {
  font-size: 1.65rem;
  margin: 0;
}

.site-footer-brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.site-footer-brand picture {
  display: flex;
  flex: 0 0 auto;
}

.site-footer-logo {
  height: 52px;
  object-fit: contain;
  width: 52px;
}

.site-footer h3 {
  font-family: var(--font-english);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.site-footer-intro p {
  line-height: 1.65;
  margin: 0;
  max-width: 430px;
}

.site-footer-socials,
.site-footer-support {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer-social,
.site-footer-support a {
  align-items: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  gap: 0.7rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.site-footer-social {
  background-color: rgba(255, 255, 255, 0.07);
  min-width: 145px;
  padding: 0.6rem 0.8rem;
}

.site-footer-support a {
  padding: 0.25rem 0;
}

.site-footer-social svg,
.site-footer-support svg {
  fill: currentColor;
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.site-footer-social:hover,
.site-footer-social:focus-visible,
.site-footer-support a:hover,
.site-footer-support a:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

.site-footer-youtube:hover,
.site-footer-youtube:focus-visible {
  background-color: #ff0000;
}

.site-footer-instagram:hover,
.site-footer-instagram:focus-visible {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.site-footer-facebook:hover,
.site-footer-facebook:focus-visible {
  background-color: #1877f2;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0;
  text-align: center;
}

.site-footer-bottom p {
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 767.98px) {
  .site-footer-content {
    gap: 1.75rem;
    grid-template-columns: 1fr;
    padding: 2.25rem 0 1.75rem;
  }

  .site-footer-socials {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-footer-social {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .site-footer-social {
    flex: 1 1 100%;
  }
}

.pooja-card-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.pooja-card-link:hover,
.pooja-card-link:focus {
  color: inherit;
  text-decoration: none;
}

.pooja-card-link:focus-visible {
  outline: 3px solid rgba(244, 77, 8, 0.26);
  outline-offset: 4px;
}

.pooja-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pooja-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pooja-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.pooja-card-price {
  color: var(--btn-color);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* Premium Accent Buttons */
.btn-saffron {
  background-color: var(--btn-color);
  color: var(--btn-text-color);
  font-family: var(--font-telugu);
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(244, 77, 8, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-saffron:hover {
  background-color: #d94306;
  color: var(--btn-text-color);
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(244, 77, 8, 0.35);
}

/* Panchangam Summary Cards Home */
.panchangam-summary-card {
  background-color: var(--card-color);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 1.0rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.panchangam-home-title {
  color: var(--heading-color);
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.0;
  margin: 0;
}

.panchangam-home {
  display: grid;
  gap: 15px;
}

.panchangam-home-card {
  background-color: var(--bg-color);
  border-radius: 12px;
  color: var(--heading-color);
  font-family: var(--font-telugu);
  min-height: 160px;
  padding: 0.4rem;
}

.panchangam-calendar-card {
  align-content: center;
  display: grid;
  text-align: center;
}

.panchangam-calendar-lines {
  display: grid;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
}

.panchangam-sanskrit-week {
  white-space: normal;
}

.panchangam-home-subtitle {
  color: var(--heading-color);
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.0;
  margin: 0 0 0.15rem;
  text-align: center;
}

.panchangam-timings-card {
  align-content: center;
  display: grid;
  gap: 10px;
}

.panchangam-timing-row {
  align-items: center;
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(5.5rem, 0.42fr) minmax(0, 1fr);
}

.panchangam-timing-row + .panchangam-timing-row {
  border-top: 1px solid var(--border-color);
  padding-top: 5px;
}

.panchangam-timing-name {
  border-right: 1px solid var(--border-color);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  padding-right: 2px;
  text-align: center;
  overflow-wrap: anywhere;
}

.panchangam-timing-values {
  display: grid;
  gap: 0.2rem;
  font-family: var(--font-telugu);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 768px) {
  .panchangam-home {
    grid-template-columns: 1fr 1fr;
  }
}

/* Jyotishyam circular image link */
.jyotishyam-banner-link {
  display: block;
  text-decoration: none;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.jyotishyam-banner-link:hover {
  transform: scale(1.015);
}

.jyotishyam-banner-img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  display: block;
}

.home-service-section {
  margin-bottom: 2rem;
}

.home-section-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.home-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.home-service-card {
  position: relative;
  display: block;
  min-height: 178px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background-color: var(--heading-color);
  box-shadow: 0 14px 32px rgba(43, 62, 90, 0.16);
  color: #ffffff;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-service-card:hover,
.home-service-card:focus {
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(43, 62, 90, 0.22);
}

.home-service-card:focus-visible {
  outline: 3px solid rgba(244, 77, 8, 0.45);
  outline-offset: 4px;
}

.home-service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease;
  z-index: -2;
}

.home-service-card:hover .home-service-card-img,
.home-service-card:focus .home-service-card-img {
  transform: scale(1.06);
}

.home-service-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 24, 42, 0.94) 0%, rgba(18, 24, 42, 0.78) 36%, rgba(18, 24, 42, 0.22) 72%, rgba(18, 24, 42, 0.08) 100%),
    linear-gradient(135deg, rgba(244, 77, 8, 0.38), rgba(43, 62, 90, 0.08));
  z-index: -1;
}

.home-service-card:nth-child(2) .home-service-card-shade {
  background:
    linear-gradient(90deg, rgba(9, 45, 53, 0.95) 0%, rgba(9, 45, 53, 0.76) 38%, rgba(9, 45, 53, 0.18) 74%, rgba(9, 45, 53, 0.04) 100%),
    linear-gradient(135deg, rgba(238, 180, 72, 0.36), rgba(14, 98, 107, 0.08));
}

.home-service-card:nth-child(3) .home-service-card-shade {
  background:
    linear-gradient(90deg, rgba(22, 31, 73, 0.95) 0%, rgba(22, 31, 73, 0.78) 38%, rgba(22, 31, 73, 0.2) 74%, rgba(22, 31, 73, 0.06) 100%),
    linear-gradient(135deg, rgba(244, 77, 8, 0.34), rgba(60, 86, 168, 0.08));
}

.home-service-card:nth-child(4) .home-service-card-shade {
  background:
    linear-gradient(90deg, rgba(73, 24, 32, 0.94) 0%, rgba(73, 24, 32, 0.78) 38%, rgba(73, 24, 32, 0.22) 74%, rgba(73, 24, 32, 0.06) 100%),
    linear-gradient(135deg, rgba(235, 168, 66, 0.36), rgba(124, 38, 30, 0.08));
}

.home-service-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(64%, 360px);
  min-height: 100%;
  padding: 20px 22px;
}

.home-service-card-kicker,
.home-service-card-title,
.home-service-card-text {
  display: block;
}

.home-service-card-kicker {
  margin-bottom: 6px;
  color: rgba(255, 231, 185, 0.92);
  font-family: var(--font-english);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-service-card-title {
  color: #ffffff;
  font-family: var(--font-telugu);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.12;
}

.home-service-card-text {
  max-width: 300px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 575.98px) {
  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-service-card {
    min-height: 136px;
    aspect-ratio: 1.08 / 1;
    border-radius: 15px;
    box-shadow: 0 10px 22px rgba(43, 62, 90, 0.14);
  }

  .home-service-card:hover,
  .home-service-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(43, 62, 90, 0.18);
  }

  .home-service-card-img {
    object-position: center;
  }

  .home-service-card-shade,
  .home-service-card:nth-child(2) .home-service-card-shade,
  .home-service-card:nth-child(3) .home-service-card-shade,
  .home-service-card:nth-child(4) .home-service-card-shade {
    background:
      linear-gradient(90deg, rgba(18, 24, 42, 0.86) 0%, rgba(18, 24, 42, 0.58) 48%, rgba(18, 24, 42, 0.14) 100%),
      linear-gradient(135deg, rgba(244, 77, 8, 0.24), rgba(43, 62, 90, 0.16));
  }

  .home-service-card-content {
    justify-content: center;
    width: 100%;
    padding: 12px;
  }

  .home-service-card-kicker {
    margin-bottom: 4px;
    font-size: 0.62rem;
    line-height: 1;
  }

  .home-service-card-title {
    font-size: clamp(0.98rem, 4.1vw, 1.1rem);
    line-height: 1.08;
  }

  .home-service-card-text {
    display: none;
  }
}

/* Pooja Horizontal Carousel */
.pooja-carousel-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.carousel-cards {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 5px 20px 5px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--btn-color) transparent;
  scroll-snap-type: x mandatory;
}

.carousel-card-item {
  flex: 0 0 min(360px, calc(100vw - 48px));
  scroll-snap-align: start;
}

.carousel-card-item .pooja-card-img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
}

@media (min-width: 768px) {
  .carousel-card-item {
    flex: 0 0 420px;
  }
}

/* Bhakthi Feed Masonry-Like Layout */
.bhakthi-feed-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.bhakthi-feed-card {
  background-color: var(--card-color);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.bhakthi-feed-title {
  font-family: var(--font-telugu);
  font-size: 1.15rem;
  padding: 15px;
  margin: 0;
  color: var(--heading-color);
  border-top: 1px solid var(--border-color);
}

.bhakthi-media-wrapper {
  position: relative;
  background-color: #faf6eb;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bhakthi-media-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.bhakthi-media-video {
  width: 100%;
  height: auto;
  display: block;
  outline: none;
}

/* Panchangam Detailed Grid */
.panchangam-detail-card {
  background-color: var(--card-color);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.panch-section-title {
  border-bottom: 2px solid var(--btn-color);
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: bold;
}

.timing-badge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 768px) {
  .timing-badge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.timing-badge {
  background-color: var(--bg-color);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-left: 4px solid var(--btn-color);
}

.timing-badge.auspicious {
  border-left-color: #28a745;
}

.timing-badge.inauspicious {
  border-left-color: #dc3545;
}

.timing-badge-label {
  font-family: var(--font-telugu);
  font-weight: bold;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.timing-badge-value {
  font-weight: 600;
  color: var(--text-color);
}

/* Scrollbar tweaks */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--btn-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d94306;
}

/* Vertical Scrollable Pooja Catalog */
.pooja-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .pooja-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .pooja-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pooja Details */
.pooja-detail-page {
  margin-bottom: 2rem;
  padding-bottom: 5.75rem;
}

.pooja-detail-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background-color: var(--card-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pooja-detail-summary,
.pooja-detail-section {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pooja-detail-section {
  margin-top: 1.5rem;
}

.pooja-detail-summary h1 {
  line-height: 1.15;
}

.pooja-detail-price-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.pooja-share-button {
  align-items: center;
  background-color: var(--btn-color);
  border: 1px solid var(--btn-color);
  border-radius: 999px;
  color: var(--btn-text-color);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-telugu);
  font-size: 1rem;
  font-weight: 600;
  gap: 8px;
  line-height: 1;
  padding: 9px 14px;
  box-shadow: 0 4px 10px rgba(244, 77, 8, 0.2);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pooja-share-button:hover {
  background-color: #d94306;
  border-color: #d94306;
  color: var(--btn-text-color);
  box-shadow: 0 6px 15px rgba(244, 77, 8, 0.35);
  transform: translateY(-1px);
}

.pooja-share-button:focus-visible {
  outline: 3px solid rgba(244, 77, 8, 0.26);
  outline-offset: 3px;
}

.pooja-share-button-icon {
  display: block;
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.pooja-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pooja-detail-meta span,
.pooja-detail-list-item {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--heading-color);
  font-weight: 600;
  padding: 10px 14px;
}

.pooja-cancellation-meta small {
  color: var(--text-color);
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 4px;
}

.pooja-detail-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pooja-process-list {
  margin: 0;
  padding-left: 1.25rem;
}

.pooja-process-list li + li {
  margin-top: 0.5rem;
}

.pooja-sticky-booking,
.checkout-sticky-payment {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
}

.pooja-sticky-booking-button,
.checkout-sticky-payment .checkout-pay-button {
  display: block;
  width: min(100%, 520px);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pooja-detail-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .pooja-detail-img {
    border-radius: 18px;
  }

  .pooja-detail-summary {
    padding: 1.25rem;
  }
}

/* Login sheet and booking checkout */
.login-sheet-modal .modal-dialog {
  margin: 0 auto;
  align-items: flex-end;
  min-height: 100%;
}

.checkout-page {
  padding-bottom: 5.75rem;
}

.login-sheet {
  border: none;
  border-radius: 22px 22px 0 0;
  background-color: #fffdf1;
  box-shadow: 0 -12px 35px rgba(43, 62, 90, 0.2);
}

.login-sheet-header {
  border-bottom: 0;
  justify-content: center;
  padding: 24px 24px 8px;
  position: relative;
}

.login-sheet-header .modal-title {
  color: var(--heading-color);
  font-family: var(--font-english);
  font-size: 1.35rem;
  font-weight: 700;
}

.login-sheet-header .btn-close {
  position: absolute;
  right: 24px;
  top: 25px;
}

.login-phone-field {
  align-items: center;
  background-color: #fffdf9;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 10px;
  position: relative;
}

.login-phone-field input {
  background: transparent;
  border: 0;
  color: var(--text-color);
  outline: 0;
}

.login-phone-field input {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  min-height: 42px;
}

.login-country-picker {
  flex: 0 0 auto;
  position: static;
}

.login-country-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--text-color);
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  padding: 0 6px;
}

.login-country-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(244, 77, 8, 0.16);
  outline: none;
}

.login-country-flag {
  border: 1px solid rgba(43, 62, 90, 0.12);
  border-radius: 3px;
  display: block;
  height: 18px;
  object-fit: cover;
  width: 28px;
}

.login-country-caret {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #6f6a64;
  height: 0;
  width: 0;
}

.login-country-panel {
  background-color: #fffdf9;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(43, 62, 90, 0.18);
  display: none;
  left: -2px;
  overflow: hidden;
  position: absolute;
  right: -2px;
  top: calc(100% + 8px);
  z-index: 1060;
}

.login-country-picker.is-open .login-country-panel {
  display: block;
}

.login-country-search {
  border-bottom: 1px solid var(--border-color) !important;
  border-radius: 0;
  color: #4d5563 !important;
  font-size: 1rem;
  min-height: 52px;
  padding: 0 16px;
  width: 100%;
}

.login-country-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 4px 0;
}

.login-country-option {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text-color);
  display: grid;
  gap: 14px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 56px;
  padding: 10px 16px;
  text-align: left;
  width: 100%;
}

.login-country-option:hover,
.login-country-option:focus {
  background-color: var(--bg-color);
  outline: none;
}

.login-country-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-country-code {
  color: #807a73;
  font-weight: 700;
}

.login-sheet-primary {
  width: 100%;
  min-height: 54px;
}

.login-whatsapp-note {
  align-items: flex-start;
  color: #4f493f;
  display: flex;
  font-size: 0.93rem;
  gap: 8px;
  line-height: 1.35;
  margin: 0 0 16px;
}

.login-whatsapp-note img {
  flex: 0 0 auto;
  height: 22px;
  margin-top: 1px;
  width: 22px;
}

.login-otp-wrapper {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.login-resend-button {
  color: var(--btn-color);
  font-weight: 700;
  padding: 4px 0 0;
  text-decoration: none;
}

.login-resend-button:hover {
  color: #d94306;
  text-decoration: underline;
}

.login-resend-button:disabled {
  color: #82796f;
  opacity: 1;
  text-decoration: none;
}

.login-sheet-status {
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.login-sheet-note {
  color: #6a6257;
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 16px 0 6px;
  text-align: center;
}

.checkout-page {
  margin-bottom: 2rem;
}

.checkout-back-link {
  color: var(--btn-color);
  display: inline-flex;
  font-weight: 700;
  margin-bottom: 16px;
  text-decoration: none;
}

.checkout-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.checkout-main,
.checkout-summary {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.checkout-main {
  order: 2;
  padding: 24px;
}

.checkout-summary {
  order: 1;
}

.checkout-heading {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.checkout-heading h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.checkout-heading p {
  color: #665f55;
  margin-bottom: 0;
}

.checkout-kicker,
.checkout-summary-label {
  color: var(--btn-color);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-form .form-control {
  border-radius: 12px;
  border-color: var(--border-color);
}

.checkout-pay-button {
  min-height: 54px;
  width: 100%;
}

.checkout-summary-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.checkout-summary-body {
  padding: 20px;
}

.checkout-summary-body h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.checkout-summary-description {
  color: #665f55;
  margin-bottom: 18px;
}

.checkout-summary-row,
.checkout-total {
  align-items: center;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.checkout-total {
  color: var(--heading-color);
  font-size: 1.2rem;
}

.checkout-total strong {
  color: var(--btn-color);
}

.checkout-trust-text {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--heading-color);
  font-size: 0.92rem;
  margin: 10px 0 0;
  padding: 12px;
}

.checkout-success {
  background-color: #f0fff4;
  border: 1px solid #9be7b0;
  border-radius: 14px;
  margin-bottom: 20px;
  padding: 20px;
}

.checkout-success h2 {
  color: #176b36;
  font-size: 1.55rem;
}

@media (min-width: 992px) {
  .login-sheet-modal .modal-dialog {
    max-width: 520px;
    align-items: center;
  }

  .login-sheet {
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(43, 62, 90, 0.2);
  }

  .checkout-shell {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .checkout-main {
    order: 1;
  }

  .checkout-summary {
    order: 2;
  }

  .checkout-summary {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 575.98px) {
  .login-sheet-modal .modal-dialog {
    max-width: 100%;
  }

  .checkout-main {
    padding: 18px;
  }

  .checkout-heading h1 {
    font-size: 1.55rem;
  }
}

/* Core Astral Elements Card Grid Layout */
.astral-elements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 576px) {
  .astral-elements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .astral-elements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.astral-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  border-top: 4px solid var(--btn-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.astral-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.astral-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.astral-card-icon {
  font-size: 1.4rem;
}

.astral-card-title {
  font-family: var(--font-telugu);
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--heading-color);
  margin: 0;
}

.astral-card-value {
  font-family: var(--font-telugu);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--btn-color);
  margin-bottom: 15px;
}

.astral-card-times {
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  margin-top: auto;
}

.astral-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.astral-time-row:last-child {
  margin-bottom: 0;
}

.astral-time-label {
  color: var(--heading-color);
  font-family: var(--font-telugu);
  font-size: 0.85rem;
  opacity: 0.8;
}

.astral-time-value {
  font-family: var(--font-english);
  font-weight: 500;
  color: var(--text-color);
}

/* Date Selector Styles */
.date-selector-card {
  background-color: var(--card-color);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.date-selector-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.date-nav-btn {
  background-color: var(--btn-color);
  border: none;
  color: var(--btn-text-color);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-telugu);
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(244, 77, 8, 0.2);
}

.date-nav-btn:hover {
  background-color: #d94306;
  color: var(--btn-text-color);
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(244, 77, 8, 0.35);
}

.calendar-control-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
}

.calendar-label {
  display: block;
  font-family: var(--font-telugu);
  font-size: 0.85rem;
  color: var(--heading-color);
  margin: 0 auto 6px auto;
  font-weight: 500;
  opacity: 0.9;
  text-align: center;
}

.calendar-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.calendar-input {
  display: block;
  margin: 0 auto;
  width: 100%;
  padding: 8px 36px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-english);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-input:focus {
  border-color: var(--btn-color);
  box-shadow: 0 0 0 3px rgba(244, 77, 8, 0.15);
}

.calendar-input::-webkit-date-and-time-value {
  display: block !important;
  text-align: center !important;
  min-height: 1.2em;
  margin: 0 auto;
  width: 100%;
}

.calendar-input::-webkit-datetime-edit {
  display: inline-flex !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100%;
}

.calendar-input::-webkit-datetime-edit-fields-wrapper {
  display: inline-flex !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 auto;
}

.calendar-icon-overlay {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1.1rem;
}

.badge-date {
  background-color: rgba(244, 77, 8, 0.1);
  color: var(--btn-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-family: var(--font-telugu);
  font-weight: bold;
  font-size: 1.05rem;
  display: inline-block;
}

@media (max-width: 576px) {
  .date-selector-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .date-nav-btn {
    padding: 8px 24px;
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
  .calendar-control-container {
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* Jyotishyam services */
.jyotishyam-page,
.jataka-page {
  margin-bottom: 2rem;
}

.jyotishyam-kicker {
  color: var(--btn-color);
  font-family: var(--font-telugu);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.jyotishyam-service-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .jyotishyam-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.jyotishyam-service-card {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(43, 62, 90, 0.08);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jyotishyam-service-card:hover {
  color: var(--text-color);
  box-shadow: 0 14px 32px rgba(43, 62, 90, 0.14);
  transform: translateY(-4px);
}

.jyotishyam-service-card-disabled {
  opacity: 0.82;
}

.jyotishyam-service-card-disabled:hover {
  box-shadow: 0 8px 24px rgba(43, 62, 90, 0.08);
  transform: none;
}

.jyotishyam-service-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.jyotishyam-service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.jyotishyam-service-tag {
  align-self: flex-start;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--btn-color);
  font-family: var(--font-telugu);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 6px 12px;
}

.jyotishyam-service-body h2 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.jyotishyam-service-body p {
  color: #5f584f;
  font-family: var(--font-telugu);
  line-height: 1.6;
  margin-bottom: 18px;
}

.jyotishyam-service-action {
  color: var(--btn-color);
  font-family: var(--font-telugu);
  font-weight: 800;
  margin-top: auto;
}

/* Rashi Phalalu */
.rashi-page {
  margin-bottom: 2rem;
}

/* Bhagavad Gita */
.gita-page,
.gita-sloka-page {
  margin-bottom: 2rem;
}

.gita-hero,
.gita-sloka-picker-panel,
.gita-sloka-detail-panel {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(43, 62, 90, 0.06);
}

.gita-hero {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 24px;
}

.gita-hero h1 {
  margin-bottom: 8px;
}

.gita-hero p {
  color: #5f584f;
  font-family: var(--font-telugu);
  margin-bottom: 0;
}

.gita-kicker {
  color: var(--btn-color);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.gita-hero-count {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--heading-color);
  flex: 0 0 auto;
  font-weight: 800;
  padding: 10px 16px;
}

.gita-chapter-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.gita-chapter-card {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(43, 62, 90, 0.06);
  color: var(--text-color);
  display: grid;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gita-chapter-card:hover {
  box-shadow: 0 14px 32px rgba(43, 62, 90, 0.14);
  color: var(--text-color);
  transform: translateY(-4px);
}

.gita-chapter-img {
  background-color: var(--card-color);
  display: block;
  height: auto;
  width: 100%;
}

.gita-chapter-body {
  display: flex;
  flex-direction: column;
  min-height: 112px;
  padding: 20px;
}

.gita-chapter-body span {
  color: var(--btn-color);
  font-family: var(--font-telugu);
  font-weight: 800;
  margin-bottom: 8px;
}

.gita-chapter-body h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.gita-chapter-body strong {
  color: var(--btn-color);
  font-family: var(--font-telugu);
  margin-top: 4px;
}

.gita-back-link {
  color: var(--btn-color);
  display: inline-flex;
  font-weight: 800;
  margin-bottom: 16px;
  text-decoration: none;
}

.gita-back-link:hover {
  color: #d94306;
}

.gita-sloka-shell {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.gita-sloka-picker-panel,
.gita-sloka-detail-panel {
  padding: 22px;
}

.gita-sloka-picker-panel h1 {
  font-size: 1.65rem;
  margin-bottom: 8px;
}

.gita-sloka-picker-panel p {
  color: #5f584f;
  font-family: var(--font-telugu);
  line-height: 1.6;
}

.gita-sloka-progress-card {
  background-color: #fffdf8;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
}

.gita-sloka-progress-card span {
  color: #645d54;
  font-family: var(--font-telugu);
  font-size: 0.95rem;
}

.gita-sloka-progress-card strong {
  color: var(--heading-color);
  font-size: 1.35rem;
}

.gita-sloka-progress {
  background-color: var(--bg-color);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.gita-sloka-progress span {
  background-color: var(--btn-color);
  display: block;
  height: 100%;
}

.gita-all-slokas-button {
  margin-top: 14px;
  width: 100%;
}

.gita-sloka-heading {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.gita-sloka-heading span {
  color: var(--btn-color);
  font-family: var(--font-telugu);
  font-weight: 800;
}

.gita-sloka-heading h2 {
  font-size: 2rem;
  margin: 8px 0;
}

.gita-sloka-heading p {
  color: #5f584f;
  font-family: var(--font-telugu);
  margin-bottom: 0;
}

.gita-sloka-nav {
  align-items: center;
  background-color: #fffdf8;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin-bottom: 18px;
  padding: 10px;
}

.gita-sloka-nav-link {
  align-items: center;
  background-color: var(--card-color);
  border: 1px solid rgba(244, 77, 8, 0.22);
  border-radius: 999px;
  color: var(--btn-color);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  text-decoration: none;
}

.gita-sloka-nav-link:hover {
  background-color: var(--btn-color);
  color: var(--btn-text-color);
}

.gita-sloka-nav-link.disabled {
  border-color: var(--border-color);
  color: #9a9188;
  pointer-events: none;
}

.gita-sloka-nav-count {
  color: var(--heading-color);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.gita-sloka-section {
  background-color: #fffdf8;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-top: 16px;
  padding: 20px;
}

.gita-sloka-section h3 {
  color: var(--btn-color);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.gita-sloka-section p {
  color: #332f2a;
  font-family: var(--font-telugu);
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 0;
}

.gita-sloka-text {
  white-space: pre-line;
}

.gita-sloka-modal .modal-content {
  background-color: #fffdf8;
  border: 1px solid var(--border-color);
  border-radius: 18px;
}

.gita-sloka-modal .modal-header {
  border-bottom-color: var(--border-color);
}

.gita-sloka-modal .modal-title {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.gita-sloka-modal-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gita-sloka-modal-item {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--heading-color);
  font-family: var(--font-telugu);
  font-weight: 800;
  min-height: 48px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
}

.gita-sloka-modal-item:hover,
.gita-sloka-modal-item.active {
  background-color: var(--btn-color);
  border-color: var(--btn-color);
  color: var(--btn-text-color);
}

@media (min-width: 768px) {
  .gita-chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .gita-sloka-shell {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .gita-sloka-picker-panel {
    position: sticky;
    top: 92px;
  }

  .gita-sloka-modal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .gita-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .gita-sloka-picker-panel,
  .gita-sloka-detail-panel {
    padding: 18px;
  }

  .gita-sloka-heading h2 {
    font-size: 1.65rem;
  }

  .gita-sloka-section {
    padding: 16px;
  }

  .gita-sloka-nav {
    grid-template-columns: 1fr 1fr;
  }

  .gita-sloka-nav-count {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

.rashi-hero,
.rashi-summary-card,
.rashi-panel {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(43, 62, 90, 0.06);
}

.rashi-hero {
  display: grid;
  gap: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 24px;
}

.rashi-hero-copy {
  border-bottom: 1px solid rgba(217, 217, 217, 0.78);
  padding-bottom: 18px;
}

.rashi-hero-copy h1 {
  margin-bottom: 8px;
}

.rashi-picker {
  display: grid;
  gap: 12px;
}

.rashi-picker-label {
  color: var(--btn-color);
  font-family: var(--font-telugu);
  font-size: 0.95rem;
  font-weight: 800;
}

.rashi-chip-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rashi-chip {
  align-items: center;
  background-color: #fffdf8;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--heading-color);
  display: grid;
  gap: 10px;
  grid-template-columns: 40px minmax(0, 1fr);
  font-family: var(--font-telugu);
  line-height: 1.25;
  min-height: 68px;
  padding: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rashi-chip:hover,
.rashi-chip.active {
  border-color: rgba(244, 77, 8, 0.45);
  box-shadow: 0 8px 20px rgba(43, 62, 90, 0.08);
  color: var(--heading-color);
  transform: translateY(-2px);
}

.rashi-chip.active {
  background-color: #fff5eb;
}

.rashi-chip-icon {
  align-items: center;
  background-color: var(--card-color);
  border: 1px solid rgba(244, 77, 8, 0.18);
  border-radius: 12px;
  color: var(--btn-color);
  display: inline-flex;
  font-family: "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.rashi-chip.active .rashi-chip-icon {
  background-color: var(--btn-color);
  border-color: var(--btn-color);
  color: var(--btn-text-color);
}

.rashi-chip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rashi-chip small {
  color: #6a6257;
  font-family: var(--font-english);
  font-weight: 700;
}

.rashi-content {
  display: grid;
  gap: 22px;
}

.rashi-summary-card {
  align-items: start;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  display: block;
  overflow: hidden;
  padding: 0;
}

.rashi-summary-card > div {
  padding: 24px;
}

.rashi-summary-label {
  color: var(--btn-color);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rashi-summary-card h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.rashi-summary-lucky-grid {
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 217, 217, 0.72);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 18px;
  padding: 16px;
}

.rashi-nakshatra-list,
.rashi-date-list,
.rashi-weekday-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rashi-nakshatra-list span,
.rashi-date-list span,
.rashi-weekday-list span {
  background-color: #fff7e8;
  border: 1px solid rgba(244, 77, 8, 0.18);
  border-radius: 999px;
  color: var(--heading-color);
  font-family: var(--font-telugu);
  font-weight: 700;
  padding: 8px 12px;
}

.rashi-score-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.rashi-score-grid > div {
  background-color: #ffffff;
  border: 1px solid rgba(43, 62, 90, 0.12);
  border-left: 4px solid var(--btn-color);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(43, 62, 90, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 14px 16px;
}

.rashi-score-grid span {
  color: #536071;
  display: block;
  font-family: var(--font-telugu);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.rashi-score-grid strong {
  color: var(--heading-color);
  font-size: 1.8rem;
  line-height: 1;
}

.rashi-detail-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
}

.rashi-panel {
  padding: 22px;
}

.rashi-panel h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.rashi-year-panel p,
.rashi-month-card p {
  color: #4f493f;
  font-family: var(--font-telugu);
  line-height: 1.85;
}

.rashi-section-heading {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.rashi-section-heading h2 {
  margin-bottom: 0;
}

.rashi-month-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.rashi-month-card {
  background-color: #fffdf8;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
}

.rashi-month-card h3 {
  color: var(--btn-color);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.rashi-month-card p {
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .rashi-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .rashi-score-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rashi-summary-lucky-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rashi-month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .rashi-chip-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

}

@media (max-width: 767.98px) {
  .rashi-hero {
    padding: 18px;
  }

  .rashi-hero-copy {
    padding-bottom: 14px;
  }

  .rashi-chip {
    gap: 8px;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 60px;
    padding: 8px;
  }

  .rashi-chip-icon {
    border-radius: 10px;
    font-size: 1.2rem;
    height: 34px;
    width: 34px;
  }

  .rashi-chip-text > span {
    font-size: 0.96rem;
    overflow-wrap: anywhere;
  }

  .rashi-chip small {
    font-size: 0.78rem;
  }

  .rashi-summary-card,
  .rashi-panel {
    border-radius: 14px;
  }

  .rashi-summary-card > div {
    padding: 18px;
  }

  .rashi-summary-card h2 {
    font-size: 1.7rem;
  }

  .rashi-score-grid {
    gap: 10px;
  }

  .rashi-score-grid > div {
    min-height: 78px;
    padding: 12px;
  }

  .rashi-score-grid strong {
    font-size: 1.55rem;
  }

  .rashi-nakshatra-list span,
  .rashi-date-list span,
  .rashi-weekday-list span {
    font-size: 0.95rem;
    padding: 7px 10px;
  }
}

/* Jataka Chakram */
.jataka-hero {
  align-items: center;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(43, 62, 90, 0.06);
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 24px;
}

.jataka-form-card,
.jataka-summary-card,
.jataka-chart-card {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(43, 62, 90, 0.06);
}

.jataka-form-card {
  padding: 22px;
}

.jataka-form-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.jataka-form-heading h2 {
  color: var(--heading-color);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.jataka-form-heading p {
  color: #645d54;
  margin: 0;
}

.jataka-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .jataka-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .jataka-form-grid {
    grid-template-columns: minmax(150px, 0.8fr) minmax(140px, 0.75fr) minmax(180px, 1fr) minmax(240px, 1.45fr);
  }
}

.jataka-form-card .form-label {
  color: var(--heading-color);
  font-weight: 700;
}

.jataka-control {
  background-color: #fffdf8;
  border-color: var(--border-color);
  border-radius: 8px;
  min-height: 48px;
}

.jataka-control:focus {
  border-color: var(--btn-color);
  box-shadow: 0 0 0 3px rgba(244, 77, 8, 0.14);
}

.jataka-country-picker {
  position: relative;
}

.jataka-country-toggle {
  align-items: center;
  background-color: #fffdf8;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}

.jataka-country-toggle:focus-visible {
  border-color: var(--btn-color);
  box-shadow: 0 0 0 3px rgba(244, 77, 8, 0.14);
  outline: none;
}

.jataka-country-flag {
  border: 1px solid rgba(43, 62, 90, 0.12);
  border-radius: 3px;
  display: block;
  height: 18px;
  object-fit: cover;
  width: 28px;
}

.jataka-country-selected-text {
  align-items: baseline;
  display: flex;
  gap: 8px;
  min-width: 0;
}

#birthCountrySelectedName,
.jataka-country-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jataka-country-selected-code,
.jataka-country-code {
  color: #807a73;
  font-weight: 700;
}

.jataka-country-caret {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #6f6a64;
  height: 0;
  width: 0;
}

.jataka-country-panel {
  background-color: #fffdf9;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(43, 62, 90, 0.18);
  display: none;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

.jataka-country-picker.is-open .jataka-country-panel {
  display: block;
}

.jataka-country-search {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  color: #4d5563;
  font-size: 1rem;
  min-height: 52px;
  outline: 0;
  padding: 0 16px;
  width: 100%;
}

.jataka-country-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 4px 0;
}

.jataka-country-option {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text-color);
  display: grid;
  gap: 12px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 10px 14px;
  text-align: left;
  width: 100%;
}

.jataka-country-option:hover,
.jataka-country-option:focus {
  background-color: var(--bg-color);
  outline: none;
}

.jataka-submit {
  margin-top: 18px;
  min-height: 50px;
  width: 100%;
}

@media (min-width: 576px) {
  .jataka-submit {
    width: auto;
  }
}

.jataka-place-field {
  position: relative;
}

.city-suggestions {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(43, 62, 90, 0.18);
  left: 0;
  max-height: 280px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.city-suggestion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  padding: 11px 14px;
  text-align: left;
  width: 100%;
}

.city-suggestion-item:last-child {
  border-bottom: 0;
}

.city-suggestion-item:hover,
.city-suggestion-item:focus {
  background-color: var(--bg-color);
  outline: none;
}

.city-suggestion-item span {
  color: #70685f;
  font-size: 0.9rem;
}

.jataka-results {
  margin-top: 26px;
}

.jataka-summary-card {
  padding: 22px;
}

.jataka-summary-card h2,
.jataka-chart-card h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.jataka-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .jataka-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.jataka-summary-grid > div {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
}

.jataka-summary-grid span {
  color: #645d54;
  display: block;
  font-family: var(--font-telugu);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.jataka-summary-grid strong {
  color: var(--heading-color);
  font-family: var(--font-telugu);
  font-size: 1.15rem;
}

.jataka-chart-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}

@media (min-width: 1200px) {
  .jataka-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.jataka-chart-card {
  padding: 18px;
}

.south-chart {
  aspect-ratio: 1 / 1;
  background-color: #fffdf7;
  border: 3px solid #8f1109;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  position: relative;
  width: 100%;
}

.south-chart-cell {
  border: 1px solid #8f1109;
  min-width: 0;
  overflow: hidden;
  padding: 7px;
  position: relative;
}

.south-chart-cell.rashi-12 { grid-column: 1; grid-row: 1; }
.south-chart-cell.rashi-1 { grid-column: 2; grid-row: 1; }
.south-chart-cell.rashi-2 { grid-column: 3; grid-row: 1; }
.south-chart-cell.rashi-3 { grid-column: 4; grid-row: 1; }
.south-chart-cell.rashi-11 { grid-column: 1; grid-row: 2; }
.south-chart-cell.rashi-4 { grid-column: 4; grid-row: 2; }
.south-chart-cell.rashi-10 { grid-column: 1; grid-row: 3; }
.south-chart-cell.rashi-5 { grid-column: 4; grid-row: 3; }
.south-chart-cell.rashi-9 { grid-column: 1; grid-row: 4; }
.south-chart-cell.rashi-8 { grid-column: 2; grid-row: 4; }
.south-chart-cell.rashi-7 { grid-column: 3; grid-row: 4; }
.south-chart-cell.rashi-6 { grid-column: 4; grid-row: 4; }

.south-chart-rashi-label {
  color: #82796f;
  display: flex;
  gap: 4px;
  line-height: 1.15;
  min-width: 0;
}

.south-chart-rashi {
  color: inherit;
  flex: 0 0 auto;
  font-family: var(--font-english);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 700;
}

.south-chart-rashi-name {
  color: inherit;
  display: inline;
  font-family: var(--font-telugu);
  font-size: clamp(0.68rem, 1.3vw, 0.85rem);
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.south-chart-bhava {
  color: #5f6b78;
  display: block;
  font-family: var(--font-telugu);
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  line-height: 1.15;
  margin-top: 2px;
}

.south-chart-planets {
  bottom: 6px;
  display: grid;
  gap: 1px;
  left: 7px;
  position: absolute;
  right: 7px;
}

.planet-line {
  color: #84250b;
  display: block;
  font-family: var(--font-telugu);
  font-size: clamp(0.68rem, 1.5vw, 0.94rem);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.planet-line strong {
  color: #111827;
  font-family: var(--font-english);
}

.planet-line small {
  color: #5f6b78;
  font-size: 0.78em;
  font-weight: 700;
  margin-left: 3px;
  white-space: nowrap;
}

.south-chart-center {
  align-items: center;
  color: #5c2a16;
  display: flex;
  flex-direction: column;
  font-family: var(--font-telugu);
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.om-symbol {
  color: #b00000;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1;
  margin-bottom: 4px;
}

.bhava-details {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.bhava-details h3 {
  color: var(--heading-color);
  font-family: var(--font-telugu);
  font-size: 1rem;
  margin-bottom: 10px;
}

.bhava-detail-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bhava-detail-grid > div {
  background-color: #fffdf7;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 10px;
}

.bhava-detail-grid span,
.bhava-detail-grid strong {
  display: block;
  font-family: var(--font-telugu);
  line-height: 1.25;
}

.bhava-detail-grid span {
  color: #645d54;
  font-size: 0.78rem;
}

.bhava-detail-grid strong {
  color: var(--heading-color);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .bhava-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .jataka-hero,
  .jataka-form-card,
  .jataka-summary-card,
  .jataka-chart-card {
    border-radius: 14px;
    padding: 16px;
  }

  .jataka-summary-grid {
    grid-template-columns: 1fr;
  }

  .south-chart-cell {
    padding: 5px;
  }

  .south-chart-planets {
    bottom: 4px;
    left: 5px;
    right: 5px;
  }
}

:is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .telugu-text,
  .navbar-nav .nav-link,
  .btn-saffron,
  .panch-value,
  .home-service-card-title,
  .bhakthi-feed-title,
  .timing-badge-label,
  .timing-badge-value,
  .astral-card-title,
  .astral-card-value,
  .astral-time-label,
  .date-nav-btn,
  .date-nav-btn .btn-text,
  .calendar-label,
  .badge-date,
  .panchangam-detail-card .list-group[style*="--font-telugu"] span,
  .panchangam-detail-card .list-group[style*="--font-telugu"] strong,
  .panchangam-detail-card .alert[style*="--font-telugu"],
  .panchangam-detail-card .alert[style*="--font-telugu"] strong,
  .pooja-share-button,
  .pooja-share-button span,
  .pooja-detail-meta span,
  .pooja-detail-list-item,
  .pooja-detail-list-item strong,
  .checkout-heading p,
  .checkout-summary-label,
  .checkout-form .form-label,
  .checkout-form .form-check-label,
  .checkout-summary-row span,
  .checkout-summary-row strong,
  .jyotishyam-kicker,
  .jyotishyam-service-tag,
  .jyotishyam-service-body p,
  .jyotishyam-service-action,
  .gita-hero p,
  .gita-chapter-body span,
  .gita-chapter-body strong,
  .gita-sloka-picker-panel p,
  .gita-sloka-progress-card span,
  .gita-sloka-heading span,
  .gita-sloka-heading p,
  .gita-sloka-section p,
  .gita-sloka-index-link,
  .gita-sloka-modal-item,
  .rashi-picker-label,
  .rashi-chip,
  .rashi-summary-label,
  .rashi-score-grid span,
  .rashi-nakshatra-list span,
  .rashi-date-list span,
  .rashi-weekday-list span,
  .rashi-month-card p,
  .jataka-summary-grid span,
  .jataka-summary-grid strong,
  .south-chart-rashi-name,
  .south-chart-bhava,
  .south-chart-planets,
  .south-chart-center,
  .bhava-details h3,
  .bhava-detail-grid strong
) {
  font-synthesis-weight: none;
  font-weight: var(--telugu-font-weight) !important;
  word-spacing: var(--telugu-word-spacing);
}

:is(
  .navbar-nav .nav-link,
  .btn-saffron,
  .panch-value,
  .home-service-card-title,
  .bhakthi-feed-title,
  .timing-badge-label,
  .timing-badge-value,
  .astral-card-title,
  .astral-card-value,
  .astral-time-label,
  .date-nav-btn,
  .date-nav-btn .btn-text,
  .calendar-label,
  .badge-date,
  .panchangam-detail-card .list-group[style*="--font-telugu"] span,
  .panchangam-detail-card .list-group[style*="--font-telugu"] strong,
  .panchangam-detail-card .alert[style*="--font-telugu"],
  .panchangam-detail-card .alert[style*="--font-telugu"] strong,
  .pooja-share-button,
  .pooja-share-button span,
  .pooja-detail-meta span,
  .pooja-detail-list-item,
  .pooja-detail-list-item strong,
  .checkout-heading p,
  .checkout-summary-label,
  .checkout-form .form-label,
  .checkout-form .form-check-label,
  .checkout-summary-row span,
  .checkout-summary-row strong,
  .jyotishyam-kicker,
  .jyotishyam-service-tag,
  .jyotishyam-service-action,
  .gita-chapter-body span,
  .gita-chapter-body strong,
  .gita-sloka-progress-card span,
  .gita-sloka-heading span,
  .gita-sloka-index-link,
  .gita-sloka-modal-item,
  .rashi-picker-label,
  .rashi-chip,
  .rashi-summary-label,
  .rashi-score-grid span,
  .rashi-nakshatra-list span,
  .rashi-date-list span,
  .rashi-weekday-list span,
  .jataka-summary-grid span,
  .jataka-summary-grid strong,
  .bhava-details h3,
  .bhava-detail-grid strong
) {
  line-height: var(--telugu-ui-line-height);
}

:is(
  .telugu-text,
  .jyotishyam-service-body p,
  .gita-hero p,
  .gita-sloka-picker-panel p,
  .gita-sloka-heading p,
  .gita-sloka-section p,
  .rashi-month-card p
) {
  line-height: var(--telugu-content-line-height);
}
