/* ==========================================================================
   PNNN Home Blocks — Editorial Magazine Layout
   Nap chi o trang chu (is_front_page || is_home). Khong anh huong trang khac.
   Design system: cream #FAF9F6 · ink #1A1A1A · rose-clay #E0A995
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

/* ==========================================================================
   DESIGN TOKENS — editorial palette (override chrome.css tokens tren homepage)
   ========================================================================== */
body.home {
    --pnnn-pink:   #E0A995;   /* rose-clay — accent chinh */
    --pnnn-pink-2: #C98572;   /* rose-clay dam hon, dung cho hover */
    --pnnn-ink:    #1A1A1A;
    --pnnn-muted:  #777;
    --pnnn-line:   #ECDDD8;   /* warm rose border */
    --pnnn-soft:   #FDF5F1;   /* nen kem cuc nhat */
    --pnnn-soft-2: #FAF9F6;   /* nen cream chinh */
    --pnnn-radius: 12px;
    background: #FAF9F6;
}

html[data-theme="dark"] body.home {
    --pnnn-pink:   #E8A9BA;
    --pnnn-pink-2: #C95F86;
    --pnnn-ink:    #F5EEF2;
    --pnnn-muted:  #C6B7C0;
    --pnnn-line:   #3A2B34;
    --pnnn-soft:   #211820;
    --pnnn-soft-2: #121015;
    background:#121015;
}

/* ==========================================================================
   BASE SECTION
   ========================================================================== */
.pnnn-section {
    margin: 56px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--pnnn-ink);
}
/* Divider mềm gradient phân tách mỗi khối */
.pnnn-section::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 28px;
    background: linear-gradient(90deg, rgba(122,38,80,.28), rgba(224,169,149,.18), transparent);
}

/* ==========================================================================
   SECTION HEADING — [TEN DANH MUC] [sub-pills] [Xem them]
   ========================================================================== */
.pnnn-section-heading {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pnnn-line);
}
/* Duong nhan gradient duoi ten danh muc */
.pnnn-section-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 80px; height: 2px;
    background: linear-gradient(90deg, #C12D65, rgba(193,45,101,0));
    border-radius: 999px;
}
.pnnn-section-title {
    flex-shrink: 0;
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    text-transform: none;
    color: var(--pnnn-ink);
    position: relative;
    padding-left: 14px;
}
/* Thanh nhấn hồng rượu bên trái tiêu đề */
.pnnn-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .16em;
    width: 4px;
    height: .82em;
    border-radius: 999px;
    background: #C12D65;
}
.pnnn-section-title a { color: inherit; text-decoration: none; }
.pnnn-section-title a:hover { color: #C12D65; }

/* Pills nam giua title va more link */
.pnnn-section-heading .pnnn-pills {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.pnnn-section-more {
    flex-shrink: 0;
    margin: 0;
    color: #8A254F;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}
.pnnn-section-more:hover {
    color: #B72E63;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Subnav dong nhat voi pills — nen bo goc tron, cung style Song Khoe / Than Tam Tri */
.pnnn-section-heading .pnnn-section-subnav {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.pnnn-section-heading .pnnn-section-subnav a {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    background: #FFF1EC;
    border: 1px solid rgba(138,37,79,.18);
    color: #8A254F;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pnnn-section-heading .pnnn-section-subnav a:hover {
    background: #B72E63;
    border-color: #B72E63;
    color: #fff;
}
/* An separator dash — pills khong can gach ngang */
.pnnn-section-heading .pnnn-section-subnav span { display: none; }

/* ==========================================================================
   PILLS (subcategory tags)
   ========================================================================== */
.pnnn-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.pnnn-pill {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    background: #FFF1EC;
    border: 1px solid rgba(138,37,79,.18);
    color: #8A254F;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pnnn-pill:hover {
    background: #B72E63;
    border-color: #B72E63;
    color: #fff;
}

/* ==========================================================================
   CHIP (category badge tren anh)
   ========================================================================== */
.pnnn-chip {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(224,169,149,.92);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

/* ==========================================================================
   CARD BASE
   ========================================================================== */
.pnnn-card { position: relative; }

.pnnn-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--pnnn-radius);
    background: #ecddd8;
    line-height: 0;
}
.pnnn-card__media .pnnn-img,
.pnnn-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease-out;
}
.pnnn-card__media:hover .pnnn-img,
.pnnn-card__media:hover img {
    transform: scale(1.05);
}

/* Tieu de bai viet: Playfair Display */
.pnnn-card__title {
    margin: 10px 0 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}
.pnnn-card__title a {
    color: var(--pnnn-ink);
    text-decoration: none;
    transition: color .15s ease;
}
.pnnn-card__title a:hover { color: var(--pnnn-pink); }

/* Title editorial (Ed1 cards + Ed2 feature) */
.pnnn-card__title--ed {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}
.pnnn-card__title--ed a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Title nho (Ed2 small) */
.pnnn-card__title--sm {
    font-size: 15px;
    font-weight: 700;
}
.pnnn-card__title--sm a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pnnn-card__excerpt {
    margin: 8px 0 0;
    color: var(--pnnn-muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   STYLE 1 (Ed1): Grid 3 bai + banner sidebar
   Dung cho: Song khoe, Than tam tri, Doi song, Phat trien
   ========================================================================== */
.pnnn-ed1-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 200px;
    gap: 24px;
    align-items: stretch;   /* banner keo dai bang chieu cao hang bai */
}

/* Doi song: 4 bai + banner */
.pnnn-section--4col .pnnn-ed1-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 200px;
}

/* Anh card Ed1: ty le 4/3 */
.pnnn-card--ed1 .pnnn-card__media {
    aspect-ratio: 4 / 3;
}

/* ==========================================================================
   BANNER SIDEBAR (cot cuoi Style 1)
   ========================================================================== */
.pnnn-ed-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    height: 100%;           /* keo dai bang chieu cao hang */
    box-sizing: border-box;
    padding: 24px 20px;
    background: var(--pnnn-soft);
    border: 1px solid var(--pnnn-line);
    border-radius: var(--pnnn-radius);
    text-align: center;
}

/* Book CTA variant — hien anh sach va link */
.pnnn-ed-banner--book { justify-content: flex-start; gap: 8px; }
.pnnn-ed-banner__book-img {
    display: block;
    text-align: center;
    width: 100%;
    margin: 6px 0 14px;
}
.pnnn-ed-banner__book-img img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--pnnn-line);
}
.pnnn-ed-banner__kicker {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pnnn-pink);
}
.pnnn-ed-banner__title {
    margin: 0 0 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--pnnn-ink);
}
.pnnn-ed-banner__text {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--pnnn-muted);
    line-height: 1.6;
}
.pnnn-ed-banner__cta {
    display: inline-block;
    padding: 8px 18px;
    background: var(--pnnn-pink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s ease;
}
.pnnn-ed-banner__cta:hover { background: var(--pnnn-pink-2); color: #fff; }

/* ==========================================================================
   SOFT SECTION VARIANT (Than tam tri)
   ========================================================================== */
.pnnn-section--soft {
    background: var(--pnnn-soft);
    border: 1px solid var(--pnnn-line);
    border-radius: 20px;
    padding: 28px 28px 32px;
}
/* Section --soft đã có border nên ẩn gradient divider ::before */
.pnnn-section--soft::before { display: none; }
.pnnn-section--soft .pnnn-section-heading {
    border-bottom-color: rgba(236,221,216,.8);
}
.pnnn-section--soft .pnnn-ed-banner {
    background: #fff;
}

/* ==========================================================================
   STYLE 2 (Ed2): 1 tieu diem ngang (2fr) + 2 nho stacked (1fr)
   Dung cho: Lam dep, Gia dinh, Am thuc
   ========================================================================== */
.pnnn-ed2-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* Bai tieu diem: anh trai + text phai (layout ngang) */
.pnnn-card--ed2-feature {
    display: flex;
    gap: 20px;
    align-items: start;
}
.pnnn-card--ed2-feature .pnnn-card__media {
    flex: 0 0 52%;
    aspect-ratio: 4 / 3;
}
.pnnn-card--ed2-feature .pnnn-card__body {
    flex: 1;
    min-width: 0;
}
.pnnn-card--ed2-feature .pnnn-card__title--ed a {
    -webkit-line-clamp: 4;
}
.pnnn-card--ed2-feature .pnnn-card__excerpt {
    -webkit-line-clamp: 4;
}

/* 2 bai nho stacked */
.pnnn-ed2-side {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pnnn-card--ed2-small {
    padding: 16px 0;
    border-bottom: 1px solid var(--pnnn-line);
}
.pnnn-card--ed2-small:first-child { padding-top: 0; }
.pnnn-card--ed2-small:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.pnnn-card--ed2-small .pnnn-card__media--sm {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
}
.pnnn-card--ed2-small .pnnn-card__title { margin-top: 10px; }

/* ==========================================================================
   TICKER "Moi cap nhat" — chi o trang chu
   ========================================================================== */
body.home .post-update {
    background: var(--pnnn-soft);
    border: 1px solid var(--pnnn-line);
    border-radius: 10px;
    padding: 8px 16px;
    margin: 18px 0 4px;
}
body.home .post-update .slider-posts-news { border-bottom: none; }
body.home .title-posts-news {
    width: auto;
    background: var(--pnnn-pink);
    color: #fff;
    border-radius: 999px;
    padding: 4px 14px;
    margin-right: 16px;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 700;
}
body.home .title-posts-news:after { display: none; }
body.home .post-update .append_recent { overflow: hidden; }
body.home .post-update .slider-posts-news .item a {
    color: var(--pnnn-ink);
    font-weight: 600;
    transition: color .15s ease;
}
body.home .post-update .slider-posts-news .item a:hover { color: var(--pnnn-pink); }
body.home .slider-posts-news .owl-nav [class*="owl-"] {
    background: #fff !important;
    border: 1px solid var(--pnnn-line);
    border-radius: 50%;
    width: 24px; height: 24px;
}
body.home .slider-posts-news .owl-nav [class*="owl-"] i { color: var(--pnnn-pink); }

/* ==========================================================================
   HERO — 50/50: 1 bai chinh lon (trai) + 4 bai nho grid 2x2 (phai)
   ========================================================================== */
.pnnn-top-featured,
.pnnn-top-featured * { box-sizing: border-box; }

.pnnn-top-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--pnnn-ink);
}

/* Cot trai: 1 bai lon */
.pnnn-top-featured__main {
    min-width: 0;
    float: none !important;
    max-width: none;
}

/* Media — wrapper anh (dung chung cho main va item) */
.pnnn-top-featured__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--pnnn-radius);
    background: #ecddd8;
    line-height: 0;
    aspect-ratio: 16 / 10;  /* anh bai chinh */
}
.pnnn-top-featured__media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease-out;
}
.pnnn-top-featured__media:hover img { transform: scale(1.04); }

/* Chip category tren anh */
.pnnn-top-featured .pnnn-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    line-height: 1.2;
}

/* Overlay tieu de tren bai chinh */
.pnnn-top-featured__overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 60px 24px 22px;
    background: linear-gradient(to top, rgba(20,10,16,.78) 0%, rgba(20,10,16,.28) 55%, transparent 100%);
}
.pnnn-top-featured__title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pnnn-top-featured__excerpt {
    margin: 12px 0 0;
    color: var(--pnnn-muted);
    font-size: 14.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cot phai: 4 bai nho grid 2x2 */
.pnnn-top-featured__side {
    min-width: 0;
    float: none !important;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    align-content: start;
}

/* Moi bai nho: anh tren, title duoi (vertical card) */
.pnnn-top-featured__item {
    min-width: 0;
    float: none !important;
}
.pnnn-top-featured__item .pnnn-top-featured__media {
    width: 100%;
    aspect-ratio: 16 / 9;
}
.pnnn-top-featured__item-title {
    margin: 9px 0 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}
.pnnn-top-featured__item-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--pnnn-ink);
    text-decoration: none;
    transition: color .15s ease;
}
.pnnn-top-featured__item-title a:hover { color: var(--pnnn-pink); }

/* ==========================================================================
   AD STRIP
   ========================================================================== */
.pnnn-adstrip {
    margin: 32px 0;
    padding: 14px 16px;
    border: 1px dashed rgba(224,169,149,.4);
    border-radius: 12px;
    background: var(--pnnn-soft);
    text-align: center;
    overflow: hidden;
}
.pnnn-adstrip__label {
    display: block;
    margin-bottom: 8px;
    color: #bfa89a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.pnnn-adstrip__inner { min-height: 12px; }
.pnnn-adstrip__inner :is(img, ins, iframe) { max-width: 100%; height: auto; }

/* ==========================================================================
   SECTION LAM DEP — layout rieng, khong ke thua Ed1/Ed2
   Heading: [Lam Dep] [Skincare - Trang diem - Kieu toc] [Xem Them]
   Lead row: anh lon | anh nho | text bai noi bat
   Grid: 4 bai nho ben duoi
   ========================================================================== */

/* --- Heading --- */
.pnnn-beauty-heading {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px 24px;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid #ECDDD8;
}
.pnnn-beauty-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 48px; height: 3px;
    background: #7a2148;
    border-radius: 999px;
}
.pnnn-beauty-title {
    margin: 0;
    color: #1a1a1a;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
}
.pnnn-beauty-title a { color: inherit; text-decoration: none; }
.pnnn-beauty-title a:hover { color: #7a2148; }

.pnnn-beauty-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #7a2148;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}
.pnnn-beauty-subnav a {
    color: inherit;
    text-decoration: none;
    transition: opacity .15s ease;
}
.pnnn-beauty-subnav a:hover { opacity: .65; }
.pnnn-beauty-subnav span { opacity: .35; font-weight: 400; }

.pnnn-beauty-more {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}
.pnnn-beauty-more:hover { color: #7a2148; }

/* --- Lead row: 3 col --- */
.pnnn-beauty-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px;
}

.pnnn-beauty-lead-main-thumb,
.pnnn-beauty-lead-side-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #f3f0ed;
}
.pnnn-beauty-lead-main-thumb { aspect-ratio: 16 / 8.4; }
.pnnn-beauty-lead-side-thumb { aspect-ratio: 1 / 1; }

.pnnn-beauty-lead-main-thumb img,
.pnnn-beauty-lead-side-thumb img,
.pnnn-beauty-small-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.pnnn-beauty-card:hover .pnnn-beauty-lead-main-thumb img,
.pnnn-beauty-card:hover .pnnn-beauty-lead-side-thumb img,
.pnnn-beauty-card:hover .pnnn-beauty-small-thumb img {
    transform: scale(1.05);
}

/* Text column */
.pnnn-beauty-lead-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pnnn-beauty-lead-title {
    margin: 0 0 10px;
    color: #1a1a1a;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
}
.pnnn-beauty-lead-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s ease;
}
.pnnn-beauty-lead-title a:hover { color: #7a2148; }

.pnnn-beauty-lead-excerpt {
    margin: 0 0 10px;
    color: #4c4548;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pnnn-beauty-time {
    display: block;
    color: #6c6266;
    font-size: 13px;
    line-height: 1.4;
}

/* --- Grid 4 bai nho --- */
.pnnn-beauty-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.pnnn-beauty-small-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f0ed;
}
.pnnn-beauty-small-title {
    margin: 10px 0 4px;
    color: #1a1a1a;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}
.pnnn-beauty-small-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}
.pnnn-beauty-small-title a:hover { color: #7a2148; }

/* ==========================================================================
   SECTION AM THUC — 2 bai lon 50/50 + 4 bai nho 4-col
   Heading dung pnnn-section-heading + pnnn-section-subnav (khong dung pills).
   ========================================================================== */

/* Featured row: 2 col bang nhau */
.pnnn-food-featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}
.pnnn-food-featured-card { min-width: 0; }
.pnnn-food-featured-card__media {
    aspect-ratio: 16 / 10;
}

/* Grid row: 4 col bang nhau */
.pnnn-food-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.pnnn-food-card { min-width: 0; }
.pnnn-food-card .pnnn-card__media {
    aspect-ratio: 16 / 10;
}

/* ==========================================================================
   SECTION DOI SONG — layout 2-vung: grid 6 bai (3fr) + sidebar banner (1fr)
   Heading dung pnnn-section-heading + pnnn-section-subnav (khong dash).
   ========================================================================== */

/* Layout chinh: content grid + sidebar */
.pnnn-life-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
    gap: 32px;
    align-items: stretch;
}

/* Grid 6 bai: 3 cot x 2 hang */
.pnnn-life-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-content: start;
}
.pnnn-life-card { min-width: 0; }
.pnnn-life-card .pnnn-card__media {
    aspect-ratio: 16 / 10;
}

/* Sidebar: keo dai bang chieu cao grid ben trai */
.pnnn-life-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.pnnn-life-banner {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Banner ben trong sidebar du suc chieu cao */
.pnnn-life-banner .pnnn-ed-banner {
    flex: 1;
    height: auto;
    justify-content: flex-start;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet rong (1024px) */
@media (max-width: 1024px) {
    /* Hero: xep doc (main tren, side duoi) */
    .pnnn-top-featured {
        grid-template-columns: 1fr;
    }
    /* Side van giu 2x2 */
    .pnnn-top-featured__side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Ed1: chuyen thanh 2 cot */
    .pnnn-ed1-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* Ed2: feature thu nho anh */
    .pnnn-card--ed2-feature .pnnn-card__media { flex: 0 0 44%; }

    /* Food: featured giu 2-col, grid chuyen 2-col */
    .pnnn-food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Life section: xep doc, grid 2-col, sidebar day xuong */
    .pnnn-life-layout {
        grid-template-columns: 1fr;
    }
    .pnnn-life-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pnnn-life-sidebar { display: block; }
    .pnnn-life-banner .pnnn-ed-banner { min-height: auto; }

    /* Ed1: 4-col xep lai 2-col; banner trai rong het hang */
    .pnnn-section--4col .pnnn-ed1-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pnnn-ed1-grid .pnnn-ed-banner {
        grid-column: 1 / -1;
        min-height: auto;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        text-align: left;
    }
    .pnnn-ed1-grid .pnnn-ed-banner .pnnn-ed-banner__book-img {
        flex: 0 0 80px;
        margin: 0;
    }
    .pnnn-ed1-grid .pnnn-ed-banner .pnnn-ed-banner__book-img img {
        max-height: 80px;
    }
    .pnnn-ed1-grid .pnnn-ed-banner .pnnn-ed-banner__cta { align-self: flex-end; flex-shrink: 0; }

    /* Beauty section: heading 2-col, subnav xuong hang, lead 2-col, grid 2-col */
    .pnnn-beauty-heading {
        grid-template-columns: 1fr auto;
    }
    .pnnn-beauty-subnav {
        grid-column: 1 / -1;
        order: 3;
        font-size: 18px;
    }
    .pnnn-beauty-lead {
        grid-template-columns: 1fr 1fr;
    }
    .pnnn-beauty-lead-text {
        grid-column: 1 / -1;
    }
    .pnnn-beauty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet hep (992px) — khong them gi cho hero, da xu ly o 1024 */
@media (max-width: 992px) {
    .pnnn-top-featured__title { font-size: 24px; }
}

/* Mobile (767px) */
@media (max-width: 767px) {
    .pnnn-section { margin: 36px 0; }

    /* Ed1: 1 cot */
    .pnnn-ed1-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Ed2: xep doc */
    .pnnn-ed2-grid { grid-template-columns: 1fr; gap: 20px; }
    .pnnn-card--ed2-feature {
        flex-direction: column;
        gap: 12px;
    }
    .pnnn-card--ed2-feature .pnnn-card__media { flex: none; width: 100%; }
    .pnnn-ed2-side { flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .pnnn-card--ed2-small {
        flex: 1 1 calc(50% - 8px);
        padding: 0;
        border-bottom: none;
    }
    .pnnn-card--ed2-small:last-child { border-bottom: none; }

    /* Section heading: mobile dùng flex để pills wrap xuống dòng */
    .pnnn-section-heading {
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .pnnn-section-heading .pnnn-pills,
    .pnnn-section-heading .pnnn-section-subnav { order: 3; flex-basis: 100%; }
    .pnnn-section-more { order: 2; }
    .pnnn-section-title { font-size: 22px; }

    /* Soft section */
    .pnnn-section--soft { padding: 20px 18px 24px; border-radius: 16px; }

    /* Hero */
    .pnnn-top-featured__title { font-size: 22px; }
    .pnnn-top-featured__overlay { padding: 48px 18px 16px; }
}

/* Mobile (600px) */
@media (max-width: 600px) {
    /* Hero side: 1 cot */
    .pnnn-top-featured__side {
        grid-template-columns: 1fr;
    }
    /* Life: grid 1 col */
    .pnnn-life-grid { grid-template-columns: 1fr; }

    /* Food: tat ca ve 1 col */
    .pnnn-food-featured,
    .pnnn-food-grid {
        grid-template-columns: 1fr;
    }

    /* Beauty: tat ca ve 1 cot */
    .pnnn-beauty-heading,
    .pnnn-beauty-lead,
    .pnnn-beauty-grid {
        grid-template-columns: 1fr;
    }
    .pnnn-beauty-lead-text { grid-column: auto; }
    .pnnn-beauty-subnav { order: 0; font-size: 16px; }
    .pnnn-beauty-title { font-size: 30px; }
}

/* Mobile nho (480px) */
@media (max-width: 480px) {
    .pnnn-section { margin: 28px 0; }
    .pnnn-ed2-side { flex-direction: column; }
    .pnnn-card--ed2-small { flex: none; width: 100%; }
    .pnnn-top-featured__main .pnnn-top-featured__media { aspect-ratio: 4 / 3; }
    .pnnn-top-featured__title { font-size: 20px; -webkit-line-clamp: 2; }
    body.home .title-posts-news { margin-bottom: 6px; }
}
