/* Landing "Kết nối hợp tác" — theo Figma (VIỆT NAM)Trang Kết nối hợp tác, frame 1920x6171 */
:root {
    --ld-green: #85c446;
    --ld-green-dark: #72ad37;
    --ld-green-link: #57892b;
    --ld-popup-accent: #4d7a1e;
    --ld-ink: #212529;
    --ld-body: #596066;
    --ld-slate: #383f45;
    --ld-border: #e5e7ea;
    --ld-card-border: #e8eaed;
    --ld-dark: #15181b;
    --ld-cta-bg: #263425;
    --ld-font: 'Exo', 'Be Vietnam Pro', 'Inter', 'Segoe UI', sans-serif;
}

/* ko/zh: Figma vẫn đặt font Exo và để glyph Hàn/Trung tự fallback — chèn Noto Sans KR/SC
   ngay sau Exo để chữ CJK hiển thị đồng nhất, chữ Latin/số vẫn ăn Exo như design */
html[lang="ko"] { --ld-font: 'Exo', 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Segoe UI', sans-serif; }
html[lang="zh"] { --ld-font: 'Exo', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif; }

.ld-page,
.ld-footer {
    --ld-mobile-caption-size: clamp(12px, calc(8.27px + .995vw), 14px);
    --ld-mobile-meta-size: clamp(12px, calc(10.13px + .498vw), 13px);
    --ld-mobile-label-size: clamp(14px, calc(12.13px + .498vw), 15px);
    --ld-mobile-article-title-size: clamp(14px, calc(2.81px + 2.985vw), 20px);
    --ld-mobile-article-description-size: clamp(12px, calc(-2.93px + 3.98vw), 20px);
    --ld-mobile-article-description-leading: clamp(24px, calc(12.81px + 2.985vw), 30px);
    --ld-mobile-section-title-size: clamp(18px, calc(6.81px + 2.985vw), 24px);
    --ld-mobile-popup-title-size: clamp(22px, calc(18.27px + .995vw), 24px);
    --ld-mobile-contact-title-size: clamp(21px, calc(15.4px + 1.493vw), 24px);
    --ld-mobile-cta-title-size: clamp(14px, calc(-.93px + 3.98vw), 22px);
    --ld-mobile-cta-description-size: clamp(12px, calc(4.54px + 1.99vw), 16px);
    --ld-mobile-action-size: clamp(12px, calc(2.67px + 2.488vw), 17px);
    --ld-mobile-caption-leading: clamp(18px, calc(10.54px + 1.99vw), 22px);
    --ld-mobile-section-leading: clamp(22px, calc(7.08px + 3.98vw), 30px);
}

.ld-page {
    margin: 0;
    background: #fff;
    color: var(--ld-ink);
    font-family: var(--ld-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ld-page *,
.ld-page *::before,
.ld-page *::after { box-sizing: border-box; }

.ld-page img { max-width: 100%; display: block; }
.ld-page a { text-decoration: none; }
.ld-page h1, .ld-page h2, .ld-page h3, .ld-page p { margin: 0; }

/* Nội dung dịch có thể khai báo điểm xuống dòng theo desktop/mobile từ JSON. */
.ld-copy { display: inline; }
.ld-copy--mobile,
.ld-break--mobile { display: none; }

.ld-container {
    max-width: 1488px; /* 1440 nội dung + 2x24 padding */
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ─── Header ─────────────────────────────── */
.ld-header {
    background: #fff;
    border-bottom: 1px solid var(--ld-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Header khớp .vtco-header trang chủ (padding 16, content 1440) để logo không nhảy khi điều hướng */
.ld-header .ld-container {
    max-width: 1472px; /* 1440 + 2x16 */
    padding-left: 20px;
    padding-right: 16px;
}

.ld-header__inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 30px;
}


.ld-header__logo { height: 35px; margin-left: 16px; }
.ld-header__logo img { height: 40px; width: auto; object-fit: contain; }

.ld-header__badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    color: var(--ld-green-dark);
}

/* Switcher ngôn ngữ — link GET trực tiếp /ket-noi-hop-tac?lang=vi|en|ko|zh */
.ld-lang {
    margin-left: auto;
    position: relative;
}

.ld-lang__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 6px 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #272727;
}

.ld-lang__flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.ld-lang__caret {
    width: 20px;
    height: 20px;
    transition: transform .15s ease;
}

.ld-lang.is-open .ld-lang__caret { transform: rotate(180deg); }

.ld-lang__menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(33, 37, 41, .12);
    padding: 8px;
    list-style: none;
    margin: 0;
    z-index: 60;
}

.ld-lang.is-open .ld-lang__menu { display: block; }

.ld-lang__item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #272727;
}

.ld-lang__item a:hover { background: #f3f7ec; }
.ld-lang__item.is-active a { color: var(--ld-green-dark); font-weight: 700; }
.ld-lang__short { display: none; }

/* ─── Hero ───────────────────────────────── */
.ld-hero {
    background: #e6f0d4 radial-gradient(circle at 30% 96%, #f6ffe6 0%, #f6ffe6 55%, rgba(246, 255, 230, 0) 100%);
    min-height: 348px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ld-hero__title {
    text-transform: uppercase;
    max-width: 1440px;
    margin: 0 auto;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .56px;
    text-align: center;
    color: var(--ld-ink);
    padding: 43px 29px;
}

/* ─── Section chung ──────────────────────── */
.ld-section { position: relative; }

.ld-section__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 69px;
    letter-spacing: 1.56px;
    color: var(--ld-green-dark);
}

/* ─── Giới thiệu ─────────────────────────── */
.ld-intro {
    padding: 82px 0 88px;
    background-image: url("../images/img_decor_rainbow.png");
    background-position: 0% 0%;
    background-repeat: no-repeat;
    background-size: 78% auto;
}

.ld-intro__inner {
    display: grid;
    grid-template-columns: 426px 1fr;
    gap: 49px;
    align-items: start;
}

.ld-intro__text {
    padding-top: 5%;
}

.ld-stats {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 426px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-content: center;
    justify-items: center;
}

.ld-stats__circle {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 20px;
    background: #f6f7f9;
    border-radius: 50%;
    color: var(--ld-ink);
    overflow: hidden;
    transition: all .5s ease;
    z-index: 1;
}

.ld-stats__circle::before {
    content: "";
    position: absolute;
    inset: 0;
    top: 3%;
    left: 15%;
    max-width: 25%;
    background-image: url("../images/ic_line_strategy_item.png");
    background-position: 0% 0%;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}

.ld-stats__number {
    font-size: 44px;
    font-weight: 800;
    line-height: 44px;
    color: var(--ld-green);
    transition: color .3s ease;
}

.ld-stats__circle:nth-child(4) .ld-stats__number { font-size: 40px; }
/* KO: "3,000만+" dài hơn nên Figma hạ 44 → 36px cho vừa vòng tròn */
html[lang="ko"] .ld-stats__circle:nth-child(1) .ld-stats__number { font-size: 36px; }

.ld-stats__label {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ld-ink);
    transition: color .3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .ld-stats__circle:hover {
        background: linear-gradient(180deg, #b1d23e 0%, #76ae45 100%);
        color: #fff;
    }

    .ld-stats__circle:hover .ld-stats__number,
    .ld-stats__circle:hover .ld-stats__label {
        color: #fff;
    }
}

.ld-stats__decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.ld-stats__decor img {
    width: 100%;
    max-width: 48%;
    aspect-ratio: 1 / 1;
}

.ld-intro__title {
    padding-bottom: 0;
    font-size: clamp(16px, 16px + 0.75vw, 36px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 1px;
    word-spacing: 1px;
    color: var(--ld-ink);
}

.ld-intro__text p {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    word-spacing: 1px;
    color: var(--ld-body);
}

.ld-intro__text p:first-of-type { margin-top: 20px; }
.ld-intro__text p:last-child { margin-bottom: 0; }

/* ─── Toàn cầu hóa ───────────────────────── */
.ld-global {
    padding: 25px 0 90px;
    background-image: url("../images/img_decor_dots.png");
    background-position: 0% 18%;
    background-repeat: no-repeat;
}

.ld-global__title {
    max-width: 850px;
    padding-bottom: 0;
    font-size: clamp(16px, 16px + 0.75vw, 36px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 1px;
    word-spacing: 1px;
    color: var(--ld-ink);
}

.ld-global__desc {
    max-width: 850px;
    margin-top: 0;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    word-spacing: 1px;
    color: var(--ld-body);
}

.ld-map {
    position: relative;
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
}

/* Tỷ lệ theo kích thước thật của ảnh: map-left 803x760, map-right 572x760
   (803/1375 = 58.4%) — chia sai tỷ lệ sẽ khiến object-fit: cover xén mép ảnh */
.ld-map__img-left { width: 58.4%; }
.ld-map__img-right { width: 41.6%; }
.ld-map__img-left img, .ld-map__img-right img { width: 100%; height: 100%; object-fit: cover; }

.ld-map__flag {
    position: absolute;
    width: 3.4%;
    min-width: 14px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18));
    transition: transform .35s ease;
}

.ld-map__flag:hover {
    transform: scale(1.5);
    z-index: 1;
}

/* ─── Game huyền thoại ───────────────────── */
.ld-games {
    padding: 85px 0 40px;
    overflow: hidden;
}

.ld-games__slider { position: relative; }

/* Figma node 5242:23084 BG/dot: 130x310, lệch trái 25px, cách đỉnh khung carousel 357px (card lớn +8) */
.ld-games__decor {
    position: absolute;
    left: 25px;
    top: 349px;
    width: 130px;
    height: 310px;
    background: url("../images/landing/dot.png") 0 0 / 130px 310px no-repeat;
    pointer-events: none;
}

.ld-games__row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 22px;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

/* Desktop: kéo ngang trên thẻ để chuyển game (chặn pan ngang của trình duyệt, vẫn cho cuộn dọc) */
@media (min-width: 901px) {
    .ld-games__row { touch-action: pan-y; cursor: grab; }
}

.ld-game-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ld-dark);
    color: inherit;
    flex: 0 0 auto;
    /* Di chuyển/đổi cỡ khi xoay carousel chạy bằng transform (kỹ thuật FLIP trong script);
       opacity dùng cho thẻ vòng qua mép hiện dần từ phía đối diện */
    transition: transform .35s ease, opacity .35s ease, box-shadow .3s ease;
}

.ld-game-card:not(.ld-game-card--l) { cursor: pointer; }

.ld-game-card--s { width: 255px; height: 276px; }
.ld-game-card--m { width: 254px; height: 372px; }

/* Thẻ ngoài 5 ô hiển thị của carousel desktop; mobile hiện lại toàn bộ để cuộn ngang */
.ld-game-card--off { display: none; }

/* Game không có key art: logo căn giữa trên nền sáng (Figma 5242:31683 "Ảnh trung tâm") */
.ld-game-card--logo { background: #f6f6f6; }

.ld-game-card--logo .ld-game-card__img {
    inset: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    height: 45%;
    object-fit: contain;
}

.ld-game-card--l {
    width: 334px;
    height: 466px;
    border: 2px solid var(--ld-green);
    border-radius: 18px;
}

.ld-game-card--l:hover {
    box-shadow: 0 0 18px rgba(133, 196, 70, .55), 0 0 44px rgba(133, 196, 70, .35);
}

.ld-game-card:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
    box-shadow: 0 0 0 6px var(--ld-green);
}

.ld-game-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}

.ld-game-card__play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: opacity .25s ease;
}

/* Video hover: iframe 16:9 canh giữa, cao bằng thẻ nên tràn ngang và bị bo cắt như object-fit: cover;
   pointer-events: none để không nuốt mất hover/drag của carousel */
.ld-game-card__video {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    height: 100%;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    border: 0;
    background: #000;
    filter: brightness(1.12) saturate(1.04);
    pointer-events: none;
}

.ld-game-card.is-playing .ld-game-card__play { opacity: 0; }

.ld-game-card__play::after {
    content: "";
    display: block;
    margin-left: 7px;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent var(--ld-dark);
}

.ld-game-card__caption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    padding: 0 16px 22px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .5) 55%, rgba(0, 0, 0, .9) 100%);
    transition: opacity .2s ease;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.ld-game-card.is-playing .ld-game-card__caption {
    opacity: 0;
}

.ld-game-card--l .ld-game-card__caption { height: 150px; padding: 0 20px 26px; }

.ld-game-card--l .ld-game-card__caption .ld-game-card__name {
    font-size: 24px;
    font-weight: 800;
}

.ld-game-card__arrow { display: none; color: var(--ld-green); font-size: 16px; font-weight: 700; }
.ld-game-card--l .ld-game-card__arrow { display: inline; }

.ld-games__dots {
    margin-top: 56px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.ld-games__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 5px;
    padding: 0;
    background: #dfe3e8;
    font-size: 0;
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}

.ld-games__dot.is-active { width: 24px; background: var(--ld-green); }

/* ─── Mũi tên slider ─────────────────────── */
.ld-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--ld-border);
    border-radius: 50%;
    background: #fff;
    color: var(--ld-ink);
    box-shadow: 0 4px 16px rgba(33, 37, 41, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ld-slider-arrow svg { width: 22px; height: 22px; }

.ld-slider-arrow:hover {
    background: var(--ld-green);
    border-color: var(--ld-green);
    color: #fff;
}

.ld-slider-arrow--prev { left: -10px; }
.ld-slider-arrow--next { right: -10px; }

/* ─── Card bài viết (Giáo dục / Hệ sinh thái) ─ */
.ld-cards { padding: 40px 0; }

/* Mũi tên khu card chỉ dùng cho slider mobile; desktop là lưới tĩnh */
.ld-cards > .ld-container { position: relative; }
.ld-cards .ld-slider-arrow { display: none; }

.ld-cards--education {
    position: relative;
    isolation: isolate;
}

.ld-cards--education > .ld-container {
    position: relative;
    z-index: 1;
}

.ld-cards__decor {
    position: absolute;
    left: 0;
    top: 32%;
    width: 1020px;
    max-width: 65vw;
    height: 288px;
    background: #eef7e4;
    border-radius: 0 144px 144px 0;
    z-index: 0;
}

.ld-cards__grid {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 30px;
}

.ld-article {
    background: #fff;
    border: 1px solid var(--ld-card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ld-article__media {
    height: 210px;
    background: #f6f7f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-article__media img { width: 100%; height: 100%; object-fit: cover; }

.ld-article__body {
    padding: 18px 22px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ld-article__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ld-ink);
    min-height: 48px;
}

.ld-article__desc {
    margin-top: 8px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ld-body);
    flex: 1;
}

.ld-article__link {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ld-green-link);
}

.ld-article__link:hover { text-decoration: underline; }

.ld-page.is-popup-open { overflow: hidden; }

.ld-popup {
    width: min(417.34px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ld-ink);
    overflow: visible;
}

.ld-popup::backdrop {
    background: rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.ld-popup__panel {
    position: relative;
    width: 100%;
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 64px rgba(0, 0, 0, .24);
    overflow: hidden;
}

.ld-popup__panel[hidden] { display: none; }

.ld-popup__media {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: #f3f5f6;
    overflow: hidden;
}

.ld-popup__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ld-popup__content {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 30px 30px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ld-popup__content > * { flex: 0 0 auto; }

.ld-popup__category {
    color: var(--ld-popup-accent);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
}

.ld-popup__title {
    color: var(--ld-ink);
    font-size: 25.6px;
    font-weight: 700;
    line-height: 1.25;
}

.ld-popup__subtitle {
    color: var(--ld-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.ld-popup__description {
    color: var(--ld-body);
    font-size: 14.5px;
    line-height: 1.7;
}

/* Figma node 5242:30961/30964: Exo Bold 14, line-height 100%, #4d7a1e, gap 8, padding 10 trên/dưới, icon 14x14 */
.ld-popup__external {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: var(--ld-popup-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.ld-popup__external-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.ld-popup__external:hover { text-decoration: underline; }

.ld-popup__close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0 0 2px;
    border: 1px solid #e6e9ee;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ld-ink);
    font: 400 20px/1 'Inter', 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
}

.ld-popup__close:hover { background: #fff; }

.ld-popup__close:focus-visible,
.ld-popup__external:focus-visible {
    outline: 3px solid rgba(133, 196, 70, .48);
    outline-offset: 3px;
}

/* ─── Form Liên hệ hợp tác (Figma 5242:25310/25337/25362) ── */
.ld-contact {
    width: min(560px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ld-ink);
    font-family: var(--ld-font);
    overflow: visible;
}

.ld-contact::backdrop {
    background: rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.ld-contact__panel {
    position: relative;
    max-height: calc(100dvh - 32px);
    padding: 36px 40px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(38, 27, 30, .2);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ld-contact__panel[hidden] { display: none; }

.ld-contact__title {
    color: var(--ld-ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 32px;
}

.ld-contact__close {
    position: absolute;
    top: 36px;
    right: 40px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f6f7f9;
    color: var(--ld-slate);
    font: 400 16px/1 var(--ld-font);
    cursor: pointer;
}

.ld-contact__close:hover { background: #eceef1; }

.ld-contact__form {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ld-contact__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ld-contact__label {
    color: var(--ld-slate);
    font-size: 14px;
    font-weight: 700;
    line-height: 19px;
}

.ld-contact__input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d9dce0;
    border-radius: 8px;
    background: #fff;
    color: var(--ld-ink);
    font: 400 15px/20px var(--ld-font);
    outline: none;
}

.ld-contact__input::placeholder { color: #9aa0a6; }

.ld-contact__input:focus-visible {
    border-color: var(--ld-green);
    box-shadow: 0 0 0 3px rgba(133, 196, 70, .24);
}

.ld-contact__select {
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23596066' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

.ld-contact__select:invalid,
.ld-contact__select option[value=""] { color: #9aa0a6; }

.ld-contact__select option { color: var(--ld-ink); }

.ld-contact__textarea {
    height: 84px;
    padding: 14px 16px;
    resize: vertical;
}

.ld-contact__input.is-invalid { border-color: #df3c2a; }

.ld-contact__error {
    color: #df3c2a;
    font-size: 13px;
    line-height: 17px;
}

.ld-contact__submit {
    height: 51px;
    margin-top: 8px;
    border: 0;
    border-radius: 50px;
    background: var(--ld-green);
    color: #fff;
    font: 700 16px/1 var(--ld-font);
    cursor: pointer;
}

.ld-contact__submit:hover { background: var(--ld-green-dark); }

.ld-contact__submit:disabled {
    cursor: wait;
    opacity: .7;
}

.ld-contact__submit-error {
    margin: 0;
    color: #df3c2a;
    font-size: 13px;
    line-height: 19px;
    text-align: center;
}

.ld-contact__note {
    margin: 4px -8px 0;
    color: #8a9097;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

.ld-contact__panel--success {
    width: min(460px, 100%);
    margin: 0 auto;
    padding: 44px 40px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ld-contact__check {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f2f8e9;
    color: var(--ld-green);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.ld-contact__success-title {
    margin-top: 20px;
    color: var(--ld-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 29px;
}

.ld-contact__success-desc {
    margin-top: 16px;
    color: var(--ld-body);
    font-size: 15px;
    line-height: 25.5px;
}

.ld-contact__success-close {
    height: 46px;
    margin-top: 30px;
    padding: 0 32px;
    border: 0;
    border-radius: 50px;
    background: var(--ld-green);
    color: #fff;
    font: 700 15px/1 var(--ld-font);
    cursor: pointer;
}

.ld-contact__success-close:hover { background: var(--ld-green-dark); }

.ld-contact__close:focus-visible,
.ld-contact__submit:focus-visible,
.ld-contact__success-close:focus-visible {
    outline: 3px solid rgba(133, 196, 70, .48);
    outline-offset: 3px;
}

.ld-card-dots { display: none; }

/* ─── Đối tác ────────────────────────────── */
.ld-partners { padding: 50px 0 60px; }

.ld-partners__panels {
    margin-top: 37px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.ld-partners__panel {
    background: #fff;
    border-radius: 16px;
    padding: 32px 14px 36px;
}

.ld-partners__panel-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.3px;
    color: var(--ld-ink);
}

.ld-partners__image {
    margin-top: 46px;
    margin-right: auto;
    margin-left: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ld-partners__image--entertainment {
    width: 100%;
    max-width: 688px;
}

.ld-partners__image--education {
    padding-top:5%;
    width: 100%;
    max-width: 688px;
}

/* ─── CTA ────────────────────────────────── */
.ld-cta { padding: 30px 0 60px; }

.ld-cta__panel {
    position: relative;
    width: 100%;
    max-width: 1050px;
    height: 241px;
    margin: 0 auto;
    border-radius: 16px;
    background-color: var(--ld-cta-bg);
    background-image: url("../images/img_culture_2.png");
    background-position: 50% 50%;
    background-repeat: repeat;
    overflow: hidden;
    padding: 0 60px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.ld-cta__panel::after {
    content: "";
    position: absolute;
    left:74%;
    width: 280px;
    height: 280px;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(133, 196, 70, .35) 0%, rgba(133, 196, 70, 0) 60%);
    pointer-events: none;
}

.ld-cta__decor {
    position: absolute;
    top: 15px;
    left: -12px;
    z-index: 0;
    width: 299.015px;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.ld-cta__content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.ld-cta__title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.ld-cta__desc {
    margin-top: 14px;
    font-size: 24px;
    color: rgba(255, 255, 255, .75);
}

.ld-cta__btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 136px;
    height: 57px;
    padding: 0 34px;
    border-radius: 50px;
    background: var(--ld-green);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.ld-cta__btn:hover { background: var(--ld-green-dark); }
.ld-cta__btn:active { background: var(--ld-green-dark); }

.ld-cta__btn:focus-visible {
    outline: 3px solid rgba(133, 196, 70, .48);
    outline-offset: 3px;
}

/* ─── Footer ─────────────────────────────── */
.ld-footer { border-top: 1px solid var(--ld-border); padding-top: 40px; color:black;}

.ld-footer__cols {
    display: grid;
    grid-template-columns: 352px 336px 304px 1fr;
    gap: 0;
    padding-bottom: 40px;
}

.ld-footer__logo img { width: 128px; height: 32px; object-fit: contain; }

.ld-footer__social {
    margin-top: 16px;
    display: flex;
    gap: 16px;
}

.ld-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f6f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-footer__social a img { width: 40px; height: 40px; object-fit: contain; }

.ld-footer__heading {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .84px;
    color: var(--ld-slate);
    text-transform: none;
}

.ld-footer__list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.ld-footer__list li { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--ld-slate); }
.ld-footer__list li:first-child { margin-top: 0; }
.ld-footer__list a { color: var(--ld-slate); }
.ld-footer__list a:hover { color: var(--ld-green-dark); }

.ld-footer__bottom {
    border-top: 1px solid #ced2d6;
    padding: 16px 0;
    text-align: center;
    font-family: 'Inter', var(--ld-font);
    font-size: 14px;
    color: var(--ld-slate);
}

/* ─── Responsive (theo frame Mobile 375) ──── */
@media (max-width: 1200px) {
    .ld-intro__inner { grid-template-columns: 1fr; }
    .ld-stats { margin: 0 auto; gap: 20px; }
    .ld-partners__panels { grid-template-columns: 1fr; }
    .ld-cta__panel { padding: 0 56px; }
}

@media (max-width: 900px) {
    .ld-container { padding-left: 20px; padding-right: 20px; }

    .ld-header__inner { height: 52px; gap: 16px; }
    .ld-header__logo img { width: 100px; height: 24px; }
    .ld-header__badge { font-size: 14px; line-height: 20px; padding: 4px 8px; }

    .ld-hero { min-height: 0; }
    .ld-hero__title { font-size: 26px; line-height: 45px; padding: 40px 0; }

    .ld-intro { padding: 40px 0; background-size: auto 70%; }
    .ld-global {
        background-size: 96px auto;
    }

    .ld-stats { gap: 16px; }
    .ld-stats__circle { gap: 12px; padding: 12px; }
    .ld-stats__number { font-size: 36px; line-height: 40px; }
    .ld-stats__circle:nth-child(4) .ld-stats__number { font-size: 30px; }
    html[lang="ko"] .ld-stats__circle:nth-child(1) .ld-stats__number { font-size: 30px; }
    .ld-stats__label { font-size: 13px; }

    .ld-section__title { font-size: 24px; line-height: 30px; }

    .ld-games__row {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }

    /* Hàng cuộn ngang hiện đủ mọi thẻ; thẻ --off chưa có cỡ nên lấy cỡ --m (≤600px được gộp về 335px) */
    .ld-game-card--off { display: block; width: 254px; height: 372px; }

    .ld-games__dots { margin-top: 24px; }

    .ld-slider-arrow--prev { left: 8px; }
    .ld-slider-arrow--next { right: 8px; }

    .ld-cards__grid { grid-template-columns: 1fr; }
    .ld-cards__decor { display: none; }
    .ld-games__decor { display: none; }
    .ld-article__title { min-height: 0; }

    .ld-cta__panel {
        height: auto;
        min-height: 220px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 40px 24px;
    }
    .ld-cta__title { font-size: 22px; }
    .ld-cta__desc { font-size: 16px; }

    .ld-footer__cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .ld-intro__text p:first-of-type { margin-top: 16px; }
    .ld-global__desc { padding: 16px 0; }
}

/* Mobile 375 — khớp frame Figma 5242:23360, vẫn để chiều cao nội dung tự giãn cho bản dịch dài. */
@media (max-width: 600px) {
    .ld-container {
        max-width: none;
        padding-left: 20px;
        padding-right: 20px;
    }

    .ld-header__inner {
        height: 52px;
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr) 70px;
        gap: 12px;
    }

    .ld-header__logo img { width: 100px; height: 24px; }

    .ld-header__badge {
        min-width: 0;
        padding: 0;
        overflow: hidden;
        font-size: 14px;
        line-height: 28px;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ld-lang { margin-left: 0; }

    .ld-lang__btn {
        width: 70px;
        min-height: 24px;
        justify-content: flex-end;
        gap: 4px;
        padding: 0;
    }

    .ld-lang__full { display: none; }
    .ld-lang__short { display: inline; }
    .ld-lang__menu { top: calc(100% + 14px); }

    .ld-hero {
        min-height: 378px;
        height: 378px;
        align-items: flex-start;
    }

    .ld-hero .ld-container {
        width: 100%;
        padding-top: 16px;
    }

    .ld-hero__title {
        min-height: 354px;
        padding: 20px 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        font-weight: 700;
        line-height: 45px;
        letter-spacing: .56px;
    }

    html[lang="zh"] .ld-hero__title {
        line-height: 62.72px;
        line-break: strict;
        word-break: normal;
        overflow-wrap: normal;
    }

    .ld-hero__title > .ld-copy { width: 100%; }

    .ld-copy--desktop,
    .ld-break--desktop { display: none; }

    .ld-copy--mobile,
    .ld-break--mobile { display: initial; }

    .ld-intro {
        padding: 35px 0 0;
        background-size: auto 70%;
    }

    .ld-intro__inner { gap: 24px; }
    .ld-intro__text {
        min-height: 354px;
        order: -1;
    }
    .ld-stats {
        width: 335px;
        max-width: 100%;
        gap: 16px;
    }

    .ld-stats__circle {
        max-width: none;
        gap: 12px;
        padding: 12px;
    }

    .ld-stats__number,
    .ld-stats__circle:nth-child(4) .ld-stats__number {
        font-size: 36px;
        font-weight: 700;
        line-height: 44px;
    }

    html[lang="ko"] .ld-stats__circle:nth-child(1) .ld-stats__number { font-size: 30px; }

    .ld-stats__label {
        font-size: var(--ld-mobile-label-size);
        line-height: 19px;
    }

    .ld-stats__circle:nth-child(n + 2) .ld-stats__label {
        font-size: var(--ld-mobile-label-size);
    }
    .ld-stats__decor img { max-width: 45.4%; }

    .ld-global {
        padding: 26px 0 0;
        background-size: 79px auto;
    }

    .ld-global__desc {
        margin-top: 0;
        padding: 16px 0;
    }

    .ld-map {
        height: 176px;
        margin-top: 24px;
        border-radius: 0;
        box-shadow: none;
    }

    .ld-games { padding: 40px 0 20px; }

    .ld-section__title {
        font-size: var(--ld-mobile-section-title-size);
        line-height: var(--ld-mobile-section-leading);
        letter-spacing: 0;
    }

    .ld-games__row {
        margin-top: 16px;
        gap: 16px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .ld-games__row::-webkit-scrollbar,
    .ld-cards__grid::-webkit-scrollbar { display: none; }

    /* Thẻ nổi bật được script đưa lên đầu DOM (không dùng CSS order để còn xoay vòng DOM khi loop) */
    .ld-game-card,
    .ld-game-card--s,
    .ld-game-card--m,
    .ld-game-card--l {
        width: 335px;
        max-width: 100%;
        height: 466px;
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .ld-games__dots {
        height: 10px;
        margin-top: 16px;
        gap: 8px;
    }

    .ld-games__dot { width: 10px; height: 10px; }
    .ld-games__dot.is-active { width: 24px; }

    .ld-slider-arrow {
        width: 36px;
        height: 36px;
        box-shadow: 0 2px 10px rgba(33, 37, 41, .18);
    }

    .ld-slider-arrow svg { width: 18px; height: 18px; }
    .ld-slider-arrow--prev { left: 8px; }
    .ld-slider-arrow--next { right: 8px; }
    .ld-cards .ld-slider-arrow { display: flex; }

    .ld-cards { padding: 20px 0 16px; }

    .ld-cards__grid {
        margin-top: 16px;
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .ld-article {
        min-height: 375px;
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .ld-article__media { height: 210px; flex: 0 0 210px; }

    .ld-article__body { padding: 16px 10px 18px; }

    .ld-article__title {
        min-height: 0;
        font-size: var(--ld-mobile-article-title-size);
        line-height: 1.5;
    }

    .ld-article__desc {
        margin-top: 8px;
        font-size: var(--ld-mobile-article-description-size);
        line-height: var(--ld-mobile-article-description-leading);
    }

    .ld-article__link {
        margin-top: 8px;
        font-size: var(--ld-mobile-caption-size);
        line-height: 19px;
    }

    .ld-popup {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
    }

    .ld-popup__panel { max-height: calc(100dvh - 24px); }

    .ld-popup__content { padding: 22px 20px 24px; }
    .ld-popup__category { font-size: var(--ld-mobile-meta-size); }
    .ld-popup__title { font-size: var(--ld-mobile-popup-title-size); line-height: 1.32; }
    .ld-popup__description { font-size: 14px; line-height: 1.65; }

    .ld-popup__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .ld-contact {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
    }

    .ld-contact__panel {
        max-height: calc(100dvh - 24px);
        padding: 26px 20px 14px;
    }

    .ld-contact__title { font-size: var(--ld-mobile-contact-title-size); line-height: 1.33; }

    .ld-contact__close { top: 24px; right: 20px; }

    .ld-contact__note { margin-left: 0; margin-right: 0; }

    .ld-contact__panel--success { padding: 36px 22px; }

    .ld-card-dots {
        height: 10px;
        margin-top: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .ld-card-dots__dot {
        width: 10px;
        height: 10px;
        border: 0;
        border-radius: 5px;
        padding: 0;
        background: #dfe3e8;
        font-size: 0;
        cursor: pointer;
        transition: width .25s ease, background-color .25s ease;
    }

    .ld-card-dots__dot.is-active { width: 24px; background: var(--ld-green); }

    .ld-partners { padding: 40px 0 20px; }

    .ld-partners__panels {
        margin-top: 16px;
        display: block;
    }

    .ld-partners__panel {
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .ld-partners__panel + .ld-partners__panel { margin-top: 16px; }

    .ld-partners__panel-title {
        font-size: var(--ld-mobile-caption-size);
        line-height: 17px;
        letter-spacing: 0;
        text-align: left;
    }

    .ld-partners__image { margin-top: 16px; }

    .ld-cta { padding: 16px 0 40px; }

    .ld-cta__panel {
        min-height: 150px;
        padding: 16px 20px;
        display: block;
        border-radius: 16px;
    }

    .ld-cta__panel::after {
        top: 45px;
        left: 77px;
        width: 182px;
        height: 128px;
    }

    .ld-cta__title {
        display: flex;
        align-items: center;
        max-width: none;
        height: auto;
        font-size: var(--ld-mobile-cta-title-size);
        line-height: 1.25;
    }

    .ld-cta__desc {
        width: auto;
        height: auto;
        margin-top: 8px;
        font-size: var(--ld-mobile-cta-description-size);
        line-height: 1.5;
    }

    .ld-cta__btn {
        display: flex;
        width: 136px;
        min-width: 136px;
        height: 36px;
        margin: 20px auto 0;
        padding: 0 24px;
        font-size: var(--ld-mobile-action-size);
        line-height: 12px;
    }

    .ld-footer {
        min-height: 0;
        padding-top: 40px;
    }

    .ld-footer > .ld-container {
        min-height: 0;
    }

    .ld-footer__cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-bottom: 24px;
    }

    .ld-footer__brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ld-footer__logo img { width: 100px; height: 24px; }

    .ld-footer__social {
        margin-top: 0;
        gap: 16px;
    }

    .ld-footer__social a {
        width: 24px;
        height: 24px;
        border-radius: 0;
        background: transparent;
    }

    .ld-footer__social a img {
        width: 24px;
        height: 24px;
    }

    .ld-footer__heading {
        font-size: 14px;
        line-height: 18px;
        letter-spacing: 0;
    }

    .ld-footer__list li {
        font-size: var(--ld-mobile-caption-size);
        line-height: var(--ld-mobile-caption-leading);
    }

    .ld-footer__list { margin-top: 16px; }
    .ld-footer__list li { margin-top: 6px; }

    .ld-footer__contact .ld-copy--mobile,
    .ld-footer__bottom {
        white-space: nowrap;
    }

    .ld-footer__bottom {
        margin-top: 0;
        padding: 16px 0;
        font-size: var(--ld-mobile-caption-size);
        line-height: var(--ld-mobile-caption-leading);
        text-align: left;
    }
}

/*
 * Các khối copy bám layout thiết kế trong đúng dải 375–576px.
 * Break marker quyết định hàng; clamp chỉ giữ tỷ lệ chữ theo chiều rộng màn hình.
 */
@media (max-width: 374px), (min-width: 577px) and (max-width: 600px) {
    .ld-line-layout .ld-copy--desktop { display: initial; }

    .ld-line-layout .ld-copy--mobile,
    .ld-line-layout .ld-break--mobile {
        display: none;
    }
}

@media (min-width: 375px) and (max-width: 576px) {
    .ld-line-layout .ld-copy {
        white-space: nowrap;
    }

    .ld-intro__title,
    .ld-intro__text p,
    .ld-global__title,
    .ld-global__desc {
        padding-inline: 2%;
    }

    .ld-hero {
        min-height: clamp(354px, 94.737vw, 546px);
        height: clamp(354px, 94.737vw, 546px);
    }

    .ld-hero__title {
        min-height: clamp(330px, 88.722vw, 511px);
        font-size: clamp(24px, 6.516vw, 37.5px);
        line-height: clamp(42px, 11.278vw, 65px);
    }

    html[lang="zh"] .ld-hero__title {
        font-size: clamp(36px, calc(19.21px + 4.478vw), 45px);
    }

    .ld-intro__title,
    .ld-global__title {
        font-size: clamp(16px, 4.267vw, 24.6px);
    }

    .ld-intro__text p,
    .ld-global__desc {
        font-size: clamp(13.5px, 3.6vw, 20.75px);
        line-height: clamp(21px, 5.6vw, 32.25px);
    }
}

@media (min-width: 1024px) {
    html[lang="zh"] .ld-line-layout .ld-copy,
    html[lang="zh"] .ld-line-layout--desktop .ld-copy {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ld-stats__circle,
    .ld-stats__number,
    .ld-stats__label,
    .ld-game-card,
    .ld-games__dot,
    .ld-card-dots__dot,
    .ld-map__flag,
    .ld-slider-arrow {
        transition-duration: .01ms;
    }
}
