@font-face {
    font-family: gaura times;
    src: url(/static/global/fonts/g-times-r.eot);
    src: url(/static/global/fonts/g-times-r.eot?#iefix) format("embedded-opentype"),url(/static/global/fonts/g-times-r.woff) format("woff"),url(/static/global/fonts/g-times-r.ttf) format("truetype");
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: gaura times;
    src: url(/static/global/fonts/g-times-i.eot);
    src: url(/static/global/fonts/g-times-i.eot?#iefix) format("embedded-opentype"),url(/static/global/fonts/g-times-i.woff) format("woff"),url(/static/global/fonts/g-times-i.ttf) format("truetype");
    font-weight: 400;
    font-style: italic
}

@font-face {
    font-family: gaura times;
    src: url(/static/global/fonts/g-times-b.eot);
    src: url(/static/global/fonts/g-times-b.eot?#iefix) format("embedded-opentype"),url(/static/global/fonts/g-times-b.woff) format("woff"),url(/static/global/fonts/g-times-b.ttf) format("truetype");
    font-style: normal;
    font-weight: 700
}

/* Cormorant Garamond — variable font (supports weight 300–700) */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url(/static/global/fonts/Cormorant_Garamond/CormorantGaramond-VariableFont_wght.ttf) format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url(/static/global/fonts/Cormorant_Garamond/CormorantGaramond-Italic-VariableFont_wght.ttf) format('truetype');
    font-weight: 300 700;
    font-style: italic;
    font-display: swap;
}

/* Cormorant Upright — static files per weight (no italic variant) */
@font-face {
    font-family: 'Cormorant Upright';
    src: url(/static/global/fonts/Cormorant_Upright/CormorantUpright-Light.ttf) format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Upright';
    src: url(/static/global/fonts/Cormorant_Upright/CormorantUpright-Regular.ttf) format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Upright';
    src: url(/static/global/fonts/Cormorant_Upright/CormorantUpright-Medium.ttf) format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Upright';
    src: url(/static/global/fonts/Cormorant_Upright/CormorantUpright-SemiBold.ttf) format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Upright';
    src: url(/static/global/fonts/Cormorant_Upright/CormorantUpright-Bold.ttf) format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url(/static/global/fonts/Inter/Inter-VariableFont_opsz,wght.ttf) format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Libre Baskerville — Regular, Bold, Italic */
@font-face {
    font-family: 'Libre Baskerville';
    src: url(/static/global/fonts/Libre_Baskerville/LibreBaskerville-Regular.woff2) format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Libre Baskerville';
    src: url(/static/global/fonts/Libre_Baskerville/LibreBaskerville-Bold.woff2) format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Libre Baskerville';
    src: url(/static/global/fonts/Libre_Baskerville/LibreBaskerville-Italic.woff2) format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}



/* =============================================
   Shared Page Header — Top Navigation Bar
   ============================================= */

.bg-page-top-nav
{
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 1em;
    flex-wrap: wrap;
    gap: 8px;
    max-width: var(--max-content-width);
    margin-inline: auto;
    box-sizing: border-box;
    width: 100%;
}

.bg-page-top-nav-home
{
    color: var(--color-secondary);
    font-size: 0.95em;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.bg-page-top-nav-home:hover
{
    text-decoration: none;
    color: var(--color-btn-orange);
}

.bg-page-top-nav-tamil
{
    padding: 8px 1em;
    text-align: right;
    text-decoration: underline;
    margin-inline: auto;
}

/* =============================================
   Shared Page Header — Title Bar (Navy)
   ============================================= */

.bg-title-bar
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 0 1em;
    min-height: 50px;
    width: 100%;
    box-sizing: border-box;
}

.bg-title-bar-content
{
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.bg-title-bar-prev,
.bg-title-bar-next
{
    font-family: "Inter", sans-serif;
    flex-shrink: 0;
    min-width: 90px;
}

.bg-title-bar-prev
{
    text-align: left;
}

.bg-title-bar-next
{
    text-align: right;
}

.bg-title-bar-prev a,
.bg-title-bar-next a
{
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bg-title-bar-prev a:hover,
.bg-title-bar-next a:hover
{
    color: var(--color-primary);
    text-decoration: none;
}

.bg-nav-arrow
{
    font-size: 1.5em;
}

.bg-title-bar-center
{
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3em;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 0;
    padding: 8px 1rem;
    flex: 1;
}

@media only screen and (max-width: 640px)
{
    .bg-page-top-nav
    {
        justify-content: center;
    }

    .bg-page-top-nav-home
    {
        display: none;
    }

    .bg-title-bar
    {
        margin-top: 1em;
    }
}

/* =============================================
   Subtitle Bar (Golden section heading)
   ============================================= */

.bg-subtitle-bar
{
    background-color: var(--color-primary);
    color: var(--color-secondary);
    text-align: center;
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 1em;
    padding: 8px 1em;
    width: 100%;
    box-sizing: border-box;
}

/* =============================================
   Intro Pill Tabs (Dedication / Introduction pages)
   ============================================= */

.intro-pill-tabs
{
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    text-align: center;

    font-family: 'Inter', sans-serif;
}

.intro-pill
{
    color: var(--color-secondary);
    font-size: var(--font-size-md);
    font-weight: 500;
    text-decoration: none;
    padding: 6px 40px;
    border: 1px solid var(--color-btn-orange);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.intro-pill:hover,
.intro-pill.active
{
    background: var(--color-btn-orange-hover);
    color: white;
    text-decoration: none;
}

/* =============================================
   Tabs Component
   Usage:
     <div data-tabs role="tablist">
       <button class="bg-tab active" role="tab" aria-selected="true"  aria-controls="panel-a">Tab A</button>
       <button class="bg-tab"        role="tab" aria-selected="false" aria-controls="panel-b">Tab B</button>
     </div>
     <div class="bg-tab-panel" id="panel-a" role="tabpanel">…</div>
     <div class="bg-tab-panel" id="panel-b" role="tabpanel" hidden>…</div>
   ============================================= */

[data-tabs] {
    display: flex;
    border-bottom: 2px solid #e0d6c8;
    margin-bottom: 24px;
}

.bg-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
    margin-bottom: -2px;
    font-size: 1em;
    font-family: inherit;
    color: var(--font-color-tertiary);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    outline: none;
}

.bg-tab:hover {
    color: var(--color-secondary);
}

.bg-tab.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
    font-weight: 600;
}

.bg-tab-panel[hidden] {
    display: none;
}

/* =============================================
   Button Components
   =============================================

   .btn-primary-orange  — filled orange CTA button (full-width by default)
   .btn-text-link       — inline text-style link button
   ============================================= */

.btn-primary-orange,
.btn-primary-blue,
.btn-secondary-orange
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 20px;
    background-color: var(--color-btn-orange);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.01em;
    /* margin-bottom: 14px; */
    box-shadow: 0 4px 10px rgba(34, 45, 92, 0.18);
}

.btn-primary-orange:hover,
.btn-primary-blue:hover,
.btn-secondary-orange:hover
{
    text-decoration: none;
}

.btn-primary-blue
{
    background-color: var(--color-secondary);
}

.btn-secondary-orange
{
    background-color: white;
    color: var(--color-btn-orange);
}

.btn-primary-orange:hover
{
    background-color: var(--color-btn-orange-hover);
    color: #fff;
}

.btn-secondary-orange:hover
{
    background-color: var(--color-primary-light);
    color: var(--color-btn-orange);
}

.btn-primary-blue:hover
{
    background-color: var(--color-btn-orange);
}

.btn-primary-orange:active {
    background-color: var(--color-btn-orange-active);
}

.btn-primary-orange svg {
    flex-shrink: 0;
}

.btn-primary-orange:disabled,
.btn-secondary-orange:disabled
{
    background-color: var(--color-btn-orange-disabled);
    cursor: not-allowed;
}

.btn-text-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9em;
    font-family: inherit;
    color: var(--dark-font-color);
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.btn-text-link:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}


:root
{
    --color-primary: #FFBD61;
    --color-primary-light: #FFF7EC;

    --header-gradient-1: #FFF4D0;

    --color-secondary: #222D5C;
    --dark-font-color: #1a0dab;

    --color-btn-orange: #e07b2a;
    --color-btn-orange-hover: #c9661a;
    --color-btn-orange-active: #b85a14;
    --color-btn-orange-disabled: #c8a880;

    --color-form-error: #ff4500;

    --vod-gradient-color: #a84242;
    --vod-link-color: #c6e649;

    --font-color: #333;
    --font-color-hover: var(--color-btn-orange);
    --font-color-secondary: #444;
    --font-color-tertiary: #666;
    --font-color-shlock: #8a5a02;

    --button-background-color-2: var(--color-primary-light);
    --google-custom-search-theme: #CC0000;

    --root-content-breakpoint-lg: 79%;

    --max-content-width: 1356px;

    --global-default-transition-duration: 0.3s;

    --font-size-xs:      0.75em;   /* 12px — tiny labels, badges */
    --font-size-sm:      0.875em;  /* 14px — secondary/helper text */
    --font-size-base:    1em;      /* 16px — body, UI text */
    --font-size-reading: 1.15em;   /* ~18px — prose reading text (verse, commentary, dedication) */
    --font-size-md:      1.125em;  /* 18px — slightly elevated body */
    --font-size-lg:      1.25em;   /* 20px — card subtitles, nav links */
    --font-size-xl:      1.5em;    /* 24px — card titles, sub-headings */
    --font-size-2xl:     1.875em;  /* 30px — page/section headings */
    --font-size-3xl:     2.25em;   /* 36px — hero/display text */

    /* #fef7ed */

    /*
    --color-primary: #ffc071;
    --color-primary-light: #ffd7a4;
    --color-secondary: #242d59;
    --dark-font-color: #1a0dab;
    --vod-gradient-color: #a84242;
    --vod-link-color: #c6e649;
    --font-color: #333;
    --font-color-secondary: #444;
    --font-color-tertiary: #666;
    --font-color-shlock: #8a5a02;

    --button-background-color-2: var(--color-primary-light);
    --google-custom-search-theme: #CC0000;

    --root-content-breakpoint-lg: 79%
    */
}

html
{
    font-size: 15px;
}

body
{
    /* background: url("/static/base/img/krishna_arjun.jpg") repeat-y right top fixed;
    background-size: cover; */
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;

    font-family: Georgia,Helvetica,Tahoma,Sans-Serif,Gaura Times,Serif;
}

.header-logo-container
{
    display: flex;
}

.header-logo-container .logo-container img
{
    width: 60px;
}

.header-logo-container .logo-name-container
{
    text-align: right;
    padding-left: 10px;
    line-height: 30px;
}

.header-logo-container .logo-name-container .logo-name
{
    font-family: "Cormorant Upright", serif;
    font-weight: 700;
    font-size: var(--font-size-3xl);
}

.header-logo-container .logo-name-container .logo-subname
{
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: var(--font-size-lg);
}




a
{
    text-decoration: none;
    color: inherit;
}

a:hover
{
    text-decoration: underline;
}

h1, h2, h3, h4, h5
{
    font-weight: 400;
}

h1.bg-page-title
{
    font-family: Georgia,Helvetica,Tahoma,Sans-Serif,Gaura Times,Serif;

    margin: 0;
    font-size: 1.3em;
    line-height: 50px;
    color: var(--color-primary);
    background-color: var(--color-secondary);
    text-align: center;
}

h2.bg-heading
{
    color: var(--color-secondary);
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    line-height: 35px;
    font-size: 1.4em;
    text-align: center!important;
    margin-bottom: 10px;
}

h3.bg-heading
{
    color: var(--color-primary);
    background-color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    line-height: 35px;
    text-align: center;
    font-size: 1.2em;
    padding: 0 0.5em;
    margin-bottom: 8px;
}

h5
{
    font-size: var(--font-size-md);
    line-height: 24px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    border: 0;
}

.bg-form-table-labelled table
{
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 100%;
}
.bg-form-table-labelled  .bg-form-row
{
    margin: 5px 0;
}
.bg-form .bg-form-field-help-text
{
    color: var(--font-color-tertiary);
    font-size: 0.9em;
}
.bg-form-table-labelled .errorlist
{
    margin: 0;
    color: var(--color-form-error);
    font-size: 0.9em;
}
.bg-form-table-labelled .field-label
{
    white-space: nowrap;
}
.bg-form-table-labelled .field-input-container
{
    width: 100%;
}

.bg-form-table-labelled .field-input-container input
{
    width: 100%;
}

.breadcrumbs span,
.breadcrumbs span a
{
    color: var(--font-color-secondary);
    font-size: 0.9em
}

.breadcrumbs span a
{
    text-decoration: underline;
}

.language-selector-container
{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.language-selector-container>div
{
    display: flex;
    flex-wrap: wrap;
}

.language-selector-container a
{
    font-size: var(--font-size-lg);
    padding: 10px;
    text-decoration: underline;
}

.language-selector-container a.active-langauge
{
    font-weight: bold;
}

.language-selector-container.tamil-langauge a
{
    font-size: 1em;
}

.vod-subscriber-form
{
    position: relative;
}

.vod-subscriber-form .vod-subscribe-success
{
    display: none;
    background-color: rgba(255, 189, 97, 0.2);
    border: 1px solid var(--color-primary);
    color: #fff;
    padding: 0.5em;
    margin-bottom: 0.75em;
    border-radius: 4px;
}

.vod-data-container .group-links a
{
    color: var(--dark-font-color);
}

/* Verse Navigator — Card Container */

.verse-navigator-container
{
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

/* Verse Navigator — Chapter Title (Navy Header) */

.verse-navigator-container .chapter-title
{
    background-color: var(--color-secondary);
    color: #fff;
    text-align: center;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1em;
    font-weight: 700;
    padding: 10px 12px;
    margin: 8px;
    line-height: 1.4;
    border-radius: 4px;
}

/* Verse Navigator — Navigator Bars */

.verse-navigator-container .bg-navigator
{
    display: flex;
    justify-content: center;
    font-family: 'Libre Baskerville', serif;
    margin-inline: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.verse-navigator-container .bg-navigator a
{
    text-align: center;
    display: block;
    padding: 10px 0;
    text-decoration: none;
}

.verse-navigator-container .bg-navigator a.prev-element
{
    flex-basis: 12%;
    font-size: 1.2em;
    font-weight: 700;
    padding: 6px 0;
}

.verse-navigator-container .bg-navigator a.next-element
{
    flex-basis: 12%;
    font-size: 1.2em;
    font-weight: 700;
    padding: 6px 0;
}

.verse-navigator-container .bg-navigator a.center-element
{
    flex: 1;
    font-weight: 700;
}

.verse-navigator-container .bg-navigator a.center-element:hover
{
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
}

.verse-navigator-container .chapter-navigator a
{
    color: var(--color-secondary);
    background-color: var(--color-primary);
    font-family: 'Libre Baskerville', serif;
}

/* Verse Navigator — Verse Number Grid */

.verse-navigator-container .actual-verse-navigator
{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 8px;
    background-color: #fff;
}

.verse-navigator-container .actual-verse-navigator a
{
    font-family: 'Inter', sans-serif;
    font-size: 0.8em;
    font-weight: 600;
    text-align: center;
    color: var(--color-secondary);
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 2px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    background-color: #fff;

    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.verse-navigator-container .actual-verse-navigator a.active,
.verse-navigator-container .actual-verse-navigator a:hover
{
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

/* Verse Navigator — Responsive */

@media screen and (max-width: 992px)
{
    .verse-navigator-container .actual-verse-navigator
    {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media screen and (max-width: 768px)
{
    h1.bg-page-title
    {
        font-size: 1.2em;
    }
    .verse-navigator-container .actual-verse-navigator
    {
        grid-template-columns: repeat(8, 1fr);
    }
    .verse-navigator-container .actual-verse-navigator a
    {
        min-height: 36px;
        padding: 6px 2px;
    }
}





/* framework */

.flex-align-center
{
    display: flex;
    align-items: center;
}

.flex-space-between
{
    display: flex;
    justify-content: space-between;
}

.bg-header-button.secondary-button
{
    color: var(--font-color);
}

.bg-header-button.bold
{
    font-weight: bold;
}

.bg-header-button
{
    color: var(--font-color);
    background-color: transparent;
    text-decoration: none;
    transition-duration: 0.3s;
    cursor: pointer;
}

.bg-header-button:hover
{
    color: var(--font-color-hover);
    text-decoration: none;
}

/* =============================================
   Global Input
   ============================================= */

.bg-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--font-color);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bg-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 189, 97, 0.2);
}

.bg-input::placeholder {
    color: #aaa;
}

/* =============================================
   VOD FORM (vod_form.html)
   ============================================= */

.vod-subscriber-form-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* ---- VOD Form Card ---- */
.vod-form-card {
    position: relative;
    overflow: hidden;
    background: var(--color-secondary);
    border-radius: 10px;
    padding: 64px 48px;
}

.vod-form-icon {
    position: absolute;
    bottom: -13%;
    right: 3%;
    width: 100px;
    pointer-events: none;
    transform: rotate(-30deg);
}

.vod-form-header {
    margin-bottom: 20px;
}

.vod-form-title {
    font-family: 'Libre Baskerville', serif !important;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 10px;
}

.vod-form-desc {
    font-size: var(--font-size-reading);
    color: rgba(255, 255, 255, 0.85);
    margin: 30px 0;
    letter-spacing: 0.3px;
}

/* Inputs inside the dark card */
.vod-subscriber-form .vod-input-container {
    margin-bottom: 15px;
}

.vod-subscriber-form .vod-field {
    background: var(--color-primary-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: bold;
}

.vod-subscriber-form .vod-field::placeholder {
    color: black;
    font-weight: bold;
}

.vod-subscriber-form .vod-field:focus {
    outline: none;
    border-color: var(--color-primary);
}

.vod-select-wrapper {
    position: relative;
}

.vod-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 35px;
    cursor: pointer;
}

.vod-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    line-height: 1;
}

/* WhatsApp row: prefix badge + number input side by side */
.vod-whatsapp-row {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.vod-phone-prefix-badge {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--color-primary);
    border-right: none;
    border-radius: 16px 0 0 16px;
    font-size: var(--font-size-sm);
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: bold;
}

.vod-phone-input {
    flex: 1;
    border-radius: 0 16px 16px 0 !important;
}

.vod-submit-btn {
    margin-top: 48px;
    margin-bottom: 0;
    width: auto;
    margin-inline: auto;
    padding-inline: 40px;
}

.vod-form-errors
{
    color: var(--color-form-error);
}

.vod-whatsapp-section
{
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
}

.vod-whatsapp-label
{
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.vod-whatsapp-grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.vod-whatsapp-link
{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.82em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.vod-whatsapp-link:hover
{
    background: rgba(37, 211, 102, 0.22);
    border-color: rgba(37, 211, 102, 0.5);
    color: #fff;
    text-decoration: none;
}

.vod-whatsapp-link .fa-whatsapp
{
    font-size: 1.1em;
    color: #25d366;
    flex-shrink: 0;
}

@media (max-width: 600px)
{
    .vod-whatsapp-grid
    {
        grid-template-columns: 1fr;
    }
}

.promo-image-container-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.promo-image-container-home img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.promo-image-container-home a {
    display: block;
}

@media (max-width: 640px) {
    .vod-form-card {
        padding: 32px 24px 20px;
    }

    .vod-form-title {
        font-size: var(--font-size-xl);
        text-align: center;
    }

    .vod-form-desc {
        font-size: var(--font-size-md);
    }

    .vod-form-icon {
        position: relative;
        left: 50%;
        transform: translate(-50%, 0) rotate(-30deg);
        right: auto;
        margin-top: 20px;
    }

    .promo-image-container-home {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   STAY CONNECTED SECTION
   ============================================= */

.bg-stay-connected-section {
    padding-bottom: 56px;
}

.stay-connected-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.stay-connected-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 992px) {
    .stay-connected-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stay-connected-grid {
        padding-inline: 1em;
    }
}

/* =============================================
   Chapters Grid / Table of Contents
   (used in gita_chapters.html templatetag)
   ============================================= */

.toc-subtitle {
    font-size: var(--font-size-lg);
    text-align: center;
    max-width: 632px;
    padding-inline: 1em;
    margin-inline: auto;
    margin-bottom: 32px;
    letter-spacing: 0.3px;
}

.toc-top-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    text-align: center;

    font-family: 'Inter', sans-serif;
}

.toc-top-links a {
    color: var(--color-secondary);
    font-size: var(--font-size-md);
    font-weight: 500;
    text-decoration: none;
    padding: 6px 40px;
    border: 1px solid var(--color-btn-orange);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.toc-top-links a:hover {
    background: var(--color-btn-orange-hover);
    color: white;
    text-decoration: none;
}

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

.chapter-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--color-primary-light);
    border: 1px solid #e8d5a3;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 260px;
}

.card-chapter-icon {
    position: absolute;
    top: 12px;
    right: 22px;
    width: 150px;
    height: 150px;
    object-fit: contain;
    opacity: 0.55;
    pointer-events: none;
}

.chapter-card:hover {
    box-shadow: 0 6px 24px rgba(34, 45, 92, 0.13);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.card-sanskrit {
    font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', serif;
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--color-secondary);
    margin: 0 0 5px;
    line-height: 1.4;
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 3px;
    line-height: 1.3;
    z-index: 10;
}

.card-subtitle {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-btn-orange);
    margin-block: 8px;
    line-height: 1.4;
    z-index: 10;
}

.card-description {
    font-size: var(--font-size-md);
    color: var(--font-color);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    letter-spacing: 0.3px;
    z-index: 10;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.card-verse-count {
    font-family: 'Libre Baskerville', serif;
    font-size: var(--font-size-base);
    color: var(--font-color);
    letter-spacing: 0.2px;
}

.card-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 1.5em;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.chapter-card:hover .card-arrow-btn {
    background: var(--color-btn-orange);
    color: #fff;
    transform: translateX(2px);
}

@media (max-width: 1280px) {
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .toc-top-links a {
        font-size: var(--font-size-base);
    }

    .chapters-grid {
        grid-template-columns: 1fr;
        padding-inline: 1em;
    }

    .chapter-card {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        min-height: auto;
    }

    .card-number {
        margin-bottom: 0;
        margin-right: 12px;
    }

    .card-title {
        flex: 1;
        font-size: var(--font-size-lg);
        line-height: 1.5;
    }

    .card-subtitle,
    .card-description,
    .card-footer {
        width: 100%;
    }

    .card-subtitle {
        font-size: var(--font-size-base);
        line-height: 1.5;
    }

    .card-description {
        font-size: var(--font-size-base);
    }

    .card-description p {
        margin: 0;
    }
}

@media (max-width: 420px) {
    .toc-subtitle {
        font-size: var(--font-size-base);
    }

    .toc-top-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        max-width: fit-content;
        margin-inline: auto;
    }

    .toc-top-links a {
        padding: 6px 14px;
        width: stretch;
    }
}


/* ---- Read-in language links (shared component) ---- */
.read-in-lang-links {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.read-in-lang-label {
    font-size: var(--font-size-base);
    color: var(--color-secondary);
    margin-right: 4px;
}

.read-in-lang-links a {
    font-size: var(--font-size-base);
    color: #d4760a;
    text-decoration: none;
    transition: color 0.2s;
}

.read-in-lang-links a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.read-in-lang-sep {
    color: #bbb;
    margin: 0 2px;
    font-size: var(--font-size-base);
}

/* ---- Shared Section Utilities ---- */

.bg-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 24px;
}

.bg-section-heading {
    text-align: center;
    margin-block: 36px;
}

.bg-section-heading h2 {
    font-family: 'Libre Baskerville', serif !important;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-secondary);
    background-color: var(--color-primary);
    line-height: 1.2;
    padding-block: 10px;
}

@media (max-width: 640px) {
    .bg-container {
        padding: 0;
    }

    .bg-section-heading h2 {
        font-size: var(--font-size-xl);
    }

    .read-in-lang-links {
        justify-content: center;
    }
}

/* =============================================
   Two-Column Portrait Layout
   (Shared: Dedication, About Swamiji, About Maharajji.)
   ============================================= */

.bg-portrait-layout
{
    display: flex;
    gap: 48px;
    align-items: center;
    padding-block: 32px 48px;
}

.bg-portrait-layout--top
{
    align-items: flex-start;
}

.bg-portrait-figure
{
    flex: 0 0 44%;
    margin: 0;
}

.bg-portrait-figure img
{
    width: 100%;
    display: block;
    border: 10px solid var(--color-primary);
    border-radius: 4px;
    box-sizing: border-box;
}

.bg-portrait-body
{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 900px)
{
    .bg-portrait-layout
    {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .bg-portrait-figure
    {
        flex: unset;
        width: 100%;
        max-width: 540px;
    }
}

@media (max-width: 640px)
{
    .bg-portrait-body
    {
        padding-inline: 1em;
    }
}

.intro-content
{
    padding-top: 1em;
}

.intro-content p
{
    margin: 0 0 16px;
    line-height: 1.65;
    color: var(--font-color);
    font-size: var(--font-size-reading);
    text-align: justify;
}

/* =============================================
   QUICK JUMP TO VERSE
   ============================================= */

.quick-jump-outer {
    padding-block: 36px;
}

.quick-jump-section {
    position: relative;
    background: var(--color-primary-light);
    border: 1.5px solid var(--color-primary);
    border-radius: 16px;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    overflow: hidden;
}

.quick-jump-book-icon {
    position: absolute;
    left: -10px;
    top: -10px;
    height: 160px;
    width: auto;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}

.quick-jump-content {
    flex: 1;
    text-align: center;
}

.quick-jump-title {
    font-family: 'Libre Baskerville', serif !important;
    font-size: 2.25em;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 6px;
    line-height: 1.2;
}

.quick-jump-subtitle {
    font-family: 'Libre Baskerville', sans-serif;
    font-size: var(--font-size-lg);
    margin: 0;
}

.quick-jump-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-block: 26px;
}

.quick-jump-divider-line {
    display: inline-block;
    height: 1.5px;
    width: 80px;
    background: var(--color-primary);
}

.quick-jump-divider-diamond {
    color: var(--color-primary);
    font-size: 0.6875em;
    line-height: 1;
}

.quick-jump-form-row {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-jump-select-wrapper {
    position: relative;
    flex: 0 0 260px;
}

.quick-jump-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 40px 12px 18px;
    border: 1.5px solid var(--color-primary);
    border-radius: 6px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    color: var(--font-color-secondary);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-jump-select:focus {
    border-color: var(--color-btn-orange);
    box-shadow: 0 0 0 3px rgba(255, 189, 97, 0.25);
}

.quick-jump-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-jump-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85em;
    color: #888;
    pointer-events: none;
    line-height: 1;
}

.quick-jump-input {
    flex: 0 0 300px;
    padding: 12px 18px;
    border: 1.5px solid var(--color-primary);
    border-radius: 6px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375em;
    color: var(--font-color-secondary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-jump-input:focus {
    border-color: var(--color-btn-orange);
    box-shadow: 0 0 0 3px rgba(255, 189, 97, 0.25);
}

.quick-jump-input::placeholder {
    color: #aaa;
}

/* hide browser number spinners */
.quick-jump-input::-webkit-outer-spin-button,
.quick-jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quick-jump-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.quick-jump-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--color-btn-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375em;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.quick-jump-btn:hover {
    background: var(--color-btn-orange-hover);
    transform: translateY(-1px);
}

.quick-jump-btn-text {
    padding: 12px 22px;
}

.quick-jump-btn-sep {
    display: inline-block;
    width: 1px;
    background: rgba(255,255,255,0.35);
    align-self: stretch;
}

.quick-jump-btn-arrow {
    padding: 12px 16px;
    font-size: 1.25em;
    font-style: normal;
    line-height: 1;
}

.bg-popup
{
    transition: opacity var(--global-default-transition-duration) ease, visibility 0s linear 0s;
    font-family: 'Inter', sans-serif;
}

.bg-popup.bg-popup-layer
{
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bg-popup.bg-popup-layer.open
{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--global-default-transition-duration) ease, visibility 0s linear 0s;
}

.bg-popup.bg-popup-layer.closed,
.bg-popup.bg-popup-layer.closing
{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--global-default-transition-duration) ease, visibility 0s linear var(--global-default-transition-duration);
}

.bg-popup.bg-popup-layer[hidden]
{
    display: none !important;
}

.bg-popup .bg-popup-content-container
{
    position: relative;
    width: 90%;
    min-width: 280px;
    max-width: 460px;
    background-color: #fff;
    border-radius: 20px;
    padding: 0 0 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    text-align: center;
    overflow: hidden;

    transform: translateY(-40px) scale(0.96);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.25s ease-out;
}

.bg-popup.open .bg-popup-content-container
{
    transform: translateY(0) scale(1);
    opacity: 1;
}

.bg-popup.closed .bg-popup-content-container,
.bg-popup.closing .bg-popup-content-container
{
    transform: translateY(-40px) scale(0.96);
    opacity: 0;
    transition: transform 0.2s ease-in, opacity 0.2s ease-in;
}

/* Header row — title + close */
.bg-popup .bg-popup-header
{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 52px;
    border-bottom: 1px solid rgba(34, 45, 92, 0.08);
    margin-bottom: 20px;
}

/* × close button — sits in header row, pinned right */
.bg-popup .bg-popup-close-icon
{
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    color: #aaa;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bg-popup .bg-popup-close-icon:hover
{
    background-color: #f0f0f0;
    color: #555;
}

/* Bookmark icon circle */
.bg-popup .bg-popup-icon-wrap
{
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5a623 0%, #e8880a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(232, 136, 10, 0.35);
}

.bg-popup .bg-popup-icon-wrap i
{
    font-size: 1.6em;
    color: #fff;
}

/* Title */
.bg-popup .bg-popup-title
{
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.4;
    flex: 1;
}

/* Description text */
.bg-popup .bg-popup-content-container .content-container
{
    font-size: 0.94em;
    color: #666;
    line-height: 1.65;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.bg-popup .bg-popup-content-container .content-container p
{
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    letter-spacing: 0.3px;
}

.login-popup-verse-card
{
    background-color: var(--color-primary-light);
    border: 1px solid rgba(224, 123, 42, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}

.login-popup-verse-ref
{
    display: block;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--color-btn-orange);
    margin-bottom: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-popup-verse-shlock
{
    font-family: none;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--font-color-shlock, var(--color-secondary));
    text-align: center;
    margin-bottom: 10px;
}

.login-popup-verse-shlock p
{
    margin: 0;
    line-height: 1.7;
}

.login-popup-verse-translation
{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.1em;
    color: #555;
    line-height: 1.55;
    border-top: 1px solid rgba(224, 123, 42, 0.18);
    padding-top: 10px;
    margin: 0;
    letter-spacing: 0.3px;
}

.login-popup-cta
{
    width: 100%;
}

.bg-popup .bg-popup-content-container .button-container
{
    padding: 0 24px;
}

.bg-popup-dismiss-btn
{
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #999 !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    width: 100% !important;
    margin-top: 4px;
    padding: 6px 0 !important;
    text-decoration: none;
    transition: color 0.15s ease !important;
    cursor: pointer;
}

.bg-popup-dismiss-btn:hover
{
    color: #555 !important;
    background: none !important;
    text-decoration: underline;
}

.bg-popup.closed
{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bg-error-popup
{
    position: fixed;
    left: 50%;
    bottom: 24px;
    width: calc(100% - 32px);
    max-width: 560px;
    z-index: 10000;

    color: #fff;
    background-color: var(--color-form-error);
    border-radius: 5px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition: opacity var(--global-default-transition-duration) ease, transform var(--global-default-transition-duration) ease, visibility 0s linear 0s;
}

.bg-error-popup.closed
{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 24px);
    transition: opacity var(--global-default-transition-duration) ease, transform var(--global-default-transition-duration) ease, visibility 0s linear var(--global-default-transition-duration);
}

.bg-error-popup.open
{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.bg-error-popup-content-container
{
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
}

.bg-error-popup .content-container
{
    flex: 1;
    color: #fff;
    font-weight: 600;
}

.bg-error-popup .close-popup
{
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 6px 10px;
}

.bg-error-popup .close-popup:hover
{
    background-color: rgba(255, 255, 255, 0.16);
}

.bg-progressbar
{
    width: 100%;
}

.bg-progressbar .progressbar-back
{
    width: 100%;
    background-color: white;

    border-radius: 10px;
    overflow: hidden;
}

.bg-progressbar .progressbar-completed
{
    width: var(--completed, 0%);
    background-color: var(--color-btn-orange);
    padding: 5px 0;
    border-radius: 10px;
}


/* 992px — shrink fixed widths */
@media (max-width: 992px) {
    .quick-jump-select-wrapper {
        flex: 0 0 220px;
    }

    .quick-jump-input {
        flex: 0 0 220px;
    }
}

/* 768px — stack form controls */
@media (max-width: 768px) {
    .quick-jump-section {
        padding-bottom: 10px;
    }

    .quick-jump-book-icon {
        position: static;
    }

    .quick-jump-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-jump-select-wrapper,
    .quick-jump-input {
        flex: 1 1 auto;
    }

    .quick-jump-btn {
        width: max-content;
        margin-inline: auto;
    }
}

/* 640px — hide subtitle, shrink title */
@media (max-width: 640px) {
    .quick-jump-section {
        padding-top: 20px;
        padding-inline: 18px;
    }

    .quick-jump-subtitle {
        display: none;
    }

    .quick-jump-title {
        font-size: 2em;
        line-height: 1.6;
    }
}

/* Container query — quick-jump-to-verse section inside narrow containers.
Triggers when the gita-sidebar container is ≤ 480px wide */
@container gita-sidebar (max-width: 480px) {
    .quick-jump-outer {
        padding-block: 16px;
    }

    .quick-jump-outer .bg-container {
        padding: 0 !important;
    }

    .quick-jump-section {
        padding: 20px 16px 14px;
        gap: 16px;
        border-radius: 8px;
    }

    .quick-jump-book-icon {
        position: static;
        height: 80px;
    }

    .quick-jump-title {
        font-size: 1.35em;
        max-width: 70%;
        margin-inline: auto;
        line-height: 1.8;
    }

    .quick-jump-subtitle {
        display: none;
    }

    .quick-jump-divider {
        margin-bottom: 14px;
    }

    .quick-jump-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-jump-select-wrapper,
    .quick-jump-input {
        flex: 1 1 auto;
    }

    .quick-jump-btn {
        width: max-content;
        margin-inline: auto;
        justify-content: space-between;
    }

    .quick-jump-btn-text {
        flex: 1;
        text-align: center;
        padding: 10px 22px;
    }

    .quick-jump-btn-arrow {
        padding: 10px 18px;
    }
}

/* =============================================
   YouTube Video Embed (shared: home + verse)
   ============================================= */

.main-youtube-video-wrapper {
    margin-bottom: 24px;
    border-radius: 10px;
    overflow: hidden;
}

.main-youtube-video-wrapper .youtube-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    display: block;
}

.main-youtube-video-wrapper .youtube-video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}


/* Book order popup */
.book-order-popup-books {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 8px 0 16px;
}

.book-order-popup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.book-order-popup-img {
    height: 160px;
    width: auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}

.book-order-popup-title {
    flex: 1;
    font-size: 1.1em;
    color: var(--color-secondary);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.book-order-popup-btn,
.book-order-promo-btn {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9em;
}

/* Book order promo widget (sidebar) */
.book-order-promo {
    background: var(--color-primary-light);
    border: 1.5px solid var(--color-primary);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
}

.book-order-promo-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 20px;
}

.book-order-promo-books {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.book-order-promo-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.book-order-promo-img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.book-order-promo-name {
    flex: 1;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--color-secondary);
    line-height: 1.4;
    text-align: center;
}

@container gita-sidebar (max-width: 320px) {
    .book-order-promo-books {
        flex-direction: column;
    }
}
/* ── Welcome popup ── */
.welcome-popup-greeting
{
    margin: 0 0 2px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #222D5C;
    font-family: 'Libre Baskerville', Georgia, serif;
}

.welcome-popup-name
{
    color: #e07b2a;
}

.welcome-popup-sub
{
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: #888;
    font-family: Georgia, serif;
    font-style: italic;
}

.welcome-popup-cards
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 4px;
    text-align: left;
}

.welcome-popup-card
{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #faf8f4;
    border: 1px solid #ede8df;
    border-radius: 10px;
    padding: 14px 12px;
}

.welcome-popup-card-icon
{
    display: block;
    font-size: 1.8em;
    margin-bottom: 6px;
    line-height: 1;
}

.welcome-popup-card-title
{
    font-family: 'Libre Baskerville', serif !important;
    font-size: 1em;
    font-weight: 700;
    color: #222D5C;
    font-family: Georgia, serif;
}

.welcome-popup-card-desc
{
    font-family: 'Libre Baskerville', serif !important;
    text-align: center;
    margin-top: 10px;
    font-size: 0.85em;
    color: #666;
    line-height: 1.5;
    font-family: Georgia, serif;
}

/* Google CSE overlay — center and size the results panel */
.gsc-results-wrapper-overlay {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(680px, 92vw) !important;
    top: 60px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
}
