/* =========================================================================
   Jai Bhole - Common responsive layout (header, drawer, footer, accessibility)
   Loaded after style.css / style1.css by head.php and headBasic.php.
   No frameworks, no JS libraries. Works in Android WebView (Chrome 70+).
   ========================================================================= */

:root {
  --jb-saffron: #FF9800;
  --jb-deep: #FF5722;
  --jb-gold: #C9971C;
  --jb-gold-soft: #FDE9B0;
  --jb-cream: #FFFAF3;
  --jb-ink: #2B2118;          /* deep charcoal text */
  --jb-brown: #3A1D08;        /* header text / footer background */
  --jb-line: #F3DFC1;
  --jb-header-h: 64px;
  --jb-radius: 14px;
  --jb-focus: #8A3B00;
}

/* ---------- Base typography & accessibility ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.jb-noscroll, html.jb-noscroll body { overflow: hidden; }
body {
  background-color: var(--jb-cream);
  color: var(--jb-ink);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
p { color: #3a2e24; }
a { -webkit-tap-highlight-color: rgba(255, 152, 0, .25); }
:focus-visible { outline: 3px solid var(--jb-focus); outline-offset: 2px; }
.top-70 { margin-top: calc(var(--jb-header-h) + 16px); }
.jb-hero-slider-wrap,
.responsive-banner {
  margin-top: calc(var(--jb-header-h) + 16px);
  margin-bottom: 20px;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 14px;
  padding-right: 14px;
  box-sizing: border-box;
}
[id="panchang"], [id="ReadingSection"] { scroll-margin-top: calc(var(--jb-header-h) + 12px); }

/* Private / account pages sit below the fixed header */
body .journey-wrapper,
body .sankalp-portal-wrapper,
body .profile-page-wrapper,
body .auth-wrapper { padding-top: calc(var(--jb-header-h) + 24px); }

/* Comfortable tap targets for the main actions */
.button, input[type=submit], #loadMoreBtn, .btn-primary-jb {
  min-height: 46px;
}
select { min-height: 44px; }

.jb-skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: #fff; color: var(--jb-brown); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.jb-skip-link:focus { top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Header ---------- */
.header.jb-header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  height: var(--jb-header-h);
  background: linear-gradient(90deg, var(--jb-saffron), var(--jb-deep));
  box-shadow: 0 2px 10px rgba(90, 40, 0, .25);
  border-bottom: 3px solid var(--jb-gold);
  z-index: 999;
  box-sizing: border-box;
}
.jb-header-inner {
  max-width: 1400px; height: 100%; margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; gap: 10px; box-sizing: border-box;
}
.jb-header a, .jb-header button { color: var(--jb-brown); font-family: inherit; }
.jb-header .jb-brand { padding: 0; }

.jb-menu-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  min-height: 46px; padding: 0 14px; border: 2px solid var(--jb-brown); border-radius: 12px;
  background: rgba(255, 255, 255, .92); font-size: 16px; font-weight: 700; cursor: pointer;
}
.jb-menu-btn:hover { background: #fff; }
.jb-burger { display: inline-flex; flex-direction: column; justify-content: space-between; width: 20px; height: 15px; }
.jb-burger i { display: block; height: 3px; border-radius: 2px; background: var(--jb-brown); }

.jb-brand {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: 0 0 auto; min-width: 0;
}
.jb-brand img { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.25); background: #fff; }
.jb-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.jb-brand-text strong { font-size: 20px; letter-spacing: .2px; }
.jb-brand-text small { font-size: 13px; font-weight: 600; }

/* Desktop navigation */
.jb-primary-nav { display: none; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: space-between; }
.jb-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.jb-nav-personal { padding-left: 10px; margin-left: 8px; border-left: 2px solid rgba(58, 29, 8, .35); }
.jb-nav-list > li { position: relative; }
.jb-nav-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.jb-nav-link:hover, .jb-has-menu.jb-menu-open > .jb-nav-link { background: rgba(255, 255, 255, .55); }
.jb-nav-link[aria-current="page"] { background: rgba(255, 255, 255, .8); }
.jb-nav-sadhana { background: rgba(255, 255, 255, .35); }

.jb-submenu {
  display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 1100;
  list-style: none; margin: 0; padding: 8px; min-width: 250px;
  background: #fff; border: 1px solid var(--jb-line); border-top: 4px solid var(--jb-saffron);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(60, 30, 0, .22);
}
.jb-submenu-right { left: auto; right: 0; }
.jb-menu-open > .jb-submenu { display: block; }
.jb-submenu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 6px 12px; border-radius: 8px;
  color: var(--jb-ink); text-decoration: none; font-size: 16px; font-weight: 600;
}
.jb-submenu a small { color: #7a6a5a; font-weight: 500; font-size: 13px; }
.jb-submenu a:hover { background: #FFF1DC; }
.jb-submenu a[aria-current="page"] { background: #FFE6C2; }

/* Account area */
.jb-account { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.jb-account-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px 0 8px;
  background: #fff; border-radius: 26px; border: 2px solid var(--jb-brown);
  font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.jb-account-btn:hover { background: #FFF1DC; }
.jb-login-btn { padding: 0 16px; }
.jb-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--jb-brown); color: #fff; font-size: 16px; font-weight: 700;
}
.jb-logout-btn {
  display: none; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none; border: 2px solid rgba(58, 29, 8, .55);
}
.jb-logout-btn:hover { background: rgba(255, 255, 255, .55); }

/* ---------- Navigation drawer (sidebar) ---------- */
.sidenav.jb-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; height: 100%;
  width: min(360px, 90vw); max-width: none; padding: 0; z-index: 1201;
  background: var(--jb-cream); overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateX(-102%); visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
  box-shadow: 6px 0 28px rgba(0, 0, 0, .3);
}
.sidenav.jb-drawer.jb-open { transform: translateX(0); visibility: visible; transition: transform .28s ease, visibility 0s; }
.jb-overlay {
  position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: rgba(30, 15, 0, .55); opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.jb-overlay.jb-open { opacity: 1; visibility: visible; }

.jb-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 0 0 auto;
  padding: 12px 14px; background: linear-gradient(90deg, var(--jb-saffron), var(--jb-deep));
  border-bottom: 3px solid var(--jb-gold);
}
.sidenav.jb-drawer .jb-drawer-brand {
  display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none;
  color: var(--jb-brown); text-decoration: none; font-size: 16px; min-width: 0;
}
.jb-drawer-brand img { border-radius: 50%; box-shadow: 0 0 0 2px #fff; background: #fff; }
.jb-drawer-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.jb-drawer-brand strong { font-size: 20px; }
.jb-drawer-brand small { font-size: 12px; font-weight: 600; }
.jb-drawer-close {
  min-height: 44px; padding: 0 12px; border: 2px solid var(--jb-brown); border-radius: 10px;
  background: #fff; color: var(--jb-brown); font-size: 15px; font-weight: 700; cursor: pointer; flex: 0 0 auto;
}
.jb-drawer-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 12px 28px; }
.jb-drawer-group { margin-top: 14px; }
.jb-drawer-title {
  margin: 0 0 6px; padding: 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .3px;
  color: #8A4B00; text-transform: none !important; border-left: 4px solid var(--jb-saffron); padding-left: 10px;
}
.jb-drawer-title span { font-weight: 500; font-size: 12px; color: #7a6a5a; }
.sidenav.jb-drawer .jb-drawer-body a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 50px; padding: 8px 14px; margin: 4px 0;
  border: 1px solid var(--jb-line); border-radius: 12px; background: #fff;
  color: var(--jb-ink); font-size: 18px; font-weight: 600; text-decoration: none; line-height: 1.3;
}
.sidenav.jb-drawer .jb-drawer-body a small { font-size: 13px; font-weight: 500; color: #7a6a5a; }
.sidenav.jb-drawer .jb-drawer-body a:hover { background: #FFF1DC; border-color: var(--jb-saffron); color: var(--jb-ink); }
.sidenav.jb-drawer .jb-drawer-body a[aria-current="page"] { background: #FFE6C2; border-color: var(--jb-deep); }
.jb-drawer-personal { background: #FFF3DF; border: 1px dashed var(--jb-gold); border-radius: 14px; padding: 10px 8px 6px; }
.sidenav.jb-drawer .jb-drawer-body a.jb-drawer-login {
  background: linear-gradient(90deg, var(--jb-saffron), var(--jb-deep)); border-color: var(--jb-brown); color: var(--jb-brown); font-weight: 700;
}
.sidenav.jb-drawer .jb-drawer-body a.jb-drawer-logout { color: #9b1c1c; }

/* ---------- Home quick links ---------- */
.jb-quick { margin: 8px 0 22px; }
.jb-quick-title { text-align: center; font-size: 22px; margin: 18px 0 12px; color: #8A3B00; text-transform: none !important; }
.jb-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.jb-quick-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 84px;
  background: #fff; border: 1px solid var(--jb-line); border-left: 6px solid var(--jb-saffron);
  border-radius: var(--jb-radius); text-decoration: none; color: var(--jb-ink);
  box-shadow: 0 3px 12px rgba(201, 151, 28, .12); transition: transform .2s ease, box-shadow .2s ease;
}
.jb-quick-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201, 151, 28, .25); }
.jb-quick-icon { font-size: 34px; line-height: 1; flex: 0 0 auto; }
.jb-quick-card strong { display: block; font-size: 19px; color: #8A3B00; }
.jb-quick-card span span { display: block; font-size: 15px; color: #5b4a3a; }

/* ---------- Content cards (category lists) ---------- */
.category-card, .ReadingSection-item { transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-3px); }
.ReadingSection-item a { min-height: 60px; }

/* ---------- Footer ---------- */
.footer.jb-footer {
  position: static; width: 100%; margin-top: 36px; box-sizing: border-box;
  background: var(--jb-brown); color: #FDEFD6;
  border-top: 5px solid var(--jb-saffron);
}
.jb-footer .footer-body.jb-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px;
  max-width: 1250px; margin: 0 auto; padding: 30px 18px 12px; text-align: left; box-sizing: border-box;
}
.jb-footer .footer-body-item { float: none; padding: 0; margin: 0; color: #FDEFD6; }
.jb-footer .footer-heading {
  font-size: 18px; font-weight: 700; color: #FFC85A; margin: 0 0 10px; text-transform: none !important;
}
.jb-footer ul { list-style: none; margin: 0; padding: 0; }
.jb-footer li { padding: 0; }
.jb-footer li:hover { text-decoration: none; }
.jb-footer .footer-body-item a, .jb-footer a { color: #FDEFD6; text-decoration: none; }
.jb-footer li a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 0; font-size: 16px; }
.jb-footer li a:hover, .jb-footer a:hover { color: #FFC85A; text-decoration: underline; }
.jb-footer p { color: #F3DFC1; font-size: 15px; margin: 10px 0 0; }
.jb-footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.jb-footer-brand img { border-radius: 50%; background: #fff; }
.jb-footer-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.jb-footer-brand strong { font-size: 22px; color: #fff; }
.jb-footer-brand small { color: #FFC85A; font-size: 14px; }
.jb-footer-social { display: flex; gap: 12px; margin-top: 12px; }
.jb-footer-social a { display: inline-flex; min-height: 44px; }
.jb-footer .footerrights { border-top: 1px solid rgba(255, 255, 255, .22); text-align: center; font-size: 14px; padding: 10px 14px 16px; }
.jb-footer .footerrights p { margin: 0; color: #F3DFC1; font-size: 14px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 1100px) {
  .jb-primary-nav { display: flex; }
  .jb-logout-btn { display: inline-flex; }
}
@media (max-width: 1099px) {
  .jb-brand-text strong { font-size: 19px; }
}
@media (max-width: 860px) {
  .jb-footer .footer-body.jb-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --jb-header-h: 60px; }
  body { font-size: 17px; }
  .jb-header-inner { padding: 0 8px; gap: 6px; }
  .jb-menu-btn { padding: 0 10px; gap: 6px; }
  .jb-account-name { display: none; }
  .jb-account-btn { padding: 0 6px; }
  .jb-login-btn { padding: 0 12px; }
  .jb-login-extra { display: none; }
  .jb-footer .footer-body.jb-footer-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; }
  .jb-hero-slider-wrap,
  .responsive-banner {
    margin-top: calc(var(--jb-header-h) + 10px);
    margin-bottom: 14px;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 420px) {
  .jb-brand-text small { display: none; }
  .jb-brand-text strong { font-size: 17px; }
  .jb-brand img { width: 38px; height: 38px; }
}
@media (max-width: 350px) {
  .jb-brand-text { display: none; }
}

/* ---------- Sankalp / audio player: small-screen safety (approved design unchanged) ---------- */
@media (max-width: 520px) {
  .sankalp-portal-container .portal-card { padding: 16px; }
  .sankalp-header-card { padding: 18px 16px; }
  .sankalp-header-card h1 { font-size: 21px; }
  .player-stage-bar { flex-wrap: wrap; gap: 6px; font-size: 12px; }
  .rep-pill-btn { min-height: 44px; }
  .jb-audio-title { max-width: 100% !important; white-space: normal !important; }
  .jb-audio-mode-bar { flex-wrap: wrap; }
  .custom-audio-container .jb-audio-footer { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   Home Page Redesign: Daily Worship (दैनिक उपासना) & Spiritual Reading (अध्यात्म पठन)
   ========================================================================= */
.jb-home-section {
  max-width: 1300px;
  margin: 36px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.jb-section-head {
  text-align: center;
  margin-bottom: 22px;
}

.jb-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--jb-gold-soft);
  color: var(--jb-brown);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
  border: 1px solid var(--jb-line);
}

.jb-section-title {
  font-size: 27px;
  font-weight: 800;
  color: var(--jb-brown);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.jb-section-desc {
  font-size: 15.5px;
  color: #5d4632;
  margin: 0 auto;
  max-width: 720px;
}

/* 5 Cards Responsive Grid: 5 columns on desktop, 3 on tablet, 2 on mobile, 1 on small mobile */
.jb-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.jb-cat-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--jb-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(58, 29, 8, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.jb-cat-card:hover, .jb-cat-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(255, 87, 34, 0.16);
  border-color: var(--jb-saffron);
}

.jb-cat-card-media {
  position: relative;
  width: 100%;
  padding-top: 62%;
  overflow: hidden;
  background: #f7ede2;
}

.jb-cat-card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.jb-cat-card:hover .jb-cat-card-media img {
  transform: scale(1.05);
}

.jb-cat-badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(43, 33, 24, 0.82);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.2px;
}

.jb-cat-card-body {
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jb-cat-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.jb-cat-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.jb-cat-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--jb-brown);
  margin: 0;
  line-height: 1.3;
}

.jb-cat-card-english {
  font-size: 11.5px;
  font-weight: 600;
  color: #8c6b4b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.jb-cat-card-desc {
  font-size: 13px;
  color: #554433;
  line-height: 1.45;
  margin: 0 0 12px;
  flex: 1;
}

.jb-cat-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px; /* Accessibility requirement: minimum 46px tap target */
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.2s ease;
}

.jb-cat-action-worship {
  background: linear-gradient(135deg, #FF9800, #FF5722);
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(255, 87, 34, 0.25);
}

.jb-cat-action-worship:hover {
  background: linear-gradient(135deg, #f57c00, #e64a19);
}

.jb-cat-action-reading {
  background: linear-gradient(135deg, #8A4B08, #603204);
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(96, 50, 4, 0.22);
}

.jb-cat-action-reading:hover {
  background: linear-gradient(135deg, #6d3a04, #482302);
}

@media (max-width: 1200px) {
  .jb-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .jb-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .jb-section-title {
    font-size: 22px;
  }
  .jb-home-section {
    margin: 24px auto;
  }
}

@media (max-width: 480px) {
  .jb-category-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* =========================================================================
   Divya Sankalp Puja Vidhi Experience Styles
   ========================================================================= */
.sankalp-mode-switcher {
  display: flex;
  background: #fdf5ea;
  border: 2px solid #fed7aa;
  border-radius: 14px;
  padding: 5px;
  gap: 6px;
  margin-bottom: 22px;
}

.sankalp-mode-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #78350f;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sankalp-mode-tab:hover {
  background: rgba(254, 215, 170, 0.4);
}

.sankalp-mode-tab.active {
  background: linear-gradient(135deg, #FF9800, #FF5722);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(255, 87, 34, 0.28);
}

/* Puja Cards Grid */
.puja-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.puja-select-card {
  display: flex;
  flex-direction: column;
  background: #fffaf5;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.puja-select-card:hover {
  border-color: #d97706;
  background: #fff7ed;
  transform: translateY(-2px);
}

.puja-select-card.active {
  border-color: #d97706;
  background: #fef3c7;
  box-shadow: 0 0 0 2px #d97706;
}

.puja-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.puja-card-icon {
  font-size: 24px;
}

.puja-card-badge {
  font-size: 11px;
  font-weight: 700;
  color: #9a3412;
  background: #ffedd5;
  padding: 2px 6px;
  border-radius: 4px;
}

.puja-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #78350f;
  margin: 0 0 4px;
  line-height: 1.3;
}

.puja-card-meta {
  font-size: 11.5px;
  color: #92400e;
}

/* Puja Step Indicator */
.puja-steps-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 18px 0;
  gap: 4px;
}

.puja-step-node {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: #fbfbfb;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #78716c;
  transition: all 0.2s ease;
}

.puja-step-node.active {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.puja-step-node.completed {
  background: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
}

/* Puja Ritual Action Box */
.puja-action-card {
  background: #fffdfa;
  border: 2px solid #fed7aa;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.puja-action-phase-title {
  font-size: 16px;
  font-weight: 800;
  color: #92400e;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.puja-action-instruction {
  font-size: 14px;
  line-height: 1.6;
  color: #431407;
  background: #fff7ed;
  border-left: 4px solid #f97316;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}

.puja-action-mantra {
  font-size: 14.5px;
  font-weight: 700;
  color: #78350f;
  background: #fefce8;
  border: 1px dashed #fde047;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 14px;
}

.puja-audio-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #92400e;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.btn-puja-continue {
  min-height: 48px;
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(22, 101, 52, 0.28);
  transition: all 0.2s ease;
}

.btn-puja-continue:hover {
  background: linear-gradient(135deg, #166534, #14532d);
}

/* =========================================================================
   Divya Sankalp Puja Vidhi Integrated Audio Player
   ========================================================================= */
.puja-player-container {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

.puja-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.puja-player-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.puja-player-status-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

.puja-player-status-badge.playing {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.puja-player-status-badge.pending {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.puja-player-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.puja-play-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #FF9800, #FF5722);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(255, 87, 34, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.puja-play-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #f57c00, #e64a19);
}

.puja-play-btn:disabled, .puja-play-btn.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.puja-seek-btn, .puja-replay-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #fed7aa;
  background: #fffaf5;
  color: #78350f;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.puja-seek-btn:hover, .puja-replay-btn:hover {
  background: #fef3c7;
  border-color: #d97706;
}

.puja-seek-btn:disabled, .puja-replay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f4;
}

.puja-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.puja-audio-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #fed7aa;
  accent-color: #ea580c;
  outline: none;
  cursor: pointer;
}

.puja-audio-slider:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.puja-time-display {
  font-size: 12px;
  font-weight: 700;
  color: #78350f;
  min-width: 80px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.puja-nav-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-puja-prev {
  background: #ffffff;
  color: #78350f;
  border: 1px solid #fed7aa;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-puja-prev:hover:not(:disabled) {
  background: #fff7ed;
  border-color: #d97706;
}

.btn-puja-prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================================================================
   Divya Sankalp: Path Sadhana (पाठ साधना) Styles
   ========================================================================= */
.path-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.path-select-card {
  background: #fff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.path-select-card:hover {
  border-color: #d97706;
  background: #fffdfa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}

.path-select-card.active {
  background: #fffaf0;
  border-color: #ea580c;
  box-shadow: 0 0 0 2px #ea580c, 0 4px 14px rgba(234, 88, 12, 0.15);
}

.path-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.path-card-icon {
  font-size: 22px;
}

.path-card-badge {
  background: #ffedd5;
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.path-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #78350f;
  margin: 0 0 4px;
}

.path-card-meta {
  font-size: 12px;
  color: #78716c;
}

.path-sections-timeline {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.path-section-node {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #fed7aa;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: #78350f;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.path-section-node:hover {
  background: #fef3c7;
  border-color: #d97706;
}

.path-section-node.active {
  background: #ea580c;
  color: #fff;
  border-color: #ea580c;
  font-weight: 700;
}

.path-section-node.completed {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.path-action-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.06);
}

.path-phase-title {
  font-size: 16px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #fef3c7;
  padding-bottom: 8px;
}

.path-shloka-box {
  background: #fffaf0;
  border-left: 4px solid #ea580c;
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.8;
  color: #78350f;
  font-weight: 700;
  margin-bottom: 14px;
  white-space: pre-line;
}

.path-meaning-box {
  background: #fdfbf7;
  border: 1px dashed #fed7aa;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #57534e;
  margin-bottom: 16px;
}

.path-nav-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-path-nav {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: 1px solid #fed7aa;
}

.btn-path-prev {
  background: #ffffff;
  color: #78350f;
}

.btn-path-prev:hover:not(:disabled) {
  background: #fff7ed;
  border-color: #d97706;
}

.btn-path-prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-path-next {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  border: none;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}

.btn-path-next:hover {
  background: linear-gradient(135deg, #c2410c, #9a3412);
  transform: translateY(-1px);
}

/* =========================================================================
   Homepage Section 4: आज का विशेष (Today's Spiritual Highlights)
   ========================================================================= */
.jb-special-section {
  max-width: 1300px;
  margin: 36px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.jb-special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.jb-special-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--jb-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(58, 29, 8, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.jb-special-card:hover, .jb-special-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(255, 87, 34, 0.16);
  border-color: var(--jb-saffron);
}

.jb-special-card-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  background: #f7ede2;
}

.jb-special-card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.jb-special-card:hover .jb-special-card-media img {
  transform: scale(1.05);
}

.jb-special-badge-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(43, 33, 24, 0.88);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.jb-special-card-body {
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jb-special-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--jb-brown);
  margin: 0 0 4px;
  line-height: 1.3;
}

.jb-special-card-subtitle {
  font-size: 12.5px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 6px;
  line-height: 1.4;
}

.jb-special-card-desc {
  font-size: 13px;
  color: #554433;
  line-height: 1.5;
  margin: 0 0 14px;
  flex: 1;
}

.jb-special-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25);
  transition: all 0.2s ease;
}

.jb-special-card-action:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
}

@media (max-width: 980px) {
  .jb-special-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 580px) {
  .jb-special-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* =========================================================================
   Homepage Section 5: Video Section (Final Content Section)
   ========================================================================= */
.jb-video-section {
  max-width: 1300px;
  margin: 40px auto 30px;
  padding: 0 16px;
  box-sizing: border-box;
}

.jb-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.jb-video-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--jb-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(58, 29, 8, 0.05);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.jb-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(255, 87, 34, 0.16);
  border-color: var(--jb-saffron);
}

.jb-video-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  overflow: hidden;
}

.jb-video-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.jb-video-card:hover .jb-video-thumb-wrap img {
  transform: scale(1.05);
}

.jb-video-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(234, 88, 12, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.jb-video-card:hover .jb-video-play-indicator {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ea580c;
}

.jb-video-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jb-video-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--jb-brown);
  margin: 0 0 6px;
  line-height: 1.35;
}

.jb-video-card-meta {
  font-size: 12px;
  color: #78350f;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.jb-video-channel-cta {
  text-align: center;
  margin-top: 24px;
}

.jb-btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  background: #cc0000;
  color: #ffffff !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.jb-btn-youtube:hover {
  background: #990000;
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .jb-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 580px) {
  .jb-video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
