/* ==========================================================================
   WINTER IP — INSIGHTS UI
   Dùng chung cho: 9 trang danh sách + trang bài viết (single.php)
   Nạp tự động bởi inc/winter-blog.php (chỉ trên các trang này).

   Trang danh sách theo chuẩn Insights/Briefings của hãng luật quốc tế:
   cùng khung với trang bài viết: cột trái (tiêu đề, danh sách [ngày] nội dung
   [ảnh]) + sidebar xám (tìm kiếm, lĩnh vực, bài viết mới nhất).

   MỤC LỤC
   1. Tokens (màu, chữ)            ← đổi màu toàn bộ ở đây
   2. Trang bài viết: khung 2 cột + sidebar
   3. Breadcrumb
   4. Trang danh sách: khung (giống single.php) + header trong cột trái
   5. Cột phải: tìm kiếm, lĩnh vực, bài viết mới nhất
   6. Trang danh sách: bộ lọc đang chọn, bài viết, phân trang
   7. Trang bài viết: nội dung
   8. Responsive
   ========================================================================== */


/* 1. TOKENS ================================================================ */

.w-blog {
    /* Màu nhấn = màu Primary của Flatsome (Customizer › Style › Colors) */
    --wb-primary: var(--fs-color-primary, var(--primary-color, #4C3FAE));
    --wb-primary-dark: color-mix(in srgb, var(--wb-primary) 82%, #000);
    --wb-accent: var(--fs-color-secondary, #ED1C24);
    --wb-primary-soft: color-mix(in srgb, var(--wb-primary) 8%, #fff);

    /* Chữ: KHÔNG đặt màu cứng — dùng màu chữ & màu tiêu đề của theme.
       Chữ phụ (ngày, tác giả, breadcrumb) = màu chữ của theme, nhạt bớt. */
    --wb-muted: color-mix(in srgb, currentColor 78%, transparent);
    --wb-faint: color-mix(in srgb, currentColor 62%, transparent);

    --wb-border: #e3e3e8;
    --wb-line: #ececf0;
    --wb-surface: #f7f7fa;

    /* Biến cho ô tìm kiếm (CSS trong inc/winter-listing.php) */
    --w-primary: var(--wb-primary);
    --w-primary-dark: var(--wb-primary-dark);

    --wb-radius: 6px;

    font-family: 'Roboto', Arial, sans-serif;
}


/* 2. TRANG BÀI VIẾT: KHUNG 2 CỘT + SIDEBAR ================================= */

.w-blog .w-row { align-items: stretch; }
.w-blog .w-main > .col-inner { padding-left: 40px; padding-right: 40px; }
.w-blog .w-aside > .col-inner { height: 100%; }

.w-side {
    height: 100%;
    padding: 40px 30px;
    background: var(--wb-surface);
    border-left: 1px solid var(--wb-border);
}

.w-blog .w-side__title {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}
.w-blog .w-side__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--wb-primary), var(--wb-primary-dark));
}

.w-recent {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wb-line);
}
.w-recent:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.w-recent__thumb {
    flex-shrink: 0;
    width: 96px;
    height: 64px;
    overflow: hidden;
    border-radius: 6px;
    background: #e9e9ef;
}
.w-recent__thumb img { width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .3s ease; }
.w-recent:hover .w-recent__thumb img { transform: scale(1.06); }
.w-recent__body { flex: 1; min-width: 0; }
.w-recent__body a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.w-recent__body a:hover { color: var(--wb-primary); }
.w-recent__body time { font-size: 12px; color: var(--wb-faint); }
.w-side__empty { font-size: 14px; font-style: italic; color: var(--wb-faint); }


/* 3. BREADCRUMB ============================================================ */

.w-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--wb-faint);
}
.w-crumb a { color: var(--wb-faint); text-decoration: none; transition: color .2s ease; }
.w-crumb a:hover { color: var(--wb-primary); }
.w-crumb > :last-child { color: inherit; }
.w-crumb__sep { color: #c8c8d0; }


/* 4. TRANG DANH SÁCH: KHUNG (giống hệt single.php) ========================
   .row → .large-8.w-main (thụt 40px) + .large-4.w-aside (.w-side nền xám).
   Các quy tắc .w-row / .w-main / .w-aside / .w-side ở mục 2 dùng chung.  */

/* Header trong cột trái: breadcrumb → tiêu đề → giới thiệu → đường kẻ */
.w-lhead {
    margin-bottom: 4px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--wb-border);
}
.w-blog .w-lhead__title {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    text-transform: none;
}
.w-lhead__intro {
    max-width: 720px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: inherit;
}


/* 5. CỘT PHẢI: TÌM KIẾM, LĨNH VỰC, BÀI VIẾT MỚI NHẤT ====================== */

.w-rail__sec + .w-rail__sec { margin-top: 44px; }

/* Ô tìm kiếm: ô trắng + nút kính lúp bên trong */
.w-hsearch { margin: 0; }
.w-hsearch--mobile { display: none; }
.w-hsearch__field {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 5px 0 0;
    border: 1px solid #cfcfd8;
    border-radius: 6px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.w-hsearch__field:focus-within {
    border-color: var(--wb-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wb-primary) 15%, transparent);
}
.w-hsearch input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 12px 0 16px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: inherit;
    font-size: 15px !important;
    color: inherit !important;
    -webkit-appearance: none;
    appearance: none;
}
.w-hsearch input[type="search"]::placeholder { color: #9a9aa6; opacity: 1; }
.w-hsearch input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.w-blog .w-hsearch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--wb-primary);
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}
.w-blog .w-hsearch button:hover { background: var(--wb-primary-dark); }

/* Ô chọn lĩnh vực: chỉ có ở form mobile */
.w-hsearch__topic { display: none; }

/* Lĩnh vực / Practice Areas: dạng tag */
.w-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.w-tags__item {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid #d6d6de;
    border-radius: 999px;
    background: #fff;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.w-tags__item:hover { border-color: var(--wb-primary); color: var(--wb-primary); }
.w-tags__item.is-active,
.w-tags__item.is-active:hover { border-color: var(--wb-primary); background: var(--wb-primary); color: #fff; }


/* 6. TRANG DANH SÁCH: KẾT QUẢ ============================================== */

/* Bộ lọc đang chọn (chỉ khi đang tìm/lọc, không có số lượng) */
.w-active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wb-border);
}
.w-active__label { font-size: 14px; color: var(--wb-muted); }
.w-active__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--wb-primary-soft);
    color: var(--wb-primary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}
.w-active__tag:hover { background: var(--wb-primary); color: #fff; }
.w-active__clear {
    font-size: 13px;
    color: var(--wb-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.w-active__clear:hover { color: var(--wb-primary); }

/* Danh sách bài: [NGÀY] | nhãn / tiêu đề / mô tả / tác giả | [ảnh] */
.w-blog .w-list { margin: 0; padding: 0; list-style: none; }
.w-blog .w-list > .w-entry { margin-left: 0; margin-right: 0; } /* Flatsome: .col-inner ol li { margin-left: 1.3em } */

.w-entry {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 240px;
    grid-template-areas: "date body thumb";
    gap: 32px;
    align-items: start;
    margin: 0;
    padding: 30px 0;
    border-bottom: 1px solid var(--wb-border);
    list-style: none;
}
.w-entry--text {
    grid-template-columns: 110px minmax(0, 1fr);
    grid-template-areas: "date body";
}
.w-entry__date  { grid-area: date; }
.w-entry__body  { grid-area: body; min-width: 0; }
.w-entry__thumb { grid-area: thumb; }

/* Cột ngày: vạch màu + ngày lớn + tháng/năm */
.w-entry__date {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
    border-top: 3px solid var(--wb-primary);
}
.w-entry__day {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.w-entry__month {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--wb-muted);
}

/* Ảnh bên phải: khung 3:2 cố định, viền mảnh */
.w-entry__thumb {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid var(--wb-line);
    border-radius: 4px;
    background: var(--wb-surface);
}
.w-entry__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .4s ease;
}
.w-entry:hover .w-entry__thumb img { transform: scale(1.03); }

/* Nhãn: LOẠI | LĨNH VỰC */
.w-entry__label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.w-entry__type { color: var(--wb-primary); }
.w-entry__topic {
    display: inline-flex;
    align-items: center;
    color: var(--wb-muted);
    text-decoration: none;
}
.w-entry__topic::before {
    content: '';
    width: 1px;
    height: 11px;
    margin: 0 10px;
    background: #c8c8d0;
}
.w-entry__topic:hover { color: var(--wb-primary); }

/* Tiêu đề */
.w-blog .w-entry__title {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.005em;
    text-transform: none;
}
.w-entry__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.w-entry__title a:hover { color: var(--wb-primary); }

/* Mô tả */
.w-entry__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: inherit;
}

/* Tác giả · ngày */
.w-entry__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--wb-muted);
}
.w-entry__author strong { font-weight: 600; color: inherit; }
.w-entry__meta time { display: inline-flex; align-items: center; }
.w-entry__meta time::before {
    content: '';
    width: 3px;
    height: 3px;
    margin: 0 10px;
    border-radius: 50%;
    background: #a8a8b4;
}

/* Phân trang (markup từ winter_pagination) */
.w-blog .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 0;
}
.w-blog .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius);
    background: #fff;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
}
.w-blog .page-btn:hover { border-color: var(--wb-primary); color: var(--wb-primary); }
.w-blog .page-btn.current,
.w-blog .page-btn.active { border-color: var(--wb-primary); background: var(--wb-primary); color: #fff; }

/* Trống, thông báo */
.w-empty {
    margin: 28px 0 0;
    padding: 40px 28px;
    border: 1px dashed var(--wb-border);
    border-radius: var(--wb-radius);
    text-align: center;
    color: var(--wb-muted);
}
.w-empty p { margin: 0 0 8px; }
.w-empty__title { font-size: 18px; font-weight: 600; }
.w-empty a { color: var(--wb-primary); font-weight: 500; }

.w-notice {
    margin: 0 0 20px;
    padding: 10px 14px;
    border-left: 3px solid #f0b429;
    background: #fff8e6;
    font-size: 14px;
    color: #6b5200;
}


/* 7. TRANG BÀI VIẾT: NỘI DUNG ============================================== */

/* Header bài: breadcrumb → LOẠI | LĨNH VỰC → tiêu đề → tác giả · ngày → đường kẻ */
.blog-single .post-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wb-border);
}
.blog-single .post-header .w-entry__label { margin-bottom: 10px; }
a.w-entry__type { text-decoration: none; }
a.w-entry__type:hover { color: var(--wb-primary-dark); }
.blog-single .post-title.custom-post-title {
    margin: 0 0 14px !important;
    font-family: inherit;
    font-size: 30px !important;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    text-transform: none;
}
.blog-single .post-header .w-entry__meta { font-size: 14px; }

/* Nội dung */
.blog-single .entry-content {
    max-width: 720px;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    color: inherit;
}
.blog-single .entry-content > *,
.blog-single .entry-content p,
.blog-single .entry-content h2,
.blog-single .entry-content h3,
.blog-single .entry-content ul,
.blog-single .entry-content ol { margin-left: 0 !important; padding-left: 0 !important; }
.blog-single .entry-content > *:first-child { margin-top: 0 !important; }
.blog-single .entry-content > p:empty,
.blog-single .entry-content > p > br:only-child { display: none !important; }
.blog-single .entry-content p { margin-bottom: 1.05em; }

/* Sapo (đoạn mở đầu) */
.blog-single .entry-content > p:first-of-type {
    margin-top: 0;
    margin-bottom: 1.2em;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
}
/* Đoạn đầu chỉ là tiêu đề in đậm → trả về cỡ chữ thường.
   KHÔNG set font-weight ở đây (Flatsome dùng strong { font-weight: bolder }) */
.blog-single .entry-content > p:first-of-type:has(> strong:only-child),
.blog-single .entry-content > p:first-of-type:has(> b:only-child) {
    margin-bottom: 1.05em;
    font-size: 17px;
    line-height: 1.7;
}
.blog-single .entry-content strong,
.blog-single .entry-content b { font-weight: 700 !important; }

.blog-single .entry-content .highlight-numbers strong {
    padding: 2px 6px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--wb-primary-soft) 0%, transparent 100%);
    color: var(--wb-primary);
    font-size: 18px;
    font-weight: 600 !important;
}

.blog-single .entry-content h2 {
    margin: 1.6em 0 0.7em;
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.blog-single .entry-content h3 {
    margin: 1.3em 0 0.6em;
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.blog-single .entry-content ul,
.blog-single .entry-content ol { margin: 1em 0; padding-left: 1.8em !important; }
.blog-single .entry-content li { margin-bottom: 0.45em; }

.blog-single .entry-content a {
    color: var(--wb-primary);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all .3s ease;
}
.blog-single .entry-content a:hover { color: var(--wb-primary-dark); text-decoration-thickness: 2px; }

.blog-single .entry-content blockquote {
    margin: 1.6em 0;
    padding: 12px 20px !important;
    border-left: 4px solid var(--wb-primary);
    background: var(--wb-primary-soft);
    font-style: italic;
    font-weight: 300;
    color: var(--wb-muted);
}

/* Ảnh & chú thích */
.blog-single .entry-content img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.blog-single .entry-content .alignleft,
.blog-single .entry-content figure.alignleft {
    float: left !important;
    clear: left;
    margin-right: 1.8em !important;
    margin-bottom: 1em !important;
}
.blog-single .entry-content .alignright,
.blog-single .entry-content figure.alignright {
    float: right !important;
    clear: right;
    margin-left: 1.8em !important;
    margin-bottom: 1em !important;
}
.blog-single .entry-content .aligncenter,
.blog-single .entry-content figure.aligncenter {
    display: block !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}
.blog-single .entry-content .wp-block-image,
.blog-single .entry-content .wp-caption,
.blog-single .entry-content figure {
    box-sizing: border-box;
    max-width: 100% !important;
    margin: 1.5em 0 !important;
    padding: 0 !important;
}
.blog-single .entry-content .wp-block-image img,
.blog-single .entry-content .wp-caption img,
.blog-single .entry-content figure img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.blog-single .entry-content figcaption,
.blog-single .entry-content .wp-caption-text {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 10px 0 0 !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    font-style: italic !important;
    line-height: 1.5 !important;
    color: var(--wb-muted) !important;
    text-align: inherit !important;
    overflow-wrap: break-word;
}
.blog-single .entry-content .aligncenter figcaption,
.blog-single .entry-content .aligncenter .wp-caption-text { text-align: center !important; }
.blog-single .entry-content .alignleft figcaption,
.blog-single .entry-content .alignleft .wp-caption-text { text-align: left !important; }
.blog-single .entry-content .alignright figcaption,
.blog-single .entry-content .alignright .wp-caption-text { text-align: right !important; }

/* Bảng trong bài: giữ nguyên style trong style.css */

/* Chia sẻ */
.w-share {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}
.w-share::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--wb-border) 20%, var(--wb-border) 80%, transparent);
}
.w-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--wb-primary);
    border-radius: 50%;
    color: var(--wb-primary);
    font-size: 16px;
    text-decoration: none;
    transition: all .3s ease;
}
.w-share a:hover,
.w-share a:focus-visible {
    background: var(--wb-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px color-mix(in srgb, var(--wb-primary) 30%, transparent);
}
.w-share a i { line-height: 1; }

/* Khối liên hệ cuối bài (CTA): tiêu đề → mô tả → nút (xếp dọc, căn trái) */
.w-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin: 8px 0 40px;
    padding: 30px 32px;
    border: 1px solid var(--wb-border);
    border-left: 4px solid var(--wb-primary);
    border-radius: 8px;
    background: var(--wb-surface);
}
.w-cta__body { min-width: 0; max-width: 680px; }
.w-blog .w-cta__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
}
.w-cta__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: inherit;
}
.w-blog .w-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px 22px;
    border-radius: 6px;
    background: var(--wb-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s ease;
}
.w-blog .w-cta__btn:hover { background: var(--wb-primary-dark); color: #fff; }
.w-cta__btn span { transition: transform .2s ease; }
.w-cta__btn:hover span { transform: translateX(3px); }


/* 8. RESPONSIVE ============================================================
   849px = mốc Flatsome xếp chồng cột
   ========================================================================== */

/* Kích thước cột ngày và ảnh (giống nhau ở mọi trang danh sách) */
.w-listing .w-entry { grid-template-columns: 90px minmax(0, 1fr) 200px; gap: 28px; }
.w-listing .w-entry--text { grid-template-columns: 90px minmax(0, 1fr); }
@media (max-width: 1199px) {
    .w-blog.w-listing .w-entry { grid-template-columns: 76px minmax(0, 1fr) 170px; gap: 22px; }
    .w-blog.w-listing .w-entry--text { grid-template-columns: 76px minmax(0, 1fr); }
    .w-entry__day { font-size: 34px; }
}

@media (max-width: 849px) {
    /* Trang bài viết */
    .w-blog .w-main > .col-inner { padding-left: 20px; padding-right: 20px; }
    .w-blog .w-aside > .col-inner { height: auto; }
    .w-side { height: auto; padding: 32px 20px; border-left: none; border-top: 1px solid var(--wb-border); }
    .blog-single .post-title.custom-post-title { font-size: 24px !important; }
    .blog-single .entry-content { max-width: 100%; overflow-x: auto; }
    .blog-single .entry-content .alignleft,
    .blog-single .entry-content .alignright {
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 1.5em !important;
    }
    .blog-single .entry-content .alignleft figcaption,
    .blog-single .entry-content .alignright figcaption { text-align: center !important; }
    .w-cta { padding: 24px 20px; }

    /* Trang danh sách: ô tìm kiếm lên dưới tiêu đề, cột phải xuống cuối */
    .w-blog .w-lhead__title { font-size: 26px; }
    .w-hsearch--mobile { display: block; margin-top: 18px; }
    .w-rail__sec--search,
    .w-rail__sec--topics { display: none; }
    .w-hsearch__topic {
        display: block;
        width: 100%;
        height: 46px;
        margin: 10px 0 0;
        padding: 0 40px 0 14px;
        border: 1px solid #cfcfd8;
        border-radius: 6px;
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
        box-shadow: none;
        font-size: 15px;
        color: inherit;
        -webkit-appearance: none;
        appearance: none;
    }
}

@media (max-width: 549px) {

    /* Ngày thành 1 dòng nhỏ phía trên; chữ bên trái, ảnh nhỏ bên phải */
    .w-blog.w-listing .w-entry {
        grid-template-columns: minmax(0, 1fr) 96px;
        grid-template-areas: "date date" "body thumb";
        gap: 8px 14px;
        padding: 20px 0;
    }
    .w-blog.w-listing .w-entry--text {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "date" "body";
    }
    .w-entry__date { flex-direction: row; align-items: baseline; gap: 6px; padding-top: 0; border-top: 0; }
    .w-entry__day,
    .w-entry__month { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--wb-muted); }
    .w-listing[lang="vi"] .w-entry__date { gap: 0; }
    .w-listing[lang="vi"] .w-entry__day::after { content: '/'; } /* 01/12/2025 */

    .w-blog .w-entry__title { font-size: 17px; }
    .w-entry__excerpt { display: none; }
    .w-entry__meta { font-size: 13px; }

    /* Nhãn xếp dòng riêng, không để vạch rơi đầu dòng */
    .w-entry__label { flex-direction: column; align-items: flex-start; gap: 2px; }
    .w-entry__topic::before { display: none; }
    .w-entry__meta { flex-direction: column; align-items: flex-start; gap: 0; }
    .w-entry__meta time::before { display: none; }
    .w-cta { padding: 22px 18px; }
}
