/**
 * Academy – Lộ trình tổng quát (v2)
 * Edit colors / spacing here — isolated from academy.css
 *
 * Arrow assets (images/) — only used in group 1:
 * - arrow-branch-up.svg   → Figma → UI
 * - arrow-branch-down.svg → Figma → UX
 * - arrow-head.svg        → tip next to UI (02)
 */

.lo_trinh_tong_quat--v2 {
    --lttq-purple: #241775;
    --lttq-yellow: #ffc845;
    --lttq-pink: #ef4a81;
    --lttq-blue: #40b0e0;
    --lttq-white: #ffffff;
    --lttq-border: #d4d4d4;
    --lttq-muted: #737373;
    --lttq-title: #ef4a81;
    --lttq-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --lttq-font: "SVN-Gilroy", "Montserrat", system-ui, sans-serif;
    --lttq-btn-radius: 160px;
    --lttq-group-min-h: 520px;
    --lttq-stack-gap: 48px;
    --lttq-items-pad-top: 48px;

    position: relative;
    font-family: var(--lttq-font);
    z-index: 1;
}

/* Neutralize legacy academy.css decorations on this widget */
.lo_trinh_tong_quat.lo_trinh_tong_quat--v2::after {
    content: none !important;
    display: none !important;
}

/* —— Buttons —— */
.lo_trinh_tong_quat--v2 .lttq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 14px 22px;
    border-radius: var(--lttq-btn-radius);
    border: 2px solid transparent;
    font-family: inherit;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--lttq-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.lo_trinh_tong_quat--v2 a.lttq-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.lo_trinh_tong_quat--v2 .lttq-btn--purple {
    background: var(--lttq-purple);
    color: #fff;
    border-color: #fafafa;
    min-width: 110px;
}

.lo_trinh_tong_quat--v2 .lttq-btn--yellow {
    background: var(--lttq-yellow);
    color: #171717;
    border-color: #171717;
    min-width: 158px;
}

.lo_trinh_tong_quat--v2 .lttq-btn--white {
    background: var(--lttq-white);
    color: #262626;
    border-color: var(--lttq-border);
    min-width: 180px;
}

.lo_trinh_tong_quat--v2 .lttq-btn--pink {
    background: var(--lttq-pink);
    color: #fafafa;
    border-color: #fafafa;
    min-width: 200px;
}

.lo_trinh_tong_quat--v2 .lttq-btn--blue {
    background: var(--lttq-blue);
    color: #171717;
    border-color: #171717;
    min-width: 220px;
    font-size: 16px;
}

/* —— Item / index —— */
.lo_trinh_tong_quat--v2 .lttq-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.lo_trinh_tong_quat--v2 .lttq-idx {
    display: block;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.2;
    color: var(--lttq-muted);
    text-align: center;
}

/* —— Group shell —— */
.lo_trinh_tong_quat--v2 .lttq-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: var(--lttq-group-min-h);
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 24px 16px 20px;
    position: relative;
}

.lo_trinh_tong_quat--v2 .lttq-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lttq-stack-gap);
    width: 100%;
    flex: 1;
    justify-content: center;
}

/* —— Group 1: Figma centered + branch UI/UX —— */
.lo_trinh_tong_quat--v2 .lttq-group--1 .lttq-items {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.lo_trinh_tong_quat--v2 .lttq-group--1 .lttq-item--figma {
    padding-top: 0;
    position: relative;
    z-index: 2;
}

.lo_trinh_tong_quat--v2 .lttq-branch {
    display: flex;
    flex-direction: column;
    gap: var(--lttq-stack-gap);
    position: relative;
}

/* Arrows: desktop only */
.lo_trinh_tong_quat--v2 .lttq-out,
.lo_trinh_tong_quat--v2 .lttq-arrow--branch-up,
.lo_trinh_tong_quat--v2 .lttq-arrow--branch-down,
.lo_trinh_tong_quat--v2 .lttq-arrow--head-figma {
    display: none;
    pointer-events: none;
}

.lo_trinh_tong_quat--v2 .lttq-out {
    align-items: center;
    gap: 0;
}

.lo_trinh_tong_quat--v2 .lttq-arrow--line {
    display: block;
    height: auto;
}

.lo_trinh_tong_quat--v2 .lttq-arrow--head {
    display: block;
    width: 14px;
    height: auto;
    flex-shrink: 0;
}

/* Start callout — existing image */
.lo_trinh_tong_quat--v2 .lttq-start {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 12px auto 8px;
}

/* —— Info footer —— */
.lo_trinh_tong_quat--v2 .lttq-info {
    text-align: center;
    padding-top: 12px;
    margin-top: auto;
}

.lo_trinh_tong_quat--v2 .lttq-info h3 {
    margin: 0 0 4px;
    font-family: inherit;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    color: var(--lttq-title);
    text-transform: capitalize;
}

.lo_trinh_tong_quat--v2 .lttq-info p {
    margin: 0;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    color: var(--lttq-muted);
}

/* —— Splide pagination (mobile) —— */
.lo_trinh_tong_quat--v2 .splide__pagination {
    margin-top: 16px;
}

.lo_trinh_tong_quat--v2 .splide__pagination .splide__pagination__page {
    margin: 0 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(85, 85, 85, 0.17);
}

.lo_trinh_tong_quat--v2 .splide__pagination .splide__pagination__page.is-active {
    background-color: var(--lttq-pink);
}

.lo_trinh_tong_quat--v2 .lttq-arrow {
    position: absolute;
}

.lo_trinh_tong_quat--v2 .lttq-arrow--1 {
    top: 96px;
    left: 115px;
    width: 115px;
    height: auto;
}

.lo_trinh_tong_quat--v2 .lttq-arrow--2 {
    top: 84px;
    left: 283px;
    width: 142px;
}

/* =========================================================
   Desktop ≥ 1280px — aligned rows + arrows only in group 1
   ========================================================= */
@media screen and (min-width: 1280px) {
    .lo_trinh_tong_quat--v2 {
        --lttq-group-min-h: 640px;
        --lttq-stack-gap: 56px;
        --lttq-items-pad-top: 40px;
    }

    .lo_trinh_tong_quat--v2 .splide.is-initialized:not(.is-active) .splide__list {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        gap: 0;
    }

    .lo_trinh_tong_quat--v2 .splide__slide {
        width: auto !important;
        margin: 0 !important;
    }

    .lo_trinh_tong_quat--v2 .splide__slide:nth-child(odd) .lttq-group {
        background: linear-gradient(
            180deg,
            rgba(115, 115, 115, 0) 0%,
            rgba(168, 168, 168, 0.1) 50%,
            rgba(217, 217, 217, 0) 100%
        );
    }

    .lo_trinh_tong_quat--v2 .lttq-group {
        max-width: none;
        width: 100%;
        padding: 32px 8px 24px;
    }

    .lo_trinh_tong_quat--v2 .lttq-group--1 {
        width: 100%;
        overflow: visible;
        padding-right: 36px;
    }

    .lo_trinh_tong_quat--v2 .splide,
    .lo_trinh_tong_quat--v2 .splide__track,
    .lo_trinh_tong_quat--v2 .splide__list,
    .lo_trinh_tong_quat--v2 .splide__slide {
        overflow: visible;
    }

    .lo_trinh_tong_quat--v2 .lttq-group--4 {
        width: 100%;
    }

    /*
     * Shared vertical rhythm so rows stay straight:
     * top row  = 02 / 04 / 06
     * bottom   = 03 / 05 / 07
     * mid      = 01 / 08
     */
    .lo_trinh_tong_quat--v2 .lttq-group--1 .lttq-items,
    .lo_trinh_tong_quat--v2 .lttq-group--2 .lttq-items,
    .lo_trinh_tong_quat--v2 .lttq-group--3 .lttq-items,
    .lo_trinh_tong_quat--v2 .lttq-group--4 .lttq-items {
        justify-content: flex-start;
        padding-top: var(--lttq-items-pad-top);
        flex: 0 0 auto;
        gap: var(--lttq-stack-gap);
    }

    .lo_trinh_tong_quat--v2 .lttq-group--1 .lttq-items {
        flex-direction: row;
        align-items: center;
        gap: 0;
        overflow: visible;
    }

    .lo_trinh_tong_quat--v2 .lttq-branch {
        gap: var(--lttq-stack-gap);
        /* room for Figma head + fork curves into UI/UX */
        padding-left: 64px;
    }

    /* Figma vertically centered between UI & UX */
    .lo_trinh_tong_quat--v2 .lttq-group--1 .lttq-item--figma {
        align-self: center;
        margin-top: 0;
    }

    /* Product Design aligned to mid (same band as Figma) */
    .lo_trinh_tong_quat--v2 .lttq-group--4 .lttq-items {
        padding-top: calc(var(--lttq-items-pad-top) + 70px);
    }

    /*
     * Arrow layout (matches Design):
     * [Figma]──▶ fork┬──[UI]──line──▶[Design System]
     *                └──[UX]         [A.I.]
     */

    /* Head right after Figma, pointing into the fork */
    .lo_trinh_tong_quat--v2 .lttq-arrow--head-figma {
        display: block;
        position: absolute;
        top: 18px;
        left: calc(100% + 6px);
        width: 14px;
        height: auto;
        z-index: 3;
    }

    /* Fork curves: after Figma head → UI (up) / UX (down) */
    .lo_trinh_tong_quat--v2 .lttq-arrow--branch-up,
    .lo_trinh_tong_quat--v2 .lttq-arrow--branch-down {
        display: block;
        position: absolute;
        left: 8px;
        width: 70px;
        height: auto;
        z-index: 1;
    }

    .lo_trinh_tong_quat--v2 .lttq-arrow--branch-up {
        top: 8px;
    }

    .lo_trinh_tong_quat--v2 .lttq-arrow--branch-down {
        bottom: 44px;
    }

    /* UI → Design System: dashed line + head */
    .lo_trinh_tong_quat--v2 .lttq-out--ui {
        display: flex;
        position: absolute;
        top: 18px;
        left: calc(100% + 8px);
        z-index: 3;
    }

    .lo_trinh_tong_quat--v2 .lttq-out--ui .lttq-arrow--line {
        width: 64px;
    }

    /* Start image */
    .lo_trinh_tong_quat--v2 .lttq-start {
        position: absolute;
        left: 20%;
        bottom: 100px;
        margin: 0;
        z-index: 4;
    }

    .lo_trinh_tong_quat--v2 .lttq-info h3 {
        font-size: 24px;
    }

    .lo_trinh_tong_quat--v2 .lttq-info p {
        font-size: 16px;
    }
}

/* =========================================================
   Tablet / mobile tweaks
   ========================================================= */
@media screen and (max-width: 1279.5px) {
    .lo_trinh_tong_quat--v2 .lttq-group--1 .lttq-items {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .lo_trinh_tong_quat--v2 .lttq-branch {
        align-items: center;
        gap: 20px;
        padding-left: 0;
    }

    .lo_trinh_tong_quat--v2 .lttq-btn {
        min-width: 200px;
        font-size: 16px;
    }

    .lo_trinh_tong_quat--v2 .lttq-btn--purple {
        min-width: 140px;
    }

    .lo_trinh_tong_quat--v2 .lttq-start {
        max-width: 200px;
    }
}
