/* ==========================================================
   FRONTEND CSS - MAGAZINE BLOG (TRANG / XANH)
   Moi thuoc tinh tren mot dong de de chinh sua
   ========================================================== */


/* ===== 01. BANG MAU & BIEN CSS ===== */

:root {
    --brand: #0969da;
    --brand-dark: #0755b2;
    --ink: #102e53;
    --muted: #687f9e;
    --line: #e4edf7;
    --wash: #f1f7ff;
}


/* ===== 02. THIET LAP CHUNG ===== */

body {
    margin:0;
    background:#fff;
    color:var(--ink);
    font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}

a {
    color:inherit;
    text-decoration:none;
}

a:hover {
    color:var(--brand);
}


/* ===== 03. HEADER & MENU ===== */

.site-header {
    background:#fff;
    border-bottom:1px solid #edf2f8;
    box-shadow:0 2px 14px rgba(30,66,110,.035);
}

.site-header .navbar {
    min-height:72px;
    gap:12px;
}

.brand {
    margin-right:12px;
    min-width:245px;
}

.brand-mark {
    display:grid;
    place-items:center;
    width:43px;
    height:46px;
    border-radius:11px;
    background:var(--brand);
    color:white;
    font-size:27px;
    font-weight:800;
}

.brand-copy {
    display:flex;
    flex-direction:column;
    line-height:1.22;
}

.brand-copy strong {
    font-size:20px;
    font-weight:800;
    color:var(--ink);
    white-space:nowrap;
}

.brand-copy small {
    font-size:10.5px;
    color:var(--muted);
    margin-top:4px;
}

.site-header .nav-link {
    color:var(--ink);
    font-size:15px;
    font-weight:600;
    padding:12px 10px!important;
    position:relative;
}

.site-header .nav-link:hover,.site-header .nav-link.active {
    color:var(--brand);
}

.site-header .nav-link.active::after {
    content:"";
    position:absolute;
    left:10px;
    right:10px;
    bottom:4px;
    height:3px;
    border-radius:5px;
    background:var(--brand);
}

.site-header .nav-disabled {
    color:#9aa8ba;
}

.header-search {
    width:260px;
    flex-shrink:0;
}

.header-search .form-control,.sidebar-search .form-control {
    background:#f7faff;
    border:1px solid #e0e8f4;
    min-width:0;
    box-shadow:none;
    font-size:13px;
}

.header-search .form-control {
    border-radius:11px 0 0 11px;
}

.header-search .btn {
    border-radius:0 11px 11px 0;
}

.header-search .btn,.sidebar-search .btn {
    background:var(--brand);
    border-color:var(--brand);
    font-size:13px;
    font-weight:600;
    padding:10px 18px;
}

.header-search-placeholder {
    width:120px;
}

.site-main {
    padding-top:22px;
    padding-bottom:40px;
}


/* ===== 04. BAI VIET NOI BAT ===== */

.featured-grid {
    display:grid;
    grid-template-columns: 1.12fr 1fr;
    gap:18px;
    margin-bottom:20px;
}

.featured-lead {
    position:relative;
    min-height:390px;
    overflow:hidden;
    border-radius:15px;
    background:var(--wash);
}

.featured-lead-link {
    display:block;
    width:100%;
    height:100%;
    color:inherit;
}

.featured-lead-image {
    width:100%;
    height:100%;
    position:absolute;
    inset:0;
    object-fit:cover;
}

.image-placeholder {
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#e9f2fb,#f6f9fc);
    color:#8596ab;
    font-size:13px;
}

.featured-lead-pill {
    position:absolute;
    top:16px;
    left:16px;
}

.category-pill {
    display:inline-block;
    border-radius:999px;
    padding:6px 12px;
    color:#fff;
    background:var(--brand);
    font-size:12px;
    font-weight:700;
    line-height:1.25;
}

.category-pill a {
    color:#fff;
}

.featured-lead-caption {
    position:absolute;
    left:14px;
    bottom:14px;
    width:min(80%,530px);
    padding:17px 20px;
    border-radius:12px;
    background:rgba(255,255,255,.97);
    box-shadow:0 8px 24px rgba(20,50,80,.08);
}

.featured-lead-caption h1 {
    font-size:clamp(19px,2vw,26px);
    line-height:1.25;
    font-weight:800;
    margin:6px 0;
    color:var(--ink);
}

.featured-lead-caption p {
    margin:0;
    font-size:13px;
    line-height:1.5;
    color:var(--muted);
}

.post-date {
    color:#8498b1;
    font-size:12px;
}

.featured-side {
    display:grid;
    grid-template-rows:repeat(2,minmax(0,1fr));
    gap:16px;
    min-height:390px;
}

.featured-side-card {
    display:grid;
    grid-template-columns:45% 55%;
    min-height:0;
    overflow:hidden;
    border-radius:14px;
    background:#fff;
    border:1px solid var(--line);
    box-shadow:0 6px 24px rgba(30,70,120,.045);
}

.featured-side-photo {
    position:relative;
    min-width:0;
}

.featured-side-photo > a {
    display:block;
    height:100%;
}

.featured-side-photo img,.featured-side-photo .image-placeholder {
    width:100%;
    height:100%;
    object-fit:cover;
    min-height:180px;
}

.featured-side-photo .category-pill {
    position:absolute;
    left:10px;
    top:12px;
}

.featured-side-content {
    padding:18px;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.featured-side-content h2 {
    font-size:17px;
    font-weight:800;
    line-height:1.35;
    margin:9px 0;
}

.featured-side-content p {
    font-size:13px;
    line-height:1.5;
    color:var(--muted);
    margin:0;
}


/* ===== 05. DANH MUC NGANG ===== */

.home-categories {
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:12px;
    margin:0 0 28px;
}

.home-category {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:9px;
    min-height:54px;
    padding:10px 8px;
    background:var(--wash);
    border-radius:12px;
    font-size:13px;
    font-weight:600;
    text-align:center;
}

.home-category:hover {
    background:#e5f1ff;
}

.home-category-dot {
    width:11px;
    height:11px;
    border:3px solid var(--brand);
    border-radius:50%;
    flex-shrink:0;
}


/* ===== 06. KHU VUC BAI VIET ===== */

.home-section {
    margin-bottom:38px;
}

.section-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:18px;
}

.section-title {
    margin:0;
    padding-left:14px;
    border-left:5px solid var(--brand);
    font-size:23px;
    line-height:1.3;
    font-weight:800;
}

.section-more {
    color:var(--brand);
    font-size:13px;
    white-space:nowrap;
}


/* ===== 07. THE BAI VIET ===== */

.article-card {
    height:100%;
    border:1px solid var(--line);
    border-radius:14px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 4px 15px rgba(30,70,120,.04);
    transition:transform .2s,box-shadow .2s;
}

.article-card:hover {
    transform:translateY(-3px);
    box-shadow:0 12px 26px rgba(30,70,120,.1);
}

.article-cover {
    position:relative;
}

.article-cover > a {
    display:block;
}

.article-img {
    display:block;
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
}

.article-cover .category-pill {
    position:absolute;
    top:12px;
    left:12px;
}

.article-card-body {
    padding:15px 17px 18px;
}

.article-title {
    font-size:17px;
    font-weight:800;
    line-height:1.38;
    margin:9px 0;
}

.article-excerpt {
    font-size:13px;
    line-height:1.6;
    color:var(--muted);
    margin:0;
}


/* ===== 08. SIDEBAR ===== */

.home-sidebar {
    position:relative;
}

.sidebar-search {
    display:flex;
    margin-bottom:14px;
}

.sidebar-search .form-control {
    border-radius:10px 0 0 10px;
}

.sidebar-search .btn {
    border-radius:0 10px 10px 0;
}

.sidebar-panel {
    border:1px solid var(--line);
    border-radius:12px;
    padding:15px;
    margin-bottom:17px;
    background:#fff;
}

.topics-panel {
    background:#eef6ff;
    border-color:#e8f1ff;
}

.sidebar-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:13px;
}

.sidebar-heading h2 {
    font-size:17px;
    font-weight:800;
    margin:0;
}

.sidebar-heading a {
    font-size:12px;
    color:var(--brand);
    white-space:nowrap;
}

.topic-tags {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.topic-tag {
    display:inline-block;
    padding:6px 10px;
    border-radius:20px;
    background:#fff;
    font-size:12px;
    color:var(--ink);
    border:1px solid #e9eff7;
}

.topic-tag:hover {
    color:var(--brand);
}

.sidebar-category-row {
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid var(--line);
    font-size:13px;
}

.sidebar-category-row:last-child {
    border-bottom:0;
}

.sidebar-category-row small {
    color:var(--muted);
}


/* ===== 09. FOOTER ===== */

.site-footer {
    margin-top:30px;
    padding:42px 0 25px;
    background:#10355d;
    color:#dce9f9;
}

.site-footer hr {
    border-color:#7593b1;
    margin:25px 0 15px;
}


/* ===== 10. TIEN ICH & NOI DUNG ===== */

.muted {
    color:var(--muted);
}

.category-label {
    color:var(--brand);
    font-weight:700;
    font-size:12px;
}

.content-body {
    font-size:17px;
    line-height:1.85;
    overflow-wrap:anywhere;
}

.content-body img {
    max-width:100%;
    height:auto;
    border-radius:10px;
}

.content-body h2 {
    margin-top:1.8em;
}

.content-body h3 {
    margin-top:1.4em;
}

.soft-panel {
    border:1px solid var(--line);
    background:var(--wash);
    border-radius:12px;
    padding:20px;
}


/* ===== 11. RESPONSIVE - LAPTOP ===== */

@media(max-width:1199.98px) {
    .brand {
        min-width:210px;
    }
    .brand-copy strong {
        font-size:17px;
    }
    .brand-copy small {
        font-size:9px;
    }
    .header-search {
        width:220px;
    }
    .site-header .nav-link {
        padding-left:7px!important;
        padding-right:7px!important;
    }
    .featured-side-content {
        padding:13px;
    }
    .featured-side-content h2 {
        font-size:15px;
    }
    .home-categories {
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}


/* ===== 12. RESPONSIVE - TABLET ===== */

@media(max-width:991.98px) {
    .site-header .nav-link.active::after {
        display:none;
    }
    .header-search {
        width:100%;
        margin-bottom:10px;
    }
    .featured-grid {
        grid-template-columns:1fr;
    }
    .featured-lead {
        min-height:420px;
    }
    .featured-side {
        grid-template-columns:1fr 1fr;
        grid-template-rows:auto;
        min-height:0;
    }
    .featured-side-card {
        grid-template-columns:1fr;
    }
    .featured-side-photo img,.featured-side-photo .image-placeholder {
        height:180px;
    }
    .home-categories {
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}


/* ===== 13. RESPONSIVE - DIEN THOAI ===== */

@media(max-width:575.98px) {
    .site-main {
        padding-top:14px;
    }
    .brand-copy strong {
        font-size:16px;
    }
    .brand-copy small {
        font-size:9px;
    }
    .featured-lead {
        min-height:360px;
    }
    .featured-lead-caption {
        width:calc(100% - 24px);
        left:12px;
        bottom:12px;
        padding:13px;
    }
    .featured-lead-caption h1 {
        font-size:19px;
    }
    .featured-side {
        grid-template-columns:1fr;
    }
    .featured-side-card {
        grid-template-columns:40% 60%;
    }
    .featured-side-photo img,.featured-side-photo .image-placeholder {
        min-height:160px;
        height:100%;
    }
    .featured-side-content h2 {
        font-size:15px;
    }
    .featured-side-content p {
        display:none;
    }
    .home-categories {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }
    .section-title {
        font-size:20px;
    }
}

/* ==========================================================
   14. TRANG CHI TIET BAI VIET - BANNER
   Chi hien khi Blade co class post-banner
========================================================== */

.post-banner {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 180px;
    margin-bottom: 22px;
    padding: 24px 36px;
    border-radius: 14px;
    background: linear-gradient(110deg, #e9f3ff 0%, #f7fbff 65%, #edf5ff 100%);
}

.post-banner-content {
    max-width: 760px;
}

.post-banner-label {
    display: block;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.post-banner-title {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
}

.post-banner-description {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================
   15. POST BREADCRUMB VA BO CUC
========================================================== */

.post-breadcrumb {
    margin-bottom: 18px;
}

.post-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: 13px;
}

.post-breadcrumb .breadcrumb-item a {
    color: var(--brand);
}

.post-layout {
    align-items: flex-start;
}

.post-article {
    min-width: 0;
}

.post-header {
    margin-bottom: 20px;
}

.post-title {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
}

.post-meta {
    margin-bottom: 12px;
    color: #7890ae;
    font-size: 13px;
}

.post-author {
    margin-left: 4px;
}

.post-excerpt {
    margin: 0;
    color: #536b89;
    font-size: 16px;
    line-height: 1.7;
}

.post-featured-image {
    margin: 0 0 22px;
}

.post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* ==========================================================
   16. NOI DUNG BAI VIET - GON H2 H3 VA MARGIN
   Scope vao post-article de khong anh huong trang chu
========================================================== */

.post-article .content-body {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.post-article .content-body h2 {
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.post-article .content-body h3 {
    margin-top: 18px;
    margin-bottom: 9px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.post-article .content-body h4 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.post-article .content-body p {
    margin-top: 0;
    margin-bottom: 12px;
}

.post-article .content-body ul,
.post-article .content-body ol {
    margin-top: 0;
    margin-bottom: 14px;
    padding-left: 24px;
}

.post-article .content-body li {
    margin-bottom: 6px;
}

.post-article .content-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 10px;
}

.post-article .content-body blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 4px solid var(--brand);
    background: var(--wash);
}

.post-article .content-body a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================
   17. POST TOPICS VA BAI LIEN QUAN
========================================================== */

.post-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tag-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #eef6ff;
    color: var(--brand);
    font-size: 13px;
    text-decoration: none;
}

.tag-link:hover {
    background: #dcecff;
    color: var(--brand-dark);
}

.related-posts {
    margin-top: 36px;
}

.related-posts .section-title {
    font-size: 22px;
}

/* ==========================================================
   18. POST SIDEBAR VA SEARCH
========================================================== */

.post-sidebar {
    width: 100%;
}

.post-sidebar .sidebar-panel {
    margin-bottom: 18px;
}

.post-sidebar .sidebar-heading h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.sidebar-search-box {
    margin-bottom: 18px;
}

.sidebar-search {
    display: flex;
    width: 100%;
    margin-bottom: 14px;
}

.sidebar-search-box .sidebar-search {
    margin-bottom: 0;
}

.sidebar-search .form-control {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid #dce7f4;
    border-radius: 10px 0 0 10px;
    background: #f7faff;
    font-size: 14px;
}

.sidebar-search .btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 0 10px 10px 0;
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-search .btn:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.sidebar-related-list {
    display: flex;
    flex-direction: column;
}

.sidebar-related-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.sidebar-related-item:first-child {
    padding-top: 0;
}

.sidebar-related-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-related-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--ink);
    text-decoration: none;
}

.sidebar-related-link:hover {
    color: var(--brand);
}

.sidebar-related-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.sidebar-related-date {
    color: #8498b1;
    font-size: 12px;
}

/* ==========================================================
   19. RESPONSIVE - POST DETAIL
========================================================== */

@media (max-width: 991.98px) {
    .post-banner {
        min-height: 150px;
        padding: 24px;
    }

    .post-title {
        font-size: 30px;
    }

    .post-sidebar {
        margin-top: 12px;
    }
}

@media (max-width: 767.98px) {
    .post-banner {
        min-height: 120px;
        margin-bottom: 18px;
        padding: 20px;
    }

    .post-banner-title {
        font-size: 19px;
    }

    .post-banner-description {
        font-size: 13px;
    }

    .post-breadcrumb {
        margin-bottom: 16px;
    }

    .post-title {
        font-size: 27px;
    }

    .post-excerpt {
        font-size: 15px;
    }

    .post-article .content-body {
        font-size: 16px;
    }

    .post-article .content-body h2 {
        margin-top: 22px;
        font-size: 22px;
    }

    .post-article .content-body h3 {
        margin-top: 17px;
        font-size: 19px;
    }

    .related-posts {
        margin-top: 28px;
    }
}

/* ==========================================================
   14. CATEGORY PAGE
========================================================== */


/* ===== BREADCRUMB ===== */

.category-breadcrumb {
    margin-bottom: 16px;
}

.category-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: 13px;
}

.category-breadcrumb a {
    color: var(--brand);
    text-decoration: none;
}

.category-breadcrumb a:hover {
    text-decoration: underline;
}


/* ===== CATEGORY BANNER ===== */

.category-banner {
    display: flex;
    align-items: center;
    min-height: 180px;
    margin-bottom: 28px;
    padding: 28px 36px;
    border-radius: 14px;
    background: linear-gradient(110deg, #e9f3ff 0%, #f7fbff 65%, #edf5ff 100%);
}

.category-banner-content {
    max-width: 760px;
}

.category-banner-label {
    display: block;
    margin-bottom: 9px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.category-banner-title {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
}

.category-banner-description {
    margin: 0;
    color: #536b89;
    font-size: 15px;
    line-height: 1.7;
}


/* ===== CATEGORY LAYOUT ===== */

.category-layout {
    align-items: flex-start;
}

.category-main {
    min-width: 0;
}

.category-post-count {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}


/* ===== CATEGORY PAGINATION ===== */

.category-pagination {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.category-pagination .pagination {
    gap: 5px;
    margin-bottom: 0;
}

.category-pagination .page-link {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand);
    font-size: 14px;
    box-shadow: none;
}

.category-pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.category-pagination .page-link:hover {
    background: #eef6ff;
}


/* ===== EMPTY STATE ===== */

.category-empty {
    padding: 55px 25px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbff;
    text-align: center;
}

.category-empty h2 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
}

.category-empty p {
    max-width: 450px;
    margin: 0 auto 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.category-empty-icon {
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 28px;
}


/* ===== CATEGORY SIDEBAR ===== */

.category-sidebar {
    width: 100%;
}


/* ===== TABLET ===== */

@media (max-width: 991.98px) {

    .category-banner {
        min-height: 150px;
        padding: 24px;
    }

    .category-banner-title {
        font-size: 28px;
    }

    .category-sidebar {
        margin-top: 10px;
    }

}


/* ===== MOBILE ===== */

@media (max-width: 767.98px) {

    .category-banner {
        min-height: 120px;
        margin-bottom: 22px;
        padding: 20px;
    }

    .category-banner-title {
        font-size: 25px;
    }

    .category-banner-description {
        font-size: 14px;
    }

    .category-post-count {
        font-size: 12px;
    }

    .category-pagination {
        margin-top: 25px;
    }

    .category-empty {
        padding: 40px 20px;
    }

}


/* ===== SAN PHAM LIEN QUAN TRONG BAI VIET ===== */
.post-products .soft-panel {
    height: 100%;
}
.post-products .soft-panel img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* ==========================================================
   AFFILIATE PRODUCT CARDS
========================================================== */

.affiliate-product-card {
    position: relative;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.affiliate-product-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #eef6ff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.affiliate-product-image {
    display: block;
    width: 100%;
    max-height: 220px;
    margin-bottom: 12px;
    object-fit: contain;
}

.post-article .content-body .affiliate-product-title,
.affiliate-product-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.affiliate-product-description {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.affiliate-product-button {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
}

.post-article .content-body .affiliate-product-card {
    margin: 18px 0;
}


/* ==========================================================
   RESPONSIVE PAGES / PRODUCT / CONTACT
========================================================== */
.page-section {
    padding-top: 28px;
    padding-bottom: 54px;
}
.page-panel {
    max-width: 900px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.page-title {
    margin-bottom: 18px;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 750;
    line-height: 1.3;
}
.contact-form .form-control {
    min-height: 46px;
}
.contact-form textarea.form-control {
    min-height: 175px;
}
.product-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.product-tile-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #f7f9fc;
}
.product-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-tile-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}
.product-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f7f9fc;
}
.product-main-image img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}
.product-thumb {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-buy-panel {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7faff;
}
.product-description img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 767.98px) {
    .page-section {
        padding-top: 16px;
        padding-bottom: 36px;
    }
    .page-panel {
        padding: 20px 16px;
    }
    .product-tile-body {
        padding: 12px;
    }
    .product-tile-image {
        aspect-ratio: 1 / 1;
    }
    .product-main-image {
        min-height: 230px;
    }
    .product-buy-panel .btn {
        display: block;
        width: 100%;
    }
    .site-header .header-search {
        width: 100%;
    }
    .site-header .header-search .form-control {
        min-width: 0;
    }
    .table-responsive {
        overflow-x: auto;
    }
}


/* ==========================================
   CATEGORY TILES - ICONS AND SPACING
========================================== */
.home-categories {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.home-category {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 70px;
    padding: 16px 18px;
    border: 1px solid #e4edf8;
    border-radius: 16px;
    line-height: 1.5;
    text-decoration: none;
}

.home-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    font-size: 23px;
    line-height: 1;
}

.home-category:hover {
    border-color: #b9d8ff;
    background: #e5f1ff;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .home-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-category {
        justify-content: flex-start;
        gap: 10px;
        min-height: 64px;
        padding: 12px;
        font-size: 13px;
    }

    .home-category-icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        font-size: 20px;
    }
}

@media (max-width: 380px) {
    .home-categories {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   PRODUCT CATEGORY FILTER
========================================== */
.product-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 28px;
}
.product-category-link {
    display: inline-block;
    padding: 9px 15px;
    border: 1px solid #dce7f5;
    border-radius: 10px;
    background: #f2f7fd;
    color: #153b67;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.product-category-link:hover,
.product-category-link.is-active {
    background: #e0eeff;
    border-color: #7bb5ff;
    color: #005fc2;
}
.product-category-label {
    color: #1265bd;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.product-category-label:hover {
    text-decoration: underline;
}
@media (max-width: 575px) {
    .product-category-filter {
        gap: 8px;
    }
    .product-category-link {
        padding: 8px 11px;
        font-size: 13px;
    }
}
/* HOME BANNER */

.home-banner-top {
    width: 100%;
    height: 250px;
    margin-top: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 16px;
}

.home-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.home-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MOBILE */

@media (max-width: 767px) {

    .home-banner-top {
        height: auto;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .home-banner-image {
        height: auto;
    }

}

/* CATEGORY BANNER */
.category-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 180px;
    padding: 30px 44px;
    margin-bottom: 32px;
    background: linear-gradient(
        115deg,
        #eaf3ff 0%,
        #f3f8ff 65%,
        #edf5ff 100%
    );
    border: 1px solid #e3edfb;
    border-radius: 18px;
    overflow: hidden;
}

/* Trang trí góc phải */
.category-banner::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -145px;
    border-radius: 50%;
    background: rgba(13, 101, 220, 0.055);
}

.category-banner::after {
    content: "";
    position: absolute;
    width: 155px;
    height: 155px;
    right: 100px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(13, 101, 220, 0.045);
}

.category-banner-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.category-banner-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #0965db;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.category-banner-title {
    margin: 0 0 12px;
    color: #102d52;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

.category-banner-description {
    color: #506b8c;
    font-size: 16px;
    line-height: 1.7;
    max-width: 780px;
}

/* MOBILE */
@media (max-width: 767.98px) {
    .category-banner {
        min-height: 0;
        padding: 24px 22px;
        margin-bottom: 24px;
        border-radius: 14px;
    }

    .category-banner-label {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .category-banner-title {
        font-size: 29px;
        margin-bottom: 10px;
    }

    .category-banner-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .category-banner::before {
        width: 160px;
        height: 160px;
        right: -100px;
        top: -95px;
    }

    .category-banner::after {
        display: none;
    }
}
.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
}
