/* ==========================================================
                SEWAARTH FOUNDATION
                    ABOUT PAGE
        ORIGINAL DESIGN + RESPONSIVENESS
========================================================== */


/* ==========================================================
                    ABOUT HERO
========================================================== */
.about-hero-image {
    max-width: 50%;
    height: 20rem;
    display: block;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .about-hero-image {
        display: none; /* Hide the image on small screens */
    }
}

.about-hero {
    background: transparent;
    padding: 85px 0 90px;
}

.about-hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-hero-content {
    max-width: 100%; /* Changed from 760px to allow full width for right alignment */
    margin: 0;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-hero .section-tag {
    display: inline-flex;
    align-items: center;

    padding: 8px 18px;

    border: 1px solid #E7D5C2;
    border-radius: 999px;

    background: #FFF9F3;
    color: #8A5B33;

    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 500;

    letter-spacing: 2px;

    margin-bottom: 25px;
}

.about-hero h1 {
    margin: 0 0 24px;

    font-family: "Montserrat", sans-serif;
    font-size: 52px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: -1px;

    color: #241816;
}

.about-hero p {
    max-width: 650px;

    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 400;

    line-height: 1.7;

    color: #5B5B5B;
}


/* ==========================================================
                    OUR STORY
========================================================== */

.our-story {
    background:transparent;
    padding: 50px 0;
}

.story-container {
    align-items: center;
}

.story-image {
    width: 100%;
}

.story-image img {
    display: block;

    width: 100%;
    height: 500px;

    object-fit: cover;

    border-radius: 30px;
}

.story-content {
    width: 100%;
}

.story-badge {
    display: inline-flex;
    align-items: center;

    padding: 8px 18px;

    border: 1px solid #E7D5C2;
    border-radius: 999px;

    background: #FFF9F3;
    color: #8A5B33;

    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 500;

    letter-spacing: 2px;

    margin-bottom: 25px;
}

.story-content h2 {
    margin: 0 0 24px;

    font-family: "Montserrat", sans-serif;
    font-size: 45px;
    font-weight: 600;

    line-height: .95;

    letter-spacing: -1px;

    color: #241816;
}

.story-content p {
    max-width: 620px;

    margin: 0 0 28px;

    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 400;

    line-height: 1.75;

    color: #5B5B5B;
}

.story-features {
    margin-top: 0;
}

.story-item {
    min-height: 55px;

    display: flex;
    align-items: center;

    padding: 14px 18px;

    border: 1px solid #E7DED5;
    border-radius: 14px;

    background: #FFFFFF;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;

    line-height: 1.5;

    color: #3A312E;
}


/* ==========================================================
                VISION / MISSION / VALUES
========================================================== */

.vision {
    background: transparent;
    padding: 50px 0;
}

.vision .section-tag,
.journey .section-tag {
    display: inline-flex;
    align-items: center;

    padding: 8px 18px;

    border: 1px solid #E7D5C2;
    border-radius: 999px;

    background: transparent;
    color: #8A5B33;

    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 500;

    letter-spacing: 2px;

    margin-bottom: 25px;
}

.section-title {
    margin: 0 0 50px;

    font-family: "Montserrat", sans-serif;
    font-size: 46px;
    font-weight: 600;

    line-height: 1.05;

    letter-spacing: -1px;

    color: #241816;
}

/* ==========================================================
   TARGET CARD STYLES & TRANSITIONS
========================================================== */

.vision-card {
    position: relative;
    overflow: hidden; /* Hides the sliding content by default */
    height: 100%;
    min-height: 320px; 
    background: #FFFFFF;
    border-radius: 8px; /* Slightly sharper corners matching the video */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05); /* Soft shadow instead of borders */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border-bottom: 4px solid var(--theme-color); /* Matches video's bottom colors */
}

/* Card Theme Colors based on the video */
.color-pink { --theme-color: #E91E63; }
.color-teal { --theme-color: #00BCD4; }
.color-purple { --theme-color: #9C27B0; }
.color-yellow { --theme-color: #FFB300; }

/* The Default View (Icon and Title) */
.card-front {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.vision-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 24px;
    color: var(--theme-color); /* Tying the temporary icon to the card's theme color */
}

.vision-card h3 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 18px; /* Slightly smaller to match video proportions */
    font-weight: 600;
    color: #333333;
}

/* The Hover View (Paragraph and Button) */
.card-back {
    position: absolute;
    bottom: -20px; /* Starts positioned slightly lower to create the slide effect */
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px 25px;
    box-sizing: border-box;
    text-align: center;
    transition: all 0.4s ease;
}

.vision-card p {
    margin: 0 0 24px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #666666;
}

/* New Button styling matching the video */
.know-more-btn {
    display: inline-block;
    padding: 10px 28px;
    background-color: var(--theme-color);
    color: #FFFFFF;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.know-more-btn:hover {
    filter: brightness(0.9); /* Subtle darken on hover */
    color: #FFFFFF;
}

/* ==========================================================
   HOVER ANIMATIONS
========================================================== */

.vision-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1); /* Lifts the card slightly */
}

/* Push the front content up and fade it out */
.vision-card:hover .card-front {
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
}

/* Slide the back content into place and fade it in */
.vision-card:hover .card-back {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

.vision-icon {
    width: 55px;
    height: 55px;

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

    border-radius: 50%;

    background: #FFF2D8;

    font-size: 24px;

    margin-bottom: 24px;
}

.vision-card h3 {
    margin: 0 0 14px;

    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 600;

    line-height: 1.2;

    color: #241816;
}

.vision-card p {
    margin: 0 0 35px; 
    font-family: system-ui, -apple-system, sans-serif; 
    font-size: 13px;
    font-weight: 700; 
    line-height: 1.6;
    color: #666666;
}

/* ==========================================================
                    OUR JOURNEY
========================================================== */

.journey {
    background: transparent;
    padding: 60px 0;
}

.journey-card {
    height: 100%;
    min-height: 270px;
    padding: 30px 25px;
    border: 1px solid #E7DED5;
    border-radius: 24px;
    background: #FFFFFF; /* Changed to white so it stands out against the new background */
}

.year {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 15px;

    border-radius: 999px;

    background: #FDB52A;
    color: #241816;

    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;

    margin-bottom: 22px;
}

.journey-card h3 {
    margin: 0 0 14px;

    font-family: "Montserrat", sans-serif;
    font-size: 23px;
    font-weight: 600;

    line-height: 1.2;

    color: #241816;
}

.journey-card p {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 400;

    line-height: 1.75;

    color: #5B5B5B;
}


/* ==========================================================
                    JOURNEY BUTTONS
========================================================== */

.journey-buttons {
    display: flex;

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

    gap: 15px;

    margin-top: 45px;
}

.journey-buttons .primary-btn,
.journey-buttons .secondary-btn {
    display: inline-flex;

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

    min-height: 48px;

    padding: 12px 25px;

    border-radius: 999px;

    font-family: "Montserrat", sans-serif;

    text-decoration: none;
}

.journey-buttons .primary-btn {
    background: #FDB52A;
    color: #241816;
}

.journey-buttons .secondary-btn {
    border: 1px solid #D7C6B6;
    background: transparent;
    color: #241816;
}


/* ==========================================================
                        CTA
========================================================== */

.about-cta {
    padding: 60px 0;

    background: #FFFBF6;
}

.cta-box {
    padding: 60px 40px;

    text-align: center;

    border-radius: 30px;

    background: #F4E8DA;
}

.cta-box h2 {
    margin: 0 0 18px;

    font-family: "Montserrat", sans-serif;
    font-size: 42px;
    font-weight: 600;

    line-height: 1.1;

    color: #241816;
}

.cta-box p {
    max-width: 650px;

    margin: 0 auto 30px;

    font-family: "Montserrat", sans-serif;
    font-size: 15px;

    line-height: 1.7;

    color: #5B5B5B;
}

.cta-buttons {
    display: flex;

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

    gap: 14px;
}

.cta-buttons .btn {
    min-height: 48px;

    padding: 12px 24px;

    border-radius: 999px;

    font-family: "Montserrat", sans-serif;
}


/* ==========================================================
                    TABLET
                992px AND BELOW
========================================================== */

@media (max-width: 991.98px) {

    .about-hero {
        padding: 75px 0 80px;
    }

    .about-hero h1 {
        font-size: 46px;
    }

    .about-hero p {
        font-size: 16px;
    }


    .our-story {
        padding: 80px 0;
    }

    .story-image img {
        height: 420px;
    }

    .story-content h2 {
        font-size: 42px;
    }


    .vision {
        padding: 80px 0;
    }

    .journey {
        padding: 80px 0;
    }


    .about-cta {
        padding: 70px 0;
    }

    .cta-box h2 {
        font-size: 38px;
    }

}


/* ==========================================================
                        MOBILE
                    767.98px BELOW
========================================================== */

@media (max-width: 767.98px) {

    /* HERO */

    .about-hero {
        padding: 60px 0 65px;
    }

    .about-hero-content {
        max-width: 100%;
        margin: 0;
        text-align: left;
    }

    .about-hero .section-tag {
        font-size: 9px;

        padding: 7px 15px;

        letter-spacing: 1.8px;

        margin-bottom: 20px;
    }

    .about-hero h1 {
        font-size: 38px;

        line-height: 1.05;

        letter-spacing: -.5px;

        margin-bottom: 18px;
    }

    .about-hero p {
        max-width: 100%;

        font-size: 14px;

        line-height: 1.7;
    }


    /* STORY */

    .our-story {
        padding: 65px 0;
    }

    .story-image img {
        height: 300px;

        border-radius: 24px;
    }

    .story-badge {
        font-size: 9px;

        padding: 7px 15px;

        letter-spacing: 1.5px;

        margin-bottom: 20px;
    }

    .story-content h2 {
        font-size: 36px;

        line-height: 1.05;

        letter-spacing: -.5px;
    }

    .story-content p {
        font-size: 14px;

        line-height: 1.7;
    }

    .story-item {
        min-height: 52px;

        font-size: 12px;

        padding: 13px 15px;
    }


    /* VISION */

    .vision {
        padding: 65px 0;
    }

    .vision .section-tag,
    .journey .section-tag {
        font-size: 9px;

        padding: 7px 15px;

        letter-spacing: 1.5px;

        margin-bottom: 20px;
    }

    .section-title {
        font-size: 36px;

        line-height: 1.05;

        margin-bottom: 35px;
    }

    .vision-card {
        min-height: auto;

        padding: 25px 21px;

        border-radius: 20px;
    }


    /* JOURNEY */

    .journey {
        padding: 65px 0;
    }

    .journey-card {
        min-height: auto;

        padding: 25px 21px;

        border-radius: 20px;
    }


    /* BUTTONS */

    .journey-buttons {
        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        margin-top: 30px;
    }

    .journey-buttons .primary-btn,
    .journey-buttons .secondary-btn {
        width: 100%;
    }


    /* CTA */

    .about-cta {
        padding: 60px 0;
    }

    .cta-box {
        padding: 45px 22px;

        border-radius: 24px;
    }

    .cta-box h2 {
        font-size: 34px;
    }

    .cta-box p {
        font-size: 14px;
    }

    .cta-buttons {
        flex-direction: column;

        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

}


/* ==========================================================
                    SMALL MOBILE
                    400px BELOW
========================================================== */

@media (max-width: 400px) {

    .about-hero h1 {
        font-size: 34px;
    }

    .story-content h2 {
        font-size: 33px;
    }

    .section-title {
        font-size: 33px;
    }

    .story-image img {
        height: 270px;
    }

    .cta-box h2 {
        font-size: 30px;
    }

}
/* Refined About-page vision icons: clean, professional, non-emoji treatment */
.vision-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff3d6;
    color: #e7a900;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 28px;
}
.vision-icon i {
    font-size: 26px;
}


/* ==========================================================
   ABOUT PAGE — CONTINUOUS CANDY POP BACKGROUND
   Apply the same background throughout the entire page
========================================================== */




/* ==========================================================
            INTERACTIVE MILESTONE JOURNEY
========================================================== */

.journey-timeline {
    margin-top: 50px;
}

.jt-track {
    position: relative;
    margin-bottom: 34px;
}

.jt-line {
    position: absolute;
    top: 27px;
    left: 12.5%;
    width: 75%;
    height: 4px;
    border-radius: 999px;
    background: rgba(36, 24, 22, 0.12);
    overflow: hidden;
}

.jt-progress {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #FDB52A, #FF8BA7);
    transition: width .7s cubic-bezier(.65, 0, .35, 1);
}

.jt-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.jt-step {
    display: flex;
    justify-content: center;
}

.jt-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0 6px;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    color: #241816;
    text-align: center;
}

.jt-node:focus-visible {
    outline: 3px solid #FDB52A;
    outline-offset: 4px;
    border-radius: 16px;
}

.jt-dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid rgba(36, 24, 22, 0.15);
    box-shadow: 0 4px 14px rgba(36, 24, 22, 0.08);
    transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.jt-dot-core {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(36, 24, 22, 0.18);
    transition: background .35s ease, transform .35s ease;
}

.jt-node:hover .jt-dot {
    transform: scale(1.08);
    border-color: #FDB52A;
}

.jt-node.is-done .jt-dot {
    border-color: #FDB52A;
    background: #FFF3CF;
}

.jt-node.is-done .jt-dot-core {
    background: #FDB52A;
}

.jt-node.is-active .jt-dot {
    transform: scale(1.18);
    border-color: #FDB52A;
    background: #FDB52A;
    box-shadow: 0 0 0 8px rgba(253, 181, 42, 0.25), 0 8px 20px rgba(253, 181, 42, 0.4);
}

.jt-node.is-active .jt-dot-core {
    background: #FFFFFF;
    transform: scale(1.2);
}

.jt-node-year {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 700;
    color: rgba(36, 24, 22, 0.55);
    transition: color .3s ease;
}

.jt-node.is-active .jt-node-year,
.jt-node.is-done .jt-node-year {
    color: #241816;
}

.jt-node-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #5B5B5B;
    max-width: 150px;
}

/* detail panel */

.jt-panel {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 44px 34px;
    border: 1px solid rgba(36, 24, 22, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 36px rgba(36, 24, 22, 0.09);
    overflow: hidden;
}

.jt-slide {
    position: relative;
}

.js .jt-slide {
    display: none;
}

.js .jt-slide.is-active {
    display: block;
    animation: jtIn .55s ease both;
}

@keyframes jtIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jt-bg-year {
    position: absolute;
    right: -6px;
    top: -26px;
    font-family: "Montserrat", sans-serif;
    font-size: 150px;
    font-weight: 800;
    line-height: 1;
    color: rgba(253, 181, 42, 0.16);
    pointer-events: none;
    user-select: none;
}

.jt-slide .year,
.jt-slide h3,
.jt-slide p {
    position: relative;
}

.jt-slide h3 {
    margin: 0 0 14px;
    font-family: "Montserrat", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #241816;
}

.jt-slide p {
    margin: 0;
    max-width: 560px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #5B5B5B;
}

.jt-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 28px;
}

.jt-count {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #5B5B5B;
}

.jt-count b {
    color: #241816;
    font-weight: 700;
}

.jt-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(36, 24, 22, 0.18);
    border-radius: 50%;
    background: #FFFFFF;
    color: #241816;
    font-size: 18px;
    cursor: pointer;
}

.jt-arrow:hover {
    background: #FDB52A;
    border-color: #FDB52A;
}

.jt-arrow:focus-visible {
    outline: 3px solid #FDB52A;
    outline-offset: 3px;
}

@media (max-width: 767px) {

    .jt-track { margin-bottom: 26px; }

    .jt-line { top: 21px; height: 3px; }

    .jt-dot { width: 44px; height: 44px; border-width: 2px; }

    .jt-dot-core { width: 11px; height: 11px; }

    .jt-node.is-active .jt-dot { box-shadow: 0 0 0 5px rgba(253, 181, 42, 0.25); }

    .jt-node-year { font-size: 13px; margin-top: 4px; }

    .jt-node-title { display: none; }

    .jt-panel { padding: 28px 22px 24px; border-radius: 22px; }

    .jt-slide h3 { font-size: 24px; }

    .jt-slide p { font-size: 14px; }

    .jt-bg-year { font-size: 96px; top: -14px; }

    .jt-controls { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .jt-progress, .jt-dot, .jt-dot-core { transition: none; }
    .js .jt-slide.is-active { animation: none; }
}


/* ==========================================================
                MEET THE TEAM VIDEO
========================================================== */

.team-video {
    background: transparent;
    padding: 60px 0 80px;
}

.team-video .section-title {
    margin-bottom: 36px;
}

.tv-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.tv-player {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    background: #241816;
    box-shadow: 0 16px 48px rgba(36, 24, 22, 0.18);
}

.tv-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #241816;
}

.tv-player.is-playing .tv-video {
    object-fit: contain;
}

.tv-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    color: #FFFFFF;
    background: linear-gradient(180deg, rgba(36, 24, 22, 0.15), rgba(36, 24, 22, 0.55));
    transition: opacity .3s ease, background .3s ease;
}

.tv-play:hover {
    background: linear-gradient(180deg, rgba(36, 24, 22, 0.05), rgba(36, 24, 22, 0.45));
}

.tv-play:focus-visible {
    outline: 3px solid #FDB52A;
    outline-offset: -6px;
}

.tv-play[hidden] { display: none; }

.tv-play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    padding-left: 6px;
    border-radius: 50%;
    background: #FDB52A;
    color: #241816;
    font-size: 30px;
    box-shadow: 0 0 0 10px rgba(253, 181, 42, 0.3);
    animation: tvPulse 2.2s ease-in-out infinite;
}

.tv-play:hover .tv-play-icon {
    transform: scale(1.08);
}

.tv-play-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@keyframes tvPulse {
    0%, 100% { box-shadow: 0 0 0 10px rgba(253, 181, 42, 0.30); }
    50%      { box-shadow: 0 0 0 20px rgba(253, 181, 42, 0.10); }
}

.tv-player.is-playing .tv-play {
    opacity: 0;
    pointer-events: none;
}

.tv-missing {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #FDB52A, #FF8BA7);
}

.tv-missing[hidden] { display: none; }

.tv-missing strong {
    font-size: 26px;
    font-weight: 700;
    color: #241816;
}

.tv-missing span {
    font-size: 15px;
    color: #3d2b25;
}

.tv-caption {
    margin: 22px auto 0;
    max-width: 640px;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #5B5B5B;
}

@media (max-width: 767px) {
    .team-video { padding: 40px 0 60px; }
    .tv-player { border-radius: 20px; }
    .tv-play-icon { width: 64px; height: 64px; font-size: 22px; }
    .tv-play-text { font-size: 12px; }
    .tv-missing strong { font-size: 20px; }
    .tv-caption { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .tv-play-icon { animation: none; }
}


/* ==========================================================
   MILESTONE JOURNEY — CANDY POP COLOURS
   one colour per milestone (pink, sunshine, sky, lavender)
========================================================== */

.journey-timeline {
    --c1: #FF8BA7;
    --c2: #FFC93C;
    --c3: #5FD0F5;
    --c4: #B79CFF;
    --jt-accent: var(--c1);
}

.jt-step:nth-child(1) .jt-node { --c: var(--c1); }
.jt-step:nth-child(2) .jt-node { --c: var(--c2); }
.jt-step:nth-child(3) .jt-node { --c: var(--c3); }
.jt-step:nth-child(4) .jt-node { --c: var(--c4); }

.jt-slide:nth-of-type(1) { --c: var(--c1); }
.jt-slide:nth-of-type(2) { --c: var(--c2); }
.jt-slide:nth-of-type(3) { --c: var(--c3); }
.jt-slide:nth-of-type(4) { --c: var(--c4); }

/* the line: faint candy rainbow, brightly filled up to the chosen milestone */
.jt-line {
    height: 6px;
    top: 25px;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--c1) 28%, transparent),
        color-mix(in srgb, var(--c2) 28%, transparent),
        color-mix(in srgb, var(--c3) 28%, transparent),
        color-mix(in srgb, var(--c4) 28%, transparent));
}

.jt-progress {
    background-image: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4));
    background-repeat: no-repeat;
}

/* nodes */
.jt-dot {
    border-color: color-mix(in srgb, var(--c) 55%, white);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 28%, transparent);
}

.jt-dot-core {
    background: color-mix(in srgb, var(--c) 60%, white);
}

.jt-node:hover .jt-dot {
    border-color: var(--c);
}

.jt-node.is-done .jt-dot {
    border-color: var(--c);
    background: color-mix(in srgb, var(--c) 25%, white);
}

.jt-node.is-done .jt-dot-core {
    background: var(--c);
}

.jt-node.is-active .jt-dot {
    border-color: #FFFFFF;
    background: var(--c);
    box-shadow:
        0 0 0 8px color-mix(in srgb, var(--c) 32%, transparent),
        0 10px 24px color-mix(in srgb, var(--c) 55%, transparent);
}

.jt-node.is-active .jt-dot-core {
    background: #FFFFFF;
}

.jt-node.is-active .jt-node-year {
    color: #241816;
}

.jt-node:focus-visible {
    outline-color: var(--c);
}

/* detail card */
.jt-panel {
    border: 2px solid color-mix(in srgb, var(--jt-accent) 55%, white);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--jt-accent) 28%, transparent) 0%, transparent 55%),
        radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--jt-accent) 16%, transparent) 0%, transparent 50%),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 40px color-mix(in srgb, var(--jt-accent) 30%, transparent);
    transition: border-color .5s ease, box-shadow .5s ease;
}

.jt-slide .year {
    background: var(--c);
    color: #241816;
}

.jt-bg-year {
    color: color-mix(in srgb, var(--c) 24%, transparent);
}

.jt-arrow {
    border-color: color-mix(in srgb, var(--jt-accent) 60%, white);
}

.jt-arrow:hover {
    background: var(--jt-accent);
    border-color: var(--jt-accent);
}

.jt-arrow:focus-visible {
    outline-color: var(--jt-accent);
}

@media (max-width: 767px) {
    .jt-line { top: 19px; height: 5px; }
    .jt-node.is-active .jt-dot {
        box-shadow:
            0 0 0 5px color-mix(in srgb, var(--c) 32%, transparent),
            0 6px 16px color-mix(in srgb, var(--c) 50%, transparent);
    }
}
