/* ============================
   1. Tiêu đề & metadata
   ============================ */
.news-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222;
}

.detail-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
}

/* ============================
   2. Nội dung bài viết
   ============================ */
.detail-content,
.news_column,
.post-content,
.entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.detail-content p {
    margin-bottom: 1.2em;
}

/* ============================
   3. Heading trong bài
   ============================ */
.detail-content h2,
.detail-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #2a2a2a;
}

.detail-content h2:hover,
.detail-content h3:hover {
    color: #0056b3;
    /* Đổi màu khi hover */
}

/* ============================
   4. Hình ảnh trong bài
   ============================ */
.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================
   5. TOC (Mục lục)
   ============================ */
#toc {
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-size: 15px;
}

#toc .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e8e8e8;
    padding: 10px 16px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

#toc .toc-header b {
    font-size: 16px;
    color: #333;
}

#toc .toc-header button {
    font-size: 14px;
    padding: 4px 12px;
    border: 2px solid #888;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

#toc .toc-header button:hover {
    background: #f0f0f0;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25);
}

#toc ul {
    margin: 0;
    padding: 12px 24px;
    list-style: disc;
}

#toc li {
    margin: 6px 0;
}

#toc a {
    text-decoration: none;
    color: #444;
    transition: color 0.2s;
}

#toc a:hover {
    color: #000;
    text-decoration: underline;
}

/* Ẩn TOC trên mobile */
@media (max-width: 768px) {
    #toc {
        display: none !important;
    }
}

/* ============================
   6. Box highlight (tùy chọn)
   ============================ */
.highlight-box {
    background: #fef9e7;
    border-left: 4px solid #f1c40f;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
}

/* Tiêu đề menu */
.sidebar-menu-title {
    background: #444;
    /* nền đậm hơn */
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Danh sách menu */
.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu ul li {
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-menu ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-menu ul li a:hover {
    background: #f5f5f5;
    color: #0056b3;
}

/* Icon mũi tên */
.sidebar-menu ul li a::after {
    content: "›";
    font-size: 16px;
    color: #999;
    transition: transform 0.2s ease;
}

.sidebar-menu ul li a:hover::after {
    color: #0056b3;
    transform: translateX(4px);
}


/* Tiêu đề trang chuyên mục */
.page-group-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #222;
}

/* Danh sách phân loại */
.group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-list li {
    border-bottom: 1px solid #e0e0e0;
}

.group-list li:last-child {
    border-bottom: none;
}

.group-list li a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.group-list li a:hover {
    background: #f5f5f5;
    color: #0056b3;
}

/* Nếu có cấp con */
.group-list .sub-list {
    margin-left: 20px;
}

.group-list .sub-list li a {
    padding: 8px 16px;
    font-size: 14px;
    color: #555;
}

/* Icon / ảnh nhỏ nếu có */
.group-list li a .group-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    vertical-align: middle;
    display: inline-block;
}

/* Căn chỉnh text & icon */
.group-list li a .group-text {
    vertical-align: middle;
    display: inline-block;
}

/* Responsive: khi trên màn hình nhỏ */
@media (max-width: 768px) {
    .group-list li a {
        padding: 10px 12px;
        font-size: 15px;
    }

    .page-group-title {
        font-size: 20px;
    }
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 16px;
    font-size: 14px;
    color: #777;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb .separator {
    margin: 0 6px;
}

/* Tiêu đề chuyên mục + mô tả */
.page-category-title {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.page-category-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
}

/* Danh sách dòng máy */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #e0e0e0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: block;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.category-list li a:hover {
    background-color: #f5f5f5;
    color: #0056b3;
}

/* Nếu có dòng phụ */
.category-list .sub-list {
    margin-left: 24px;
}

.category-list .sub-list li a {
    padding: 10px 18px;
    font-size: 15px;
    color: #555;
}

/* Icon nhỏ nếu có */
.category-list li a .cat-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: inline-block;
    vertical-align: middle;
}

.category-list li a .cat-text {
    display: inline-block;
    vertical-align: middle;
}

/* Khoảng cách giữa section */
.section {
    margin-bottom: 36px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #777;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb .sep {
    margin: 0 6px;
}

.page-category-title {
    font-size: 30px;
    font-weight: 700;
    color: #b22222;
    /* đỏ đậm */
    text-transform: uppercase;
    border-bottom: 3px solid #b22222;
    padding-bottom: 6px;
    margin-bottom: 20px;
}


/* Header / Banner */
.header-banner {
    position: relative;
    overflow: hidden;
}

.header-banner .banner-text {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Sản phẩm bán chạy */
.best-sellers {
    margin: 40px 0;
}

.best-sellers .product-item {
    transition: transform 0.3s, box-shadow 0.3s;
}

.best-sellers .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Dòng sản phẩm chính */
.products-main {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.products-main .prod-box {
    flex: 1 1 calc(25% - 24px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.products-main .prod-box:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.products-main .prod-box img {
    width: 100%;
    height: auto;
}

.products-main .prod-box .prod-title {
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    color: #222;
    text-align: center;
}

/* CTA button */
.btn-primary {
    background: #d32f2f;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #b71c1c;
}

/* Footer tối ưu */
.site-footer {
    background: #222;
    color: #ccc;
    padding: 40px 0;
}

.site-footer a {
    color: #aaa;
}

.site-footer a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .products-main .prod-box {
        flex: 1 1 calc(50% - 24px);
    }
}

@media (max-width: 576px) {
    .products-main .prod-box {
        flex: 1 1 100%;
    }
}

/* ===============================
   Banner / Header
   =============================== */
.header-banner {
    position: relative;
    overflow: hidden;
}

.header-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.header-banner .banner-text {
    position: absolute;
    bottom: 15%;
    left: 8%;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    max-width: 500px;
    line-height: 1.3;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* ===============================
   Tiêu đề Section
   =============================== */
.section-title {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin: 40px 0 24px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #d32f2f;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===============================
   Box Sản phẩm nổi bật
   =============================== */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.product-item {
    flex: 1 1 calc(25% - 24px);
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-item .prod-info {
    padding: 16px;
    flex-grow: 1;
}

.product-item .prod-title {
    font-size: 17px;
    font-weight: 500;
    color: #222;
    margin-bottom: 10px;
    text-align: center;
}

.product-item .btn-primary {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.product-item .btn-primary:hover {
    background: #b71c1c;
}

/* ===============================
   Call to Action (nút lớn)
   =============================== */
.cta-btn {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    font-size: 16px;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease;
}

.cta-btn:hover {
    background: #b71c1c;
}

/* ===============================
   Footer
   =============================== */
.site-footer {
    background: #222;
    color: #ccc;
    padding: 40px 0;
    font-size: 14px;
}

.site-footer h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.site-footer a {
    color: #aaa;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 992px) {
    .product-item {
        flex: 1 1 calc(50% - 24px);
    }

    .header-banner .banner-text {
        font-size: 28px;
        left: 6%;
        bottom: 12%;
    }
}

@media (max-width: 576px) {
    .product-item {
        flex: 1 1 100%;
    }

    .header-banner .banner-text {
        font-size: 22px;
        left: 5%;
        bottom: 10%;
    }
}


/* CSS cho Table */

.table-responsive {
    width: 100%;
    max-width: 1330px;
    /* Giới hạn chiều ngang website */
    margin: 0 auto;
    /* Căn giữa bảng */
}

/* Bảng co giãn tự do theo nội dung */
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    /* Cột tự co theo nội dung */
}

/* Header và dữ liệu bảng */
.table-responsive th,
.table-responsive td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    word-wrap: break-word;
    /* Xuống dòng khi nội dung dài */
}

/* Hiệu ứng hover */
.table-responsive tbody tr:hover {
    background-color: #f1f1f1;
}

/* Link trong bảng */
.table-responsive a {
    color: #0073aa;
    text-decoration: none;
}

.table-responsive a:hover {
    text-decoration: underline;
}

/* Responsive trên điện thoại */
@media screen and (max-width: 768px) {

    .table-responsive th,
    .table-responsive td {
        font-size: 14px;
        padding: 6px;
    }
}