
.heading-divider {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* =============================================
   1. HERO
   ============================================= */

.hero-section-container {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-section {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    overflow: hidden;
    padding: 1em;
    max-width: var(--max-content-width);
    margin-inline: auto;
}

/* ---- Hero background image ---- */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

/* ---- Text column (left) ---- */
.hero-text {
    position: relative;
    z-index: 2;
    flex: 0 0 58%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    padding-top: 40px;
}

.hero-name-parent {
    max-width: max-content;
}

.hero-name-container
{
    line-height: 80px;
}

.hero-name-container .hero-name
{
    font-family: "Cormorant Upright", serif;
    font-weight: 700;
    font-size: 5em;
    margin: 0;
}

.hero-name-container .hero-subname
{
    font-family: "Libre Baskerville", serif !important;
    font-weight: 400;
    font-size: 1.8em;
    text-align: right;
    font-style: italic;
    margin-top: -15px;
}

.hero-author {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--color-btn-orange);
    margin: -10px 0;
}

.hero-tagline {
    max-width: 75%;
    font-size: var(--font-size-md);
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* ---- Book images ---- */
.hero-books {
    max-width: 80%;
    display: flex;
    align-items: center;
    pointer-events: none;
    gap: 35px;
    padding-left: 30px;
}

.hero-book-red {
    height: 218px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
    position: relative;
}

.hero-book-blue {
    height: 218px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
    position: relative;
}

/* ---- CTA buttons ---- */
.hero-cta-row {
    display: flex;
    gap: 20px;
    margin-block: 24px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0 !important;
    font-size: 0.95em;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    border: 1.5px solid var(--color-btn-orange);
    overflow: hidden;
}

.hero-cta.btn-primary-orange {
    width: auto;
}

.hero-cta-text {
    padding: 10px 22px;
}

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

.cta-arrow {
    padding: 10px 16px;
    font-size: 1.25em;
    line-height: 1;
}

.hero-cta-outline {
    background: transparent;
    color: var(--color-btn-orange);
    border: 1.5px solid var(--color-btn-orange);
    padding: 10px 22px;
}

.hero-cta-outline:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
    text-decoration: none;
}


/* ---- Image row wrapper (desktop: absolute overlay; mobile: flex row) ---- */
.hero-images-row {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

/* ---- Swamiji PNG (right) ---- */
.hero-swamiji {
    position: absolute;
    right: 4%;
    bottom: 0;
    z-index: 3;
    height: 100%;
    max-height: 560px;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    pointer-events: none;
}

/* ---- Krishna-Arjuna PNG (mobile only) ---- */
.hero-krishna-arjun {
    display: none;
    pointer-events: none;
}

/* =============================================
   2. VERSE OF THE DAY
   ============================================= */

.vod-section {
    position: relative;
    padding: 64px 24px;
    text-align: center;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vod-section-parallax-image {
    height: 45%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-image: url('../img/vod-background-parallax.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vod-sanskrit-banner {
    text-align: center;
    font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', serif;
    font-size: 7.2em;
    font-weight: 700;
    color: var(--color-primary-light);
    padding-inline: 0.8em;
    letter-spacing: 2px;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.vod-section-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-content-width);
    margin: 0 auto;
    width: 100%;
}

.vod-card-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.vod-icon-left,
.vod-icon-right {
    position: absolute;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vod-icon-left {
    left: -2%;
    top: 16%;
}

.vod-icon-right {
    right: 0;
    bottom: 5%;
}

.vod-icon-image {
    height: 140px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.vod-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 48px 64px;
    box-shadow: 0 8px 32px rgba(34, 45, 92, 0.15);
    flex: 1;
}

.vod-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px 8px 0 0;
}

.vod-label {
    font-family: 'Libre Baskerville', serif !important;
    font-size: 1.65em;
    color: var(--color-btn-orange);
    font-weight: 700;
    margin: 0;
}

.vod-share-link {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--color-btn-orange);
    text-decoration: none;
    transition: color 0.2s;
}

.vod-share-link:hover {
    color: var(--color-btn-orange-hover);
    text-decoration: none;
}

/* Mobile share link — hidden on desktop, shown below verse ref on mobile */
.vod-share-link-mobile {
    display: none;
}

.vod-verse-text {
    line-height: 1.5;

    padding: 5px;
    font-family: 'Noto Serif Devanagari', none;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--font-color-shlock);
    text-align: center;
}

.vod-verse-text p {
    margin-bottom: 10px;
}

.vod-verse-ref {
    font-family: 'Libre Baskerville', serif !important;
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--color-secondary);
    margin-top: 0;
    margin-bottom: 20px;
}

.vod-verse-ref a {
    color: inherit;
    text-decoration: none;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.vod-verse-ref a:hover {
    text-decoration: none;
    color: var(--color-btn-orange);
}

.vod-separator {
    width: 100%;
    border: 1px solid var(--color-primary);
    margin: 24px 0;
}

.vod-translation, .vod-commentary {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--color-secondary);
    margin: 0 0 24px;
    text-align: justify;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.vod-translation strong, .vod-commentary strong {
    font-weight: 700;
    display: inline;
    margin-bottom: 8px;
}

.vod-commentary + p {
    margin: 0 !important;
}

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

.vod-open-link:hover {
    background: var(--color-btn-orange-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

.vod-open-link-text {
    padding: 12px 22px;
}

.vod-open-link-sep {
    display: inline-block;
    width: 1px;
    background: rgba(255,255,255,0.35);
    align-self: stretch;
}

.vod-arrow {
    padding: 12px 16px;
    font-size: 1.25em;
    line-height: 1;
}

/* =============================================
   3. SUBSCRIBER COUNTER BANNER
   ============================================= */

.subscriber-counter-section {
    background: var(--color-primary-light);
    text-align: center;
    padding: 48px 24px;
}

.counter-label {
    font-family: "Inter", sans-serif;
    font-size: 1.20em;
    font-weight: bold;
    color: var(--color-btn-orange);
    margin: 0;
}

.counter-number-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 500px;
    margin-inline: auto;
    margin-block: 18px 10px;
}

.counter-vertical-line {
    width: 4px;
    height: 50px;
    background: var(--color-primary);
}

.counter-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: 'Libre Baskerville', serif !important;
    font-size: 3.6em;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 8px;
}

.digit-col {
    display: inline-block;
    overflow: hidden;
    height: 1.2em;
    width: 0.65em;
    padding-top: 4px;
    vertical-align: middle;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
}

.digit-sep {
    display: inline-block;
    height: 1.2em;
    width: 0.3em;
    text-align: center;
    vertical-align: middle;
}

.digit-strip {
    display: flex;
    flex-direction: column;
}

.digit-cell {
    display: block;
    height: 1.2em;
    line-height: 1.2em;
    text-align: center;
    width: 0.65em;
}

.counter-desc {
    font-family: 'Libre Baskerville', serif;
    margin: 0;
    color: var(--color-secondary);
}

/* =============================================
   4. YOUTUBE SECTION
   ============================================= */

.bg-youtube-section {
    padding-top: 56px;
    color: #fff;
}

.bg-youtube-section .bg-container {
    max-width: 1100px;
}

.bg-youtube-section .bg-section-heading h2 {
    color: #fff;
}

.yt-subscribe-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.yt-subscribe-wrap img {
    height: 42px;
    width: auto;
    transition: opacity 0.2s;
}

.yt-subscribe-wrap img:hover {
    opacity: 0.85;
}

/* =============================================
   5. TEACHINGS SECTION
   ============================================= */

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

.teachings-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.teaching-card {
    background: #fff;
    border: 1px solid #e8d5a3;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(34, 45, 92, 0.08);
    transition: box-shadow 0.2s;
    border-top: 0;
    display: flex;
    flex-direction: column;
}

.teaching-card:hover {
    box-shadow: 0 6px 28px rgba(34, 45, 92, 0.15);
}

.teaching-title {
    font-family: 'Libre Baskerville', serif !important;
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: white;
    background-color: var(--color-secondary);
    margin: 0 0 0px;
    text-align: center;
    line-height: 1.3;
    padding-block: 14px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    letter-spacing: 0.3px;
}

.teaching-content {
    /* font-family: 'Libre Baskerville', serif !important; */
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: #444;
    flex: 1;
    margin: 0;
    text-align: justify;
    padding: 32px;
    background-color: var(--color-primary-light);
    letter-spacing: 0.3px;
}

/* =============================================
   6. TABLE OF CONTENTS
   ============================================= */

.bg-table-of-contents-section {
    padding-bottom: 56px;
}

@media (max-width: 1456px) {
    .hero-bg {
        object-position: 60%;
    }
    .hero-swamiji {
        right: 0;
    }
}

@media (max-width: 1024px) {
    /* Gradient background replaces the hidden BG-Background.jpg */
    .hero-section-container {
        background: linear-gradient(to bottom, #FFF4D0, rgba(255, 255, 255, 0));
    }

    /* Hide desktop background image and book covers */
    .hero-bg { display: none; }
    .hero-books { display: none; }

    .hero-author {
        font-size: 1.8em;
    }

    .hero-section {
        flex-wrap: wrap;
        min-height: auto;
        padding-bottom: 0;
    }

    .hero-text {
        flex: 1 1 100%;
        padding-top: 10px;
        max-width: none;
        text-align: center;
        align-items: center;
    }

    .hero-tagline {
        max-width: none;
    }

    .hero-cta-row {
        justify-content: center;
    }

    .hero-images-row {
        height: 680px;
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        width: 100%;
    }

    .hero-swamiji {
        height: 420px;
    }

    .hero-krishna-arjun {
        position: relative;
        height: 110%;
        width: 100%;
        display: block;
        object-fit: cover;
        object-position: 90%;
    }
}

@media (max-width: 992px) {
    .vod-sanskrit-banner {
        font-size: 4.5em;
    }

    .vod-icon-image {
        height: 100px;
    }

    .hero-name {
        font-size: 2.15em;
    }

    .teachings-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .counter-number {
        font-size: 2.7em;
    }
}

@media screen and (max-width: 768px)
{
    .hero-images-row {
        height: 490px;
    }

    .hero-swamiji {
        height: 340px;
    }
    
    .vod-card {
        padding: 30px 20px 60px;
    }

    .vod-icon-image {
        height: 70px;
    }

    .vod-verse-text {
        font-size: 2em;
    }

    .vod-icon-left {
        top: 22%;
    }

    .vod-icon-right {
        bottom: 1%;
    }

    .vod-card-header {
        justify-content: center;
    }

    .vod-card-header .vod-share-link { display: none; }
    .vod-share-link-mobile {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
}

/* 640px — mobile */
@media (max-width: 640px) {
    .hero-author-break {
        display: block;
        height: 0;
    }

    .vod-section {
        padding: 32px 16px; 
    }

    .vod-sanskrit-banner {
        font-size: 2.4em;
    }

    .vod-label {
        font-size: 1.2em;
    }

    .vod-verse-text {
        font-size: 1.3em;
    }

    .vod-verse-ref, .vod-share-link, .vod-translation, .vod-commentary {
        font-size: 1.1em;
    }

    .vod-open-link {
        margin-top: 32px;
    }

    .teaching-title {
        font-size: 1.1em;
    }

    .teachings-container {
        padding-inline: 16px;
    }

    .teaching-content {
        font-size: 1em;
        padding: 16px;
    }

    .hero-name {
        font-size: 1.9em;
    }

    .hero-subname {
        font-size: var(--font-size-reading);
    }

    .counter-number {
        font-size: 2.50em;
    }

    .quick-jump-section {
        margin-inline: 16px;
    }
}

@media screen and (max-width: 568px)
{
    .hero-name-container {
        font-size: 0.85em;
    }

    .hero-tagline {
        font-size: 1.1em;
    }

    .hero-author {
        font-size: 1.7em;
    }

    .hero-images-row {
        height: 380px;
    }

    .hero-swamiji {
        height: 280px;
    }
}

@media screen and (max-width: 468px)
{
    .hero-name-container {
        font-size: 0.7em;
        line-height: 60px;
    }

    .hero-author {
        font-size: 1.4em;
        margin: 0;
        line-height: 32px;
        letter-spacing: 0.3px;
    }

    .hero-images-row {
        height: 350px;
    }

    .hero-cta-row {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 40px;
    }

    .hero-swamiji {
        height: 260px;
    }
}

/* 420px — small mobile */
@media (max-width: 420px) {
    .hero-name {
        font-size: 1.6em;
    }

    .hero-name-container {
        font-size: 0.65em;
    }

    .hero-images-row {
        height: 350px;
    }

    .hero-swamiji {
        height: 230px;
    }

}

/* =============================================
   HOME PAGE — Header overlays hero background
   ============================================= */

body.home-page header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

body.home-page header .lower-container {
    background: transparent;
}

body.home-page .hero-section {
    padding-top: 180px;
}

@media (max-width: 1024px) {
    body.home-page header {
        position: static;
    }

    body.home-page header .lower-container {
        background: linear-gradient(180deg, var(--header-gradient-1) 0%, rgba(255, 255, 255, 1) 100%);
    }

    body.home-page .hero-section {
        padding-top: 1em;
    }
}
