/* ==========================================================================
   mobile-v2.css  -  GIAO DIEN DIEN THOAI (< 768px) cho CanhQuan.net
   --------------------------------------------------------------------------
   TOAN BO thiet ke mobile nam trong file nay. Muon go bo hoan toan chi can
   xoa 1 dong <link> trong Template/Site.Master.
   Nap SAU CUNG trong <head> nen thang moi luat cung do uu tien.
   Tai lieu: _docs/KIEN-TRUC.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BIEN THIET KE (design tokens) - sua mau/khoang cach thi sua o day
   -------------------------------------------------------------------------- */
:root {
    /* Mau nen & be mat */
    --cq-bg: #f7f8f9;              /* nen trang - xam rat nhat */
    --cq-surface: #ffffff;         /* nen card */
    --cq-placeholder: #f0f2f4;     /* nen cho anh chua tai xong (trung tinh) */

    /* Duong ke - MANH nhung van doc duoc hinh khoi */
    --cq-hairline: rgba(18, 56, 91, .07);
    --cq-hairline-strong: rgba(18, 56, 91, .12);

    /* Chu */
    --cq-text: #14212e;            /* chu chinh */
    --cq-text-2: #6b7a89;          /* chu phu */
    --cq-text-3: #9aa7b4;          /* chu mo */

    /* MOT mau nhan duy nhat - chi dung cho hanh dong/trang thai */
    --cq-accent: #5f8c3a;
    --cq-accent-ink: #14212e;

    /* Bo goc */
    --cq-r-card: 16px;
    --cq-r-pill: 999px;

    /* Thang khoang cach - CHI dung cac gia tri nay */
    --cq-1: 4px;
    --cq-2: 8px;
    --cq-3: 12px;
    --cq-4: 16px;
    --cq-5: 24px;
    --cq-6: 32px;

    /* Chieu cao thanh dieu huong duoi */
    --cq-navbar-h: 56px;
}

/* Mac dinh AN het cac thanh phan mobile (desktop khong thay gi) */
.cq-bottom-nav,
.cq-fab,
.cq-mnav,
.cq-langmenu,
.home-nav-arrow,
.cq-sponsored,
/* ten rut gon chi dung cho dien thoai - may tinh hien ten day du */
.home-standard-card__meta--short {
    display: none;
}

.cq-mnav-trigger,
.cq-icon-btn {
    display: none !important;
}

/* ==========================================================================
   BANNER TAI TRO (HTML/CSS)  -  AP DUNG TREN MOI MAN HINH
   --------------------------------------------------------------------------
   Thay cho banner anh cu (lightSlider). Chu la HTML nam tren lop nen,
   KHONG nuong vao anh -> khong bao gio bi cat, luon sac net.
   Nen hien la MAU THUAN. Muon dung anh: them vao .cqb__bg
       background-image:url(...); background-size:cover; background-position:center;
   Markup nam trong V2Home.aspx, phan chay vong nam trong khoi $(function(){...}).
   ========================================================================== */
.cqb {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 0;
    isolation: isolate;
}

.cqb__slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s;
}

.cqb__slide.is-on {
    opacity: 1;
    visibility: visible;
}

.cqb__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
}

/* Hoa van cham mo troi cham -> tao chieu sau ma nhe tenh (0 KB) */
.cqb__veil {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: .6;
}

.cqb__slide.is-on .cqb__veil {
    animation: cqbDrift 26s linear infinite;
}

@keyframes cqbDrift {
    to { background-position: 180px 90px; }
}

/* Quang sang tho nhe */
.cqb__glow {
    position: absolute;
    top: -25%;
    right: -10%;
    z-index: 1;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
}

.cqb__slide.is-on .cqb__glow {
    animation: cqbBreathe 9s ease-in-out infinite;
}

@keyframes cqbBreathe {
    0%, 100% { transform: scale(1); opacity: .42; }
    50% { transform: scale(1.18); opacity: .62; }
}

.cqb__body {
    display: flex;
    position: relative;
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    /* Le trong ROI RONG de chu khong bi sat mep man hinh.
       Banner tren may tinh la full-bleed (rong 100vw) nen can le lon. */
    padding: 0 clamp(24px, 6vw, 110px);
}

.cqb__body--right {
    align-items: flex-end;
    text-align: right;
}

/* Tung dong chu bay len lan luot */
.cqb-up {
    opacity: 0;
    transform: translateY(14px);
}

.cqb__slide.is-on .cqb-up {
    animation: cqbUp .7s cubic-bezier(.2, .7, .3, 1) forwards;
}

.cqb__slide.is-on .cqb-d1 { animation-delay: .10s; }
.cqb__slide.is-on .cqb-d2 { animation-delay: .22s; }
.cqb__slide.is-on .cqb-d3 { animation-delay: .34s; }
.cqb__slide.is-on .cqb-d4 { animation-delay: .46s; }

@keyframes cqbUp {
    to { opacity: 1; transform: none; }
}

/* Nhan "Duoc tai tro" */
.cqb__ad {
    display: inline-flex;
    align-items: center;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 25, 35, .42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, .95);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.cqb__ad--dark {
    background: rgba(15, 25, 35, .14);
    color: rgba(20, 33, 46, .75);
}

/* Nut hanh dong */
.cqb__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 20px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
    color: #14212e;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.cqb__cta:hover,
.cqb__cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    color: #14212e;
    text-decoration: none;
}

.cqb__cta i {
    font-style: normal;
    transition: transform .18s ease;
}

.cqb__cta:hover i {
    transform: translateX(3px);
}

.cqb__cta--ink {
    background: #14212e;
    color: #ffffff;
}

.cqb__cta--ink:hover,
.cqb__cta--ink:focus {
    color: #ffffff;
}

/* Dieu khien: cham tron, thanh tien trinh, mui ten */
.cqb__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;
    z-index: 4;
}

/* Vien mo quanh cham -> doc duoc tren CA nen sang (SGL vang) lan nen toi.
   KHONG dat luat rieng theo mau banner: cham nam ngoai slide nen khong biet
   slide nao dang bat, se bi sai mau. */
.cqb__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 1px rgba(20, 33, 46, .14);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.cqb__dot.is-on {
    width: 22px;
    border-radius: 999px;
    background: #ffffff;
}

.cqb__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 4;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, .2);
}

.cqb__bar i {
    display: block;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, .9);
}

.cqb.is-playing .cqb__bar i {
    animation: cqbBar 6s linear forwards;
}

@keyframes cqbBar {
    to { width: 100%; }
}

.cqb__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 25, 35, .32);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease;
}

.cqb:hover .cqb__nav {
    opacity: 1;
}

.cqb__nav--prev { left: 10px; }
.cqb__nav--next { right: 10px; }

/* --- 1. TRA LA (xanh la) --- */
.cqb--leaf .cqb__bg { background: linear-gradient(135deg, #4e7d2f 0%, #2f5a1c 100%); }
.cqb--leaf .cqb__glow { background: #8fc45c; }

/* --- 2. CONG DONG (xanh ngoc thuong hieu) --- */
.cqb--teal .cqb__bg { background: linear-gradient(135deg, #0d7d6c 0%, #0a6156 100%); }
.cqb--teal .cqb__glow { background: #31b39c; }

/* --- 3. SGL (vang thuong hieu, chu dam mau) --- */
.cqb--sgl .cqb__bg { background: linear-gradient(135deg, #f5c518 0%, #e0ac00 100%); }
.cqb--sgl .cqb__glow { background: #fff08a; }

.cqb--sgl .cqb__veil {
    background-image: radial-gradient(rgba(20, 33, 46, .10) 1px, transparent 1px);
    opacity: .45;
}


/* --- Kieu chu dung chung --- */
.cqb__t1 {
    margin: 0;
    color: #ffffff;
    font-family: 'Muli', 'Montserrat', sans-serif;
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 400;
    line-height: 1;
}

.cqb__t2 {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(13px, 1.7vw, 19px);
    font-style: italic;
}

.cqb__t3 {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .72);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
}

/* Cong dong */
.cqb__t1s {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(10px, 1.4vw, 15px);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cqb__t2b {
    margin: 4px 0 0;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.05;
}

.cqb__t2b em {
    color: #f5b731;
    font-style: normal;
}

.cqb__t3g {
    margin: 4px 0 0;
    color: #f5b731;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(12px, 1.6vw, 17px);
    font-weight: 700;
}

/* SGL - chu dam mau tren nen vang */
.cqb--sgl .cqb__t1 {
    color: #2a2205;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 300;
    letter-spacing: .08em;
}

.cqb__t2s {
    margin: 7px 0 0;
    color: rgba(42, 34, 5, .72);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(9px, 1.2vw, 13px);
    font-weight: 600;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.cqb--sgl .cqb__t3 {
    color: rgba(42, 34, 5, .6);
    font-weight: 600;
}

/* ==========================================================================
   GIAO DIEN "APP": DIEN THOAI + MAY TINH BANG  (<= 1279px)
   --------------------------------------------------------------------------
   Bao gom ca iPad / iPad Pro. Ly do: bo cuc may tinh cu bi VO o khoang
   768-1024px (logo de len menu, thua khoang trang). Dung chung mot bo cuc
   app cho toan bo dien thoai + may tinh bang, CHI KHAC SO COT (xem cuoi file).
   Tu 1280px tro len moi dung bo cuc may tinh.
   ========================================================================== */
@media (max-width: 1279px) {

    /* ----------------------------------------------------------------------
       2. NEN TRANG + CHU
       ---------------------------------------------------------------------- */
    body {
        background: var(--cq-bg);
        /* chua cho thanh nav duoi khoi che noi dung (footer da an) */
        padding-bottom: calc(var(--cq-navbar-h) + var(--cq-3));
        font-family: 'Montserrat', 'Muli', sans-serif;
        color: var(--cq-text);
    }

    /* An footer - toan bo noi dung do da nam trong bang menu 3 gach */
    #footPage {
        display: none !important;
    }

    /* ----------------------------------------------------------------------
       3. HEADER:  [logo]  ...  [tim kiem] [VI] [3 gach]
       ---------------------------------------------------------------------- */
    #headPage {
        background: var(--cq-surface);
        border-bottom: 1px solid var(--cq-hairline);
    }

    /* Site.Master co khoi @media(min-width:768px) dat header thanh LUOI 4 cot
       full-bleed voi le hai ben 120px. Tu 768-1279px khoi do van chay va se
       pha bo cuc app -> phai TRA VE tat ca cac thuoc tinh do. */
    #headPage .page-width-2 {
        display: flex;
        align-items: center;
        gap: var(--cq-2);
        flex-wrap: nowrap;
        width: auto;
        max-width: none;
        min-height: var(--cq-navbar-h);
        margin-left: auto;
        margin-right: auto;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: var(--cq-3);
        padding-right: var(--cq-3);
        grid-template-columns: none;
        column-gap: 0;
    }

    /* Menu chinh da chuyen xuong thanh duoi */
    #headPage #mainMenu {
        display: none !important;
    }

    #headPage .page-width-2 #logo.cq-logo {
        order: 1;
        display: flex;
        align-items: center;
        gap: var(--cq-2);
        flex: 0 0 auto;
        margin: 0;
        margin-right: auto;
        float: none;
    }

    /* Ben canh logo hien 2 dong IN HOA: "KET NOI" / "CUNG PHAT TRIEN".
       An dong chu CANHQUAN.NET tren dien thoai cho do chat (con 3 nut icon). */
    /* align-items:flex-start + text-align:left -> 2 dong CAN LE TRAI,
       khong bi canh giua so le nhau (dong ngan nam giua dong dai). */
    #headPage .page-width-2 #logo.cq-logo .cq-logo__text {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-height: 0;
        gap: 1px;
        text-align: left;
    }

    #headPage .page-width-2 #logo.cq-logo .text {
        display: none;
    }

    #headPage .page-width-2 #logo.cq-logo .cq-logo__tagline {
        display: block;
        margin: 0;
        color: var(--cq-text);
        font-family: 'Montserrat', sans-serif;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: .02em;
        text-transform: uppercase;
    }

    #headPage .page-width-2 #logo.cq-logo .cq-logo__l1,
    #headPage .page-width-2 #logo.cq-logo .cq-logo__l2 {
        display: block;
        text-align: left;
        white-space: nowrap;
    }

    #headPage .page-width-2 #logo.cq-logo img {
        width: 34px;
        height: 34px;
    }

    /* O tim kiem An di - chi hien khi bam icon kinh lup (ham openSearch() co san) */
    #headPage .page-width-2 .form-search.form-top {
        display: none;
    }

    #headPage .page-width-2 .form-search.form-top.open {
        display: block;
    }

    /* Nhom icon ben phai */
    #headPage .page-width-2 .menu-top.fr {
        order: 3;
        display: flex;
        align-items: center;
        gap: var(--cq-1);
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        float: none;
        list-style: none;
    }

    /* Nut icon dung chung (kinh lup / VI / 3 gach) */
    #headPage .page-width-2 .menu-top.fr .cq-icon-btn {
        display: inline-flex !important;
        position: relative;
        margin: 0;
        padding: 0;
    }

    /* 3 nut icon: O VUONG 36x36 BANG NHAU, canh giua ca ngang lan doc.
       Khoa cung width/height (khong dung min-) de khong nut nao to hon nut nao. */
    #headPage .page-width-2 .menu-top.fr .cq-icon-btn > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: var(--cq-r-pill);
        color: var(--cq-text);
        font-size: 16px;
        line-height: 1;
        text-decoration: none;
        vertical-align: middle;
        cursor: pointer;
    }

    /* Ep MOI phan tu con (icon <i> LAN chu "VI" trong <span>) vao CUNG MOT
       khung 18x18 -> ba nut thang hang tuyet doi.
       Neu de chu "VI" tran (khong boc span) thi no la text thuan, canh theo
       duong co so cua chu nen se LECH so voi 2 icon. */
    #headPage .page-width-2 .menu-top.fr .cq-icon-btn > a > i,
    #headPage .page-width-2 .menu-top.fr .cq-icon-btn > a > span {
        display: block;
        width: 36px;
        height: 36px;
        font-size: 16px;
        line-height: 36px;
        text-align: center;
        /* THU PHAM lam icon lech: Reponsive.css co
           ".menu-top li a i{position:relative; top:5px}" trong @media max-width:500px
           -> day icon tut xuong 5px so voi chu "VI". Phai tra ve 0. */
        position: static;
        top: auto;
    }

    /* Chu "VI" nho hon icon mot chut cho can thi giac */
    #headPage .page-width-2 .menu-top.fr .cq-icon-btn > a > .cq-lang-code {
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .02em;
    }

    #headPage .page-width-2 .menu-top.fr .cq-icon-btn > a:hover,
    #headPage .page-width-2 .menu-top.fr .cq-icon-btn > a:focus {
        color: var(--cq-text);
        text-decoration: none;
        outline: none;
    }

    /* Nut ngon ngu hien chu "VI" thay vi icon */
    #headPage .page-width-2 .menu-top.fr .cq-icon-btn--lang > a {
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .02em;
    }

    /* KHACH chua dang nhap: an het nut cu, chi chua lai 3 nut icon.
       !! Chi ap cho .auth-guest - neu ap ca cho nguoi DA dang nhap thi ho
       se mat avatar / chuong thong bao / menu tai khoan. */
    #headPage .page-width-2 .menu-top.fr.auth-guest > li:not(.cq-icon-btn) {
        display: none !important;
    }

    /* --- Bang xo xuong cua nut VI (ngon ngu + che do toi) --- */
    .cq-langmenu {
        display: block;
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        z-index: 1300;
        min-width: 178px;
        padding: var(--cq-1) 0;
        border: 1px solid var(--cq-hairline-strong);
        border-radius: var(--cq-3);
        background: var(--cq-surface);
        box-shadow: 0 10px 28px rgba(18, 56, 91, .14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity .16s ease, transform .16s ease, visibility .16s;
    }

    .cq-icon-btn--lang.is-open .cq-langmenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .cq-langmenu__item {
        display: flex;
        align-items: center;
        gap: var(--cq-3);
        padding: var(--cq-3) var(--cq-4);
        color: var(--cq-text);
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    .cq-langmenu__item i {
        width: 16px;
        color: var(--cq-text-2);
        font-size: 14px;
        text-align: center;
    }

    /* ----------------------------------------------------------------------
       4. THANH LOC (chip) + mui ten luot
       ---------------------------------------------------------------------- */
    .home-quick-nav {
        padding: var(--cq-2) 30px var(--cq-2);
        background: var(--cq-bg);
        border-bottom: 1px solid var(--cq-hairline);
        box-shadow: none;
    }

    .home-quick-nav .menu {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        gap: var(--cq-2);
        width: auto;
        max-width: none;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .home-quick-nav .menu::-webkit-scrollbar {
        display: none;
    }

    .home-quick-nav .menu .item {
        padding: 0;
    }

    /* Bo nut "+" o dau thanh loc - thanh nay CHI de LOC.
       Tao bai da co nut tron goc duoi phai.
       CHI an tren mobile: desktop khong co nut tron nen van phai giu nut "+". */
    .home-quick-nav .menu .item:first-child {
        display: none !important;
    }

    /* An thanh "Tao bai viet moi" (ke ca avatar) va nut gio hang */
    .home-quick-nav .create,
    .home-quick-nav .wrap-link-store {
        display: none !important;
    }

    /* Chip loc kieu app: khong vien, nen xam rat nhat; dang chon = nen dam chu trang */
    /* Chip loc: co chu bang dung ten nguoi dang (11px) cho khoi lan at noi dung */
    .home-quick-nav .cate-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 26px;
        padding: 0 10px;
        border: 0;
        border-radius: var(--cq-r-pill);
        background: #eceff2;
        color: var(--cq-text-2);
        font-family: 'Montserrat', sans-serif;
        font-size: 11px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
        transition: background-color .15s ease, color .15s ease;
    }

    .home-quick-nav .cate-menu:hover,
    .home-quick-nav .cate-menu:focus {
        color: var(--cq-text);
        text-decoration: none;
        outline: none;
    }

    .home-quick-nav .cate-menu.home-filter-btn.is-active {
        background: var(--cq-accent-ink);
        color: #ffffff;
        font-weight: 600;
    }

    /* Mui ten < > luot thanh loc khi qua nhieu muc */
    .home-nav-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        z-index: 3;
        width: 24px;
        height: 24px;
        border: 1px solid var(--cq-hairline-strong);
        border-radius: 50%;
        background: var(--cq-surface);
        color: var(--cq-text);
        font-size: 10px;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
        transform: translateY(-50%);
        transition: opacity .18s ease;
    }

    .home-nav-arrow--prev { left: 4px; }
    .home-nav-arrow--next { right: 4px; }

    .home-nav-arrow.is-hidden {
        opacity: 0;
        pointer-events: none;
    }

    /* ----------------------------------------------------------------------
       5. LUOI BAI VIET - 2 cot deu nhau
       ---------------------------------------------------------------------- */
    /* V2Home.aspx co khoi @media(min-width:768px) keo khung noi dung ra
       full-bleed voi le 120px -> tra ve binh thuong cho bo cuc app. */
    .home-content-shell {
        width: auto;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: var(--cq-3) var(--cq-3) 0;
    }

    /* So cot mac dinh = 2 (dien thoai). Cac muc lon hon xem cuoi file. */
    .home-content-shell .home-test-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* MOI HANG CAO BANG NHAU - uu tien de nhin, de luot */
        grid-auto-rows: 1fr;
        grid-auto-flow: dense;
        gap: var(--cq-3);
        clear: both;
        margin: 0;
    }

    .home-content-shell .home-test-row .item-3,
    .home-content-shell .home-test-row .item-4 {
        width: auto;
        height: 100%;
        float: none;
        margin-bottom: 0;
    }

    /* MOI card cung 1 co - bo card rong 2 cot cho dong bo */
    .home-content-shell .home-test-row .item-wide {
        grid-column: span 1;
    }

    .home-content-shell .home-test-row .inner-item {
        height: 100%;
        margin: 0;
    }

    /* ----------------------------------------------------------------------
       6. CARD - vien manh, khong do bong, anh vuong
       ---------------------------------------------------------------------- */
    /* Card LAP DAY o luoi -> moi card trong cung hang cao bang nhau.
       Phai liet ke ca .item-wide vi CSS nen (home-standard-card.js) dat
       ".item-wide .home-standard-card{height:364px}" - do uu tien CAO HON
       ".home-standard-card" nen neu khong ghi de, card do se dai hon o vuong
       va lo goc bo ben trong. */
    .home-standard-card,
    .item-wide .home-standard-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 0;
        border: 1px solid var(--cq-hairline);
        border-radius: var(--cq-r-card);
        background: var(--cq-surface);
        box-shadow: none;
        overflow: hidden;
    }

    /* Anh VUONG - trung gian cho ca anh ngang lan doc */
    .home-standard-card__media-wrap,
    .item-wide .home-standard-card__media-wrap {
        display: block;
        position: relative;
        flex: 0 0 auto;
        min-height: 0;
        margin: 0;
    }

    .home-standard-card__media,
    .item-wide .home-standard-card__media {
        display: block;
        position: relative;
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
        /* bo goc bo ben trong - vien ngoai cua card da lo goc roi */
        border-radius: 0;
        background-color: var(--cq-placeholder);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    /* Lop phu rat nhe de hoa cac anh chat luong khac nhau - 0 KB, thuan CSS */
    .home-standard-card__media:after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .16) 100%);
        pointer-events: none;
    }

    /* Tim / binh luan: giu o hang duoi cung voi tac gia, chi lam nho va nhat lai.
       KHONG dua len tren anh vi phai doi cau truc HTML dung chung voi desktop. */
    .home-standard-card__icons {
        display: flex;
        align-items: center;
        gap: var(--cq-2);
        flex: 0 0 auto;
        margin-left: auto;
        padding: 0;
        color: var(--cq-text-3);
    }

    .home-standard-card__icon,
    .home-standard-card__icon:hover {
        gap: 3px;
        color: var(--cq-text-3);
        font-size: 11px;
        font-weight: 500;
        text-decoration: none;
    }

    .home-standard-card__icon .far,
    .home-standard-card__icon .fas {
        font-size: 12px;
    }

    /* Phan chu duoi anh: tieu de + tac gia (1 hang) */
    /* Phan chu HUT phan con lai -> bu chenh lech, cac card cao bang nhau */
    .home-standard-card__body,
    .item-wide .home-standard-card__body {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: var(--cq-2);
        min-height: 0;
        padding: var(--cq-3);
        background: transparent;
    }

    .home-standard-card__title,
    .item-wide .home-standard-card__title {
        display: -webkit-box;
        /* LUON chua cho 2 dong - tieu de 1 dong cung khong lam card ngan lai */
        min-height: 2.7em;
        max-height: 2.7em;
        color: var(--cq-text);
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.35;
        text-transform: none;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        /* cat theo TU, khong cat giua chu */
        word-break: normal;
        overflow-wrap: break-word;
    }

    .home-standard-card__meta-row {
        gap: var(--cq-2);
        min-height: 0;
        margin: 0;
    }

    .home-standard-card__author {
        gap: 6px;
        max-width: 100%;
    }

    .home-standard-card__author-avatar {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        background-color: var(--cq-placeholder);
    }

    .home-standard-card__meta {
        color: var(--cq-text-3);
        font-size: 11px;
        font-weight: 500;
    }

    /* Ten nguoi dang: dien thoai chi hien CHU DAU ("Bao Dam" -> "Bao").
       Ban day du van nam trong HTML (an di) de may tinh dung. */
    .home-standard-card__author > .home-standard-card__meta:not(.home-standard-card__meta--short),
    .home-standard-card__question-author > .home-standard-card__meta:not(.home-standard-card__meta--short) {
        display: none;
    }

    .home-standard-card__meta--short {
        display: block;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* div dem thua giua header va thanh loc (xem V2Home.aspx) */
    .cq-hide-mobile {
        display: none !important;
    }

    /* ----------------------------------------------------------------------
       7. CARD HOI - DAP  -  "khu vui choi" nhieu mau nhung cung mot he
       Hinh khoi Y HET card thuong, chi khac ruot mau.
       8 mau cung do tuoi / do dam -> dung canh nhau khong choi.
       Mau duoc gan theo thu tu tu V2Home.aspx (bien --home-standard-card-bg)
       ---------------------------------------------------------------------- */
    .item-4.card-type-question .home-standard-card {
        height: 100%;
        padding: 0;
        border-color: rgba(0, 0, 0, .06);
        background: var(--cq-surface);
    }

    /* Card Hoi-Dap KHONG co phan chu duoi anh, nen neu de o mau dung o hinh
       vuong thi card se THAP HON cac card khac. Cho o mau KEO DAI HET chieu
       cao card -> bang dung cac card thuong, va cau hoi co them cho tho. */
    .item-4.card-type-question .home-standard-card__media-wrap {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        margin: 0;
    }

    .item-4.card-type-question .home-standard-card__media {
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        border-radius: 0;
    }

    /* O mau phai LA FLEX CHILD lap day media-wrap, va ben trong dung
       space-between de CAU HOI o TREN - TEN NGUOI HOI + tim/binh luan o DAY DAY.
       Neu khong dat flex:1 1 auto thi o mau chi cao bang noi dung, chan se
       dinh ngay duoi cau hoi va thua mot mang mau trong o duoi. */
    .home-standard-card__media--question {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: var(--cq-3);
        background-image: none !important;
    }

    .home-standard-card__media--question .home-standard-card__media-question-title {
        flex: 0 1 auto;
        min-height: 0;
    }

    .home-standard-card__question-footer {
        flex: 0 0 auto;
        margin-top: auto;
    }

    /* chuyen sac rat nhe cung mot tong - nhin "dat" hon mau phang li */
    .home-standard-card__media--question:after {
        box-shadow: none;
        background: linear-gradient(to bottom, rgba(255, 255, 255, .06) 0%, rgba(0, 0, 0, .10) 100%);
    }

    .home-standard-card__media-question-title {
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        -webkit-line-clamp: 5;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .home-standard-card__question-footer {
        position: relative;
        z-index: 2;
        gap: var(--cq-2);
        min-height: 0;
    }

    .home-standard-card__question-author {
        gap: 6px;
    }

    .home-standard-card__question-author .home-standard-card__author-avatar {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        background-color: rgba(255, 255, 255, .3);
    }

    .home-standard-card__question-author .home-standard-card__meta {
        color: rgba(255, 255, 255, .92);
        font-size: 11px;
    }

    /* card Hoi-Dap: icon nam trong hang chan, khong noi tren anh */
    .item-4.card-type-question .home-standard-card__icons {
        position: static;
        padding: 0;
        border-radius: 0;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .item-4.card-type-question .home-standard-card__body {
        display: none;
    }

    /* ----------------------------------------------------------------------
       8. CARD BANNER TAI TRO  (gia dang card, nam ngay duoi thanh loc)
       ---------------------------------------------------------------------- */
    .wrap-banner-main {
        /* Reponsive.css:936 dat display:none cho banner o <=560px.
           Phai ghi de lai vi banner nay gio la mot CARD trong dong bai viet. */
        display: block !important;
        position: relative;
        width: auto;
        max-width: none;
        margin: 0 var(--cq-3) var(--cq-3);
        border: 1px solid var(--cq-hairline);
        border-radius: var(--cq-r-card);
        background: var(--cq-surface);
        overflow: hidden;
    }

    /* Chieu cao banner tren dien thoai */
    .wrap-banner-main .cqb {
        height: 170px;
    }

    /* Chua cho nhan "Duoc tai tro" (goc tren trai) va hang cham (duoi)
       de chu KHONG bi de len. Banner mobile thap nen rat de dinh nhau. */
    .cqb__body {
        padding-top: 34px;
        padding-bottom: 24px;
    }

    .cqb__ad {
        top: 10px;
        left: 10px;
    }

    /* Khung mobile chi cao 170px -> phai cat bot cho vua, neu khong NUT se
       de len hang cham o day. An dong dia chi web (da co nut roi, thua). */
    .cqb__t3 {
        display: none;
    }

    .cqb__t1 {
        font-size: 30px;
    }

    .cqb--sgl .cqb__t1 {
        font-size: 30px;
    }

    .cqb__t2b {
        font-size: 21px;
    }

    .cqb__t2,
    .cqb__t2s {
        margin-top: 5px;
    }

    .cqb__cta {
        margin-top: 10px;
        padding: 9px 15px;
        font-size: 12px;
    }

    /* Khung mobile thap -> khong du cho ca NUT lan HANG CHAM o day.
       Chuyen cham len GOC TREN PHAI (doi dien nhan "Duoc tai tro" ben trai)
       de phan day danh tron cho nut bam. */
    .cqb__dots {
        top: 13px;
        right: 12px;
        bottom: auto;
        left: auto;
        justify-content: flex-end;
    }

    .cqb__body {
        padding-bottom: 14px;
    }

    /* Nhan "Duoc tai tro" - nho, mo, khong pha bo cuc */
    .cq-sponsored {
        display: inline-flex;
        align-items: center;
        position: absolute;
        top: var(--cq-2);
        left: var(--cq-2);
        z-index: 5;
        padding: 4px var(--cq-2);
        border-radius: var(--cq-r-pill);
        background: rgba(15, 25, 35, .55);
        color: rgba(255, 255, 255, .95);
        font-family: 'Montserrat', sans-serif;
        font-size: 10px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: .01em;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        pointer-events: none;
    }

    /* ----------------------------------------------------------------------
       9. THANH DIEU HUONG DUOI - CHI ICON
       ---------------------------------------------------------------------- */
    .cq-bottom-nav {
        display: flex;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        background: var(--cq-surface);
        border-top: 1px solid var(--cq-hairline);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .cq-bottom-nav__item {
        display: flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: var(--cq-navbar-h);
        color: var(--cq-text-3);
        text-decoration: none;
    }

    .cq-bottom-nav__item i {
        display: block;
        font-size: 21px;
        line-height: 1;
    }

    .cq-bottom-nav__item.is-current {
        color: var(--cq-accent);
    }

    /* Chu bi an nhung VAN GIU cho trinh doc man hinh - dung doi thanh display:none */
    .cq-bottom-nav__item > span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        border: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    /* ----------------------------------------------------------------------
       10. NUT TRON TAO BAI VIET (noi goc duoi phai)
       ---------------------------------------------------------------------- */
    .cq-fab {
        display: block;
        position: fixed;
        right: var(--cq-4);
        bottom: calc(var(--cq-navbar-h) + var(--cq-4));
        z-index: 1000;
    }

    .cq-fab__backdrop {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: -1;
        background: rgba(15, 25, 35, .20);
    }

    .cq-fab.is-open .cq-fab__backdrop {
        display: block;
    }

    .cq-fab__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--cq-accent);
        box-shadow: 0 6px 18px rgba(20, 33, 46, .24);
        color: #ffffff;
        font-size: 21px;
        line-height: 1;
        cursor: pointer;
        transition: background-color .2s ease;
    }

    .cq-fab__btn i {
        line-height: 1;
        transition: transform .25s ease;
    }

    .cq-fab.is-open .cq-fab__btn {
        background: var(--cq-accent-ink);
    }

    .cq-fab.is-open .cq-fab__btn i {
        transform: rotate(45deg);
    }

    .cq-fab__menu {
        display: none;
        position: absolute;
        right: 0;
        bottom: 64px;
        flex-direction: column;
        align-items: flex-end;
        gap: var(--cq-2);
    }

    .cq-fab.is-open .cq-fab__menu {
        display: flex;
    }

    .cq-fab__item {
        display: flex;
        align-items: center;
        gap: var(--cq-2);
        padding: 10px var(--cq-4);
        border: 1px solid var(--cq-hairline);
        border-radius: var(--cq-r-pill);
        background: var(--cq-surface);
        box-shadow: 0 4px 14px rgba(20, 33, 46, .14);
        color: var(--cq-text);
        font-family: 'Montserrat', sans-serif;
        font-size: 13px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    .cq-fab__item i {
        width: 16px;
        color: var(--cq-accent);
        font-size: 14px;
        text-align: center;
    }

    /* ----------------------------------------------------------------------
       11. NUT 3 GACH + BANG MENU TRUOT (khach chua dang nhap)
       ---------------------------------------------------------------------- */
    .cq-mnav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1200;
        visibility: hidden;
        pointer-events: none;
    }

    .cq-mnav.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .cq-mnav__backdrop {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(15, 25, 35, .35);
        opacity: 0;
        transition: opacity .22s ease;
    }

    .cq-mnav.is-open .cq-mnav__backdrop {
        opacity: 1;
    }

    .cq-mnav__panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 84%;
        max-width: 320px;
        padding: 0 var(--cq-4) var(--cq-5);
        background: var(--cq-surface);
        box-shadow: -6px 0 24px rgba(20, 33, 46, .16);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform .24s ease;
    }

    .cq-mnav.is-open .cq-mnav__panel {
        transform: translateX(0);
    }

    .cq-mnav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 2;
        margin: 0 calc(-1 * var(--cq-4)) var(--cq-1);
        padding: var(--cq-4);
        border-bottom: 1px solid var(--cq-hairline);
        background: var(--cq-surface);
        color: var(--cq-text);
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-transform: none;
    }

    .cq-mnav__close {
        color: var(--cq-text-2);
        font-size: 17px;
        line-height: 1;
        cursor: pointer;
    }

    .cq-mnav__link {
        display: flex;
        align-items: center;
        gap: var(--cq-3);
        padding: var(--cq-3) 2px;
        border-bottom: 1px solid var(--cq-hairline);
        color: var(--cq-text);
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
    }

    .cq-mnav__link i {
        width: 18px;
        color: var(--cq-accent);
        font-size: 14px;
        text-align: center;
    }

    .cq-mnav__title {
        margin: var(--cq-5) 0 var(--cq-2);
        color: var(--cq-text);
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .cq-mnav__info {
        color: var(--cq-text-2);
        font-size: 13px;
        line-height: 1.6;
        word-break: break-word;
    }

    .cq-mnav__info img {
        max-width: 100%;
        height: auto;
    }

    .cq-mnav__group {
        margin-top: var(--cq-4);
    }

    .cq-mnav__grouptitle {
        margin-bottom: var(--cq-1);
        color: var(--cq-text);
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .cq-mnav__group ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .cq-mnav__group ul li a {
        display: block;
        padding: var(--cq-2) 0;
        color: var(--cq-text-2);
        font-size: 13px;
        text-decoration: none;
    }
}

/* ==========================================================================
   SO COT THEO BE NGANG  (chi doi so cot, moi thu khac giu nguyen)
   ========================================================================== */

/* May tinh bang doc / dien thoai lon: 3 cot */
@media (min-width: 600px) and (max-width: 899px) {
    .home-content-shell {
        padding-left: var(--cq-4);
        padding-right: var(--cq-4);
    }

    .home-content-shell .home-test-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--cq-4);
    }

    .wrap-banner-main {
        margin: 0 var(--cq-4) var(--cq-4);
    }

    .home-quick-nav {
        padding-left: 36px;
        padding-right: 36px;
    }
}

/* iPad doc: 4 cot */
@media (min-width: 900px) and (max-width: 1099px) {
    .home-content-shell {
        padding-left: var(--cq-5);
        padding-right: var(--cq-5);
    }

    .home-content-shell .home-test-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--cq-4);
    }

    .wrap-banner-main {
        margin: 0 var(--cq-5) var(--cq-4);
    }

    .home-quick-nav {
        padding-left: 44px;
        padding-right: 44px;
    }
}

/* iPad Pro / may tinh bang lon: 5 cot */
@media (min-width: 1100px) and (max-width: 1279px) {
    .home-content-shell {
        padding-left: var(--cq-6);
        padding-right: var(--cq-6);
    }

    .home-content-shell .home-test-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: var(--cq-4);
    }

    .wrap-banner-main {
        margin: 0 var(--cq-6) var(--cq-4);
    }

    .home-quick-nav {
        padding-left: 52px;
        padding-right: 52px;
    }
}

/* Tren may tinh bang, banner cao hon mot chut cho can doi */
@media (min-width: 600px) and (max-width: 1279px) {
    .wrap-banner-main .cqb {
        height: 210px;
    }
}

/* ==========================================================================
   MAY TINH (>= 1280px)
   --------------------------------------------------------------------------
   KHAC voi dien thoai/may tinh bang: may tinh CO CA card TO va card NHO
   (.item-wide rong gap doi) de luoi co nhip dieu. Nhung KIEU DANG thi dong bo:
   cung vien manh, cung bo goc, cung cach xu ly anh, va cung chieu cao hang.

   Co che cao bang nhau:
     - Card NHO: anh VUONG (co dinh) + phan chu hut cho thua
     - Card TO : phan chu cao tu nhien + ANH hut cho thua
   => hai kieu ngua nhau nhung tong chieu cao luon bang nhau.
   ========================================================================== */
@media (min-width: 1280px) {
    /* --- Chu logo: "Ket noi cung phat trien" GIU 1 HANG tren may tinh
           (chi xuong 2 dong o dien thoai/may tinh bang) --- */
    #headPage #logo.cq-logo .cq-logo__tagline {
        white-space: nowrap;
    }

    #headPage #logo.cq-logo .cq-logo__l1,
    #headPage #logo.cq-logo .cq-logo__l2 {
        display: inline;
    }

    /* --- CARD TO + CARD NHO ---
       Giu card rong 2 cot de luoi co nhip dieu, NHUNG kieu dang van dong bo
       (cung vien, cung bo goc, cung cach xu ly anh) va cung chieu cao hang. */
    .home-content-shell .home-test-row .item-wide {
        grid-column: span 2;
    }

    /* Card TO: anh khong ep vuong (se qua cao), ma LAP DAY chieu cao con lai
       -> tong chieu cao van bang dung card nho cung hang. */
    .home-content-shell .home-test-row .item-wide .home-standard-card__media-wrap {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
    }

    .home-content-shell .home-test-row .item-wide .home-standard-card__media {
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    /* Card TO: phan chu chi cao BANG NOI DUNG, de anh hut het cho con lai.
       Neu de phan chu cung "hut cho thua" (flex:1) thi anh va chu se CHIA DOI
       khong gian -> tao mang trang lon duoi anh. */
    .home-content-shell .home-test-row .item-wide .home-standard-card__body {
        flex: 0 0 auto;
    }

    /* Moi hang cao bang nhau, card lap day o luoi */
    .home-content-shell .home-test-row {
        grid-auto-rows: 1fr;
    }

    .home-content-shell .home-test-row > [class*="item-"],
    .home-content-shell .home-test-row .inner-item {
        height: 100%;
    }

    .home-content-shell .home-test-row .home-standard-card,
    .home-content-shell .home-test-row .item-wide .home-standard-card {
        height: 100%;
    }

    /* Card NHO: anh vuong. (KHONG dua .item-wide vao day - card to da co luat
       rieng o tren cho anh lap day chieu cao; neu them vao se ghi de nguoc lai.) */
    .home-content-shell .home-test-row .home-standard-card__media-wrap {
        flex: 0 0 auto;
        min-height: 0;
        margin: 0;
    }

    .home-content-shell .home-test-row .home-standard-card__media {
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    /* Card NHO: phan chu hut cho thua de bu chenh lech chieu cao.
       KHONG dua .item-wide vao day - card to lam nguoc lai (anh hut cho thua,
       chu cao tu nhien). Neu them vao se ghi de luat card to o tren. */
    .home-content-shell .home-test-row .home-standard-card__body {
        flex: 1 1 auto;
        min-height: 0;
    }

    /* Card Hoi-Dap: o mau keo het chieu cao card (khong co phan chu ben duoi) */
    .home-content-shell .home-test-row .item-4.card-type-question .home-standard-card__media-wrap {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
    }

    .home-content-shell .home-test-row .item-4.card-type-question .home-standard-card__media {
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    .home-content-shell .home-test-row .home-standard-card__media--question {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        min-height: 0;
    }

    .home-content-shell .home-test-row .home-standard-card__question-footer {
        margin-top: auto;
    }
}

/* ==========================================================================
   HEADER MAY TINH - THU GON DAN KHI CO CUA SO LAI
   --------------------------------------------------------------------------
   Thu tu uu tien AN (theo yeu cau):
     1) O tim kiem lon  -> thay bang icon kinh lup
     2) Ten + slogan    -> chi con hinh logo
     3) Dang ky/Dang nhap -> gom vao nut 3 gach
   ========================================================================== */

/* --- BUOC 1: duoi 1560px -> an o tim kiem lon, hien icon kinh lup + VI --- */
@media (min-width: 1280px) and (max-width: 1559px) {
    #headPage .page-width-2 {
        grid-template-columns: auto 1fr 0 auto;
    }

    #headPage .page-width-2 .form-search.form-top {
        display: none;
    }

    #headPage .page-width-2 .menu-top.fr .cq-icon-btn--search,
    #headPage .page-width-2 .menu-top.fr .cq-icon-btn--lang {
        display: inline-flex !important;
    }

    #headPage .page-width-2 .menu-top.fr .cq-icon-btn > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: var(--cq-r-pill);
        color: var(--cq-text);
        text-decoration: none;
        cursor: pointer;
    }

    #headPage .page-width-2 .menu-top.fr .cq-icon-btn > a > i,
    #headPage .page-width-2 .menu-top.fr .cq-icon-btn > a > span {
        display: block;
        width: 36px;
        height: 36px;
        font-size: 16px;
        line-height: 36px;
        text-align: center;
        position: static;
        top: auto;
    }

    #headPage .page-width-2 .menu-top.fr .cq-icon-btn--lang > a > .cq-lang-code {
        font-size: 12px;
        font-weight: 700;
    }
}

/* --- BUOC 2: duoi 1440px -> an them TEN + SLOGAN, chi con hinh logo --- */
@media (min-width: 1280px) and (max-width: 1439px) {
    #headPage #logo.cq-logo .cq-logo__text {
        display: none !important;
    }
}

/* --- BUOC 3: duoi 1360px -> gom Dang ky/Dang nhap vao nut 3 gach --- */
@media (min-width: 1280px) and (max-width: 1359px) {
    #headPage .page-width-2 .menu-top.fr.auth-guest > li.auth-separator,
    #headPage .page-width-2 .menu-top.fr.auth-guest > li:not(.cq-icon-btn) {
        display: none !important;
    }

    #headPage .page-width-2 .menu-top.fr .cq-icon-btn--menu {
        display: inline-flex !important;
    }

    /* bang menu 3 gach dung chung voi ban may tinh bang */
    .cq-mnav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1200;
        visibility: hidden;
        pointer-events: none;
    }

    .cq-mnav.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .cq-mnav__backdrop {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(15, 25, 35, .35);
    }

    .cq-mnav__panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 360px;
        padding: 0 var(--cq-4) var(--cq-5);
        background: var(--cq-surface);
        box-shadow: -6px 0 24px rgba(20, 33, 46, .16);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .24s ease;
    }

    .cq-mnav.is-open .cq-mnav__panel {
        transform: translateX(0);
    }
}

/* Bang xo cua nut VI cung phai hien tren may tinh khi nut VI hien */
@media (min-width: 1280px) and (max-width: 1559px) {
    #headPage .cq-icon-btn--lang {
        position: relative;
    }

    #headPage .cq-icon-btn--lang .cq-langmenu {
        display: block;
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        z-index: 1300;
        min-width: 178px;
        padding: var(--cq-1) 0;
        border: 1px solid var(--cq-hairline-strong);
        border-radius: var(--cq-3);
        background: var(--cq-surface);
        box-shadow: 0 10px 28px rgba(18, 56, 91, .14);
        opacity: 0;
        visibility: hidden;
        transition: opacity .16s ease, visibility .16s;
    }

    #headPage .cq-icon-btn--lang.is-open .cq-langmenu {
        opacity: 1;
        visibility: visible;
    }

    #headPage .cq-langmenu__item {
        display: flex;
        align-items: center;
        gap: var(--cq-3);
        padding: var(--cq-3) var(--cq-4);
        color: var(--cq-text);
        font-size: 13px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    #headPage .cq-langmenu__item i {
        width: 16px;
        color: var(--cq-text-2);
        font-size: 14px;
        text-align: center;
    }
}
