/* =====================================================================
   HOME.CSS - Gop 4 module CHI danh cho trang chu (home-slider, featured-
   products, project-marquee, knowledge-bento). Khong gop print-process.css
   va shortcode-press.css vi 2 file do con duoc shortcode_helper.php tu chen
   rieng cho trang khac ([process]/[thepress]) — gop vao day se lam trang
   dung shortcode phai tai them CSS khong lien quan. home.css PHU THUOC
   .pp-header/.pp-title/.pp-subtitle dinh nghia trong print-process.css
   (luon duoc nap cung tren trang chu, xem template.php).
   ===================================================================== */

/* Slider trang chu dang split-screen (thay wap_slider tinh). Chi load khi isset($home). */

#home-slider {
    position: relative;
    overflow: hidden;
}
.hs-track {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    will-change: transform;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.hs-panel {
    position: relative;
    display: block;
    flex: 0 0 50%;
    width: 50%;
    background: #f3f4f6;
}
.hs-panel__img {
    display: block;
    width: 100%;
    height: auto;
    /* Toan bo slide hien tai deu ~16:9 (1000x562/563) — khai bao aspect-ratio
       de trinh duyet danh cho truoc, tranh CLS trong luc anh chua tai xong. */
    aspect-ratio: 16 / 9;
}

.hs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .9);
    color: #1a2033;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    cursor: pointer;
    z-index: 2;
    transition: background .15s;
}
.hs-arrow:hover { background: #fff; }
.hs-arrow--prev { left: 16px; }
.hs-arrow--next { right: 16px; }

.hs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}
.hs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
        background: #cfe0fa;
    padding: 0;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.hs-dot--active {
    background: var(--ivd-brand, #1d52d7);
    transform: scale(1.2);
    width: 16px; border-radius: 50px;
}

@media (max-width: 575px) {
    .hs-panel { flex: 0 0 100%; width: 100%; }
    .hs-arrow { width: 36px; height: 36px; font-size: 1rem; }
}

/* ---- Fallback tinh (khi chua co slide nao trong home_slider) ---- */
#wap_slider {
    background: #dcf1fd url(../images/home-banner.jpg);
    background-repeat: no-repeat;
    background-position: top right;
}
div#flashmo_slider {
    color: #293f7b;
    padding: 155px 0;
}
.head-camket {
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-family: Inter;
    font-weight: 600;
}
.head-camket:after {
    content: "";
    display: block;
    width: 39px;
    height: 5px;
    background-color: #f7941d;
    margin-top: 14px;
    border-radius: 3px;
}
.noidung-camket {
    font-size: 3.4375rem;
    line-height: 1.1;
    font-family: Inter;
    font-weight: 600;
    letter-spacing: -.6px;
    text-shadow: -1px 1px 2px #333;
}
@media (max-width: 1200px) {
    div#flashmo_slider {
        text-align: center;
        color: #fff;
        height: 100%;
        padding-top: 37vw;
        padding-bottom: 2.5vw;
    }
    .head-camket:after { margin: 14px auto; }
    #wap_slider { background-position: center center; background-size: cover; }
    .noidung-camket, .head-camket { display: none; }
}
@media (max-width: 767px) {
    .noidung-camket { font-size: 2.4375rem; line-height: 1; }
}

/* Dich vu noi bat - carousel san pham dang tab (kieu "folder tab" + sidebar gioi thieu). */

/* ---- Tab pill dang "folder tab" ---- */
.fpt-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.fpt-tabs::-webkit-scrollbar {
    display: none;
}
.fpt-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 14px 26px;
    border: none;
    border-radius: 16px 16px 0 0;
    background: transparent;
    color: #728091;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.fpt-tab-btn:hover {
    color: var(--ivd-brand, #005EDB);
}
.fpt-tab-btn.fpt-tab-active {
    background: var(--ivd-brand, #005EDB);
    color: #fff;
}

/* ---- Khung nen xanh chua noi dung tab dang active ---- */
.fpt-panel-inner {
    display: flex;
    gap: 32px;
    border-radius: 0 0 16px 16px;
    background: var(--ivd-brand, #005EDB);
    padding: 32px 16px;
}

/* ---- Sidebar gioi thieu (chu trang tren nen xanh) ---- */
.fpt-sidebar {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    background-image: url(../images/bg-home-desc-cat-corner.png?v=2);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 140px auto;
    border-radius: 16px;
    padding: 28px 22px;
    box-sizing: border-box;
    margin-top: 3px;
}
.fpt-sidebar-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f2a6b;
}
.fpt-sidebar-underline {
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: var(--ivd-brand, #005EDB);
    margin-bottom: 16px;
}
.fpt-sidebar-desc {
    margin: 0 0 20px;
    color: var(--ivd-brand, #005EDB);
}
.fpt-sidebar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 10px 20px;
    border: 1px solid var(--ivd-brand, #005EDB);
    border-radius: 999px;
    color: var(--ivd-brand, #005EDB);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.fpt-sidebar-btn:hover {
    background: var(--ivd-brand, #005EDB);
    color: #fff;
    text-decoration: none;
}
.fpt-sidebar-mascot {
    margin-top: auto;
    padding-top: 20px;
    max-width: 100%;
    height: auto;
    align-self: center;
}

/* ---- Khu vuc luoi san pham ---- */
.fpt-content {
    position: relative;
    flex: 1;
    min-width: 0;
}
.fpt-viewport {
    overflow: hidden;
}
.fpt-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 2px;
    padding-top: 3px;
}
.fpt-track::-webkit-scrollbar {
    display: none;
}

.fpt-card {
    flex: 0 0 calc((100% - (var(--fpt-cols-desktop, 4) - 1) * 16px) / var(--fpt-cols-desktop, 4));
    box-sizing: border-box;
    display: flex;
}
/* Bootstrap breakpoint: xl (1200-1399px), xxl (>=1400px) */
@media (min-width: 1200px) {
    .fpt-card {
        flex-basis: calc((100% - (var(--fpt-cols-xl, 5) - 1) * 16px) / var(--fpt-cols-xl, 5));
    }
}
@media (min-width: 1400px) {
    .fpt-card {
        flex-basis: calc((100% - (var(--fpt-cols-xxl, 6) - 1) * 16px) / var(--fpt-cols-xxl, 6));
    }
}
.fpt-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
    transition: transform .2s, box-shadow .2s;
}
.fpt-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}
.fpt-card-img {
    aspect-ratio: 3 / 2;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.fpt-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.fpt-card-link:hover .fpt-card-img img {
    transform: scale(1.04);
}
.fpt-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.fpt-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fpt-card-rating {
    display: flex;
    align-items: center;
    color: #f59e0b;
    margin-bottom: 10px;
}
.fpt-star-half { display: inline-flex; position: relative; width: 15px; height: 15px; }
.fpt-star-half-bg { position: absolute; left: 0; top: 0; }
.fpt-star-half-fg { position: absolute; left: 0; top: 0; clip-path: inset(0 50% 0 0); }
.fpt-rating-val {
    margin-left: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}
.fpt-card-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fpt-card-price-row {
    margin-top: auto;
    background: #edf0f3;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
}
.fpt-card-price-label {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #4a4f63;
}
.fpt-card-price-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ivd-brand, #005EDB);
    overflow: hidden;
    text-overflow: ellipsis;
}
.fpt-card-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.875rem;
        font-weight: 600;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 8px 12px;
}

.fpt-prev,
.fpt-next {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #444;
    z-index: 2;
}
.fpt-prev { left: -20px; }
.fpt-next { right: -20px; }
.fpt-prev:hover,
.fpt-next:hover {
    color: var(--ivd-brand, #005EDB);
}
/* An nut khi khong con card truoc/sau (track chua tran, hoac da o dau/cuoi) —
   xem js/home.js::updateNav(). Combined selector (0,2,0) de thang ca rule
   display:flex (0,1,0) o tren lan display:none @767px (0,1,0). */
.fpt-prev.fpt-nav--hidden,
.fpt-next.fpt-nav--hidden {
    display: none;
}

@media (max-width: 991px) {
    .fpt-panel-inner { flex-direction: column; gap: 20px; padding: 16px; border-radius: 0 0px 20px 20px; }
    .fpt-sidebar { flex-basis: auto; }
    .fpt-sidebar-mascot { display: none; }
    .fpt-card {
        flex-basis: calc((100% - (var(--fpt-cols-tablet, 3) - 1) * 16px) / var(--fpt-cols-tablet, 3));
    }
    .fpt-prev { left: 4px; }
    .fpt-next { right: 4px; }
}
@media (max-width: 767px) {
    .fpt-tab-btn { padding: 11px 18px; font-size: 0.875rem; }
    .fpt-panel-inner { padding: 18px; }
    .fpt-sidebar { background-size: 100px auto; }
    .fpt-card {
        flex-basis: calc((100% - (var(--fpt-cols-mobile, 2) - 1) * 12px) / var(--fpt-cols-mobile, 2));
    }
    .fpt-track { gap: 12px; }
    .fpt-prev, .fpt-next { display: none; }
}

/* Du an moi - marquee 2 hang chay nguoc chieu, full-width khong container.
   Doc lap, tai su dung ky thuat marquee giong customer-logos.css (track nhan
   doi + dich chuyen -50% lien tuc bang CSS animation, khong dung JS). */
.row-home.q_du_an_marquee {
    padding: 60px 0;
}
.prjm-wrap {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prjm-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.prjm-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation-timing-function: linear;
    animation-name: prjm-marquee-rtl;
}
.prjm-track:hover {
    animation-play-state: paused;
}
/* Hang 1: chay tu trai sang phai */
.prjm-track--ltr {
    animation-name: prjm-marquee-ltr;
}
/* Hang 2: chay tu phai sang trai */
.prjm-track--rtl {
    animation-name: prjm-marquee-rtl;
}

@keyframes prjm-marquee-rtl {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes prjm-marquee-ltr {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.prjm-card {
    flex: 0 0 calc((100vw - 4 * 16px) / 5);
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
    background: linear-gradient(rgba(255, 255, 255, 0.2) 0%, #fff 100%);
    padding: 12px;
    border: 1px solid #D8E2E6;
}
.prjm-card:hover {
    box-shadow: 0 10px 24px rgba(16, 24, 40, .1);
    transform: translateY(-2px);
    text-decoration: none;
}
.prjm-card__img {
    position: relative;
    width: 100%;
}
.prjm-card__img::before {
    content: '';
    display: block;
    padding-top: 77.5%;
}
.prjm-card__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.prjm-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
}
.prjm-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prjm-card__arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--ivd-brand, #1d52d7);
    background: #eef3fd;
    font-size: 1rem;
    transition: background .2s, color .2s;
}
.prjm-card:hover .prjm-card__arrow {
    background: var(--ivd-brand, #1d52d7);
    color: #fff;
}

@media (max-width: 1199px) {
    .prjm-card { flex-basis: calc((100vw - 3 * 16px) / 4); }
}
@media (max-width: 991px) {
    .prjm-card { flex-basis: calc((100vw - 2 * 16px) / 3); }
}
@media (max-width: 767px) {
    .prjm-wrap { gap: 12px; }
    .prjm-track { gap: 12px; }
    .prjm-card { flex-basis: calc((100vw - 1 * 12px) / 2); }
    
}

/* ====== POPUP CHI TIET (clone doc lap cua .dsp-modal — ID/class rieng vi 2
   module co the cung xuat hien tren 1 trang) ====== */
.prjm-modal { position: fixed; inset: 0; z-index: 99999; display: none !important; align-items: center; justify-content: center; padding: 20px; }
.prjm-modal--open { display: flex !important; }
.prjm-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 20, 40, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.prjm-modal__content { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); display: flex; max-width: 980px; width: 100%; max-height: 88vh; overflow: hidden; animation: prjmPopIn .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes prjmPopIn { from { opacity: 0; transform: scale(.94) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.prjm-modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: inherit; border: none; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: background .2s, transform .2s; }
.prjm-modal__close:hover { background: #fff; transform: scale(1.08); }
.prjm-modal__gallery { flex: 0 0 56%; display: flex; flex-direction: column; background: #f7f7f9; overflow: hidden; }
.prjm-modal__img-wrap { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 16px; }
.prjm-modal__main-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; display: block; transition: opacity .22s ease; user-select: none; }
.prjm-modal__main-img.prjm-fade { opacity: 0; }
.prjm-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 35px; height: 35px; border-radius: 50%; background: rgba(255, 255, 255, .9); border: none; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; font-size: 22px; color: inherit; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transition: background .18s, transform .18s, box-shadow .18s; line-height: 1; }
.prjm-modal__nav:hover { background: #fff; transform: translateY(-50%) scale(1.1); box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
.prjm-modal__prev { left: 5px; }
.prjm-modal__next { right: 5px; }
.prjm-modal__nav--hidden { opacity: 0; pointer-events: none; }
.prjm-modal__counter { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .5px; padding: 3px 10px; border-radius: 20px; pointer-events: none; white-space: nowrap; }
.prjm-modal__thumbs { display: flex; gap: 6px; padding: 10px 16px 16px; overflow-x: auto; flex-shrink: 0; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.prjm-modal__thumbs::-webkit-scrollbar { height: 4px; }
.prjm-modal__thumbs::-webkit-scrollbar-track { background: transparent; }
.prjm-modal__thumbs::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.prjm-modal__thumb { width: 60px; height: 60px; border-radius: 6px; overflow: hidden; cursor: pointer; flex-shrink: 0; border: 2px solid transparent; opacity: .55; transition: opacity .18s, border-color .18s, transform .18s, box-shadow .18s; }
.prjm-modal__thumb:hover { opacity: .85; transform: scale(1.06); }
.prjm-modal__thumb--active { border-color: var(--ivd-brand, #1d52d7); opacity: 1; box-shadow: 0 2px 8px rgba(29, 82, 215, .35); }
.prjm-modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prjm-modal__info { flex: 0 0 44%; min-height: 0; padding: 16px; display: flex; flex-direction: column; overflow-y: auto; }
.prjm-modal__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.prjm-modal__tag { background: #EEF4FF; color: #293F7B; font-size: 0.75rem; padding: 3px 9px; border-radius: 3px; font-weight: 500; }
.prjm-modal__title { font-size: 1.125rem; font-weight: 700; color: #1a1a2e; margin: 0 0 14px;  letter-spacing: -.2px; }
.prjm-modal__excerpt { font-size: 0.875rem; color: #657384; margin: 0 0 16px; flex: 1}
.prjm-modal__divider { border: none; border-top: 2px solid var(--ivd-brand, #1d52d7); margin: 0 0 16px; opacity: .8; }
.prjm-modal__cta { display: inline-flex; align-items: center; gap: 8px; background: var(--ivd-brand, #1d52d7); color: #fff; border: none; border-radius: 50px; padding: 11px 22px; font-size: 0.875rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s, box-shadow .2s; align-self: flex-start; }

.prjm-modal__cta svg { width: 15px; height: 15px; }
.prjm-modal__loading { display: flex; align-items: center; justify-content: center; width: 100%; padding: 60px; color: #94a3b8; font-size: 15px; }
@media (max-width: 767px) {
    .prjm-modal__content { flex-direction: column; max-height: 92vh; border-radius: 8px; }
    .prjm-modal__gallery { flex: none; }
    .prjm-modal__img-wrap { height: 52vw; min-height: 200px; }
    .prjm-modal__info { flex: none; }
    .prjm-modal__thumb { width: 50px; height: 50px; }
}

/* Kien thuc in an - bento 1 anh lon + 4 anh nho, card style clone tu
   .prjm-card (project-marquee.css) — clone rieng (khong dung chung class)
   theo dung nguyen tac moi module doc lap da ap dung xuyen suot session. */

.kb-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas: "big item2 item3" "big item4 item5";
    gap: 16px;
}
.kb-item-0 { grid-area: big; }
.kb-item-1 { grid-area: item2; }
.kb-item-2 { grid-area: item3; }
.kb-item-3 { grid-area: item4; }
.kb-item-4 { grid-area: item5; }

.kb-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(rgba(255, 255, 255, .2) 0%, #fff 100%);
    border: 1px solid #D8E2E6;
    padding: 12px;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.kb-item:hover {
    box-shadow: 0 10px 24px rgba(16, 24, 40, .1);
    transform: translateY(-2px);
    text-decoration: none;
}
/* Ep ty le anh bang ky thuat padding-top (khong dung aspect-ratio de tranh
   loi lech khoang cach khi ket hop voi grid row-span + stretch). LUU Y:
   .kb-item la flex-column, khi bo ::before o item-0 (desktop) thi
   .kb-item__img can flex:1 de choan het khoang trong .kb-item duoc grid
   stretch gian ra — neu khong no se sup ve 0 chieu cao (img ben trong
   position:absolute nen khong tu co chieu cao), lam anh bien mat hoan toan
   va de lai 1 khoang trang lon o duoi tieu de/mo ta. */
.kb-item__img {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}
.kb-item__img::before {
    content: '';
    display: block;
    padding-top: 54.375%; /* khop dung ty le anh cover thuc te 800x435 */
}
@media (min-width: 992px) {
    /* item lon span 2 hang o desktop — bo ep ty le de tu gian lap day dung
       khung 2 hang + gap (gan vuong tuyet doi, khong con khoang trong thua). */
    .kb-item-0 .kb-item__img::before { content: none; }
}
.kb-item__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.kb-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
}
.kb-item__text {
    min-width: 0;
}
.kb-item__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kb-item-0 .kb-item__title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 1rem;
}
.kb-item__desc {
    margin: 6px 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4a4f63;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kb-item__arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--ivd-brand, #1d52d7);
    background: #eef3fd;
    font-size: 1rem;
    transition: background .2s, color .2s;
}
.kb-item:hover .kb-item__arrow {
    background: var(--ivd-brand, #1d52d7);
    color: #fff;
}

/* .kb-small-wrap/.kb-small-track boc 4 item nho — mac dinh "vo hinh"
   (display:contents) de 4 item nho van la con truc tiep cua .kb-grid, dung
   dung grid-area cua tung .kb-item-N nhu khong co gi thay doi o >=576px.
   Chi bien thanh slider that su o < 576px (xem media query ben duoi). */
.kb-small-wrap, .kb-small-track { display: contents; }
.kb-dots { display: none; }

@media (max-width: 991px) {
    .kb-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "big big" "item2 item3" "item4 item5";
    }
    
    .row-home.q_du_an_marquee {padding: 24px 0}
}
@media (max-width: 575px) {
    .kb-grid {
        display: block;
        gap: 0;
    }
    .kb-item-0 { margin-bottom: 12px; }

    /* 4 item nho thanh 1 slider rieng: khong con nam trong grid-area nua —
       chi con dot pagination, khong co nut arrow ngoai (chi arrow rieng cua
       tung card van giu, do la nut mo bai viet chu khong phai dieu huong). */
    .kb-small-wrap {
        display: block;
        overflow: hidden;
        border-radius: 12px;
    }
    .kb-small-track {
        display: flex;
        transition: transform .4s cubic-bezier(.25, .46, .45, .94);
        will-change: transform;
    }
    .kb-small-track .kb-item {
        flex: 0 0 100%;
        width: 100%;
    }
    .kb-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 14px;
    }
    .kb-dot {
        width: 6px;
        height: 6px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: #cfe0fa;
        cursor: pointer;
        transition: background .2s, transform .2s;
    }
    .kb-dot--active {
        background: var(--ivd-brand, #1d52d7);
    transform: scale(1.2);
    width: 16px; border-radius: 50px;

    }
}
