/* ==========================================================================
   LangGo Careers — Homepage sections (pure CSS)
   Dùng lại biến :root + font Reddit Sans khai trong shell.css.
   File này chỉ chứa các section thiết kế MỚI; home.css giữ các section cũ.
   ========================================================================== */

.home-section {
    font-family: var(--font-shell);
    color: rgba(0, 0, 0, 1);
}

/* --------------------------------------------------------------------------
   HERO — section đầu trang chủ
   Kích thước gốc theo design: section cao 804px, ảnh phải bo 58px hai góc trái.
   Dùng clamp() để co xuống ở màn nhỏ mà vẫn giữ đúng tỉ lệ thiết kế.
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
}

/* Ảnh nền dùng thẻ <img> thật (không dùng background-image) để trình duyệt
   lazy-decode được và ảnh vẫn nằm trong DOM. */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Chỉ làm mờ ảnh nền; đặt ở .hero__bg nên .hero__inner (chữ, nút, ảnh
       nhân vật) không thừa hưởng opacity. */
    opacity: .9;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Ảnh nền mobile chỉ xuất hiện ở <=767px (khai báo ở media query cuối file). */
.hero__bg-img--mobile {
    display: none;
}

/* Cột ảnh chạm sát mép phải màn hình, cột chữ thụt vào canh theo container
   1280px của site. Grid trải full-width (không padding) để `%` của cột ảnh tính
   trên đúng bề ngang section; phần thụt lề nằm ở padding-left của .hero__content. */
.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 804px;
    display: grid;
    /* Design 1920px: ảnh rộng 955px ≈ 50%. min() giữ đúng 955px ở màn rộng và
       co theo tỉ lệ ở màn hẹp hơn. */
    grid-template-columns: minmax(0, 1fr) min(955px, 50%);
    align-items: center;
}

.hero__content {
    /* Thụt lề trái canh đúng theo container 1280px của site (giống header/footer),
       nhờ đó cụm chữ dịch sang phải, nằm gần ảnh hơn. */
    padding: 40px 24px 40px max(20px, calc((100vw - 1280px) / 2));
    font-family: var(--font-shell);
    color: rgba(255, 255, 255, 1);
}

.hero__title {
    margin: 0;
    font-weight: 800;
    font-size: var(--fs-h1);
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
}

/* "CAREERS" to hơn 1 bậc và đổi sang vàng theo design */
.hero__title-accent {
    display: inline-block;
    font-size: var(--fs-h1-accent);
    line-height: 1.08;
    color: var(--gold, #ffd071);
}

.hero__desc {
    margin: 38px 0 0;
    font-weight: 500;
    font-size: var(--fs-lead);
    line-height: 1.2;
    color: rgba(255, 255, 255, 1);
}

.hero__cta {
    margin-top: 40px;
    display: grid;
    place-items: center;
    width: 387px;
    max-width: 100%;
    height: 59px;
    border-radius: 47px;
    background: rgba(255, 255, 255, 1);
    color: rgba(228, 0, 0, 1);
    font-weight: 700;
    font-size: var(--fs-lead);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 5px 9px 6.8px 0px rgba(0, 0, 0, 0.25),
                3px 3px 4.2px 0px rgba(0, 0, 0, 0.25) inset;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.hero__cta:hover {
    color: rgba(228, 0, 0, 1);
    transform: translateY(-2px);
    box-shadow: 5px 12px 10px 0px rgba(0, 0, 0, 0.28),
                3px 3px 4.2px 0px rgba(0, 0, 0, 0.25) inset;
}

.hero__media {
    height: 804px;
    border-radius: 58px 0 0 58px;
    overflow: hidden;
    align-self: stretch;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 991px) {
    .hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero__content { padding: 48px 20px; text-align: center; }
    .hero__desc br { display: none; }
    .hero__cta { margin-inline: auto; }

    .hero__media {
        height: clamp(320px, 60vw, 560px);
        border-radius: 58px 58px 0 0;
    }
}

/* --------------------------------------------------------------------------
   HERO — MOBILE (<=767px)
   Chỉ còn MỘT tấm ảnh nền `hero-mobile.*` (đã gồm cả nhân vật lẫn nền đỏ);
   ảnh nhân vật rời và ảnh nền desktop đều tắt, chữ + nút đè lên nửa dưới ảnh.
   Khi chưa có file `hero-mobile.*` thì `.hero--has-mobile-bg` không tồn tại,
   hero giữ nguyên bố cục cũ (ảnh nền desktop + ảnh nhân vật xếp dọc).
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .hero--has-mobile-bg .hero__bg-img--desktop { display: none; }
    .hero--has-mobile-bg .hero__media { display: none; }

    /* Ảnh mobile nằm TRONG dòng chảy (không absolute) và để `height: auto` nên
       section cao đúng theo tỉ lệ thật của file ảnh — ảnh hiện trọn, không bị
       cắt, không phụ thuộc tỉ lệ nào được hard-code sẵn. */
    .hero--has-mobile-bg .hero__bg {
        position: static;
        opacity: 1;
    }

    .hero--has-mobile-bg .hero__bg-img--mobile {
        display: block;
        width: 100%;
        height: auto;
        object-fit: fill;
    }

    /* Chữ + nút đè lên đáy ảnh. */
    .hero--has-mobile-bg .hero__inner {
        position: absolute;
        inset: 0;
        min-height: 0;
        align-content: end;
    }

    .hero--has-mobile-bg .hero__content {
        padding: 0 20px clamp(24px, 7vw, 40px);
    }

    /* Trên mobile tiêu đề chạy 1 dòng "IELTS LANGGO CAREERS", chữ nhấn cùng cỡ. */
    .hero--has-mobile-bg .hero__title-break { display: none; }

    .hero--has-mobile-bg .hero__title {
        font-size: clamp(24px, 7.2vw, 40px);
        line-height: 1.15;
    }

    .hero--has-mobile-bg .hero__title-accent {
        font-size: inherit;
        line-height: inherit;
    }

    .hero--has-mobile-bg .hero__desc {
        margin-top: clamp(8px, 2.6vw, 14px);
        font-size: clamp(13px, 3.6vw, 16px);
        line-height: 1.35;
    }

    .hero--has-mobile-bg .hero__desc br { display: inline; }

    .hero--has-mobile-bg .hero__cta {
        margin-top: clamp(14px, 4vw, 24px);
        width: auto;
        height: auto;
        display: inline-grid;
        padding: clamp(8px, 2.4vw, 12px) clamp(20px, 6vw, 32px);
        font-size: clamp(13px, 3.6vw, 16px);
    }
}

/* --------------------------------------------------------------------------
   JOBS SECTION — port từ careers.langmaster, bọc thêm khung card theo design
   -------------------------------------------------------------------------- */
.jobs-section {
    position: relative;
    padding: 64px 20px 80px;
    overflow: hidden;
}

/* Ảnh nền dùng thẻ <img> thật (không dùng background-image), giống .hero__bg */
.jobs-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.jobs-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Khung card bao cả section: 1293px, radius 17px, nền #f9f9f9 */
.jobs-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1293px;
    margin-inline: auto;
    padding: 56px clamp(20px, 3.5vw, 64px) 64px;
    border-radius: 17px;
    background: rgba(249, 249, 249, 1);
    box-shadow: 3px 4px 19.3px 0px rgba(0, 0, 0, 0.25);
}

.jobs-heading {
    margin: 0;
    font-weight: 800;
    font-size: var(--fs-h2);
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    color: rgba(199, 7, 7, 1);
}

.jobs-subheading {
    margin: 16px 0 0;
    font-weight: 500;
    font-size: var(--fs-lead);
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    color: rgba(20, 20, 20, 1);
}

/* Chip nhóm ngành */
.jobs-cats {
    display: grid;
    /* minmax(0, 1fr) chứ không phải 1fr: `1fr` ngầm là minmax(auto, 1fr) nên sàn
       của track là min-content — với .jobs-cat__name để nowrap thì min-content
       bằng bề rộng cả chuỗi, khiến cột chứa tên ngành dài nhất phình ra và tràn
       khỏi container thay vì cắt ellipsis. */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 44px 0;
}

.jobs-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(117deg, #DB1F1F -0.4%, rgba(157, 11, 15, 0) 42%) border-box;
    box-shadow: 3px 4px 30px 0 rgba(58, 22, 22, .1);
    color: #505050;
    font-size: var(--fs-body);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}

.jobs-cat > i {
    flex: 0 0 auto;
    font-size: 16px;
    color: var(--brand);
    transition: color .2s var(--ease);
}

.jobs-cat__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jobs-cat__count {
    flex: 0 0 auto;
    align-self: flex-end;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: var(--muted);
}

.jobs-cat:hover {
    transform: translateY(-3px);
    box-shadow: 6px 8px 34px 0 rgba(219, 31, 31, .18);
    color: var(--brand);
}

.jobs-cat.is-active {
    background:
        linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%) padding-box,
        linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%) border-box;
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 20px rgba(219, 31, 31, .3);
}

.jobs-cat.is-active > i,
.jobs-cat.is-active .jobs-cat__count { color: rgba(255, 255, 255, 1); }

/* Lưới thẻ việc làm */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.job-card {
    display: flex;
    flex-direction: column;
    min-height: 232px;
    background: #fff;
    border-radius: 21px;
    padding: 24px 30px 22px;
    box-shadow: 0 4px 12.7px 4px rgba(126, 126, 126, .25);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.job-card.is-hidden { display: none; }

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px 4px rgba(126, 126, 126, .3);
}

.job-card__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 42px;
    padding: 0 18px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: rgba(219, 31, 31, .1);
    font-size: 15px;
    font-weight: 800;
    text-transform: capitalize;
    line-height: 1;
    background-clip: padding-box;
}

.job-card__badge span {
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.job-card__title {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.job-card__title a {
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
    transition: color .2s var(--ease);
}

.job-card__title a:hover { color: var(--brand); }

.job-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.job-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #505050;
}

.job-card__meta i { color: var(--brand); font-size: 14px; }

.job-card__divider {
    height: 0;
    margin: 0 0 14px;
    border: 0;
    border-top: 1px solid #d8d8d8;
}

.job-card__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: auto;
}

.job-card__fav {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ead9d9;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    font-size: 16px;
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.job-card__fav:hover { background: var(--brand-soft); transform: scale(1.06); }
.job-card__fav.is-active { background: var(--brand); color: rgba(255, 255, 255, 1); }
.job-card__fav.is-active i { font-weight: 900; }

.job-card__apply {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(219, 31, 31, .28);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}

.job-card__apply:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 10px 20px rgba(219, 31, 31, .36);
}

/* Trạng thái rỗng khi lọc ra 0 tin */
.jobs-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 56px 24px;
}

.jobs-empty__icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FFF3D6 0%, #FFE2BC 100%);
    color: #FE9C2B;
    font-size: 34px;
    box-shadow: 0 10px 24px rgba(254, 156, 43, .28);
}

.jobs-empty__title {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 800;
    color: rgba(0, 0, 0, 1);
}

.jobs-empty__text {
    margin: 0;
    max-width: 440px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

.jobs-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    margin-top: 8px;
    padding: 0 26px;
    border-radius: 100px;
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(157, 11, 15, .3);
    transition: transform .2s var(--ease), filter .2s var(--ease);
}

.jobs-empty__btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* Nút xem tất cả */
.jobs-more { text-align: center; margin-top: 44px; }

.btn-seeall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 421px;
    max-width: 100%;
    height: 54px;
    padding: 0 28px;
    border-radius: 100px;
    background: linear-gradient(180deg, #FDDA35 36.06%, #FE9C2B 100%);
    border: 5px solid #fff;
    color: #DB1F1F;
    font-size: 24px;
    line-height: 23px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}

.btn-seeall:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 8px 14px 0 rgba(0, 0, 0, .28);
}

@media (max-width: 991px) {
    .jobs-section { padding: 44px 16px 56px; }

    /* Bỏ ảnh nền nổi phía ngoài và khung card trắng bọc section (giống
       careers.langmaster): nội dung nằm thẳng trên nền trang. */
    .jobs-bg { display: none; }

    .jobs-card {
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .jobs-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0; }
    .jobs-cat { min-height: 60px; font-size: 17px; }

    /* Khung hẹp mà vẫn nowrap thì tên ngành dài bị cắt cụt gần hết chữ; cho
       xuống 2 dòng, min-height sẵn có đã đủ chỗ. */
    .jobs-cat__name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
    }

    .jobs-cat__count { align-self: center; }
    .jobs-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
    .jobs-section { padding: 36px 12px 48px; }
    .jobs-cats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 26px 0; }
    .jobs-cat { font-size: 15px; min-height: 54px; padding: 8px 10px; }
    .job-card { min-height: 0; padding: 20px; }
    .job-card__foot { flex-wrap: wrap; justify-content: space-between; }
    .btn-seeall { min-width: 0; width: 100%; font-size: 16px; }
}

/* --------------------------------------------------------------------------
   CULTURE SECTION — "Môi trường làm việc tại IELTS LangGo" + 4 vòng tròn số liệu
   -------------------------------------------------------------------------- */
.culture-section {
    position: relative;
    padding: 56px 20px 80px;
    overflow: hidden;
}

/* Ảnh nền dùng thẻ <img> thật (không dùng background-image) */
.culture-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.culture-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.culture {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1293px;
    margin-inline: auto;
    display: grid;
    /* Cột màn hình hẹp lại để cột chữ đủ rộng cho "MÔI TRƯỜNG LÀM VIỆC" 1 dòng */
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
}

/* Khung màn hình iMac: ảnh khung + video đặt đúng vùng màn hình đen.
   Chỉnh --screen-* nếu đổi file monitor.png. */
.culture__monitor {
    position: relative;
    width: 100%;
    aspect-ratio: 818 / 650;
    --screen-top: 3%;
    --screen-left: 9%;
    --screen-width: 82%;
    --screen-height: 61%;
}

.culture__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.culture__screen {
    position: absolute;
    top: var(--screen-top);
    left: var(--screen-left);
    width: var(--screen-width);
    height: var(--screen-height);
    overflow: hidden;
    background: #000;
}

.culture__poster,
.culture__video,
.culture__screen iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.culture__screen.js-yt { cursor: pointer; }

.culture__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding-left: 5px;
    border: 0;
    border-radius: 50%;
    background: rgba(219, 31, 31, .92);
    color: rgba(255, 255, 255, 1);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    transition: transform .2s var(--ease), background .2s var(--ease);
}

.culture__screen:hover .culture__play {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--brand);
}

.culture__content { text-align: center; }

.culture__title {
    margin: 0;
    font-weight: 800;
    font-size: var(--fs-h2);
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    color: rgba(199, 7, 7, 1);
}

/* Dòng 2 to hơn theo design */
.culture__title-lg {
    display: inline-block;
    font-size: calc(var(--fs-h2) * 1.3);
    line-height: 1.1;
}

.culture__sub {
    margin: 30px 0 0;
    font-weight: 500;
    font-size: var(--fs-lead);
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    color: rgba(199, 7, 7, 1);
}

.btn-culture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 45px;
    height: 54px;
    padding: 0 34px;
    border-radius: 100px;
    background: linear-gradient(180deg, #FDDA35 36.06%, #FE9C2B 100%);
    border: 5px solid #fff;
    color: #C70707;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}

.btn-culture:hover {
    color: #C70707;
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 8px 14px 0 rgba(0, 0, 0, .28);
}

@media (max-width: 991px) {
    .culture-section { padding: 40px 16px 56px; }
    .culture { grid-template-columns: 1fr; gap: 24px; }
    .culture__monitor { max-width: 520px; margin-inline: auto; }
    .btn-culture { font-size: 17px; padding: 0 24px; margin-top: 32px; }
}

/* --------------------------------------------------------------------------
   HOME BAND — một banner nền dùng chung cho cụm 4 section liền nhau:
   roadmap-section, testimonials-section, cnnn-featured, cnnn-all.
   Thả ảnh `roadmap-news-bg.*` vào images/home/ là tự nhận (xem home/index.blade.php).
   -------------------------------------------------------------------------- */
.home-band {
    position: relative;

    /* cover: ảnh luôn phủ kín cụm, không bao giờ hở nền — đổi thành `contain` nếu
       muốn thấy trọn ảnh và chấp nhận có khoảng trống hai đầu. */
    --home-band-bg-fit: cover;
    /* Neo mép trên: chiều cao cụm đổi theo số tin bài, phần dôi ra cắt ở đáy thì
       đỡ lệch bố cục hơn cắt ở giữa. */
    --home-band-bg-position: center top;
}

.home-band__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-band__bg img {
    width: 100%;
    height: 100%;
    object-fit: var(--home-band-bg-fit);
    object-position: var(--home-band-bg-position);
    display: block;
}

/* Nội dung 4 section nổi lên trên nền chung. Các section này vốn đã position:
   relative sẵn, khai lại ở đây để không phụ thuộc vào thứ tự file CSS. */
.home-band > .home-section {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   ROADMAP SECTION — "Từ nhân viên lên Manager chỉ trong 12–18 tháng"
   Port từ .roadmap-section của careers.langmaster, đổi tab sang dạng pill và
   nối các bước bằng chấm vàng theo design LangGo.
   -------------------------------------------------------------------------- */
.roadmap-section {
    position: relative;
    padding: 40px 20px 80px;
}

.roadmap-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1293px;
    margin-inline: auto;
}

.roadmap-title {
    margin: 0;
    font-weight: 800;
    font-size: var(--fs-h2);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    color: rgba(199, 7, 7, 1);
}

.roadmap-sub {
    margin: 18px 0 0;
    font-weight: 500;
    font-size: var(--fs-body);
    line-height: 1.35;
    text-align: center;
    color: rgba(0, 0, 0, 1);
}

/* Tabs dạng pill */
.roadmap-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 32px 0 52px;
}

.roadmap-tab {
    padding: 11px 26px;
    border: 1px solid #e7b5b5;
    border-radius: var(--radius-pill);
    background: #fff;
    color: #3a3a3a;
    font-family: var(--font-shell);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(58, 22, 22, .06);
    transition: background-color .25s var(--ease), color .25s var(--ease),
                border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.roadmap-tab:hover { color: var(--brand); border-color: var(--brand); }

.roadmap-tab.is-active {
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    border-color: transparent;
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 20px rgba(219, 31, 31, .28);
}

.roadmap-tab:active { transform: scale(.97); }

/* Track */
.roadmap-track {
    display: flex;
    align-items: flex-start;
    margin-bottom: 64px;
}

.roadmap-track.is-hidden { display: none; }

/* Đổi tab: các bước lần lượt mờ + trượt lên */
@keyframes roadmapStepIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.roadmap-track--enter .roadmap-step { animation: roadmapStepIn .5s cubic-bezier(.22, .61, .36, 1) both; }
.roadmap-track--enter .roadmap-step:nth-child(1) { animation-delay: 0s; }
.roadmap-track--enter .roadmap-step:nth-child(2) { animation-delay: .07s; }
.roadmap-track--enter .roadmap-step:nth-child(3) { animation-delay: .14s; }
.roadmap-track--enter .roadmap-step:nth-child(4) { animation-delay: .21s; }
.roadmap-track--enter .roadmap-step:nth-child(5) { animation-delay: .28s; }
.roadmap-track--enter .roadmap-step:nth-child(6) { animation-delay: .35s; }

.roadmap-step {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 4px;
}

.roadmap-step__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 87px;
    height: 87px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 1);
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0px 2px 7.2px 0px rgba(0, 0, 0, 0.25);
}

.roadmap-step__icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

/* Đường gạch đứt nối sang bước kế tiếp — canh giữa icon 87px */
.roadmap-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 43px;
    left: calc(50% + 52px);
    width: calc(100% - 104px);
    border-top: 2px dashed #efc98f;
}

/* Chấm vàng giữa đường nối, có mũi tên chỉ sang bước kế tiếp */
.roadmap-step:not(:last-child)::before {
    content: "\f054"; /* chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    color: rgba(219, 31, 31, 1);
    position: absolute;
    top: 28px;
    left: 100%;
    transform: translateX(-50%);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FDDA35 0%, #FE9C2B 100%);
    box-shadow: 0 2px 6px rgba(157, 11, 15, .22);
}

.roadmap-step__title {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand);
}

.roadmap-step__time {
    margin-top: 4px;
    font-size: 13px;
    color: #8a8f98;
}

/* Card nhân vật truyền cảm hứng */
.coach-card {
    position: relative;
    margin-left: 117px;
    padding: 28px 40px 28px 200px;
    background: #fff;
    border: 1px solid #f3e4e4;
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(58, 22, 22, .1);
}

.coach-card--no-photo { margin-left: 0; padding-left: 40px; }

.coach-card__avatar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 235px;
    height: 235px;
}

.coach-card__avatar-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.coach-card__avatar-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
    height: 86%;
    object-fit: cover;
    border-radius: 50%;
}

.coach-card__name {
    margin: 0 0 16px;
    font-size: var(--fs-h3);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand);
}

.coach-card__points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.coach-card__points li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 15px;
    line-height: 1.45;
    color: #41464f;
}

.coach-card__points i {
    flex: 0 0 auto;
    margin-top: 3px;
    font-size: 14px;
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.coach-card__note {
    font-style: italic;
    text-decoration: underline;
    color: var(--brand);
}

@media (max-width: 1200px) {
    .roadmap-track { overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
    .roadmap-step { flex: 0 0 170px; }
    .roadmap-step:not(:last-child)::after { left: calc(50% + 48px); width: calc(100% - 96px); }
}

@media (max-width: 991px) {
    .roadmap-section { padding: 32px 16px 56px; }
    .roadmap-tabs { gap: 10px; margin: 24px 0 40px; }
    .roadmap-tab { padding: 10px 18px; font-size: 15px; }
    .coach-card { margin-left: 0; padding: 190px 22px 28px; text-align: center; }
    .coach-card__avatar { left: 50%; top: 16px; transform: translateX(-50%); width: 150px; height: 150px; }
    .coach-card__points { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 600px) {
    /* Timeline dọc thay vì cuộn ngang */
    .roadmap-track {
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
        gap: 48px;
        max-width: 380px;
        margin: 0 auto 44px;
        padding-bottom: 0;
    }

    .roadmap-step {
        flex: none;
        display: grid;
        grid-template-columns: 87px 1fr;
        grid-template-areas: "icon title" "icon time";
        align-items: center;
        column-gap: 16px;
        text-align: left;
        padding: 0;
    }

    .roadmap-step__icon { grid-area: icon; grid-row: 1 / 3; }
    .roadmap-step__title { grid-area: title; margin-top: 0; }
    .roadmap-step__time { grid-area: time; margin-top: 2px; }

    .roadmap-step:not(:last-child)::after {
        top: 87px;
        left: 43px;
        width: 0;
        height: 48px;
        border-top: 0;
        border-left: 2px dashed #efc98f;
    }

    .roadmap-step:not(:last-child)::before {
        content: "\f078"; /* chevron-down */
        top: 111px;
        left: 44px;
        transform: translate(-50%, -50%);
    }
}

/* --------------------------------------------------------------------------
   TESTIMONIALS SECTION — "Từ những người làm việc cùng chúng tôi mỗi ngày"
   3 card cảm nhận, avatar tròn đè lên mép trên card.
   -------------------------------------------------------------------------- */
.testimonials-section {
    position: relative;
    padding: 56px 20px 80px;
    overflow: hidden;
}

/* Ảnh nền dùng thẻ <img> thật (không dùng background-image) */
.testimonials-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.testimonials-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.testimonials-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1293px;
    margin-inline: auto;
}

.testimonials-heading {
    margin: 0 0 96px;
    font-weight: 800;
    /* Tiêu đề dài nhất trang (47 ký tự) — để 48px sẽ gãy 2 dòng, dùng chung
       bậc 40px với tiêu đề section quy trình. */
    font-size: var(--fs-h2);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    color: rgba(199, 7, 7, 1);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* Card dựng theo .testimonial-card của template revival (laravel12.langmaster) */
.tm-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Chỗ trống cho nửa trên của avatar nhô ra ngoài card */
.tm-card__avatar-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    height: 57.5px;
}

/* Vòng viền đỏ: hình tròn đỏ 115px nằm sau ảnh 105px → viền dày 5px */
.tm-card__avatar-bg {
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50%;
    z-index: 1;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: #db1f1f;
}

.tm-card__avatar {
    position: absolute;
    top: 5px;
    z-index: 3;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 3px 4px 30px rgba(58, 22, 22, .15);
}

.tm-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-card__body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 70px 20px 24px;
    /* Chừa 6px để thanh viền đỏ ở chân card lộ ra */
    margin-bottom: 6px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 3px 4px 30px rgba(58, 22, 22, .1);
}

/* Thanh viền đỏ dưới chân card, nằm dưới .tm-card__body (z-index thấp hơn) */
.tm-card__footer-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50%;
    z-index: 1;
    width: 150px;
    height: 7px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, #db1f1f 0%, #9d0b0f 100%);
}

/* Dấu ngoặc kép đỏ, đè lên cạnh trên của card */
.tm-card__quote-marks {
    position: absolute;
    top: 0;
    left: 40px;
    translate: 0 -50%;
    flex-shrink: 0;
    line-height: 0;
}

.tm-card__name {
    margin: 0 0 4px;
    padding: 0 10px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    background: linear-gradient(180deg, #db1f1f 0%, #9d0b0f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.tm-card__role {
    margin: 0 0 16px;
    padding: 0 10px;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    color: #8a8f98;
}

.tm-card__stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
}

.tm-card__content { flex: 1; }

.tm-card__content p {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.45;
    text-align: justify;
    color: rgba(0, 0, 0, 1);
}

@media (max-width: 991px) {
    .testimonials-section { padding: 40px 16px 56px; }
    .testimonials-heading { margin-bottom: 80px; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 24px; }
    .tm-card { max-width: 480px; margin-inline: auto; width: 100%; }
}

/* --------------------------------------------------------------------------
   FAQ SECTION — "Câu hỏi thường gặp"
   Accordion bằng <details>/<summary>, chạy được cả khi tắt JavaScript.
   -------------------------------------------------------------------------- */
.faq-section {
    position: relative;
    padding: 56px 20px 72px;
    overflow: hidden;
}

/* Ảnh nền dùng thẻ <img> thật (không dùng background-image) */
.faq-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.faq-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.faq-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1293px;
    margin-inline: auto;
}

.faq-heading {
    margin: 0 0 40px;
    font-weight: 800;
    font-size: var(--fs-h2);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    color: rgba(199, 7, 7, 1);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* KHÔNG dùng grid-auto-rows: 1fr. Nó ép mọi hàng cao bằng card có nội dung dài
       nhất, nên gập một card lại thì ô của nó vẫn giữ nguyên chiều cao cũ — phải
       gập HẾT thì lưới mới co lại. Đúng lỗi "nhấn ẩn không thu được vào".
       Bỏ đi thì mỗi hàng tự cao theo nội dung của chính nó.

       align-items: start là phần bắt buộc đi kèm: mặc định grid kéo giãn item cho
       đầy hàng, nên một card đang mở sẽ kéo card đã gập cùng hàng cao theo. */
    align-items: start;
    gap: 22px 28px;
}

.faq-item {
    padding: 18px 22px;
    border: 1px solid rgba(207, 0, 0, 1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 5px 5px 13px 0px rgba(88, 0, 0, 0.25);
    transition: box-shadow .2s var(--ease);
}

.faq-item:hover {
    box-shadow: 5px 8px 20px 0px rgba(88, 0, 0, 0.32);
}

.faq-item__q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    font-size: var(--fs-body);
    line-height: 1.35;
    color: var(--brand);
}

/* Ẩn mũi tên mặc định của <summary> */
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ""; }

.faq-item__caret {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: rgba(255, 255, 255, 1);
    font-size: 10px;
    transition: transform .25s var(--ease);
}

.faq-item[open] .faq-item__caret { transform: rotate(180deg); }

.faq-item__a {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #4b4b4b;
}

@media (max-width: 991px) {
    .faq-section { padding: 40px 16px 56px; }
    .faq-heading { margin-bottom: 28px; }
    /* 1 cột thì cho cao theo nội dung, không ép bằng nhau kẻo thừa khoảng trống */
    .faq-grid { grid-template-columns: 1fr; gap: 16px; }
    .faq-item__q { font-size: 15px; }
}
