/* =========================================================
   VIDEO MARQUEE
   Auto Scroll + Mouse Drag + Touch Swipe
========================================================= */

.video-marquee-section {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    background: var(--cream);
}


/* ===================== HEADER ===================== */

.video-marquee-header {
    max-width: 1280px;
    margin: 0 auto 45px;
    padding: 0 24px;
    text-align: center;
}


/* ===================== SLIDER ===================== */

.video-marquee-slider {
    width: 100%;
    overflow: hidden;
    padding: 15px 0 30px;

    cursor: grab;

    user-select: none;
    -webkit-user-select: none;

    /*
     * Allows normal vertical page scrolling
     * while still allowing horizontal dragging.
     */
    touch-action: pan-y;

    -webkit-overflow-scrolling: touch;
}

.video-marquee-slider.is-dragging {
    cursor: grabbing;
}


/*
IMPORTANT:

Track contains TWO identical .video-marquee-group elements.

Group 1 = Original cards
Group 2 = Exact duplicate of Group 1

The movement is now handled by JavaScript
instead of CSS animation so mouse drag and
touch swipe can work smoothly.
*/

.video-marquee-track {
    display: flex;
    width: max-content;

    will-change: transform;

    transform: translate3d(0, 0, 0);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* ===================== GROUP ===================== */

.video-marquee-group {
    display: flex;
    flex-shrink: 0;

    gap: 26px;

    padding-right: 26px;
}


/* ===================== DRAG PROTECTION ===================== */

.video-marquee-slider img {
    pointer-events: none;

    -webkit-user-drag: none;
    user-drag: none;
}

.video-marquee-card>a {
    -webkit-user-drag: none;
}


/* ===================== VIDEO CARD ===================== */

.video-marquee-card {
    width: 330px;
    flex: 0 0 330px;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border-soft);
    border-radius: 20px;

    box-shadow: var(--shadow);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.video-marquee-card:hover {
    transform: translateY(-8px);

    border-color: rgba(199, 138, 47, 0.35);

    box-shadow: var(--shadow-lg);
}

.video-marquee-card>a {
    display: block;
    height: 100%;

    color: inherit;

    text-decoration: none;
}


/* ===================== IMAGE ===================== */

.video-marquee-image {
    position: relative;

    width: 100%;
    height: 220px;

    overflow: hidden;

    background: var(--charcoal);
}

.video-marquee-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-marquee-card:hover .video-marquee-image img {
    transform: scale(1.08);
}


/* ===================== IMAGE OVERLAY ===================== */

.video-marquee-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.04) 20%,
            rgba(0, 0, 0, 0.72) 100%);

    pointer-events: none;
}


/* ===================== VIDEO NUMBER ===================== */

.video-marquee-number {
    position: absolute;

    top: 18px;
    left: 20px;

    color: var(--white);

    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2px;

    pointer-events: none;
}


/* ===================== PLAY BUTTON ===================== */

.video-marquee-play {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        rgba(124, 23, 30, 0.92);

    color: var(--white);

    box-shadow:
        0 0 0 9px rgba(255, 255, 255, 0.12),
        0 10px 30px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;

    pointer-events: none;
}

.video-marquee-play span {
    margin-left: 3px;

    font-size: 17px;
    line-height: 1;
}

.video-marquee-card:hover .video-marquee-play {
    transform:
        translate(-50%, -50%) scale(1.12);

    background: var(--burgundy);

    box-shadow:
        0 0 0 12px rgba(255, 255, 255, 0.14),
        0 14px 35px rgba(0, 0, 0, 0.20);
}


/* ===================== WATCH TEXT ===================== */

.video-marquee-watch {
    position: absolute;

    right: 18px;
    bottom: 18px;

    color:
        rgba(255, 255, 255, 0.88);

    font-family: var(--ff-body);
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;

    pointer-events: none;
}


/* ===================== CARD CONTENT ===================== */

.video-marquee-content {
    position: relative;

    min-height: 110px;

    padding:
        20px 58px 20px 22px;
}

.video-marquee-label {
    display: block;

    margin-bottom: 8px;

    color: var(--burgundy);

    font-family: var(--ff-body);
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.video-marquee-content h3 {
    margin: 0;

    color: var(--ink);

    font-family: var(--ff-display);
    font-size: 19px;
    font-weight: 600;

    line-height: 1.35;
}


/* ===================== CARD ARROW ===================== */

.video-marquee-arrow {
    position: absolute;

    right: 20px;
    bottom: 20px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border-soft);

    border-radius: 50%;

    color: var(--burgundy);

    font-size: 17px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.video-marquee-card:hover .video-marquee-arrow {
    background: var(--burgundy);

    border-color: var(--burgundy);

    color: var(--white);

    transform: rotate(45deg);
}


/* ===================== DRAGGING STATE ===================== */

/*
Removes hover movement while the user
is actively dragging the marquee.
*/

.video-marquee-slider.is-dragging .video-marquee-card {
    transform: none;
}


/*
Avoid accidental browser selection
while dragging.
*/

.video-marquee-slider.is-dragging,
.video-marquee-slider.is-dragging * {
    user-select: none;
    -webkit-user-select: none;
}

/* =========================================================
   VIDEO MARQUEE NAVIGATION
========================================================= */

.video-marquee-slider {
    position: relative;
}


/* Navigation Buttons */

.video-marquee-prev,
.video-marquee-next {
    position: absolute;

    z-index: 20;

    top: 50%;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    transform: translateY(-50%);

    border: 1px solid var(--border-soft);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    color: var(--burgundy);

    box-shadow: var(--shadow);

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Previous */

.video-marquee-prev {
    left: 24px;
}


/* Next */

.video-marquee-next {
    right: 24px;
}


/* Icon */

.video-marquee-prev i,
.video-marquee-next i {
    font-size: 14px;
    line-height: 1;
}


/* Hover */

.video-marquee-prev:hover,
.video-marquee-next:hover {
    background: var(--burgundy);

    border-color: var(--burgundy);

    color: var(--white);

    transform:
        translateY(-50%) scale(1.08);

    box-shadow: var(--shadow-lg);
}


/* Active */

.video-marquee-prev:active,
.video-marquee-next:active {
    transform:
        translateY(-50%) scale(0.96);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .video-marquee-prev {
        left: 14px;
    }

    .video-marquee-next {
        right: 14px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .video-marquee-prev,
    .video-marquee-next {
        width: 40px;
        height: 40px;
    }

    .video-marquee-prev {
        left: 8px;
    }

    .video-marquee-next {
        right: 8px;
    }

}


/* ===================== TABLET ===================== */

@media (max-width: 991px) {

    .video-marquee-section {
        padding: 75px 0;
    }


    .video-marquee-header {
        margin-bottom: 38px;
    }


    .video-marquee-group {
        gap: 22px;

        padding-right: 22px;
    }


    .video-marquee-card {
        width: 300px;

        flex-basis: 300px;
    }


    .video-marquee-image {
        height: 210px;
    }

}


/* ===================== MOBILE ===================== */

@media (max-width: 767px) {

    .video-marquee-section {
        padding: 60px 0;
    }


    .video-marquee-header {
        margin-bottom: 30px;

        padding: 0 18px;
    }


    .video-marquee-group {
        gap: 16px;

        padding-right: 16px;
    }


    .video-marquee-card {
        width: 270px;

        flex-basis: 270px;

        border-radius: 16px;
    }


    .video-marquee-image {
        height: 190px;
    }


    .video-marquee-content {
        min-height: 100px;

        padding:
            17px 52px 17px 18px;
    }


    .video-marquee-content h3 {
        font-size: 17px;
    }


    .video-marquee-play {
        width: 52px;
        height: 52px;
    }


    .video-marquee-arrow {
        right: 16px;
        bottom: 16px;
    }


    /*
     * Disable hover-specific movements
     * on touch devices.
     */

    .video-marquee-card:hover {
        transform: none;
    }


    .video-marquee-card:hover .video-marquee-image img {
        transform: none;
    }

}


/* ===================== SMALL MOBILE ===================== */

@media (max-width: 480px) {

    .video-marquee-section {
        padding: 50px 0;
    }


    .video-marquee-card {
        width: 245px;

        flex-basis: 245px;
    }


    .video-marquee-image {
        height: 175px;
    }

}


/* ===================== REDUCED MOTION ===================== */

/*
JavaScript already checks prefers-reduced-motion
and stops automatic movement.

Dragging / swiping will still remain available.
*/

@media (prefers-reduced-motion: reduce) {

    .video-marquee-card,
    .video-marquee-image img,
    .video-marquee-play,
    .video-marquee-arrow {
        transition: none;
    }

}


/* ===================== VIDEO MARQUEE END ===================== */

/* =========================================================
   COMMON MARQUEE / CONTENT SLIDER
   Reusable site-wide slider
========================================================= */

.common-marquee {
    position: relative;
    width: 100%;
    --common-marquee-gap: 24px;
}


/* =========================================================
   VIEWPORT
========================================================= */

.common-marquee-viewport {
    width: auto;
    margin-left: 58px;
    margin-right: 58px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.common-marquee-viewport::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   TRACK
========================================================= */

.common-marquee-track {
    display: flex;
    width: max-content;
}


/* =========================================================
   GROUP
========================================================= */

.common-marquee-group {
    display: flex;
    flex-shrink: 0;
    gap: var(--common-marquee-gap);
    padding-right: var(--common-marquee-gap);
}


/* =========================================================
   ITEM
========================================================= */

.common-marquee-item {
    flex-shrink: 0;
    min-width: 0;
    box-sizing: border-box;
}

.common-marquee-item>* {
    width: 100%;
}


/* Video cards inside common marquee */

.common-marquee-item .video-marquee-card {
    width: 100%;
    max-width: none;
}


/* =========================================================
   NAVIGATION
========================================================= */

.common-marquee-prev,
.common-marquee-next {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--burgundy);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.common-marquee-prev {
    left: 0;
}

.common-marquee-next {
    right: 0;
}

.common-marquee-prev i,
.common-marquee-next i {
    font-size: 14px;
    line-height: 1;
}

.common-marquee-prev:hover,
.common-marquee-next:hover {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: var(--white);
    transform: translateY(-50%) scale(1.06);
    box-shadow: var(--shadow-lg);
}


/* =========================================================
   TABLET
   Navigation arrows hidden below desktop
========================================================= */

@media (max-width: 991px) {

    .common-marquee-viewport {
        margin-left: 0;
        margin-right: 0;
    }

    .common-marquee-prev,
    .common-marquee-next {
        display: none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .common-marquee,
    .common-marquee-viewport {
        width: 100%;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .common-marquee-item {
        transition: none;
    }

}

/* ===================== COMMON MARQUEE END ===================== */


/* =========================================================
   DEDICATED EDITORIAL STYLING FOR DETAIL PAGES
========================================================= */

.sub-banner-section {
    display: none;
}

.detail-page {
    background: #fffdf9;
}


.detail-meta {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1;
}

.detail-meta li {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0 15px;
    height: 18px;

    color: #fff;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
}

.detail-meta li:first-child {
    padding-left: 0;
}

.detail-meta li+li {
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.detail-meta li i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;

    font-size: 11px;
    line-height: 18px;
    flex-shrink: 0;
}

.detail-meta li strong,
.detail-meta li span {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 18px;
    font-weight: 500;
}

.detail-meta li strong {
    font-weight: 600;
}

/* =========================================================
   DETAIL HERO
========================================================= */

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: 38px 0 0;
    color: #fff;
    background-image: url("../images/sub-banner.webp");
    background-position: center 45%;
    background-size: cover;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: -webkit-linear-gradient(rgba(232, 180, 12, 0.85),
            rgba(222, 24, 24, 0.88));
}

.detail-hero__texture,
.detail-hero__note {
    display: none;
}

.detail-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1110px;
}

.detail-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.detail-breadcrumb a:hover {
    color: #f5c66e;
}

.detail-hero__content {
    position: absolute;
    z-index: 2;
    top: -56px;
    left: 50%;
    width: 90%;
    margin-top: 70px;
    padding: 48px 52px 43px;
    transform: translateX(-50%);
}

.detail-kicker {
    display: inline-block;
    margin-bottom: 17px;
    color: #dba650;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.detail-hero h1 {
    width: 90%;
    margin: 0 auto;
    padding-bottom: 40px;
    color: #fff;
    font-size: 44px;
    line-height: 1.01;
    text-align: center;
}

.detail-hero h1 em {
    color: #a96c24;
    font-weight: 500;
}

.detail-hero__content>p {
    max-width: 565px;
    margin: 18px 0 24px;
    color: #6a5b51;
    font-size: 17px;
    line-height: 1.65;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.detail-meta strong {
    color: #fff;
}

.detail-meta i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d5a654;
}

.detail-author-mark {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid #dba650;
    border-radius: 50%;
    color: #f3cb80;
    font-family: var(--ff-display);
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   DETAIL BODY / LAYOUT
========================================================= */

.detail-body {
    padding: 85px 0 100px;
}

.detail-body .container,
.related-content .container {
    max-width: 1110px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 700px);
    gap: 72px;
    align-items: start;
}

.detail-sidebar {
    order: -1;
}

.detail-sidebar__sticky {
    position: sticky;
    top: 28px;
}


/* =========================================================
   FEATURE IMAGE
========================================================= */

.detail-feature-image {
    margin: 3px 0 40px;
}

.detail-feature-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 3px;
    box-shadow: 16px 16px 0 #f1e2c5;
}

.detail-feature-image figcaption {
    margin-top: 11px;
    color: #95877b;
    font-size: 12px;
    font-style: italic;
}


/* =========================================================
   DETAIL CONTENT
========================================================= */

.detail-content p {
    color: #5e5148;
    font-size: 17px;
    line-height: 1.95;
    text-align: justify;
}

.detail-content .detail-intro {
    color: #2f2520;
    font-family: var(--ff-display);
    font-size: 27px;
    line-height: 1.45;
}

.detail-content h2 {
    margin: 48px 0 16px;
    color: #4e1118;
    font-size: 38px;
}


/* =========================================================
   DETAIL QUOTE
========================================================= */

.detail-quote {
    position: relative;
    margin: 42px 0;
    padding: 34px 38px 32px 48px;
    border-left: 3px solid #bc862e;
    background: #fbf3e4;
}

.detail-quote__mark {
    position: absolute;
    top: 2px;
    left: 14px;
    color: #d6ad67;
    font-family: Georgia, serif;
    font-size: 70px;
}

.detail-quote p {
    position: relative;
    margin: 0;
    color: #66161d;
    font-family: var(--ff-display);
    font-size: 30px;
    font-style: italic;
    line-height: 1.25;
}


/* =========================================================
   PRACTICE CARD
========================================================= */

.detail-step-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    margin: 40px 0 42px;
    padding: 31px;
    border: 1px solid #ead8b9;
    background: #fffaf0;
}

.detail-step-card__number {
    color: #c1882d;
    font-family: var(--ff-display);
    font-size: 31px;
    font-weight: 700;
}

.detail-step-card span {
    color: #7c171e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.detail-step-card ol {
    margin: 13px 0 0;
    padding-left: 18px;
    color: #65564c;
    font-size: 15px;
    line-height: 1.8;
}

.detail-step-card li::marker {
    color: #b37b27;
    font-weight: 700;
}


/* =========================================================
   DETAIL SHARE
========================================================= */

.detail-share {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 49px;
    padding-top: 23px;
    border-top: 1px solid #eaded2;
}

.detail-share span {
    margin-right: 5px;
    color: #86786d;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.detail-share a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #dec9a6;
    border-radius: 50%;
    color: #7c171e;
    transition: 0.2s;
}

.detail-share a:hover {
    border-color: #7c171e;
    color: #fff;
    background: #7c171e;
}


/* =========================================================
   DETAIL CONTENTS / SIDEBAR
========================================================= */

.detail-toc {
    margin-bottom: 29px;
    padding: 19px 0 20px;
    border-top: 3px solid #7c171e;
    border-bottom: 1px solid #e7dcd2;
}

.detail-sidebar-label {
    display: block;
    margin-bottom: 12px;
    color: #7c171e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.detail-toc a {
    display: block;
    padding: 10px 0 10px 15px;
    border-left: 1px solid #e7d9c8;
    color: #706056;
    font-family: var(--ff-display);
    font-size: 18px;
    line-height: 1.25;
}

.detail-toc a:hover {
    border-left-color: #b37b27;
    color: #b37b27;
}


/* =========================================================
   COURSE CARD
========================================================= */

.detail-cta-card {
    margin-top: 34px;
    padding: 27px 24px;
    color: #f9efdf;
    background: #65141c;
}

.detail-cta-card>span {
    color: #e8b15c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.detail-cta-card h3 {
    margin: 12px 0;
    color: #fff8ed;
    font-size: 31px;
    line-height: 1.05;
}

.detail-cta-card p {
    color: #e4cfc5;
    font-size: 13px;
    line-height: 1.65;
}

.detail-cta-card a {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
    color: #f4c974;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-cta-card b {
    font-size: 19px;
}


/* =========================================================
   RELATED CONTENT
========================================================= */

.related-content {
    padding: 78px 0 88px;
    background: #f7efe1;
}

.related-content__heading {
    margin-bottom: 35px;
}

.related-content__heading .detail-kicker {
    margin-bottom: 8px;
}

.related-content h2 {
    margin: 0;
    color: #4e1118;
    font-size: 45px;
}


/* =========================================================
   RELATED CONTENT CONTINUOUS SLIDER
========================================================= */

.related-content-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.related-content-track {
    display: flex;
    width: max-content;
    gap: 24px;
    animation: relatedContentScroll 18s linear infinite;
    will-change: transform;
}

.related-content-track:hover {
    animation-play-state: paused;
}

.related-content-track .related-content-card {
    flex: 0 0 360px;
    width: 360px;
    box-sizing: border-box;
    border-radius: 10px;
}


/* Continuous loop */
@keyframes relatedContentScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 12px));
    }

}


/* =========================================================
   RELATED CONTENT CARD
========================================================= */

.related-content-card {
    position: relative;
    display: flex;
    min-height: 273px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    text-decoration: none;
    background-position: center;
    background-size: cover;
}

.related-content-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(43, 8, 10, 0.96),
            rgba(57, 13, 19, 0.08));
    transition: 0.3s;
}

.related-content-card:hover::before {
    background: linear-gradient(0deg,
            rgba(82, 18, 24, 0.97),
            rgba(57, 13, 19, 0.22));
}

.related-card-1 {
    background-image: url("../images/Raag-Bhairavi.webp");
}

.related-card-2 {
    background-image: url("../images/Remembering the-Essence-of-Music.webp");
}

.related-card-3 {
    background-image: url("../images/basant.webp");
}

.related-card-4 {
    background-image: url("../images/new-beginning.webp");
}

.related-card-5 {
    background-image: url("../images/learning-listening.webp");
}

.related-card-6 {
    background-image: url("../images/making-rainbows.webp");
}

.related-content-card span {
    color: #f2be66;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.related-content-card h3 {
    margin: 9px 0 15px;
    color: #fff9ef;
    font-size: 29px;
    line-height: 1.03;
}

.related-content-card b {
    color: #f5cb7a;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   DETAIL MEDIA
========================================================= */

.detail-media {
    position: relative;
    display: flex;
    align-items: center;
    margin: 55px 0;
    padding: 35px;
    overflow: hidden;
    border-radius: 20px;
    background: #f8f5ef;
}

.detail-media::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(170, 120, 60, 0.08);
}


/* Content */

.detail-media__content {
    position: relative;
    z-index: 1;
    padding-top: 30px;
}

.detail-media__label {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    padding-top: 10px;
    color: #a36b32;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.detail-media__label::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #a36b32;
}

.detail-media__content p {
    margin: 0;
    color: #514943;
    font-size: 17px;
    line-height: 1.85;
    text-align: justify;
}


/* Image */

.detail-media__image {
    position: relative;
    z-index: 1;
    padding-top: 60px !important;
}

.detail-media__image-wrap {
    padding: 4px;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(40, 30, 20, 0.12);
}

.detail-media__image img {
    padding: 4px;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 14px;
}

.detail-media__image-wrap:hover img {
    transform: scale(1.04);
}


/* Image label */

.detail-media__image-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 7px 12px;
    border-radius: 6px;
    color: #40352f;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255, 253, 249, 0.9);
    backdrop-filter: blur(8px);
}


/* =========================================================
   GALLERY
   Responsive inside Common Marquee
========================================================= */

.gallery-card {
    position: relative;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 25 / 16;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px;
    background: var(--cream);
    box-sizing: border-box;
}

.gallery-card .gallery-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    object-fit: cover !important;
    object-position: center !important;
    transition:
        transform 0.4s ease,
        opacity 0.3s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}


/* =========================================================
   COMMON MARQUEE + GALLERY FIX
========================================================= */

.common-marquee-item .gallery-card {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
}

.common-marquee .gallery-card {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 25 / 16;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .gallery-card {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 25 / 16;
        border-radius: 16px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .gallery-card {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 25 / 16;
        border-radius: 14px;
    }

    .gallery-card:hover .gallery-image {
        transform: none;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .gallery-card {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 25 / 16;
        border-radius: 12px;
    }

}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    background: rgba(20, 15, 12, 0.94);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.gallery-lightbox.active {
    visibility: visible;
    opacity: 1;
}

.gallery-lightbox__inner {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 900px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#gallery-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
}

#gallery-lightbox-title {
    margin-top: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}


/* =========================================================
   LIGHTBOX CLOSE
========================================================= */

.gallery-lightbox__close {
    position: absolute;
    z-index: 5;
    top: 25px;
    right: 30px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}


/* =========================================================
   LIGHTBOX ARROWS
========================================================= */

.gallery-lightbox__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.gallery-lightbox__prev {
    left: 30px;
}

.gallery-lightbox__next {
    right: 30px;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__arrow:hover {
    color: #222;
    border-color: #fff;
    background: #fff;
}


/* =========================================================
   LIGHTBOX TABLET
========================================================= */

@media (max-width: 991px) {

    #gallery-lightbox-image {
        max-width: 82vw;
        max-height: 75vh;
    }

    .gallery-lightbox__prev {
        left: 18px;
    }

    .gallery-lightbox__next {
        right: 18px;
    }

    .gallery-lightbox__close {
        top: 18px;
        right: 18px;
    }

}


/* =========================================================
   LIGHTBOX MOBILE
========================================================= */

@media (max-width: 767px) {

    .gallery-lightbox {
        padding: 18px;
    }

    .gallery-lightbox__inner {
        max-width: 100%;
    }

    #gallery-lightbox-image {
        max-width: 90vw;
        max-height: 72vh;
    }

    #gallery-lightbox-title {
        margin-top: 12px;
        font-size: 14px;
    }

    .gallery-lightbox__close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 25px;
    }

    .gallery-lightbox__arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .gallery-lightbox__prev {
        left: 10px;
    }

    .gallery-lightbox__next {
        right: 10px;
    }

}


/* =========================================================
   LIGHTBOX SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .gallery-lightbox {
        padding: 12px;
    }

    #gallery-lightbox-image {
        max-width: 92vw;
        max-height: 68vh;
    }

    .gallery-lightbox__close {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .gallery-lightbox__arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .gallery-lightbox__prev {
        left: 6px;
    }

    .gallery-lightbox__next {
        right: 6px;
    }

}

/* ===================== GALLERY END ===================== */

/* =========================================================
   DETAIL TAGS
========================================================= */

.detail-tags {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #e8e2dc;
}

.detail-tags__title {
    flex-shrink: 0;
    padding-top: 8px;
    color: #30231d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.detail-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags__list span {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    border: 1px solid #e2d9d0;
    border-radius: 50px;
    color: #625953;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    background: #faf8f5;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.detail-tags__list span:hover {
    border-color: #4e1118;
    color: #fff;
    background: #4e1118;
    transform: translateY(-2px);
}


/* =========================================================
   TABLET
   768px - 991px
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {

    /* Detail Hero */

    .detail-hero {
        min-height: 320px;
        padding: 35px 0 0;
    }

    .detail-hero__content {
        width: calc(100% - 60px);
        padding: 40px;
    }

    .detail-hero h1 {
        font-size: 40px;
    }

    .detail-hero__content>p {
        font-size: 16px;
    }


    /* Detail Layout */

    .detail-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 40px;
    }

    .detail-feature-image img {
        height: 360px;
    }


    /* Article */

    .detail-content p {
        font-size: 16px;
    }

    .detail-content .detail-intro {
        font-size: 25px;
    }

    .detail-content h2 {
        font-size: 34px;
    }


    /* Detail Media */

    .detail-media {
        padding: 25px;
    }

    .detail-media__content {
        padding-right: 25px;
    }

    .detail-media__content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .detail-media__image {
        padding-top: 30px !important;
    }

    .detail-media__image-wrap {
        height: 250px;
    }


    /* Related Content Slider */

    .related-content-track {
        gap: 20px;
        animation-duration: 16s;
    }

    .related-content-track .related-content-card {
        flex: 0 0 320px;
        width: 320px;
    }


    /* Related Content */

    .related-content__heading {
        margin-bottom: 25px;
    }

    .related-content__grid {
        gap: 14px;
    }

    .related-content-card {
        min-height: 240px;
        padding: 22px;
    }

    .related-content-card h3 {
        font-size: 25px;
    }

}


/* =========================================================
   MOBILE
   767px AND BELOW
========================================================= */

@media (max-width: 767px) {

    /* Detail Hero */

    .detail-hero {
        min-height: 320px;
        padding: 25px 0 64px;
        background-position: center;
    }

    .detail-hero__content {
        top: auto;
        bottom: -246px;
        width: calc(100% - 30px);
        padding: 30px 27px;
    }

    .detail-hero h1 {
        padding-bottom: 25px;
        font-size: 28px;
    }

    .detail-hero__content>p {
        font-size: 15px;
        line-height: 1.6;
    }

    .detail-hero__note {
        right: -10px;
        bottom: -35px;
        font-size: 180px;
    }

    .detail-breadcrumb {
        font-size: 10px;
    }

    .detail-meta {
        gap: 18px;
        font-size: 12px;
    }


    /* Detail Body */

    .detail-body {
        padding: 55px 16px 60px;
    }

    .detail-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .detail-sidebar {
        display: block;
        width: 100%;
        margin-bottom: 40px;
    }

    .detail-sidebar__sticky {
        position: static;
    }

    .detail-cta-card {
        display: none;
    }

    .detail-toc {
        margin: 0;
        padding: 18px 0;
    }

    .detail-toc a {
        padding: 10px 0 10px 15px;
        font-size: 16px;
    }

    .detail-content {
        width: 100%;
    }


    /* Feature Image */

    .detail-feature-image {
        margin-top: 3px;
    }

    .detail-feature-image img {
        height: 275px;
        box-shadow: 9px 9px 0 #f1e2c5;
    }


    /* Article */

    .detail-content p {
        font-size: 16px;
        line-height: 1.8;
        text-align: justify;
    }

    .detail-content .detail-intro {
        font-size: 24px;
        line-height: 1.45;
    }

    .detail-content h2 {
        margin-top: 38px;
        font-size: 33px;
    }


    /* Quote */

    .detail-quote {
        padding: 28px 25px 28px 38px;
    }

    .detail-quote p {
        font-size: 26px;
    }


    /* Practice Card */

    .detail-step-card {
        grid-template-columns: 1fr;
        padding: 25px;
    }


    /* Detail Media */

    .detail-media {
        margin: 40px 0;
        padding: 25px 20px;
    }

    .detail-media__image {
        order: 1;
        padding-top: 0 !important;
    }

    .detail-media__content {
        order: 2;
        padding: 5px 0 25px;
    }

    .detail-media__content p {
        font-size: 16px;
        line-height: 1.8;
    }

    .detail-media__image-wrap {
        height: 230px;
    }


    /* Related Content */

    .related-content {
        padding: 55px 0;
    }

    .related-content h2 {
        font-size: 37px;
    }


    /* Related Content Slider */

    .related-content-slider {
        width: 100%;
        overflow: hidden;
    }

    .related-content-track {
        gap: 16px;
        animation-duration: 14s;
    }

    .related-content-track .related-content-card {
        flex: 0 0 280px;
        width: 280px;
    }


    /* Related Content Card */

    .related-content-card {
        min-height: 205px;
        padding: 22px;
    }


    /* Detail Tags */

    .detail-tags {
        gap: 15px;
        margin-top: 35px;
        padding-top: 22px;
    }

    .detail-tags__list {
        gap: 8px;
    }

    .detail-tags__list span {
        padding: 8px 13px;
        font-size: 12px;
    }

    .detail-meta {
        gap: 10px;
        align-items: flex-start;
    }

    .detail-meta li {
        font-size: 14px;
    }

    .detail-meta li i {
        width: 24px;
        height: 24px;
        flex-basis: 25px;
    }


}

/* =========================================================
   BLOG CARD
   Reusable blog listing card
========================================================= */

.blog-card {
    position: relative;
    height: 100%;
    overflow: hidden;

    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 20px;

    box-shadow: var(--shadow);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);

    border-color: rgba(199, 138, 47, 0.35);

    box-shadow: var(--shadow-lg);
}

.blog-card>a {
    display: flex;
    height: 100%;

    flex-direction: column;

    color: inherit;
    text-decoration: none;
}


/* ===================== IMAGE ===================== */

.blog-card-visual {
    position: relative;

    width: 100%;
    height: 220px;

    flex-shrink: 0;

    overflow: hidden;

    background: var(--charcoal);
}

.blog-card-visual img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card-visual img {
    transform: scale(1.08);
}


/* ===================== IMAGE OVERLAY ===================== */

.blog-card-visual::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.02) 30%,
            rgba(0, 0, 0, 0.68) 100%);

    pointer-events: none;
}


/* ===================== VISUAL LABEL ===================== */

.blog-card-visual-label {
    position: absolute;
    z-index: 2;

    right: 18px;
    bottom: 17px;

    color: rgba(255, 255, 255, 0.90);

    font-family: var(--ff-body);
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}


/* ===================== CONTENT ===================== */

.blog-card-content {
    position: relative;

    display: flex;
    min-height: 175px;
    flex: 1;

    flex-direction: column;

    padding: 23px 62px 22px 22px;
}

.blog-card-label {
    display: block;

    margin-bottom: 9px;

    color: var(--saffron);

    font-family: var(--ff-body);
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.blog-card-content h3 {
    margin: 0 0 18px;

    color: var(--ink);

    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 700;

    line-height: 1.25;

    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-content h3 {
    color: var(--burgundy);
}

.blog-card-read {
    margin-top: auto;

    color: var(--muted);

    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ===================== ARROW ===================== */

.blog-card-arrow {
    position: absolute;

    right: 20px;
    bottom: 20px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-soft);
    border-radius: 50%;

    color: var(--burgundy);

    font-size: 17px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.blog-card:hover .blog-card-arrow {
    background: var(--burgundy);
    border-color: var(--burgundy);

    color: var(--white);

    transform: rotate(45deg);
}


/* ===================== TABLET ===================== */

@media (max-width: 991px) {

    .blog-card-visual {
        height: 205px;
    }

    .blog-card-content {
        min-height: 165px;
    }

    .blog-card-content h3 {
        font-size: 21px;
    }
}


/* ===================== MOBILE ===================== */

@media (max-width: 767px) {

    .blog-card {
        border-radius: 16px;
    }

    .blog-card-visual {
        height: 190px;
    }

    .blog-card-content {
        min-height: 150px;

        padding:
            20px 58px 20px 20px;
    }

    .blog-card-content h3 {
        font-size: 20px;
    }

    .blog-card-arrow {
        right: 18px;
        bottom: 18px;
    }
}

/* ===================== BLOG CARD END ===================== */


/* =========================================================
   GLOBAL WOW SCROLL ANIMATION
   Premium Smooth Fade In Up
========================================================= */

.wow.animated {
    -webkit-animation-name: premium !important;
    animation-name: premium !important;

    -webkit-animation-duration: 0.85s !important;
    animation-duration: 0.85s !important;

    -webkit-animation-timing-function:
        cubic-bezier(0.22, 1, 0.36, 1) !important;

    animation-timing-function:
        cubic-bezier(0.22, 1, 0.36, 1) !important;

    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;

    will-change: opacity, transform;
}

@-webkit-keyframes premium {

    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 24px, 0);
        transform: translate3d(0, 24px, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

}

@keyframes premium {

    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 24px, 0);
        transform: translate3d(0, 24px, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

}

@media (prefers-reduced-motion: reduce) {

    .wow,
    .wow.animated {
        -webkit-animation: none !important;
        animation: none !important;
        opacity: 1 !important;
        -webkit-transform: none !important;
        transform: none !important;
        visibility: visible !important;
    }

}

/* ===================== GLOBAL WOW ANIMATION END ===================== */