/*
Theme Name: Sanatan Gyaan Manthan
Theme URI: https://www.sanatangyaanmanthan.in
Author: Sanatan Gyaan Manthan
Author URI: https://www.sanatangyaanmanthan.in
Description: Premium devotional WordPress theme for Sanatan Gyaan Manthan (sanatangyaanmanthan.in) — Bhakti Bharat inspired: saffron accents, dark mode, auto Panchang (Tithi/Nakshatra/Rahu Kaal), free Kundli analysis, YouTube channel auto-videos, Aarti/Chalisa/Bhajan/Katha/Mandir sections, live search, Article schema, blazing-fast Hindi typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sanatan
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* =====================================================
   SANATAN GYAAN MANTHAN — DEVOTIONAL DESIGN SYSTEM
   Colors: Saffron (#f4791f) + Deep Maroon (#8e2c17) + Cream (#fff8ef)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi:ital@0;1&family=Mukta:wght@300;400;500;600;700;800&display=swap');

:root {
    --saffron: #f4791f;
    --saffron-deep: #d95d0f;
    --maroon: #8e2c17;
    --maroon-deep: #6b1f10;
    --gold: #d4a017;
    --cream: #fff8ef;
    --cream-dark: #fdf0dd;
    --white: #ffffff;
    --ink: #2d2016;
    --ink-mid: #5c4a3a;
    --ink-light: #8a7563;
    --border: #eadbc8;
    --success: #1e8e3e;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 4px 18px rgba(90, 46, 10, 0.09);
    --shadow-lg: 0 12px 34px rgba(90, 46, 10, 0.14);
    --font-head: 'Tiro Devanagari Hindi', 'Mukta', serif;
    --font-body: 'Mukta', 'Noto Sans Devanagari', sans-serif;
}

/* ---------- DARK MODE ---------- */
html.dark-mode {
    --saffron: #ff9a4d;
    --saffron-deep: #f4791f;
    --maroon: #c85a3a;
    --maroon-deep: #a03d22;
    --gold: #e5b83c;
    --cream: #1f1712;
    --cream-dark: #2a2018;
    --white: #241b14;
    --off-white: #241b14;
    --ink: #f3e9dc;
    --ink-mid: #cbb8a3;
    --ink-light: #a08b74;
    --border: #3d2f22;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 34px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    font-size: 16.5px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    line-height: 1.35;
    color: var(--maroon-deep);
}
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3,
html.dark-mode h4, html.dark-mode h5, html.dark-mode h6 { color: #ffbf8f; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 18px; }

/* ============================================
   TOP DEVOTIONAL STRIP
   ============================================ */
.top-strip {
    background: linear-gradient(90deg, var(--maroon) 0%, var(--saffron-deep) 55%, var(--saffron) 100%);
    color: #fff;
    font-size: 14.5px;
    padding: 7px 0;
    overflow: hidden;
}
.top-strip .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.top-strip-label {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    padding: 1px 12px;
    border-radius: 30px;
    font-weight: 600;
    white-space: nowrap;
}
.top-strip-links { display: flex; gap: 20px; flex-wrap: wrap; flex: 1; }
.top-strip-links a { color: #ffe9d2; }
.top-strip-links a:hover { color: #fff; }
.top-strip-socials { display: flex; gap: 8px; }
.top-strip-socials a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    font-size: 13px;
}
.top-strip-socials a:hover { background: rgba(255,255,255,.3); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--saffron);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 14px rgba(90, 46, 10, 0.07);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 72px;
}
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { max-height: 58px; width: auto; }
.site-logo-img { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo-img img { max-height: 56px; width: auto; height: auto; }
@media (max-width: 768px) {
    .site-logo-img img { max-height: 42px; }
}
.site-title {
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--maroon);
    line-height: 1.2;
}
.site-title .tilak { color: var(--saffron); }
.site-tagline { font-size: 12.5px; color: var(--ink-light); }
.header-search {
    flex: 1;
    max-width: 470px;
    margin-inline: auto;
    position: relative;
}
.header-search form { display: flex; }
.header-search input[type="text"] {
    flex: 1;
    border: 2px solid var(--border);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 10px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    outline: none;
    min-width: 0;
}
.header-search input:focus { border-color: var(--saffron); }
.header-search .search-btn {
    border: 2px solid var(--saffron);
    background: var(--saffron);
    color: #fff;
    padding: 0 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 15px;
}
.header-search .search-btn:hover { background: var(--saffron-deep); }
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.action-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--ink-mid);
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-body);
}
.action-item:hover { background: var(--cream-dark); color: var(--saffron-deep); }
.dark-toggle, .mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--ink-mid);
    font-size: 17px;
}
.dark-toggle:hover, .mobile-nav-toggle:hover { background: var(--cream-dark); color: var(--saffron-deep); }

/* Live search results dropdown */
.sanatan-live-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 420px;
    overflow-y: auto;
    z-index: 999;
    display: none;
}
.sanatan-live-results.active { display: block; }
.sanatan-live-results .lr-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.sanatan-live-results .lr-item:last-child { border-bottom: none; }
.sanatan-live-results .lr-item:hover { background: var(--cream); }
.sanatan-live-results .lr-thumb {
    width: 46px; height: 46px;
    object-fit: cover;
    border-radius: 7px;
    flex-shrink: 0;
}
.sanatan-live-results .lr-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}
.sanatan-live-results .lr-cat { font-size: 12px; color: var(--saffron-deep); font-weight: 600; }
.sanatan-live-results .lr-empty { padding: 14px; color: var(--ink-light); font-size: 14px; text-align: center; }

/* ============================================
   NAV MENU
   ============================================ */
.nav-menu {
    background: var(--maroon);
    position: sticky;
    top: 72px;
    z-index: 880;
}
.nav-menu > .container > ul {
    display: flex;
    flex-wrap: wrap;
}
.nav-menu a {
    display: block;
    color: #ffe9d2;
    padding: 11px 16px;
    font-weight: 600;
    font-size: 15px;
}
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current_page_item > a {
    background: var(--saffron);
    color: #fff;
}
.nav-menu ul ul {
    display: none;
    position: absolute;
    background: var(--maroon);
    min-width: 210px;
    z-index: 990;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
}
.nav-menu li { position: relative; }
.nav-menu li:hover > ul.sub-menu { display: block; }
.nav-menu ul ul a { padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-menu .menu-item-has-children > a::after { content: ' ▾'; font-size: 11px; opacity: .8; }

/* ============================================
   HERO
   ============================================ */
.hero-section { padding: 26px 0 10px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
    align-items: stretch;
}
.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 380px;
    background: var(--maroon-deep);
}
.hero-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 6s ease;
}
.hero-main:hover img { transform: scale(1.05); }
.hero-main .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(43,10,0,.92) 0%, rgba(43,10,0,.35) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
}
.hero-cat {
    display: inline-block;
    background: var(--saffron);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
    width: fit-content;
    letter-spacing: .3px;
}
.hero-title {
    font-size: clamp(22px, 3vw, 32px);
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    margin-bottom: 8px;
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: #ffd9ae; }
.hero-excerpt {
    color: #ffe9d2;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-card {
    display: flex;
    gap: 13px;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    flex: 1;
    min-height: 96px;
    transition: transform .25s, box-shadow .25s;
}
.hero-side-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-side-card img {
    width: 118px; height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.hero-side-card .hsc-body { padding: 12px 14px 12px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-side-card h3 {
    font-size: 15.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.hero-side-card h3 a:hover { color: var(--saffron-deep); }
.hero-side-card .hsc-meta { font-size: 12px; color: var(--ink-light); }
.hero-side-card .hsc-meta .hsc-cat { color: var(--saffron-deep); font-weight: 700; }

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-block { padding: 30px 0 6px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}
.section-title {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -12px;
    width: 70px; height: 3px;
    background: var(--saffron);
    border-radius: 3px;
}
.section-view-all {
    font-size: 14px;
    font-weight: 700;
    color: var(--saffron-deep);
    white-space: nowrap;
}
.section-view-all:hover { color: var(--maroon); }

/* ============================================
   POST CARDS GRID
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-thumb { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--cream-dark); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-cat {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--saffron);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 30px;
}
.post-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 {
    font-size: 16.5px;
    line-height: 1.5;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card h3 a:hover { color: var(--saffron-deep); }
.post-card-excerpt {
    font-size: 13.5px;
    color: var(--ink-mid);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.post-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--ink-light);
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

/* ============================================
   CATEGORY PILLS (quick nav like Bhakti Bharat, but better)
   ============================================ */
.pills-strip { padding: 22px 0 4px; }
.pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--ink-mid);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14.5px;
    transition: all .2s;
}
.pill i { color: var(--saffron); }
.pill:hover, .pill.is-active {
    background: var(--saffron);
    border-color: var(--saffron);
    color: #fff;
}
.pill:hover i, .pill.is-active i { color: #fff; }

/* ============================================
   TITHI / TODAY STRIP
   ============================================ */
.tithi-strip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.tithi-strip .ts-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    color: var(--ink-mid);
    padding: 4px 12px;
    border-right: 1px dashed var(--border);
}
.tithi-strip .ts-item:last-child { border-right: none; }
.tithi-strip .ts-item i { color: var(--saffron); }
.tithi-strip .ts-label { font-weight: 700; color: var(--maroon); }
html.dark-mode .tithi-strip .ts-label { color: var(--saffron); }

/* ============================================
   DAILY QUOTE BOX
   ============================================ */
.quote-box {
    background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
    color: #ffe9d2;
    border-radius: var(--radius);
    padding: 26px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.quote-box::before {
    content: '❝';
    position: absolute;
    top: 6px; left: 18px;
    font-size: 70px;
    opacity: .15;
    color: #fff;
}
.quote-box p {
    font-family: var(--font-head);
    font-size: 19px;
    line-height: 1.8;
    color: #fff;
    max-width: 860px;
    margin: 0 auto;
}
.quote-box .quote-src { font-size: 14px; color: #ffbf8f; margin-top: 8px; font-weight: 600; }

/* ============================================
   LIST LAYOUT (Aarti/Chalisa sangrah style)
   ============================================ */
.list-layout { display: flex; flex-direction: column; gap: 16px; }
.list-item {
    display: flex;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.list-item:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.list-item-thumb {
    width: 190px;
    flex-shrink: 0;
    position: relative;
    background: var(--cream-dark);
}
.list-item-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.list-item-body { padding: 15px 18px 15px 0; display: flex; flex-direction: column; justify-content: center; }
.list-item h3 { font-size: 18px; margin-bottom: 6px; }
.list-item h3 a:hover { color: var(--saffron-deep); }
.list-item .li-excerpt {
    font-size: 14px;
    color: var(--ink-mid);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-item .li-meta { margin-top: 8px; font-size: 12.5px; color: var(--ink-light); }

/* ============================================
   SINGLE POST
   ============================================ */
.single-wrap {
    max-width: 840px;
    margin: 26px auto 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 40px;
}
.single-wrap .entry-title {
    font-size: clamp(24px, 3.4vw, 34px);
    margin-bottom: 12px;
}
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    color: var(--ink-light);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.entry-meta i { color: var(--saffron); }
.entry-thumb { margin: 0 0 22px; border-radius: var(--radius-sm); overflow: hidden; }
.entry-thumb img { width: 100%; }
.entry-content { font-size: 17.5px; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2 {
    font-size: 25px;
    margin: 30px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--saffron);
}
.entry-content h3 { font-size: 20px; margin: 24px 0 10px; }
.entry-content a { color: var(--saffron-deep); font-weight: 600; }
.entry-content a:hover { text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 26px; }
.entry-content ul li { list-style: disc; margin-bottom: 6px; }
.entry-content ol li { list-style: decimal; margin-bottom: 6px; }
.entry-content blockquote {
    background: var(--cream);
    border-left: 5px solid var(--saffron);
    padding: 14px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 18px 0;
    font-family: var(--font-head);
    font-size: 17px;
}
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.entry-content table th, .entry-content table td { border: 1px solid var(--border); padding: 9px 12px; }
.entry-content table th { background: var(--cream-dark); }

/* --- Devotional lyrics block (Aarti/Chalisa/Mantra dohe) --- */
.lyrics-block {
    background: var(--cream);
    border: 1px dashed var(--gold);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 14px 0;
    font-family: var(--font-head);
    font-size: 18px;
    line-height: 2;
    text-align: center;
}
html.dark-mode .lyrics-block { background: var(--cream-dark); }

/* --- Table of Contents --- */
.sanatan-toc {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 0 0 22px;
}
.sanatan-toc-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15.5px;
    color: var(--maroon);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
html.dark-mode .sanatan-toc-title { color: var(--saffron); }
.sanatan-toc ol { margin: 10px 0 0 22px; font-size: 15px; }
.sanatan-toc ol li { list-style: decimal; padding: 3px 0; }
.sanatan-toc.collapsed ol { display: none; }
.sanatan-toc a { color: var(--ink-mid); }
.sanatan-toc a:hover { color: var(--saffron-deep); }

/* --- Reading progress bar --- */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    z-index: 1200;
    transition: width .1s linear;
}

/* --- Share buttons --- */
.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.share-row .share-label { font-weight: 700; font-size: 14.5px; color: var(--ink-mid); }
.share-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
}
.share-btn:hover { transform: translateY(-3px); }
.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-tg { background: #0088cc; }
.share-copy { background: var(--maroon); cursor: pointer; border: none; font-family: var(--font-body); }

/* --- Author box --- */
.author-box {
    display: flex;
    gap: 16px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin: 24px 0;
    align-items: center;
}
.author-box img { border-radius: 50%; width: 64px; height: 64px; object-fit: cover; }
.author-box .ab-name { font-weight: 700; color: var(--maroon); font-size: 16px; }
html.dark-mode .author-box .ab-name { color: var(--saffron); }
.author-box .ab-desc { font-size: 14px; color: var(--ink-mid); }

/* --- Post navigation --- */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 26px 0;
}
.post-nav a {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-mid);
}
.post-nav a:hover { border-color: var(--saffron); color: var(--saffron-deep); }
.post-nav .nav-next { text-align: right; }

/* ============================================
   ARCHIVE / BLOG PAGE
   ============================================ */
.archive-head {
    background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
    color: #fff;
    padding: 34px 0;
    margin-bottom: 26px;
}
.archive-head h1 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.archive-head .arch-desc { color: #ffe9d2; font-size: 15px; max-width: 760px; }
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    align-items: start;
}
.content-area { min-width: 0; }
.archive-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { position: sticky; top: 160px; }
.widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}
.widget-title {
    font-size: 18px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 46px; height: 2px;
    background: var(--saffron);
}
.widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a:hover { color: var(--saffron-deep); }
.widget ul li::before { content: '◾ '; color: var(--saffron); font-size: 10px; }
.widget ul li { display: flex; align-items: baseline; gap: 6px; }
.widget ul li::before { content: ''; width: 6px; height: 6px; background: var(--saffron); border-radius: 50%; flex-shrink: 0; transform: translateY(-2px); }

/* ============================================
   PAGINATION
   ============================================ */
.sanatan-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.sanatan-pagination .page-numbers {
    min-width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--ink-mid);
}
.sanatan-pagination .page-numbers.current,
.sanatan-pagination .page-numbers:hover {
    background: var(--saffron);
    border-color: var(--saffron);
    color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--maroon-deep), #4a150a);
    color: #ffe9d2;
    margin-top: 46px;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 42px 0 30px;
}
.footer-cols h4 {
    color: #ffbf8f;
    font-size: 17px;
    margin-bottom: 14px;
}
.footer-cols ul li { padding: 5px 0; font-size: 14.5px; }
.footer-cols a:hover { color: #fff; }
.footer-about img { max-height: 54px; margin-bottom: 10px; }
.footer-about .site-logo-img img { max-height: 50px; }
.footer-about p { font-size: 14px; line-height: 1.8; color: #f0d4b8; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    color: #ffe9d2;
}
.footer-socials a:hover { background: var(--saffron); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    padding: 16px 0;
    text-align: center;
    font-size: 13.5px;
    color: #e8c39d;
}
.footer-bottom a { color: #ffbf8f; }

/* ============================================
   FLOATING ACTIONS
   ============================================ */
.sanatan-floating {
    position: fixed;
    bottom: 22px; right: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
}
.sanatan-float-btn {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .2s;
}
.sanatan-float-btn.show { opacity: 1; pointer-events: auto; }
.sanatan-float-btn:hover { transform: translateY(-3px); }
.bf-wa { background: #25d366; }
.bf-top { background: var(--maroon); }
.bf-yt { background: #ff0000; }

/* ============================================
   OFF-CANVAS MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(30,10,0,.55);
    z-index: 1300;
}
.mobile-menu-overlay.active { display: block; }
.mobile-menu {
    position: fixed;
    top: 0; right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    z-index: 1400;
    transition: right .3s ease;
    overflow-y: auto;
    padding: 20px;
}
.mobile-menu.active { right: 0; }
.mobile-menu .mm-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.mobile-menu .mm-close {
    background: none; border: none;
    font-size: 20px; cursor: pointer;
    color: var(--ink-mid);
}
.mobile-menu ul li a {
    display: block;
    padding: 11px 4px;
    border-bottom: 1px dashed var(--border);
    font-weight: 600;
    color: var(--ink);
}
.mobile-menu ul ul { padding-left: 14px; }
.mobile-menu ul ul li a { font-weight: 500; font-size: 14px; color: var(--ink-mid); }

/* ============================================
   SEARCH / 404 PAGE
   ============================================ */
.search-wrap { max-width: 720px; margin: 0 auto; padding: 40px 18px 20px; text-align: center; }
.search-wrap h1 { font-size: 28px; margin-bottom: 16px; }
.search-big-form {
    display: flex;
    margin: 0 auto 10px;
    max-width: 520px;
}
.search-big-form input {
    flex: 1;
    border: 2px solid var(--saffron);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 12px 16px;
    font-size: 16px;
    background: var(--white);
    color: var(--ink);
    outline: none;
    min-width: 0;
}
.search-big-form button {
    background: var(--saffron);
    color: #fff;
    border: none;
    padding: 0 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 16px;
    cursor: pointer;
}
.error-404 { text-align: center; padding: 50px 18px; }
.error-404 .om-symbol { font-size: 74px; color: var(--saffron); margin-bottom: 8px; }
.error-404 h1 { font-size: 30px; margin-bottom: 10px; }
.error-404 p { color: var(--ink-mid); margin-bottom: 20px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
    .archive-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { min-height: 260px; }
    .cards-grid, .cards-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .archive-cards { grid-template-columns: 1fr 1fr; }
    .header-search { display: none; }
    .nav-menu { display: none; }
    .single-wrap { padding: 22px 18px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav .nav-next { text-align: left; }
    .footer-cols { grid-template-columns: 1fr; gap: 24px; }
    .list-item-thumb { width: 120px; }
    .action-item span.ai-text { display: none; }
}
@media (max-width: 480px) {
    .cards-grid, .archive-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
    .post-card-body { padding: 10px 12px 12px; }
    .post-card h3 { font-size: 14.5px; }
    .tithi-strip .ts-item { border-right: none; width: 100%; padding: 2px 0; }
}

/* ============================================
   KUNDLI ANALYSIS SECTION
   ============================================ */
.kundli-section { padding-top: 34px; }
.kundli-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    position: relative;
    overflow: hidden;
}
.kundli-form::before {
    content: 'ॐ';
    position: absolute;
    right: -20px; top: -30px;
    font-size: 150px;
    color: var(--saffron);
    opacity: .06;
    font-family: var(--font-head);
}
.kf-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 14px;
}
.kf-field { display: flex; flex-direction: column; gap: 6px; }
.kf-field label {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--maroon);
}
html.dark-mode .kf-field label { color: var(--saffron); }
.kf-field input {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 15px;
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    outline: none;
}
.kf-field input:focus { border-color: var(--saffron); }
.kundli-submit {
    margin-top: 16px;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 13px 30px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.kundli-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kundli-result { margin-top: 18px; }
.kundli-loading {
    text-align: center;
    padding: 18px;
    color: var(--ink-mid);
    font-weight: 600;
}
.kundli-loading .fa-spin { color: var(--saffron); margin-right: 6px; }
.kundli-card {
    background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
    border-radius: var(--radius);
    padding: 24px 26px;
    color: #ffe9d2;
    box-shadow: var(--shadow-lg);
    animation: kundliIn .5s ease;
}
@keyframes kundliIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.kundli-card .kc-name {
    color: #fff;
    font-size: 21px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.kundli-card .kc-name i { color: var(--gold); }
.kundli-card .kc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.kundli-card .kc-grid li {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.kundli-card .kc-grid li.kc-wide { grid-column: 1 / -1; }
.kundli-card .kc-grid li.kc-dosha { background: rgba(255,120,60,.15); border-color: rgba(255,150,90,.4); }
.kundli-card .kc-label { font-size: 12px; font-weight: 600; color: #ffbf8f; text-transform: uppercase; letter-spacing: .4px; }
.kundli-card .kc-grid strong { font-size: 15.5px; color: #fff; }
.kundli-card .kc-note {
    margin-top: 14px;
    font-size: 12.5px;
    color: #e8c39d;
}

/* ============================================
   YOUTUBE VIDEOS SECTION
   ============================================ */
.yt-red { color: #ff0000; }
.yt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.yt-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.yt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.yt-card .yt-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}
.yt-card .yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-card .yt-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yt-card .yt-play i {
    width: 52px; height: 36px;
    background: #ff0000;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    transition: transform .2s, background .2s;
}
.yt-card:hover .yt-play i { transform: scale(1.12); background: #d90000; }
.yt-card.is-playing { position: relative; }
.yt-card.is-playing .yt-thumb,
.yt-card.is-playing .yt-title { display: none; }
.yt-card.is-playing { aspect-ratio: 16/9; }
.yt-card.is-playing iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.yt-card .yt-title {
    padding: 12px 14px;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink);
}

/* ============================================
   OM PLACEHOLDERS (no-thumb cards)
   ============================================ */
.om-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--gold);
    background: linear-gradient(135deg, var(--cream-dark), var(--cream));
    font-family: var(--font-head);
}
html.dark-mode .om-mark { color: var(--saffron); }
.hero-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    color: rgba(255, 200, 120, .5);
    font-family: var(--font-head);
}
.hsc-placeholder { min-width: 118px; min-height: 96px; position: relative; display: block; }
.li-placeholder { position: absolute; inset: 0; }

@media (max-width: 768px) {
    .kf-row { grid-template-columns: 1fr 1fr; }
    .yt-grid { grid-template-columns: 1fr 1fr; }
    .kundli-card .kc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .kf-row { grid-template-columns: 1fr; }
    .yt-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RASHIFAL SECTION
   ============================================ */
.rf-date { font-size: 14px; font-weight: 700; color: var(--ink-light); }
.rf-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.rf-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: transform .2s, border-color .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.rf-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--rf-color, var(--saffron));
}
.rf-card:hover, .rf-card.is-active {
    transform: translateY(-3px);
    border-color: var(--rf-color, var(--saffron));
    box-shadow: var(--shadow-lg);
}
.rf-card.is-active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.06), transparent);
    pointer-events: none;
}
.rf-symbol { font-size: 26px; line-height: 1; }
.rf-name { font-size: 16px; font-weight: 700; color: var(--maroon); font-family: var(--font-head); }
html.dark-mode .rf-name { color: var(--saffron); }
.rf-trans { font-size: 11px; color: var(--ink-light); }
.rf-detail { margin-top: 16px; }
.rf-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    animation: kundliIn .4s ease;
}
.rf-detail-card .rf-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.rf-detail-card .rf-symbol-lg {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rf-color, var(--saffron)), var(--maroon-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}
.rf-detail-card h3 { font-size: 22px; margin-bottom: 2px; }
.rf-detail-card h3 small { font-size: 14px; color: var(--ink-light); font-weight: 400; font-family: var(--font-body); }
.rf-detail-card .rf-lord { font-size: 13.5px; color: var(--ink-mid); }
.rf-text { font-size: 16px; line-height: 1.85; margin-bottom: 18px; color: var(--ink); }
.rf-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.rf-score { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.rf-score span { font-weight: 700; color: var(--ink-mid); }
.rf-bar {
    height: 8px;
    background: var(--cream-dark);
    border-radius: 6px;
    overflow: hidden;
}
.rf-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--saffron), var(--rf-color, var(--gold)));
    border-radius: 6px;
    animation: rfBar .8s ease;
}
@keyframes rfBar { from { width: 0 !important; } }
.rf-score b { font-size: 15px; color: var(--saffron-deep); }
.rf-lucky { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--ink-mid); }
.rf-lucky i { color: var(--saffron); margin-right: 4px; }

/* ============================================
   TYOHAR / VRAT CALENDAR
   ============================================ */
.tyohar-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}
.tyohar-next {
    background: linear-gradient(160deg, var(--maroon-deep), var(--maroon));
    color: #ffe9d2;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow);
}
.tyohar-next .tn-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #ffbf8f; }
.tyohar-next .tn-name { font-size: 19px; font-weight: 700; color: #fff; font-family: var(--font-head); }
.tyohar-next .tn-name i { color: var(--gold); margin-right: 6px; }
.tyohar-next .tn-countdown {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.tyohar-next .tn-date { font-size: 14px; color: #e8c39d; }
.tyohar-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.tyohar-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px dashed var(--border);
    font-size: 15px;
}
.tyohar-list li:last-child { border-bottom: none; }
.tyohar-list .tl-date {
    width: 52px;
    text-align: center;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 0;
    line-height: 1.3;
    flex-shrink: 0;
}
.tyohar-list .tl-date b { display: block; font-size: 17px; color: var(--maroon); }
.tyohar-list .tl-name { flex: 1; font-weight: 600; }
.tyohar-list .tl-name i { color: var(--saffron); margin-right: 6px; }
.tyohar-list .tl-tithi { font-size: 12.5px; color: var(--ink-light); }

/* ============================================
   JAPA MALA
   ============================================ */
.japa-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: center;
}
.japa-mala {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.japa-mala:active .jm-center { transform: scale(.96); }
.jm-bead-ring { position: absolute; inset: 0; }
.jm-bead {
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #b5651d, #7a3b10);
    box-shadow: inset 0 -3px 5px rgba(0,0,0,.35), inset 0 2px 3px rgba(255,255,255,.35), 0 2px 4px rgba(0,0,0,.2);
    transition: transform .15s, background .3s;
}
.jm-bead.is-counted { background: linear-gradient(145deg, var(--saffron), var(--saffron-deep)); transform: scale(1.18); }
.jm-bead.is-sanskar {
    background: linear-gradient(145deg, var(--gold), #a8810e);
    box-shadow: inset 0 -2px 4px rgba(0,0,0,.3), inset 0 2px 3px rgba(255,255,255,.5), 0 0 12px rgba(212,160,23,.7);
}
.jm-center {
    position: absolute;
    inset: 34px;
    background: radial-gradient(circle at 35% 30%, var(--cream), var(--cream-dark));
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .12s;
    box-shadow: var(--shadow);
}
html.dark-mode .jm-center { background: radial-gradient(circle at 35% 30%, var(--cream-dark), var(--cream)); }
.jm-count { font-size: 52px; font-weight: 800; color: var(--maroon); line-height: 1; font-variant-numeric: tabular-nums; }
html.dark-mode .jm-count { color: var(--saffron); }
.jm-of { font-size: 15px; color: var(--ink-light); font-weight: 600; }
.japa-controls { display: flex; flex-direction: column; gap: 14px; }
.japa-mantra-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.jm-mantra {
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: var(--font-head);
    color: var(--ink-mid);
    cursor: pointer;
    transition: all .2s;
}
.jm-mantra:hover { border-color: var(--saffron); }
.jm-mantra.is-active { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.japa-current {
    font-family: var(--font-head);
    font-size: 24px;
    color: var(--maroon);
    min-height: 34px;
}
html.dark-mode .japa-current { color: var(--saffron); }
.japa-actions { display: flex; gap: 10px; }
.jm-btn {
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--ink-mid);
    cursor: pointer;
}
.jm-btn:hover { border-color: var(--saffron); color: var(--saffron-deep); }
.japa-hint { font-size: 13px; color: var(--ink-light); }

/* ============================================
   PAATH MODE + ADS + 404 fixes
   ============================================ */
.paath-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--ink-mid);
    cursor: pointer;
    margin-bottom: 16px;
}
.paath-toggle:hover { border-color: var(--saffron); color: var(--saffron-deep); }
.paath-mode .entry-content { font-size: 21px; line-height: 2.1; }
.paath-mode .lyrics-block { font-size: 23px; }
.sanatan-ad-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
}
.sanatan-ad-wrap .sanatan-ad { margin: 14px auto; }
.ad-sidebar { padding: 0; }

@media (max-width: 768px) {
    .rf-grid { grid-template-columns: repeat(3, 1fr); }
    .tyohar-layout { grid-template-columns: 1fr; }
    .japa-wrap { grid-template-columns: 1fr; padding: 20px; }
    .japa-mala { width: 240px; height: 240px; }
    .jm-count { font-size: 42px; }
}

/* ============================================
   WEB STORIES
   ============================================ */
.stories-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.story-card {
    flex: 0 0 132px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-body);
    text-align: left;
    transition: transform .2s, box-shadow .2s;
}
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.story-thumb {
    position: relative;
    display: block;
    aspect-ratio: 9/16;
    background: var(--cream-dark);
    overflow: hidden;
}
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-play {
    position: absolute;
    bottom: 8px; right: 8px;
    width: 26px; height: 26px;
    background: var(--saffron);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 3px 8px rgba(0,0,0,.3);
}
.story-title {
    display: block;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-viewer {
    position: fixed;
    inset: 0;
    background: rgba(20,8,2,.94);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.story-viewer.active { display: flex; }
.sv-stage {
    position: relative;
    width: min(420px, 94vw);
    aspect-ratio: 9/16;
    background: var(--maroon-deep);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.sv-page {
    position: absolute;
    inset: 0;
    display: none;
    background-size: cover;
    background-position: center;
}
.sv-page.is-active { display: block; }
.sv-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,8,2,.15), rgba(20,8,2,.75));
}
.sv-page .sv-text {
    position: absolute;
    bottom: 40px;
    left: 20px; right: 20px;
    color: #fff;
    font-size: 19px;
    line-height: 1.7;
    font-family: var(--font-head);
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
    z-index: 2;
}
.sv-page .sv-pagelabel {
    position: absolute;
    top: 46px;
    left: 20px;
    color: #ffbf8f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    z-index: 2;
}
.sv-progress {
    position: absolute;
    top: 14px;
    display: flex;
    gap: 4px;
    z-index: 3;
}
.sv-progress i {
    width: 34px;
    height: 3px;
    background: rgba(255,255,255,.35);
    border-radius: 3px;
    overflow: hidden;
}
.sv-progress i.filled::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background: #fff;
}
.sv-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    z-index: 4;
}
.sv-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 3;
    cursor: pointer;
}
.sv-prev { left: 0; }
.sv-next { right: 0; }
.sv-footer {
    position: absolute;
    bottom: 18px;
    z-index: 4;
}
.sv-footer a {
    color: #ffbf8f;
    font-weight: 700;
    font-size: 14px;
    background: rgba(20,8,2,.6);
    padding: 8px 16px;
    border-radius: 30px;
}

/* ============================================
   PRINT (devotional PDF printing)
   ============================================ */
@media print {
    .site-header, .nav-menu, .site-footer, .sanatan-floating,
    .share-row, .post-nav, .sanatan-toc, .reading-progress { display: none !important; }
    body { background: #fff; }
    .single-wrap { border: none; box-shadow: none; padding: 0; max-width: 100%; }
}
