/*
Theme Name: HT Group
Author: HT Group
Version: 1.1 - Consolidated All Design Files
*/

/* =========================================
   GLOBAL RESET & DEFAULTS
   (Source: 1. Trang Chu.html)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.5;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* =========================================
   HEADER & NAV
   (Source: All files - Shared)
   ========================================= */
/* =========================================
   HEADER & NAV
   (Source: All files - Shared)
   ========================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0d1b4c;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

header img.logo,
.custom-logo {
    height: 52px;
    width: auto;
}

.site-name {
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Desktop Defaults */
nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

nav a:hover,
nav .current-menu-item>a {
    color: #ffcc33;
}

/* Mobile Toggle - Hidden on Desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* Active State Animation (Optional) */
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 900px) {
    header {
        padding: 10px 20px;
    }

    .site-name {
        display: none;
        /* Hide site name on smaller screens to save space if needed, or reduce font */
    }

    .menu-toggle {
        display: flex;
        /* Show toggle */
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0d1b4c;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.active {
        max-height: 400px;
        /* Open drawer */
        padding-bottom: 20px;
    }

    nav a {
        display: block;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* =========================================
   BUTTONS (Shared Utility)
   ========================================= */
.btn-primary,
.btn-outline {
    padding: 11px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: #d62828;
    color: #fff;
    border: 1px solid #d62828;
}

.btn-primary:hover {
    background: #b61e1f;
    border-color: #b61e1f;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #0d1b4c;
}

/* =========================================
   HOMEPAGE STYLES
   (Source: 1. Trang Chu.html)
   ========================================= */
.hero {
    padding: 90px 40px 70px;
    background: #1a1a1a;
    background-image: linear-gradient(120deg, #1a1a1a 0%, #344a70 40%, #111 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
}

.hero-left {
    max-width: 600px;
}

.hero-title {
    font-size: 40px;
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    /* Added for consistency if missing in explicit CSS */
}

.hero-desc {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-right {
    min-width: 260px;
    max-width: 380px;
    background: rgba(0, 0, 0, 0.35);
    padding: 18px 20px;
    border-radius: 8px;
}

.hero-right h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.stat-box {
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    text-align: left;
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    color: #ffcc33;
}

.stat-label {
    font-size: 12px;
    color: #f0f0f0;
}

.section {
    padding: 55px 40px;
}

.section.alt {
    background: #f6f7fb;
}

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #0d1b4c;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-sub {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
    color: #555;
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 18px 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.card-title {
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 8px;
    font-size: 16px;
}

.card p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.icon-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
    margin-top: 15px;
}

.icon-item {
    text-align: center;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #d62828;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.icon-symbol {
    font-size: 26px;
}

.icon-item-title {
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 5px;
}

.icon-item p {
    font-size: 13px;
    color: #555;
}

/* Wrapper for Responsive Homepage */
@media (max-width: 768px) {
    header {
        padding: 8px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero {
        padding: 80px 20px 50px;
    }

    .section {
        padding: 40px 20px;
    }
}

/* =========================================
   ABOUT PAGE STYLES
   (Source: 2. Gioi Thieu.html)
   ========================================= */
.hero-intro {
    padding: 90px 40px 60px;
    background: #1a1a1a;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #344a70 50%, #111 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
}

.hero-intro-left {
    max-width: 620px;
}

.hero-intro-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-intro-sub {
    font-size: 15px;
    line-height: 1.6;
}

.hero-intro-right {
    min-width: 260px;
    max-width: 360px;
    background: rgba(0, 0, 0, 0.35);
    padding: 18px 20px;
    border-radius: 8px;
}

.hero-intro-right h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
    gap: 26px;
    align-items: flex-start;
}

.about-main p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 12px;
}

.about-main ul {
    margin: 6px 0 16px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    list-style: disc;
}

.about-side-box {
    background: #0d1b4c;
    color: #fff;
    border-radius: 8px;
    padding: 18px 18px 16px;
    margin-bottom: 18px;
}

.about-side-box h3 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.about-side-box p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.about-side-box ul {
    font-size: 13px;
    margin-left: 18px;
    line-height: 1.7;
    list-style: disc;
}

.cta-bar {
    padding: 30px 40px;
    background: #d62828;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cta-bar p {
    font-size: 15px;
    font-weight: bold;
}

.cta-bar a {
    background: #fff;
    color: #d62828;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Wrapper for Responsive About */
@media (max-width: 768px) {
    .hero-intro {
        padding: 80px 20px 45px;
    }

    .cta-bar {
        padding: 22px 20px;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SERVICES PAGE STYLES
   (Source: 4. Dich Vu.html)
   ========================================= */
.hero-services {
    padding: 80px 40px 60px;
    background: #1a1a1a;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #344a70 50%, #111 100%);
    color: #fff;
    text-align: left;
}

.hero-inner {
    max-width: 980px;
    margin: 0 auto;
}

.hero-breadcrumb {
    font-size: 13px;
    margin-bottom: 8px;
    color: #ddd;
}

.hero-services .hero-title {
    font-size: 34px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.hero-sub {
    font-size: 14px;
    line-height: 1.6;
    max-width: 640px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.service-card {
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 18px 16px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #d62828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.service-name {
    font-size: 16px;
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.process-step {
    text-align: center;
}

.process-number {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #d62828;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
    color: #0d1b4c;
}

.process-title {
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 4px;
}

.process-text {
    font-size: 13px;
    color: #555;
}

table.service-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

table.service-table th,
table.service-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

table.service-table th {
    background: #0d1b4c;
    color: #fff;
}

table.service-table tbody tr:nth-child(odd) {
    background: #fafafa;
}

/* Wrapper for Responsive Services */
@media (max-width: 768px) {
    .hero-services {
        padding: 70px 20px 40px;
    }
}

/* =========================================
   PRODUCTS PAGE STYLES
   (Source: 3. San Pham.html)
   ========================================= */
.hero-products {
    padding: 80px 40px 60px;
    background: #1a1a1a;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #344a70 50%, #111 100%);
    color: #fff;
}

.hero-products-inner {
    max-width: 980px;
    margin: 0 auto;
}

.hero-products-title {
    font-size: 34px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.hero-products-sub {
    font-size: 14px;
    line-height: 1.6;
    max-width: 640px;
}

.section-products {
    padding: 50px 40px 60px;
}

.products-wrapper {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    align-items: flex-start;
}

.product-sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.product-search-box {
    margin-bottom: 20px;
}

.product-search-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.sidebar-box {
    margin-bottom: 30px;
}

.sidebar-list {
    list-style: none;
    font-size: 13px;
}

.sidebar-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-list a {
    color: #333;
}

.sidebar-list a:hover {
    color: #d62828;
}

.product-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    align-items: center;
}

.product-topbar-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-topbar input,
.product-topbar select {
    padding: 7px 9px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.product-image {
    background: #f3f3f3;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
    overflow: hidden;
}

.product-body {
    padding: 10px 12px 12px;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 6px;
    min-height: 38px;
}

.product-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
}

.product-meta {
    font-size: 11px;
    color: #999;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    font-size: 13px;
}

.pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.pagination a,
.pagination span,
.pagination .page-numbers li a,
.pagination .page-numbers li span {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 3px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.pagination .active,
.pagination .current,
.pagination .page-numbers.current {
    background: #d62828;
    color: #fff;
    border-color: #d62828;
}

.pagination a:hover,
.pagination .page-numbers li a:hover {
    border-color: #d62828;
    color: #d62828;
}

/* Wrapper for Responsive Products */
@media (max-width: 900px) {
    .products-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-products {
        padding: 70px 20px 45px;
    }

    .section-products {
        padding: 40px 20px;
    }
}

/* =========================================
   PRODUCT DETAIL PAGE STYLES
   (Source: 3.1. chi tiet san pham.html)
   ========================================= */
.hero-detail {
    padding: 80px 40px 60px;
    background: #1a1a1a;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #344a70 50%, #111 100%);
    color: #fff;
    text-align: center;
}

.hero-detail-breadcrumb {
    font-size: 13px;
    margin-bottom: 6px;
    color: #ddd;
}

.hero-detail-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.hero-detail-sub {
    font-size: 13px;
    color: #e0e0e0;
}

.section-detail {
    padding: 45px 40px 50px;
}

.detail-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr);
    gap: 28px;
    align-items: flex-start;
}

.gallery-main {
    border: 1px solid #eee;
    border-radius: 4px;
    height: 320px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
    overflow: hidden;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
}

.gallery-thumb {
    border: 1px solid #eee;
    border-radius: 3px;
    height: 70px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #888;
    overflow: hidden;
}

.product-info-title {
    font-size: 22px;
    font-weight: 800;
    color: #0d1b4c;
    margin-bottom: 10px;
}

.product-info-sub {
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.6;
}

.product-info-list {
    font-size: 13px;
    color: #444;
    margin-bottom: 14px;
}

.product-info-list li {
    margin-left: 16px;
    margin-bottom: 4px;
    list-style: disc;
}

.product-hotline {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 6px;
    background: #fff7f2;
    border: 1px solid #ffd6bf;
    font-size: 14px;
}

.product-hotline span {
    color: #d62828;
    font-weight: bold;
    font-size: 18px;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Override detail buttons */
.product-detail-actions .btn-outline {
    background: #fff;
    border: 1px solid #0d1b4c;
    color: #0d1b4c;
}

.product-detail-actions .btn-outline:hover {
    background: #0d1b4c;
    color: #fff;
}

.detail-tabs {
    margin-top: 35px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.detail-tab {
    padding: 9px 14px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    color: #0d1b4c;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    background: #f5f5f5;
    cursor: pointer;
    /* Interaction fix */
}

.detail-tab.active {
    background: #ffffff;
    border-bottom: 1px solid #ffffff;
}

.detail-tab-content {
    padding: 18px 16px 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #444;
    line-height: 1.7;
    background: #fff;
}

.detail-tab-content p {
    margin-bottom: 10px;
}

.section-related {
    padding: 20px 0 10px;
}

.related-title {
    font-size: 18px;
    font-weight: 800;
    color: #0d1b4c;
    margin: 18px 0 14px;
    text-transform: uppercase;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.related-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    font-size: 12px;
}

.related-img {
    height: 110px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    overflow: hidden;
}

.related-body {
    padding: 8px 10px 10px;
}

.related-name {
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 4px;
}

/* Wrapper for Responsive Detail */
@media (max-width: 900px) {
    .detail-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-detail {
        padding: 70px 20px 40px;
    }

    .section-detail {
        padding: 35px 20px 40px;
    }
}

/* =========================================
   NEWS PAGE STYLES
   (Source: 5. Tin Tuc.html)
   ========================================= */
.hero-news {
    padding: 80px 40px 60px;
    background: #1a1a1a;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #344a70 50%, #111 100%);
    color: #fff;
}

.section-news {
    padding: 50px 40px 60px;
}

.news-wrapper {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    align-items: flex-start;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.sidebar-search-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.sidebar-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
}

.sidebar-tag {
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 4px 10px;
    background: #fafafa;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
}

.news-thumb {
    background: #f3f3f3;
    border-radius: 6px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
    overflow: hidden;
}

.news-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 6px;
}

.news-title a {
    color: #0d1b4c;
}

.news-title a:hover {
    color: #d62828;
}

.news-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 6px;
}

.news-readmore {
    font-size: 12px;
    color: #d62828;
    font-weight: bold;
}

.section-cta-news {
    padding: 40px 40px 45px;
    background: #0d1b4c;
    color: #fff;
    text-align: center;
}

.section-cta-news h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-cta-news p {
    font-size: 14px;
    margin-bottom: 14px;
}

.section-cta-news a {
    background: #fff;
    color: #0d1b4c;
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Wrapper for Responsive News */
@media (max-width: 900px) {
    .news-wrapper {
        grid-template-columns: 1fr;
    }

    .news-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-news {
        padding: 70px 20px 40px;
    }

    .section-news,
    .section-cta-news {
        padding: 40px 20px;
    }
}

/* =========================================
   NEWS DETAIL STYLES
   (Source: 5.1... html)
   ========================================= */
.hero-news-detail {
    padding: 80px 40px 50px;
    background: #1a1a1a;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #344a70 50%, #111 100%);
    color: #fff;
}

.hero-meta {
    font-size: 12px;
    color: #e0e0e0;
}

.section-news-detail {
    padding: 45px 40px 55px;
}

.news-detail-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
    gap: 30px;
    align-items: flex-start;
}

article h1 {
    font-size: 22px;
    font-weight: 800;
    color: #0d1b4c;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 14px;
}

.article-cover {
    width: 100%;
    height: 220px;
    border-radius: 6px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #777;
    margin-bottom: 16px;
    overflow: hidden;
}

.article-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 12px;
}

.article-content ul {
    margin: 4px 0 12px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    list-style: disc;
}

.article-share {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #555;
}

.article-share span {
    font-weight: bold;
    margin-right: 8px;
}

.sidebar-news-date {
    display: block;
    font-size: 11px;
    color: #999;
}

.sidebar-news-title {
    font-size: 13px;
    color: #333;
}

.related-news {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    font-size: 13px;
}

.related-item {
    border-radius: 6px;
    border: 1px solid #eee;
    padding: 10px 10px 12px;
    background: #fff;
}

.related-item-title {
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 4px;
}

.related-item-title a {
    color: #0d1b4c;
}

.related-item-title a:hover {
    color: #d62828;
}

.related-item-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
}

/* Wrapper for Responsive News Detail */
@media (max-width: 900px) {
    .news-detail-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-news-detail {
        padding: 70px 20px 40px;
    }

    .section-news-detail {
        padding: 35px 20px 40px;
    }
}

/* =========================================
   CONTACT PAGE STYLES
   (Source: 6. Lien He.html)
   ========================================= */
.hero-contact {
    padding: 80px 40px 60px;
    background: #1a1a1a;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #344a70 50%, #111 100%);
    color: #fff;
}

.section-contact {
    padding: 55px 40px 60px;
    background: #fff;
    /* Reset if previously set to dark */
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
    gap: 30px;
    align-items: flex-start;
}

.contact-title {
    font-size: 22px;
    font-weight: 800;
    color: #0d1b4c;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-sub {
    font-size: 13px;
    color: #555;
    margin-bottom: 18px;
}

form.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.form-full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #444;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.btn-submit {
    padding: 9px 18px;
    border-radius: 4px;
    border: 1px solid #d62828;
    background: #d62828;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
}

.btn-submit:hover {
    background: #b61e1f;
}

.form-note {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

.contact-info-box {
    background: #f6f7fb;
    border-radius: 8px;
    padding: 18px 16px;
    font-size: 13px;
    color: #444;
}

.contact-info-box h3 {
    font-size: 16px;
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.info-group {
    margin-bottom: 12px;
}

.section-map {
    padding: 0 40px 60px;
}

.map-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.map-title {
    font-size: 18px;
    font-weight: 800;
    color: #0d1b4c;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.map-sub {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.map-frame {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Specific Contact Page (Product Detail also uses .section-contact so careful)
   Product Detail uses .section-contact with background #0d1b4c and color #fff.
   Design 6. Lien He uses .section-contact with background #fff.
   We need to resolve this collision!
   
   Solution:
   In Product Detail HTML (3.1), it uses <section class="section-contact"> for "Liên hệ mua hàng toàn quốc".
   In Contact HTML (6), it uses <section class="section-contact"> for the form.
   
   CSS for 3.1: .section-contact { background:#0d1b4c; color:#fff; ... }
   CSS for 6: .section-contact { padding:55px 40px 60px; ... } (Implying white/default bg)
   
   I will namespace the Product Detail one in style.css or rely on the fact that I put it AFTER the other one? 
   No, specificity matters.
   
   I will add a specific class to the contact page template in WordPress if possible, OR
   I will use the .page-template-page-contact scoping.
*/

.page-template-page-contact .section-contact {
    background: #ffffff;
    color: #222;
    padding: 55px 40px 60px;
}

/* The Product Detail one (dark background) */
.single-product .section-contact {
    margin-top: 40px;
    padding: 40px 40px 45px;
    background: #0d1b4c;
    color: #fff;
}

/* Also Product Archive uses it? 
   3. San Pham.html uses .section-contact too!
   It says: .section-contact { padding:55px 40px; background:#f6f7fb; }
   
   Wow, 3 different .section-contact styles.
   1. Contact Page: White bg.
   2. Single Product: Dark Blue bg.
   3. Archive Product: Light Grey bg (#f6f7fb).
   
   I must Scope them!
*/

/* 1. Contact Page */
.page-template-page-contact .section-contact {
    background: #ffffff;
    padding: 55px 40px 60px;
}

/* 2. Single Product */
.single-product .section-contact {
    background: #0d1b4c;
    color: #fff;
    margin-top: 40px;
    padding: 40px 40px 45px;
}

/* 3. Product Archive */
/* 3. Product Archive */
.post-type-archive-product .section-contact,
.tax-product_cat .section-contact,
.page-template-page-san-pham .section-contact {
    background: #f6f7fb;
    padding: 55px 40px;
    color: #222;
}

/* Shared Contact Cards styles (used in Archive) */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.contact-card {
    background: #0d1b4c;
    color: #fff;
    border-radius: 8px;
    padding: 18px 16px;
}

.contact-card h4 {
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 13px;
    line-height: 1.5;
}

/* Standard Contact form styles */
.contact-form,
.wpcf7-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

/* 
   CF7 wraps everything in P tags by default. 
   If user strictly uses DIVs as requested:
   Direct children DIVs will be grid items.
*/
.contact-form>div,
.wpcf7-form>div,
.wpcf7-form>p {
    grid-column: span 1;
}

.contact-form .form-full,
.wpcf7-form .form-full,
.wpcf7-form>p.form-full {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

/* Remove default margin from P inside grid to keep alignment tight */
.wpcf7-form p {
    margin-bottom: 0;
}

/* WPCF7 specific tweaks */


/* Allow 2-column layout for CF7 if user wraps fields in divs, but by default CF7 puts p tags. 
   We will style the inputs globally within .wpcf7-form to match design. 
*/

.contact-form label,
.wpcf7-form label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #444;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13px;
    box-sizing: border-box;
    /* Important for width 100% */
}

.contact-form textarea,
.wpcf7-form textarea {
    min-height: 110px;
    resize: vertical;
}

.form-note {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

.btn-submit,
.wpcf7-submit {
    padding: 9px 18px;
    border-radius: 4px;
    border: 1px solid #d62828;
    background: #d62828;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover,
.wpcf7-submit:hover {
    background: #b61e1f;
    border-color: #b61e1f;
}

/* Contact Info Box */
.contact-info-box {
    background: #f6f7fb;
    border-radius: 8px;
    padding: 18px 16px;
    font-size: 13px;
    color: #444;
}

.contact-info-box h3 {
    font-size: 16px;
    font-weight: bold;
    color: #0d1b4c;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.contact-info-box p {
    margin-bottom: 6px;
}

.contact-info-box strong {
    font-weight: bold;
}

.info-group {
    margin-bottom: 12px;
}

/* Map Section */
.section-map {
    padding: 0 40px 60px;
}

.map-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.map-title {
    font-size: 18px;
    font-weight: 800;
    color: #0d1b4c;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.map-sub {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.map-frame {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Responsive fixes */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-contact {
        padding: 70px 20px 40px;
    }

    .section-contact,
    .section-map,
    .page-template-page-contact .section-contact {
        padding: 40px 20px;
    }
}

/* =========================================
   FOOTER (Shared)
   ========================================= */
footer {
    background: #060b28;
    color: #eee;
    padding: 30px 40px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

footer h4 {
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
    font-weight: bold;
}

footer p {
    margin-bottom: 4px;
}

footer a {
    color: #ffcc33;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    text-align: center;
    font-size: 12px;
}

/* LIÊN HỆ MUA HÀNG TOÀN QUỐC (giống tinh thần PDF) */
.single-product .section-contact{
    margin-top:40px;
    padding:40px 40px 45px;
    background:#0d1b4c;
    color:#fff;
}
.single-product .contact-inner{
    max-width:1100px;
    margin:0 auto;
    text-align:center;
}
.single-product .contact-title{
    font-size:24px;
    font-weight:800;
    margin-bottom:18px;
    text-transform:uppercase;
    color: #fff;
}
.single-product .contact-people{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    margin-bottom:18px;
}
.single-product .contact-person{
    background:rgba(255,255,255,0.05);
    border-radius:8px;
    padding:14px 12px;
}
.single-product .contact-name{
    font-weight:bold;
    margin-bottom:4px;
}
.single-product .contact-role{
    font-size:12px;
    margin-bottom:6px;
    opacity:.9;
}
.single-product .contact-hotline{
    font-size:13px;
}
.single-product .contact-hotline span{
    font-weight:bold;
    color:#ffcc33;
}
.single-product .contact-note{
    font-size:12px;
    opacity:.85;
}