.img-resize {
    display: block;
    position: relative;
    height: -moz-max-content;
    height: max-content;
}

.img-resize:before {
    padding-bottom: 60%;
    /* 16:10 */
    content: "";
    display: block;
}

.img-resize img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
    margin: auto;
    background-size: cover;
    background-position: center;
    -o-object-fit: cover;
    object-fit: cover;
}

/* Logo Khoa học phổ thông (cũ) đặt ở vị trí nút Home trên thanh menu.
           Ghi đè rule ".c-menu>ul>li.is-home>a img{display:none}" của style.min.css */
.c-menu>ul>li.is-home>a {
    display: inline-flex !important;
    align-items: center;
    height: 100%;
    padding: 0;
    text-indent: 0;
    overflow: visible;
}

.c-menu>ul>li.is-home>a img {
    display: block !important;
    height: 28px;
    width: auto;
    max-width: none;
    vertical-align: middle;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 767px) {
    .c-menu>ul>li.is-home>a img {
        height: 22px;
    }
}

/* ==================================================================
           Header layout mới (1 thanh đỏ):
           - PC:     logo | ngày ... Podcast | Youtube | Cần biết | Quảng cáo | 🔍 👤 [Đăng ký Tuổi Trẻ Sao] ?
           - Mobile: ☰ ... logo (giữa) ... 👤
           Ghi đè style.min.css (load từ CDN) nên viết trực tiếp tại đây.
           ================================================================== */
.c-header {
    background: red;
}

.c-header-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.c-header-inner h1 {
    margin: 0;
    line-height: 0;
}

.c-header-inner__left,
.c-header-inner__right {
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.c-header-inner__right {
    justify-content: flex-end;
}

/* Hamburger trắng trên nền đỏ */
.c-header .c-menu-expand span,
.c-header .c-menu-expand span:before,
.c-header .c-menu-expand span:after {
    background-color: #fff;
}

/* Vạch ngăn giữa logo và ngày tháng */
.c-header-divider {
    display: none;
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, .5);
    margin: 0 15px;
    flex: 0 0 auto;
}

/* Ngày tháng (chữ trắng, nằm cạnh logo) */
.c-sologan {
    padding-top: 0;
    color: #fff;
}

.c-sologan p {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

/* Cụm liên kết tiện ích bên phải */
.c-header-utils {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.c-header-utils li {
    display: flex;
    align-items: center;
}

.c-header-utils li+li:before {
    content: "";
    width: 1px;
    height: 14px;
    background: #FF7772;
    margin: 0 14px;
}

.c-header-utils a {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.c-header-utils a svg {
    margin-right: 5px;
    flex: 0 0 auto;
}

.c-header-utils a:hover {
    color: #fff;
    opacity: .8;
}

/* Vạch ngăn giữa "Quảng cáo" và nút tìm kiếm */
.c-header-sep {
    display: none;
    width: 1px;
    height: 14px;
    background: #FF7772;
    margin: 0 14px;
    flex: 0 0 auto;
}

/* Nút tìm kiếm: icon trắng */
.c-header .c-search-expand .icon20-search {
    background-image: url("https://static.mediacdn.vn/ttokhoahocphothong/images/icons/icon20-search-white.svg");
}

/* Icon tài khoản */
.c-header-user {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

/* Nút Đăng ký Tuổi Trẻ Sao */
.c-header-signup {
    display: none;
    background: #5580DF;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    height: 32px;
    line-height: 32px;
    padding: 0 14px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 12px;
    flex: 0 0 auto;
}

/* Icon trợ giúp (?) */
.c-header-help {
    display: none;
    align-items: center;
    margin-left: 10px;
    flex: 0 0 auto;
}

/* Layout mới không hiển thị thời tiết trên header */
.c-header .c-weather {
    display: none !important;
}

/* --- Mobile --- */
@media (max-width: 991px) {
    .c-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .c-logo img {
        height: 26px;
    }

    .c-header-user {
        display: flex;
    }
}

/* --- Desktop --- */
@media (min-width: 992px) {
    .c-header-inner {
        height: 88px;
    }

    /* PC không có hamburger trên thanh đỏ */
    .c-header .c-menu-expand {
        display: none;
    }

    .c-logo img {
        height: 48px;
    }

    .c-header-divider {
        display: block;
    }

    .c-sologan {
        display: block;
    }

    .c-header-utils {
        display: flex;
    }

    .c-header-sep {
        display: block;
    }

    .c-header .c-search-expand {
        display: flex;
        align-items: center;
        justify-content: center;
        position: static;
        left: auto;
        top: auto;
        width: 32px;
        height: 32px;
        flex: 0 0 auto;
    }

    .c-header-user {
        margin-left: 6px;
    }

    .c-header-signup {
        display: inline-block;
    }

    .c-header-help {
        display: inline-flex;
    }

    /* Ô tìm kiếm thả xuống dưới header, canh phải */
    .c-search-wrapper {
        position: absolute;
        left: auto;
        right: 0;
        top: 100%;
        width: 300px;
        height: auto;
        padding: 8px;
        background: #fff;
        border-radius: 4px;
        -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
        box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
    }

    .c-search {
        width: auto;
    }

    .c-search .c-search__inner {
        padding-right: 72px;
    }

    .c-search .c-search__btn {
        right: 36px;
    }

    .c-search .c-search__close {
        right: 0;
    }
}

/* Màn hình <=1200px: ẩn ngày tháng (và vạch ngăn cạnh logo) */
@media (max-width: 1200px) {

    .c-header-divider,
    .c-sologan {
        display: none;
    }
}

/* ==================================================================
           Footer layout mới:
           - PC (>=1200px): logo | thông tin tòa soạn | địa chỉ + menu | social
                            + thanh copyright full-width có border-top
           - <1200px:       xếp dọc canh trái, hàng đầu là logo + social (phải),
                            vạch đứt ngăn cách, copyright 2 dòng
           Ghi đè style.min.css (CDN) nên viết trực tiếp tại đây.
           ================================================================== */
.l-footer .c-footer-main {
    position: relative;
    display: block;
    margin: 0;
    padding-top: 25px;
    padding-bottom: 10px;
}

.l-footer .c-footer-main .c-footer-col {
    width: auto;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 18px;
}

.l-footer .c-footer-main .c-footer-col.is-col-1,
.l-footer .c-footer-main .c-footer-col.is-col-2 {
    display: block;
}

/* Hàng logo (kèm vạch đứt ngăn cách bên dưới) */
.l-footer .c-footer-main .c-footer-col.is-col-logo {
    border-bottom: 1px dashed #D9D9D9;
    padding-bottom: 22px;
    padding-right: 110px;
    /* chừa chỗ cho icon social ở góc phải */
    margin-bottom: 22px;
}

.l-footer .c-footer-logo {
    display: inline-block;
    text-align: left;
    margin: 0;
}

.l-footer .c-footer-logo img {
    height: 48px;
}

/* Dòng tagline dưới logo — xoá nếu file logo đã bao gồm sẵn chữ này */
.c-footer-tagline {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    color: red;
    text-transform: uppercase;
    letter-spacing: .2px;
}

/* Social: góc phải hàng logo */
.l-footer .c-footer-main .c-footer-col.is-col-social {
    position: absolute;
    top: 30px;
    right: 0;
    margin-bottom: 0;
}

.l-footer .c-social {
    margin: 0;
}

.l-footer .c-social ul {
    justify-content: flex-end;
}

.l-footer .c-social ul li {
    margin: 0 0 0 12px;
}

.l-footer .c-social ul li a {
    min-width: 32px;
    width: 32px;
    height: 32px;
    line-height: 0;
    padding: 0;
}

.l-footer .c-social ul li a svg {
    display: block;
}

/* Khối chữ canh trái */
.l-footer .c-footer-main .b-maincontent {
    text-align: left;
    font-size: 15px;
}

.l-footer .c-footer-main .c-footer-col.is-col-2 .b-maincontent {
    text-align: left;
}

.l-footer .c-footer-main .b-maincontent p {
    font-size: 15px;
    color: #565656;
    margin-bottom: 8px;
}

/* Menu footer canh trái */
.l-footer .c-footer-menu ul {
    justify-content: flex-start;
}

/* PC >=1200px: chữ 13px, vạch ngăn đậm, menu ép 1 hàng */
@media (min-width: 1200px) {

    .l-footer .c-footer-main .b-maincontent,
    .l-footer .c-footer-main .b-maincontent p,
    .c-footer-copyright {
        font-size: 13px;
    }

    .l-footer .c-footer-menu ul {
        flex-wrap: nowrap;
    }

    .l-footer .c-footer-menu ul li {
        border-right-color: #565656;
        /* vạch ngăn đậm hơn */
    }

    .l-footer .c-footer-menu ul li a {
        font-size: 13px;
        padding: 0 5px;
        /* giảm padding để menu nằm gọn 1 hàng */
        white-space: nowrap;
    }
}

.l-footer .c-footer-menu ul li {
    margin-bottom: 6px;
}

.l-footer .c-footer-menu ul li:first-child a {
    padding-left: 0;
}

.l-footer .c-footer-menu ul li a {
    font-size: 15px;
}

/* Copyright */
.c-footer-copyright {
    font-size: 15px;
    line-height: 1.6;
    color: #999;
    padding-bottom: 25px;
}

.c-footer-copyright span {
    display: block;
}

/* Mobile: chữ 14px, menu sát nhau hơn, riêng dòng địa chỉ 13px */
@media (max-width: 767px) {

    .l-footer .c-footer-main .b-maincontent,
    .l-footer .c-footer-main .b-maincontent p,
    .l-footer .c-footer-menu ul li a,
    .c-footer-copyright {
        font-size: 14px;
    }

    .l-footer .c-footer-menu ul li a {
        padding: 0 6px;
        /* giảm khoảng cách giữa chữ và vạch ngăn */
    }

    .l-footer .c-footer-main .c-footer-col.is-col-2 .b-maincontent p:first-child {
        font-size: 13px;
        /* dòng địa chỉ */
    }
}

/* --- PC rộng: 4 khối trên 1 hàng --- */
@media (min-width: 1200px) {
    .l-footer .c-footer-main {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding-top: 40px;
        padding-bottom: 35px;
    }

    .l-footer .c-footer-main .c-footer-col {
        margin-bottom: 0;
    }

    .l-footer .c-footer-main .c-footer-col.is-col-logo {
        width: 200px;
        flex: 0 0 200px;
        border-bottom: none;
        padding: 0;
        margin: 0 40px;
        /* cách 2 bên 40px */
        text-align: center;
        /* logo căn giữa theo chiều ngang trong box 200px */
    }

    .l-footer .c-footer-logo img {
        height: 64px;
    }

    .l-footer .c-footer-main .c-footer-col.is-col-1 {
        width: 30%;
        max-width: 329px;
        padding-right: 40px;
    }

    .l-footer .c-footer-main .c-footer-col.is-col-2 {
        width: 390px;
        flex: 0 0 390px;
    }

    .l-footer .c-footer-main .c-footer-col.is-col-social {
        position: static;
        width: auto;
        /* cột tự ôm đúng bề rộng 2 icon */
        flex: 0 0 auto;
        margin-left: auto;
        /* đẩy cụm icon sát mép phải */
    }

    .c-footer-copyright {
        border-top: 1px solid #E5E5E5;
        padding: 12px 0;
    }

    .c-footer-copyright span {
        display: inline;
        margin-right: 6px;
    }
}

/* ==================================================================
   Top Article Layout (data-layout="1") - Styled to match original screenshot
   ================================================================== */
.box-category[data-layout="1"] {
    margin-bottom: 20px;
}

.box-category[data-layout="1"] .box-category-top {
    display: none;
    /* Hide the category header if it exists */
}

.box-category[data-layout="1"] .box-category-item {
    display: block;
    margin-bottom: 20px;
}

.box-category[data-layout="1"] .box-category-avatar {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* General Typography for layout 1 */
.box-category[data-layout="1"] .box-category-title-text {
    margin: 0 0 10px 0;
}

.box-category[data-layout="1"] .box-category-link-title {
    color: #222;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
    font-family: "Roboto Slab", serif;
}

.box-category[data-layout="1"] .box-category-link-title:hover {
    color: #e02b28;
}

.box-category[data-layout="1"] .box-category-category {
    color: #e02b28;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    margin-right: 15px;
    display: inline-block;
    text-decoration: none;
}

.box-category[data-layout="1"] .box-category-time {
    color: #999;
    font-size: 13px;
    display: inline-block;
}

.box-category[data-layout="1"] .box-category-sapo {
    display: -webkit-box;
    max-height: 88px;
    line-height: 22px;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #565656;
    margin-top: 10px;
    font-size: 15px;
}

.box-category[data-layout="1"] .box-category-item:first-child {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.box-category[data-layout="1"] .box-category-item:first-child .box-category-link-with-avatar {
    margin-left: -15px;
    margin-right: -15px;
}

.box-category[data-layout="1"] .box-category-item:first-child .box-category-link-title {
    font-size: 24px;
}

.box-category[data-layout="1"] .box-category-item:first-child .box-category-content {
    background-color: transparent;
    padding: 15px 0 0 0;
}

@media (min-width: 992px) {
    .box-category[data-layout="1"] {
        margin-bottom: 35px;
    }

    .box-category[data-layout="1"] .box-category-item:first-child {
        display: flex;
        flex-direction: row-reverse;
        margin-bottom: 30px;
        border-radius: 6px;
        overflow: hidden;
        /* ensures border radius applies to children */
        background-color: #f5f5f5;
        /* gray background for the whole flex row */
        align-items: stretch;
        margin-left: 15px;
        margin-right: 15px;
        padding-bottom: 0;
        border-bottom: none;
    }

    .box-category[data-layout="1"] .box-category-item:first-child .box-category-link-with-avatar {
        width: 50%;
        flex: 0 0 50%;
        margin-left: 0;
        margin-right: 0;
    }

    .box-category[data-layout="1"] .box-category-item:first-child .box-category-avatar {
        height: 100%;
        /* fill the height to match content */
    }

    .box-category[data-layout="1"] .box-category-item:first-child .box-category-content {
        width: 50%;
        flex: 0 0 50%;
        padding: 25px 15px 15px 30px;
        box-sizing: border-box;
        justify-content: center;
    }

    .box-category[data-layout="1"] .box-category-item:first-child .box-category-link-title {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
}

/* ---------------------------------------------------
   2. SUB ARTICLES (:nth-child(n+2))
   --------------------------------------------------- */
/* Hide category and time for the 3 sub-articles */
.box-category[data-layout="1"] .box-category-item:nth-child(n+2) .box-category-category,
.box-category[data-layout="1"] .box-category-item:nth-child(n+2) .box-category-time {
    display: none !important;
}

/* Title adjustments */
.box-category[data-layout="1"] .box-category-item:nth-child(n+2) .box-category-link-title {
    font-size: 18px;
    margin-top: 15px;
}

/* Mobile view: title first, border bottom */
@media (max-width: 991px) {
    .box-category[data-layout="1"] .box-category-item:first-child .box-category-link-with-avatar {
        margin-left: 0px;
        margin-right: 0px;
    }

    .box-category[data-layout="1"] .box-category-item:nth-child(n+2) {
        display: flex;
        flex-direction: column-reverse;
        padding-bottom: 20px;
        border-bottom: 1px dashed #ddd;
    }

    .box-category[data-layout="1"] .box-category-item:nth-child(n+2):last-child {
        border-bottom: none;
    }

    .box-category[data-layout="1"] .box-category-item:nth-child(n+2) .box-category-content {
        margin-bottom: 10px;
    }
}

/* PC view: 3 columns */
@media (min-width: 992px) {
    .box-category[data-layout="1"] .box-category-middle {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -15px;
    }

    .box-category[data-layout="1"] .box-category-item:nth-child(n+2) {
        width: calc(33.333333% - 30px);
        margin: 0 15px;
    }

    .box-category[data-layout="1"] .box-category-item:nth-child(n+2) .box-category-link-title {
        font-size: 20px;
    }

    /* Sapo visible on PC */
    .box-category[data-layout="1"] .box-category-item:nth-child(n+2) .box-category-sapo {
        display: -webkit-box;
        /* Re-enable line clamp */
    }
}

/* ==================================================================
   Layout 2 (Slider / List in Sidebar) - Styled to match c-box "Mới nhất"
   ================================================================== */
.box-category[data-layout="2"] {
    margin-bottom: 30px;
}

/* Sidebar Title Style (Matching original .c-box__title) */
.box-category[data-layout="2"] .box-category-top {
    border-top: 1px solid #E5E5E5;
    padding-top: 12px;
    margin-bottom: 20px;
}

.box-category[data-layout="2"] .box-category-title {
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    font-size: 22px;
    font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
    text-decoration: none;
    display: inline-block;
}

/* Default to a vertical list if Swiper JS is not loaded or active */
.box-category[data-layout="2"] .box-category-middle:not(.swiper-wrapper) {
    display: block;
}

.box-category[data-layout="2"] .swiper-wrapper {
    display: flex;
}

/* If it's a swiper, items flex. If not, they stack */
.box-category[data-layout="2"] .box-category-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
    box-sizing: border-box;
}

.box-category[data-layout="2"] .box-category-item:last-child {
    border-bottom: none;
}

.box-category[data-layout="2"] .swiper-slide {
    width: 100%;
    flex-shrink: 0;
}

/* Hide image, time, and sapo to match original text-only Mới nhất list */
.box-category[data-layout="2"] .box-category-avatar,
.box-category[data-layout="2"] .box-category-link-with-avatar {
    display: none !important;
}

.box-category[data-layout="2"] .box-category-time,
.box-category[data-layout="2"] .box-category-sapo {
    display: none !important;
}

.box-category[data-layout="2"] .box-category-link-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 0;
    font-family: "Roboto Slab", serif;
}

.box-category[data-layout="2"] .box-category-content {
    display: flex;
    flex-direction: column;
}

.box-category[data-layout="2"] .box-category-link-title:hover {
    color: #e02b28;
}

.box-category[data-layout="2"] .box-category-category {
    color: #e02b28;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
    order: -1;
}

/* Swiper navigation hiding (assuming they might not want visible arrows if it's not a slider, or style them if it is) */
.box-category[data-layout="2"] .swiper-button,
.box-category[data-layout="2"] .swiper-pagination {
    display: none;
    /* Hide default buttons unless Swiper CSS styles them */
}

@media (min-width: 992px) {
    .box-category[data-layout="2"] {
        margin-bottom: 40px;
    }

    .box-category[data-layout="2"] .box-category-title {
        font-size: 24px;
    }

    .box-category[data-layout="2"] .box-category-top {
        padding-top: 0;
        border-top: none;
    }
}

/* ==================================================================
   Layout 3 (Dòng Chảy) - Styled to match original c-box "Dòng chảy"
   ================================================================== */
.box-category[data-layout="3"] {
    margin-bottom: 25px;
}

.box-category[data-layout="3"] .box-category-title {
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 22px;
    line-height: 1.3;
    text-decoration: none;
    font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
    display: inline-block;
    transition: all 0.2s ease;
}

.box-category[data-layout="3"] .box-category-title:hover {
    color: #ed1b23;
}

.box-category[data-layout="3"] .box-category-top {
    border-top: 1px solid #007ac0;
    padding-top: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-category[data-layout="3"] .box-category-top .c-box__title__name {
    font-family: "Roboto Condensed", "Roboto", Arial;
    font-size: 24px;
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
}

/* Hide Category, Time, and Sapo (Original 5-col grid only had Image and Title) */
.box-category[data-layout="3"] .box-category-category,
.box-category[data-layout="3"] .box-category-time,
.box-category[data-layout="3"] .box-category-sapo {
    display: none !important;
}

/* Base styles for inner elements */
.box-category[data-layout="3"] .box-category-link-title {
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.box-category[data-layout="3"] .box-category-link-title:hover {
    color: #007ac0;
}


/* Mobile: is-title-first-mobile and is-border-mobile */
@media (max-width: 767px) {
    .box-category[data-layout="3"] .box-category-item {
        display: flex;
        flex-direction: column-reverse;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .box-category[data-layout="3"] .box-category-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .box-category[data-layout="3"] .box-category-avatar {
        width: 100%;
        display: block;
    }

    .box-category[data-layout="3"] .box-category-content {
        margin-bottom: 10px;
    }

    .box-category[data-layout="3"] .box-category-link-title {
        font-size: 18px;
        /* Mobile title font size */
    }

    .box-category[data-layout="3"] .box-category-sapo {
        color: #333;
        display: block !important;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .box-category[data-layout="3"] .box-category-middle {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }

    .box-category[data-layout="3"] .box-category-item {
        width: 50%;
        padding: 0 10px;
        box-sizing: border-box;
        padding-bottom: 20px;
    }

    .box-category[data-layout="3"] .box-category-avatar {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 10px;
    }

    .box-category[data-layout="3"] .box-category-link-title {
        font-size: 20px;
    }
}

/* PC: is-col-5-pc */
@media (min-width: 992px) {
    .box-category[data-layout="3"] {
        margin-bottom: 40px;
    }

    .box-category[data-layout="3"] .box-category-title {
        font-size: 24px;
    }

    .box-category[data-layout="3"] .box-category-top {
        /* Keep the blue border on PC */
    }

    .box-category[data-layout="3"] .box-category-middle {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }

    .box-category[data-layout="3"] .box-category-item {
        width: 20%;
        /* 5 columns */
        padding: 0 10px;
        box-sizing: border-box;
        padding-bottom: 20px;
    }

    .box-category[data-layout="3"] .box-category-avatar {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }

    .box-category[data-layout="3"] .box-category-link-title {
        font-size: 18px;
        color: #000;
        /* Matches original is-col-5-pc font-size */
    }
}

/* PC Large: 1200px+ */
@media (min-width: 1200px) {
    .box-category[data-layout="3"] .box-category-middle {
        margin: 0 -15px;
    }

    .box-category[data-layout="3"] .box-category-item {
        padding: 0 15px;
        padding-bottom: 30px;
    }
}

/* ==================================================================
   Layout 4 (Khoa học) - Styled to match original c-categgory-featured
   ================================================================== */
.box-category[data-layout="4"] {
    margin-bottom: 35px;
}

.box-category[data-layout="4"] .box-category-top {
    border-top: 1px solid #007ac0;
    padding-top: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-category[data-layout="4"] .box-category-top .c-box__title__name {
    font-size: 24px;
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
    display: inline-block;
    transition: all 0.2s ease;
}

.box-category[data-layout="4"] .box-category-top .c-box__title__name:hover {
    color: #ed1b23;
}

/* Base styles for elements */
.box-category[data-layout="4"] .box-category-link-title {
    font-family: "Roboto Slab", serif;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.box-category[data-layout="4"] .box-category-link-title:hover {
    color: #007ac0;
}

.box-category[data-layout="4"] .box-category-sapo {
    color: #333;
    font-size: 14px;
    margin-top: 0;
    display: block;
}

.box-category[data-layout="4"] .box-category-category {
    font-size: 14px;
    color: #ed1b23;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-family: "Roboto Condensed", "Roboto", Arial;
}

.box-category[data-layout="4"] .box-category-time {
    display: none !important;
    /* Never shown in this block */
}

/* Hide sapo for small items (2nd onwards) */
.box-category[data-layout="4"] .box-category-item:nth-child(n+2) .box-category-sapo {
    display: none !important;
}

/* Mobile: is-title-first-mobile and is-border-mobile */
@media (max-width: 767px) {
    .box-category[data-layout="4"] .box-category-top .c-box__title__name {
        font-size: 22px;
    }

    .box-category[data-layout="4"] .box-category-item {
        display: flex;
        flex-direction: column-reverse;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .box-category[data-layout="4"] .box-category-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .box-category[data-layout="4"] .box-category-avatar {
        width: 100%;
        display: block;
        margin-top: 10px;
    }

    .box-category[data-layout="4"] .box-category-content {
        margin-bottom: 10px;
    }

    .box-category[data-layout="4"] .box-category-item:nth-child(1) .box-category-link-title {
        font-size: 22px;
        /* Big item mobile title */
    }

    .box-category[data-layout="4"] .box-category-item:nth-child(n+2) .box-category-link-title {
        font-size: 18px;
        /* Small items mobile title */
    }
}

/* Tablet (768px - 991px): Big item full width, small items 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .box-category[data-layout="4"] .box-category-middle {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }

    .box-category[data-layout="4"] .box-category-item {
        padding: 0 10px;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    .box-category[data-layout="4"] .box-category-avatar {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 12px;
    }

    /* Big item */
    .box-category[data-layout="4"] .box-category-item:nth-child(1) {
        width: 100%;
    }

    .box-category[data-layout="4"] .box-category-item:nth-child(1) .box-category-link-title {
        font-size: 24px;
    }

    /* Small items */
    .box-category[data-layout="4"] .box-category-item:nth-child(n+2) {
        width: 50%;
    }

    .box-category[data-layout="4"] .box-category-item:nth-child(n+2) .box-category-link-title {
        font-size: 20px;
    }
}

/* PC (992px+): Grid layout */
@media (min-width: 992px) {
    .box-category[data-layout="4"] {
        margin-bottom: 40px;
    }

    .box-category[data-layout="4"] .box-category-category {
        display: none !important;
        /* Hide category on PC */
    }

    .box-category[data-layout="4"] .box-category-middle {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        column-gap: 20px;
        row-gap: 20px;
    }

    .box-category[data-layout="4"] .box-category-avatar {
        width: 100%;
        display: block;
        margin-bottom: 12px;
    }

    /* Big item on the right (takes 2 cols, 2 rows) */
    .box-category[data-layout="4"] .box-category-item:nth-child(1) {
        grid-column: 3 / span 2;
        grid-row: 1 / span 2;
    }

    .box-category[data-layout="4"] .box-category-item:nth-child(1) .box-category-link-title {
        font-size: 24px;
    }

    /* Small items auto-flow into col 1 and col 2 */
    .box-category[data-layout="4"] .box-category-item:nth-child(n+2) .box-category-link-title {
        font-size: 18px;
    }
}

/* PC Large (1200px+) */
@media (min-width: 1200px) {
    .box-category[data-layout="4"] .box-category-middle {
        column-gap: 30px;
        row-gap: 30px;
    }

    .box-category[data-layout="4"] .box-category-item:nth-child(1) .box-category-link-title {
        font-size: 28px;
    }
}

/* ==================================================================
   Layout 5 (Công Nghệ) - Similar to Layout 4 but Big item on LEFT
   ================================================================== */
.box-category[data-layout="5"] {
    margin-bottom: 35px;
}

.box-category[data-layout="5"] .box-category-top {
    border-top: 1px solid #007ac0;
    padding-top: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-category[data-layout="5"] .box-category-top .c-box__title__name {
    font-size: 24px;
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
    display: inline-block;
    transition: all 0.2s ease;
}

.box-category[data-layout="5"] .box-category-top .c-box__title__name:hover {
    color: #ed1b23;
}

/* Base styles for elements */
.box-category[data-layout="5"] .box-category-link-title {
    font-family: "Roboto Slab", serif;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.box-category[data-layout="5"] .box-category-link-title:hover {
    color: #007ac0;
}

.box-category[data-layout="5"] .box-category-sapo {
    color: #333;
    font-size: 14px;
    margin-top: 0;
    display: block;
}

.box-category[data-layout="5"] .box-category-category {
    font-size: 14px;
    color: #ed1b23;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-family: "Roboto Condensed", "Roboto", Arial;
}

.box-category[data-layout="5"] .box-category-time {
    display: none !important;
}

/* Hide sapo for small items (2nd onwards) */
.box-category[data-layout="5"] .box-category-item:nth-child(n+2) .box-category-sapo {
    display: none !important;
}

/* Mobile: is-title-first-mobile and is-border-mobile */
@media (max-width: 767px) {
    .box-category[data-layout="5"] .box-category-top .c-box__title__name {
        font-size: 22px;
    }

    .box-category[data-layout="5"] .box-category-item {
        display: flex;
        flex-direction: column-reverse;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .box-category[data-layout="5"] .box-category-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .box-category[data-layout="5"] .box-category-avatar {
        width: 100%;
        display: block;
    }

    .box-category[data-layout="5"] .box-category-content {
        margin-bottom: 10px;
    }

    .box-category[data-layout="5"] .box-category-item:nth-child(1) .box-category-link-title {
        font-size: 22px;
    }

    .box-category[data-layout="5"] .box-category-item:nth-child(n+2) .box-category-link-title {
        font-size: 18px;
    }
}

/* Tablet (768px - 991px): Big item full width, small items 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .box-category[data-layout="5"] .box-category-middle {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }

    .box-category[data-layout="5"] .box-category-item {
        padding: 0 10px;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    .box-category[data-layout="5"] .box-category-avatar {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 12px;
    }

    /* Big item */
    .box-category[data-layout="5"] .box-category-item:nth-child(1) {
        width: 100%;
    }

    .box-category[data-layout="5"] .box-category-item:nth-child(1) .box-category-link-title {
        font-size: 24px;
    }

    /* Small items */
    .box-category[data-layout="5"] .box-category-item:nth-child(n+2) {
        width: 50%;
    }

    .box-category[data-layout="5"] .box-category-item:nth-child(n+2) .box-category-link-title {
        font-size: 20px;
    }
}

/* PC (992px+): Grid layout */
@media (min-width: 992px) {
    .box-category[data-layout="5"] {
        margin-bottom: 40px;
    }

    .box-category[data-layout="5"] .box-category-category {
        display: none !important;
    }

    .box-category[data-layout="5"] .box-category-middle {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        column-gap: 20px;
        row-gap: 20px;
    }

    .box-category[data-layout="5"] .box-category-avatar {
        width: 100%;
        display: block;
        margin-bottom: 12px;
    }

    /* Big item on the LEFT (takes 2 cols, 2 rows) */
    .box-category[data-layout="5"] .box-category-item:nth-child(1) {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }

    .box-category[data-layout="5"] .box-category-item:nth-child(1) .box-category-link-title {
        font-size: 24px;
    }

    /* Small items auto-flow into col 3 and col 4 */
    .box-category[data-layout="5"] .box-category-item:nth-child(n+2) .box-category-link-title {
        font-size: 18px;
    }
}

/* PC Large (1200px+) */
@media (min-width: 1200px) {
    .box-category[data-layout="5"] .box-category-middle {
        column-gap: 30px;
        row-gap: 30px;
    }

    .box-category[data-layout="5"] .box-category-item:nth-child(1) .box-category-link-title {
        font-size: 28px;
    }
}

/* ==================================================================
   Layout 6 (Tạp chí in)
   ================================================================== */
.box-category[data-layout="6"] .box-category-top {
    border-top: 1px solid #007ac0;
    padding-top: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-category[data-layout="6"] .c-box__title__name {
    font-size: 24px;
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
    font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.box-category[data-layout="6"] .c-box__title__name:hover {
    color: #ed1b23;
}

.box-category[data-layout="6"] .box-category-item {
    background-color: #f5f5f5;
    padding: 15px;
    box-sizing: border-box;
}

.box-category[data-layout="6"] .box-category-link-with-avatar {
    display: block;
    width: 100%;
    position: relative;
    padding-top: 131.91%;
    background-color: #fff;
}

.box-category[data-layout="6"] .box-category-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide category, time, sapo */
.box-category[data-layout="6"] .box-category-category,
.box-category[data-layout="6"] .box-category-time,
.box-category[data-layout="6"] .box-category-sapo {
    display: none !important;
}

.box-category[data-layout="6"] .box-category-content {
    margin-top: 15px;
    padding-bottom: 5px;
}

.box-category[data-layout="6"] .box-category-link-title {
    font-family: "Roboto Slab", serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    display: block;
}

/* Fallback Grid Layout (only applies if owl-carousel fails to load) */
.box-category[data-layout="6"] .box-category-middle:not(.owl-loaded) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive Grid */
@media (max-width: 991px) {
    .box-category[data-layout="6"] .box-category-middle:not(.owl-loaded) {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .box-category[data-layout="6"] .box-category-middle:not(.owl-loaded) {
        grid-template-columns: 1fr;
    }
}

/* ==================================================================
   Layout 7 (Category Header)
   ================================================================== */
.box-category[data-layout="7"] .box-category-middle {
    margin-bottom: 20px;
}

.box-category[data-layout="7"] .box-category-item {
    margin-bottom: 20px;
}

.box-category[data-layout="7"] .box-category-item:last-child {
    margin-bottom: 0;
}

.box-category[data-layout="7"] .box-category-link-with-avatar {
    display: block;
    margin-bottom: 15px;
}

.box-category[data-layout="7"] .box-category-avatar {
    width: 100%;
    object-fit: cover;
}

/* Featured Item (Left) */
.box-category[data-layout="7"] .is-featured .box-category-content {
    text-align: center;
}

.box-category[data-layout="7"] .is-featured .box-category-link-title {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 700;
    color: #333;
}

@media (min-width: 768px) {
    .box-category[data-layout="7"] .is-featured .box-category-link-title {
        font-size: 28px;
    }
}

@media (min-width: 992px) {
    .box-category[data-layout="7"] .is-featured .box-category-link-title {
        font-size: 30px;
    }
}

@media (min-width: 1200px) {
    .box-category[data-layout="7"] .is-featured .box-category-link-title {
        font-size: 32px;
        color: #000;
        font-family: "Roboto Slab", serif;
    }
}

.box-category[data-layout="7"] .is-featured .box-category-sapo {
    display: -webkit-box;
    max-height: 66px;
    line-height: 22px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 10px;
    color: #444;
}

.box-category[data-layout="7"] .is-featured .box-category-category {
    font-weight: 700;
    color: #007ac0;
    margin-bottom: 10px;
    display: none;
}

/* Normal Items (Right) */
.box-category[data-layout="7"] .box-category-item:not(.is-featured) .box-category-link-title {
    font-size: 20px;
    font-weight: 700;
    font-family: "Roboto Slab", serif;
    color: #000;
    line-height: 1.4;
}

.box-category[data-layout="7"] .box-category-item:not(.is-featured) .box-category-sapo {
    display: none;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
    margin-top: 10px;
}

.box-category[data-layout="7"] .box-category-item:not(.is-featured) .box-category-category {
    display: none;
    /* Usually hidden on small items */
}

/* PC Grid Layout */
@media (min-width: 992px) {
    .box-category[data-layout="7"] .box-category-middle {
        display: grid;
        grid-template-columns: 64.81% auto;
        gap: 0;
        border-bottom: 1px solid #E5E5E5;
        padding-bottom: 20px;
    }

    .box-category[data-layout="7"] .is-featured {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        border-right: 1px solid #E5E5E5;
        padding-right: 14px;
        margin-bottom: 0;
    }

    .box-category[data-layout="7"] .box-category-item:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        padding-left: 15px;
        margin-bottom: 20px;
    }

    .box-category[data-layout="7"] .box-category-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        padding-left: 15px;
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .box-category[data-layout="7"] .is-featured {
        padding-right: 19px;
    }

    .box-category[data-layout="7"] .box-category-item:not(.is-featured) {
        padding-left: 20px;
    }
}

/* Mobile specific styling */
@media (max-width: 991px) {
    .box-category[data-layout="7"] .is-featured .box-category-link-with-avatar {
        margin-left: -15px;
        margin-right: -15px;
    }

    .box-category[data-layout="7"] .box-category-middle {
        padding-top: 15px;
    }
}

@media (max-width: 767px) {
    .box-category[data-layout="7"] .box-category-item:not(.is-featured) {
        display: flex;
        flex-direction: column;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    .box-category[data-layout="7"] .box-category-item:not(.is-featured) .box-category-content {
        order: -1;
        margin-bottom: 10px;
    }

    /* Hide sapo on mobile for small items if desired, but keep it for now */
}

/* ==================================================================
   Layout 8 (Category Header Bottom - 4 Columns)
   ================================================================== */
.box-category[data-layout="8"] {
    margin-bottom: 30px;
}

.box-category[data-layout="8"] .box-category-middle {
    margin-bottom: 20px;
}

.box-category[data-layout="8"] .box-category-item {
    margin-bottom: 20px;
}

.box-category[data-layout="8"] .box-category-item:last-child {
    margin-bottom: 0;
}

.box-category[data-layout="8"] .box-category-link-with-avatar {
    display: block;
    margin-bottom: 12px;
}

.box-category[data-layout="8"] .box-category-avatar {
    width: 100%;
    object-fit: cover;
}

.box-category[data-layout="8"] .box-category-link-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    display: block;
    font-family: "Roboto Slab", serif;
}

.box-category[data-layout="8"] .box-category-sapo {
    display: none;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
    margin-top: 10px;
}

.box-category[data-layout="8"] .box-category-category {
    display: none;
}

/* PC Grid Layout */
@media (min-width: 992px) {
    .box-category[data-layout="8"] .box-category-middle {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .box-category[data-layout="8"] .box-category-item {
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .box-category[data-layout="8"] .box-category-middle {
        gap: 30px;
    }
}

/* Tablet Grid */
@media (min-width: 768px) and (max-width: 991px) {
    .box-category[data-layout="8"] .box-category-middle {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile specific styling */
@media (max-width: 767px) {
    .box-category[data-layout="8"] .box-category-sapo {
        display: block;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #666;
        margin-top: 10px;
    }

    .box-category[data-layout="8"] .box-category-item {
        display: flex;
        flex-direction: column;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    .box-category[data-layout="8"] .box-category-item:first-child {
        border-top: none;
        padding-top: 0;
    }

    .box-category[data-layout="8"] .box-category-content {
        order: -1;
        margin-bottom: 10px;
    }
}

/* ==================================================================
   Layout 9 (List Mới Nhất)
   ================================================================== */
.box-category[data-layout="9"] {
    margin-bottom: 30px;
}

.box-category[data-layout="9"] .onecms__loading {
    list-style: none;
    padding: 0;
    margin: 0;
}

.box-category[data-layout="9"] .box-category-item {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.box-category[data-layout="9"] .box-category-item:first-child {
    padding-top: 0;
}

.box-category[data-layout="9"] .box-category-item:last-child {
    border-bottom: none;
}

.box-category[data-layout="9"] .box-category-link-with-avatar {
    flex: 0 0 35%;
}

.box-category[data-layout="9"] .box-category-content {
    flex: 1;
}

.box-category[data-layout="9"] .box-category-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.box-category[data-layout="9"] .c-box__title__name {
    margin-bottom: 20px;
    display: inline-block;
    vertical-align: top;
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    font-size: 24px;
    font-family: "Roboto Condensed", "Roboto", Arial;
    display: flex;
}

.box-category[data-layout="9"] .box-category-link-title {
    font-size: 20px;
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
}

.box-category[data-layout="9"] .box-category-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.box-category[data-layout="9"] .box-category-category {
    color: #ed1b24;
    font-weight: 600;
    text-transform: uppercase;
}

.box-category[data-layout="9"] .box-category-time {
    color: #888;
}

.box-category[data-layout="9"] .box-category-sapo {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #444;
    line-height: 1.5;
}

/* Tablet Layout */
@media (max-width: 991px) and (min-width: 768px) {
    .box-category[data-layout="9"] .box-category-link-with-avatar {
        flex: 0 0 40%;
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    .box-category[data-layout="9"] .box-category-item {
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
    }

    .box-category[data-layout="9"] .box-category-content {
        order: -1;
        /* Title first on mobile */
    }

    .box-category[data-layout="9"] .box-category-link-with-avatar {
        flex: 1;
        width: 100%;
    }

    .box-category[data-layout="9"] .box-category-sapo {
        display: none;
        /* Hide sapo on mobile */
    }
}

/* ==================================================================
   Layout 10 (Đọc nhiều - Top Read)
   ================================================================== */
.box-category[data-layout="10"] {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 20px;
}

.box-category[data-layout="10"] .c-box__title {
    margin-bottom: 20px;
}

.box-category[data-layout="10"] .c-box__title__name {
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    font-size: 24px;
    font-family: "Roboto Condensed", "Roboto", Arial;
    border-top: none;
    padding-top: 0;
    display: inline-block;
}

.box-category[data-layout="10"] .box-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.box-category[data-layout="10"] .box-category-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #E5E5E5;
}

.box-category[data-layout="10"] .box-category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.box-category[data-layout="10"] .box-category-number {
    width: 40px;
    border-right: 1px dashed #ddd;
    flex-shrink: 0;
    background: transparent;
    border-radius: 0;
    display: block;
    height: auto;
}

.box-category[data-layout="10"] .box-category-number span {
    font-size: 40px;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #ed1b23;
    text-shadow: 2px -2px 0 rgba(255, 193, 7, 0.5);
    display: block;
    font-family: "Roboto", Arial, sans-serif;
}

.box-category[data-layout="10"] .box-category-content {
    flex: 1;
}

.box-category[data-layout="10"] .box-category-title-text {
    margin: 0;
}

.box-category[data-layout="10"] .box-category-link-title {
    margin: 0;
    line-height: 1.4;
    font-size: 18px;
    font-weight: 700;
    padding-left: 15px;
    font-family: "Roboto Slab", serif;
    color: #333;
    display: block;
    transition: color 0.3s ease;
}

.box-category[data-layout="10"] .box-category-link-title:hover {
    color: #ed1b24;
}

/* Mobile Layout */
@media (max-width: 767px) {
    .box-category[data-layout="10"] {
        padding: 15px;
    }
}

/* ==================================================================
   Layout 11 (Grid 3 Columns - Đọc thêm)
   ================================================================== */
.box-category[data-layout="11"] {
    margin-bottom: 30px;
}

.box-category[data-layout="11"] .box-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.box-category[data-layout="11"] .box-category-item {
    flex: 0 0 calc(33.3333% - 20px);
    display: flex;
    flex-direction: column;
}

.box-category[data-layout="11"] .box-category-link-with-avatar {
    margin-bottom: 15px;
    display: block;
}

.box-category[data-layout="11"] .box-category-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.box-category[data-layout="11"] .box-category-link-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
}

.box-category[data-layout="11"] .box-category-sapo {
    color: #444;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tablet Layout */
@media (max-width: 991px) and (min-width: 768px) {
    .box-category[data-layout="11"] .box-category-item {
        flex: 0 0 calc(50% - 15px);
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    .box-category[data-layout="11"] .box-category-list {
        flex-direction: column;
        gap: 20px;
    }

    .box-category[data-layout="11"] .box-category-item {
        flex: 1 1 100%;
        border-bottom: 1px solid #e5e5e5;
        /* is-border-mobile */
        padding-bottom: 20px;
        gap: 10px;
    }

    .box-category[data-layout="11"] .box-category-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .box-category[data-layout="11"] .box-category-content {
        order: -1;
        /* is-title-first-mobile */
    }

    .box-category[data-layout="11"] .box-category-link-with-avatar {
        margin-bottom: 0;
    }

    .box-category[data-layout="11"] .box-category-sapo {
        display: none;
        /* Hide sapo on mobile grid views */
    }
}

/* Mapping data-layout="13" to match original .c-box.is-title-line and grid */
.box-category[data-layout="13"] {
    margin-bottom: 20px;
}

.box-category[data-layout="13"] .box-category-top {
    border-top: 1px solid #007ac0;
    margin-bottom: 15px;
    padding-top: 15px;
}

.box-category[data-layout="13"] .box-category-top h2 {
    margin: 0;
}

.box-category[data-layout="13"] .box-category-title {
    display: inline-block;
    vertical-align: top;
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    font-size: 22px;
    font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
}

.box-category[data-layout="13"] .box-category-title:hover {
    color: #ed1b23;
}

.box-category[data-layout="13"] .box-category-middle {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.box-category[data-layout="13"] .box-category-item {
    width: 33.333333%;
    padding: 0 10px;
    margin-bottom: 24px;
}

.box-category[data-layout="13"] .box-category-link-with-avatar {
    display: block;
    width: 100%;
    aspect-ratio: 540 / 360;
    overflow: hidden;
    margin-bottom: 10px;
}

.box-category[data-layout="13"] .box-category-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.box-category[data-layout="13"] .box-category-link-with-avatar:hover .box-category-avatar {
    transform: scale(1.05);
}

.box-category[data-layout="13"] .box-category-content {
    display: flex;
    flex-direction: column;
}

.box-category[data-layout="13"] .box-category-title-text {
    margin: 0;
}

.box-category[data-layout="13"] .box-category-link-title {
    font-family: "Roboto Slab", serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.box-category[data-layout="13"] .box-category-link-title:hover {
    color: #007ac0;
}

.box-category[data-layout="13"] .box-category-sapo,
.box-category[data-layout="13"] .box-category-category,
.box-category[data-layout="13"] .box-category-time {
    display: none;
}

/* Mobile specific styles */
@media (max-width: 991px) {
    .box-category[data-layout="13"] .box-category-middle {
        margin: 0;
        display: block;
    }

    .box-category[data-layout="13"] .box-category-item {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
        display: flex;
        flex-direction: row;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    .box-category[data-layout="13"] .box-category-item:first-child {
        flex-direction: column;
        border-top: none;
        padding-top: 0;
    }

    .box-category[data-layout="13"] .box-category-item:first-child .box-category-link-with-avatar {
        width: 100%;
        margin-bottom: 10px;
        aspect-ratio: 540 / 360;
    }

    .box-category[data-layout="13"] .box-category-item:first-child .box-category-link-title {
        font-size: 20px;
    }

    .box-category[data-layout="13"] .box-category-item:not(:first-child) .box-category-link-with-avatar {
        width: 120px;
        flex-shrink: 0;
        margin-right: 15px;
        margin-bottom: 0;
        aspect-ratio: 540 / 360;
    }

    .box-category[data-layout="13"] .box-category-item:not(:first-child) .box-category-link-title {
        font-size: 16px;
    }
}

/* Mapping data-layout="14" to match original .c-box.is-title-line and .is-list-pc */
.box-category[data-layout="14"] {
    margin-bottom: 20px;
}

.box-category[data-layout="14"] .box-category-top {
    border-top: 1px solid #007ac0;
    margin-bottom: 15px;
    padding-top: 15px;
}

.box-category[data-layout="14"] .box-category-top h2 {
    margin: 0;
}

.box-category[data-layout="14"] .box-category-title {
    display: inline-block;
    vertical-align: top;
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    font-size: 22px;
    font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
}

.box-category[data-layout="14"] .box-category-title:hover {
    color: #ed1b23;
}

.box-category[data-layout="14"] .box-category-middle {
    display: block;
}

.box-category[data-layout="14"] .box-category-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.box-category[data-layout="14"] .box-category-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.box-category[data-layout="14"] .box-category-link-with-avatar {
    width: 280px;
    flex-shrink: 0;
    margin-bottom: 0;
    display: block;
    aspect-ratio: 540 / 360;
    overflow: hidden;
}

.box-category[data-layout="14"] .box-category-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.box-category[data-layout="14"] .box-category-link-with-avatar:hover .box-category-avatar {
    transform: scale(1.05);
}

.box-category[data-layout="14"] .box-category-content {
    width: calc(100% - 280px);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.box-category[data-layout="14"] .box-category-title-text {
    margin: 0 0 10px 0;
}

.box-category[data-layout="14"] .box-category-link-title {
    font-family: "Roboto Slab", serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.box-category[data-layout="14"] .box-category-link-title:hover {
    color: #007ac0;
}

.box-category[data-layout="14"] .box-category-time {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.box-category[data-layout="14"] .box-category-sapo {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile specific styles for data-layout="14" */
@media (max-width: 991px) {
    .box-category[data-layout="14"] .box-category-item:first-child {
        flex-direction: column;
    }

    .box-category[data-layout="14"] .box-category-item:first-child .box-category-link-with-avatar {
        width: 100%;
        margin-bottom: 15px;
    }

    .box-category[data-layout="14"] .box-category-item:first-child .box-category-content {
        width: 100%;
        padding-left: 0;
    }

    .box-category[data-layout="14"] .box-category-item:not(:first-child) {
        flex-direction: row;
    }

    .box-category[data-layout="14"] .box-category-item:not(:first-child) .box-category-link-with-avatar {
        width: 120px;
    }

    .box-category[data-layout="14"] .box-category-item:not(:first-child) .box-category-content {
        width: calc(100% - 120px);
        padding-left: 15px;
    }

    .box-category[data-layout="14"] .box-category-item:not(:first-child) .box-category-link-title {
        font-size: 16px;
    }

    .box-category[data-layout="14"] .box-category-item:not(:first-child) .box-category-sapo {
        display: none;
    }
}

/* Mapping data-layout="15" to match original .c-box.is-title-line.is-border and .c-news-topread */
.box-category[data-layout="15"] {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #E5E5E5;
}

.box-category[data-layout="15"] .box-category-top h2 {
    margin: 0;
}

.box-category[data-layout="15"] .box-category-title {
    display: inline-block;
    vertical-align: top;
    color: #007ac0;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    font-size: 22px;
    font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
}

.box-category[data-layout="15"] .box-category-title:hover {
    color: #ed1b23;
}

.box-category[data-layout="15"] .box-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.box-category[data-layout="15"] .box-category-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #E5E5E5;
}

.box-category[data-layout="15"] .box-category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.box-category[data-layout="15"] .box-category-number {
    width: 40px;
    border-right: 1px dashed #ddd;
}

.box-category[data-layout="15"] .box-category-number span {
    font-size: 40px;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #ed1b23;
    text-shadow: 2px -2px 0 rgba(255, 193, 7, 0.5);
}

.box-category[data-layout="15"] .box-category-title-text {
    margin: 0;
    line-height: 1.4;
    font-size: 16px;
    font-weight: 700;
    padding-left: 15px;
    width: calc(100% - 40px);
    font-family: "Roboto Slab", serif;
}

.box-category[data-layout="15"] .box-category-link-title {
    display: block;
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.box-category[data-layout="15"] .box-category-link-title:hover {
    color: #ed1b23;
}