/* ----------------------------------------------------
   DHA MINERALS — KIM LOẠI MÀU
   Style: Traditional Vietnamese business website
   (theo phong cách xaynhahanoi.vn — WordPress 2018)
   ---------------------------------------------------- */

/* ----------------------------------------------------
   RESET & BASE
   ---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    background-color: #F5F5F5;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #333333;
    margin-bottom: 12px;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p {
    margin-bottom: 12px;
}

a {
    color: #2C3E50;
    text-decoration: none;
}

a:hover {
    color: #C5A059;
}

img,
video,
iframe {
    max-width: 100%;
}

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

ul {
    list-style: none;
}

button, a, input, select, textarea {
    touch-action: manipulation;
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
}

/* Helper Utilities */
.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.font-accent { font-weight: 700; letter-spacing: 0.05em; }
.text-center { text-align: center; }
.text-white { color: #FFFFFF !important; }
.bg-light { background-color: #FFFFFF; }
.bg-dark { background-color: #1a1a1a; color: #999999; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.cursor-pointer { cursor: pointer; }

/* ----------------------------------------------------
   TOP HEADER BAR (dark thin bar)
   ---------------------------------------------------- */
.top-header {
    background-color: #333333;
    color: #CCCCCC;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #444444;
}

.top-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header a {
    color: #CCCCCC;
}

.top-header a:hover {
    color: #C5A059;
}

.top-header-left,
.top-header-hotline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.top-header-left strong,
.top-header-hotline strong {
    color: #C5A059;
}

.top-header-right,
.top-header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-header-right a,
.top-header-socials a {
    color: #CCCCCC;
    font-size: 13px;
}

.top-header-right a:hover,
.top-header-socials a:hover {
    color: #C5A059;
}

.top-header-socials svg {
    width: 14px;
    height: 14px;
}

/* ----------------------------------------------------
   SITE HEADER (white, logo + search + contact)
   ---------------------------------------------------- */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #DDDDDD;
    padding: 18px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.6rem;
}

.logo-accent {
    color: #C5A059;
    margin-right: 2px;
}

.logo-text {
    color: #2C3E50;
}

/* Logo ảnh do quản trị tải lên thay chỗ logo chữ; giữ chữ trong DOM để còn rơi
   về được khi ảnh lỗi. */
.logo-img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.logo-has-image .logo-accent,
.logo-has-image .logo-text {
    display: none;
}

.header-search {
    flex: 1;
    max-width: 420px;
    display: flex;
}

.search-form {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.header-search input {
    flex: 1;
    border: 1px solid #DDDDDD;
    border-right: none;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #333333;
    background-color: #FFFFFF;
    border-radius: 2px 0 0 2px;
    box-sizing: border-box;
}

.header-search input:focus {
    border-color: #C5A059;
}

.header-search input:focus-visible,
.input:focus-visible,
.home-search-wrap input:focus-visible,
button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C5A059;
    outline-offset: 2px;
}

.header-search button {
    border: 1px solid #C5A059;
    background-color: #C5A059;
    color: #FFFFFF;
    height: 44px;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
    box-sizing: border-box;
}

.header-search button:hover {
    background-color: #A88444;
}

.header-search svg {
    width: 16px;
    height: 16px;
}

/* Contact button (header) */
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #C5A059;
    color: #FFFFFF;
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 200ms ease;
    cursor: pointer;
}

.btn-contact:hover {
    background-color: #A88444;
    color: #FFFFFF;
}

.btn-contact svg {
    width: 18px;
    height: 18px;
}

/* ----------------------------------------------------
   MAIN NAVIGATION (full-width dark slate bar)
   ---------------------------------------------------- */
.navbar-wrapper {
    position: static;
    z-index: auto;
}

.main-navigation {
    background-color: #2C3E50;
    border-bottom: 2px solid #C5A059;
}

.navbar-wrapper .container {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links-wrapper {
    flex: 1;
}

/* Tiêu đề sidebar chỉ dùng cho menu mobile */
.sidebar-header {
    display: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
}

.nav-link {
    display: block;
    padding: 16px 20px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link:hover,
.nav-link.active {
    background-color: #C5A059;
    color: #FFFFFF;
}

/* ── Menu con (2 cấp) — desktop ── */
.nav-links li.has-submenu {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #1A1A1A;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 900;
}

.nav-links li.has-submenu:hover .nav-submenu,
.nav-links li.has-submenu:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu .nav-link {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.nav-submenu-toggle {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* HOTLINE Button (in nav bar) */
.btn-hotline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #C5A059;
    color: #FFFFFF;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.btn-hotline:hover {
    background-color: #A88444;
    color: #FFFFFF;
}

.hotline-icon {
    width: 18px;
    height: 18px;
}

.hotline-text {
    font-weight: 800;
}

.hotline-number {
    font-weight: 800;
    font-size: 15px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 1px;
}

/* ----------------------------------------------------
   SLIDER / HERO SECTION
   ---------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 30px 0;
    background-color: #FFFFFF;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: stretch;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tagline {
    display: inline-block;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    color: #C5A059;
    border: 1px solid #C5A059;
    border-radius: 2px;
    padding: 5px 12px;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: #2C3E50;
    margin-bottom: 12px;
}

.hero-rule {
    width: 60px;
    height: 3px;
    background-color: #C5A059;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 15px;
    color: #666666;
    margin-bottom: 20px;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid #DDDDDD;
    padding-top: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding-right: 30px;
}

.stat-item:last-child {
    padding-right: 0;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background-color: #DDDDDD;
    flex-shrink: 0;
    margin-right: 30px;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #C5A059;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #666666;
}

/* RIGHT: image slider */
.hero-visual {
    display: flex;
    flex-direction: column;
}

.slider,
.hero-image-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 360px;
    border: 1px solid #DDDDDD;
}

/* Slide đến từ CMS nên khung rỗng trong lúc chờ tải; nền xám giữ chỗ để
   layout không nhảy và không phải nhìn khoảng trắng. */
.hero-image-card.is-loading {
    background: #EFEFEF;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 18px;
    background-color: rgba(44, 62, 80, 0.85);
    color: #FFFFFF;
    z-index: 1;
}

.overlay-subtitle {
    font-size: 12px;
    color: #C5A059;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.overlay-title {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

/* Progress dots */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
}

.carousel-dot.active {
    background: #C5A059;
    border-color: #C5A059;
}

/* Spec badge */
.hero-spec-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2C3E50;
    border: 1px solid #C5A059;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-badge-label {
    font-size: 11px;
    color: #C5A059;
    font-weight: 700;
}

.spec-badge-value {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
}

/* Secondary image strip */
.hero-secondary-img {
    position: relative;
    overflow: hidden;
    height: 90px;
    border: 1px solid #DDDDDD;
    margin-top: 8px;
}

.hero-secondary-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-img-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    background-color: rgba(44, 62, 80, 0.8);
    padding: 4px 10px;
}

/* Scroll indicator */
.scroll-indicator {
    display: none;
}

/* ----------------------------------------------------
   SECTION HEADINGS — heading strip / gold accent
   ---------------------------------------------------- */
.heading {
    border-bottom: 2px solid #DDDDDD;
    margin-bottom: 24px;
    padding-bottom: 12px;
    position: relative;
}

.heading h2 {
    display: inline-block;
    border-left: 4px solid #C5A059;
    padding-left: 12px;
    margin-bottom: 0;
    color: #2C3E50;
}

.heading-strip {
    background-color: #C5A059;
    color: #FFFFFF;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.heading-strip h2 {
    color: #FFFFFF;
    margin-bottom: 0;
    border: none;
    padding: 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 24px auto;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #C5A059;
    text-transform: none;
    margin-bottom: 8px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #2C3E50;
    margin-bottom: 8px;
    border-left: 4px solid #C5A059;
    padding-left: 12px;
    display: inline-block;
}

.section-desc {
    font-size: 14px;
    color: #666666;
}

.bg-dark .section-tag {
    color: #C5A059;
}
.bg-dark .section-title {
    color: #FFFFFF;
    border-left-color: #C5A059;
}

/* ----------------------------------------------------
   CONTENT + SIDEBAR LAYOUT
   ---------------------------------------------------- */
.content-sidebar-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 30px 0;
}

.site-main {
    flex: 1;
    min-width: 0;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    padding: 20px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ----------------------------------------------------
   WIDGETS (sidebar boxes)
   ---------------------------------------------------- */
.widget {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    margin-bottom: 24px;
    padding: 16px;
}

.widget-title {
    font-size: 17px;
    font-weight: 700;
    color: #2C3E50;
    border-bottom: 2px solid #C5A059;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

/* Category navigation list */
.widget-categories li {
    border-bottom: 1px dashed #DDDDDD;
}

.widget-categories li:last-child {
    border-bottom: none;
}

.widget-categories a {
    display: block;
    padding: 10px 4px;
    color: #333333;
    font-weight: 500;
}

.widget-categories a:hover {
    color: #C5A059;
    padding-left: 8px;
}

/* Hotline info box in sidebar */
.widget-hotline {
    background-color: #2C3E50;
    color: #FFFFFF;
    text-align: center;
    padding: 20px 16px;
}

.widget-hotline .widget-title {
    color: #FFFFFF;
    border-bottom-color: #C5A059;
}

.widget-hotline-number {
    font-size: 26px;
    font-weight: 800;
    color: #C5A059;
    display: block;
    margin: 8px 0;
}

.widget-hotline-desc {
    font-size: 13px;
    color: #CCCCCC;
    /* Mô tả do quản trị gõ nhiều dòng trong admin — giữ chỗ xuống dòng của họ. */
    white-space: pre-line;
}

/* News list with thumbnails (sidebar) */
.widget-news-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #DDDDDD;
}

.widget-news-item:last-child {
    border-bottom: none;
}

.widget-news-thumb {
    width: 70px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #DDDDDD;
}

.widget-news-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.widget-news-info h4 a {
    color: #333333;
}

.widget-news-info h4 a:hover {
    color: #C5A059;
}

.widget-news-date {
    font-size: 12px;
    color: #999999;
}

/* ----------------------------------------------------
   NEWS / BLOG POSTS
   ---------------------------------------------------- */
.news-wrap {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    padding: 20px;
    margin-bottom: 24px;
}

.post-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #DDDDDD;
}

.post-item:last-child {
    border-bottom: none;
}

.entry-thumb {
    width: 220px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #DDDDDD;
}

.entry-content {
    flex: 1;
}

.entry-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.entry-title a {
    color: #2C3E50;
}

.entry-title a:hover {
    color: #C5A059;
}

.entry-meta {
    font-size: 12px;
    color: #999999;
    margin-bottom: 8px;
}

.entry-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.view-more {
    display: inline-block;
    color: #C5A059;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid #C5A059;
    padding-bottom: 2px;
}

.view-more:hover {
    color: #A88444;
    border-bottom-color: #A88444;
}

/* ----------------------------------------------------
   BUTTONS
   ---------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #C5A059;
    color: #FFFFFF;
    border: none;
    height: 44px;
    padding: 0 26px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 200ms ease;
}

.btn-primary:hover {
    background-color: #A88444;
    color: #FFFFFF;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #2C3E50;
    border: 1px solid #2C3E50;
    height: 44px;
    padding: 0 25px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 200ms ease;
}

.btn-secondary:hover {
    background-color: #2C3E50;
    color: #FFFFFF;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

/* ----------------------------------------------------
   CARDS & GENERIC GRID
   ---------------------------------------------------- */
.card {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    padding: 20px;
}

.card:hover {
    border-color: #C5A059;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Portfolio / Projects Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.portfolio-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #EEEEEE;
    border-bottom: 1px solid #DDDDDD;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-name {
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.portfolio-meta {
    font-size: 13px;
    color: #555555;
    margin-bottom: 6px;
    line-height: 1.5;
}

.service-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.service-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    background-color: #2C3E50;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C5A059;
    margin-bottom: 14px;
}

.service-icon {
    width: 26px;
    height: 26px;
}

.service-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2C3E50;
}

.service-description {
    font-size: 14px;
    color: #666666;
    margin-bottom: 14px;
    flex-grow: 1;
}

.service-features {
    margin-bottom: 14px;
    border-top: 1px dashed #DDDDDD;
    padding-top: 10px;
}

.service-features li {
    font-size: 13px;
    color: #333333;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features .bullet {
    color: #C5A059;
    font-weight: 700;
}

/* ----------------------------------------------------
   FORMS / INPUTS
   ---------------------------------------------------- */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 6px;
}

.input {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    color: #333333;
    height: 44px;
    padding: 0 12px;
    border-radius: 2px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.input:focus {
    border-color: #C5A059;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232C3E50'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

textarea.input {
    height: auto;
    min-height: 100px;
    padding: 11px 12px;
    resize: vertical;
}

.required {
    color: #C5A059;
    margin-left: 2px;
}

/* ----------------------------------------------------
   MARKET PRICE TABLE
   ---------------------------------------------------- */
.market-prices-section {
    background-color: #F5F5F5;
}

.price-table-wrapper {
    overflow-x: auto;
    border: 1px solid #DDDDDD;
}

.market-price-table,
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #FFFFFF;
}

.market-price-table th,
.market-price-table td,
.pricing-table th,
.pricing-table td {
    padding: 12px 16px;
    border: 1px solid #DDDDDD;
}

.market-price-table th,
.pricing-table th {
    background-color: #2C3E50;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
}

.market-price-table tbody tr:nth-child(even),
.pricing-table tbody tr:nth-child(even) {
    background-color: #F9F9F9;
}

.market-price-table tbody tr:hover,
.pricing-table tbody tr:hover {
    background-color: #FBF6EC;
}

.table-group-header td {
    background-color: #F0E8D8;
    font-weight: 700;
    color: #2C3E50;
}

.trend-up { color: #16a34a; font-weight: 700; }
.trend-down { color: #dc2626; font-weight: 700; }

.price-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.price-note {
    font-size: 13px;
    color: #666666;
    flex: 1;
    min-width: 200px;
}

/* ----------------------------------------------------
   PRODUCTS
   ---------------------------------------------------- */
.product-filter-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.product-filter-tabs {
    display: flex;
    gap: 6px;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    padding: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    background: none;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    color: #666666;
    cursor: pointer;
    white-space: nowrap;
    gap: 6px;
    box-sizing: border-box;
}

.product-filter-btn:hover {
    color: #2C3E50;
    border-color: #DDDDDD;
}

.product-filter-btn.active {
    background-color: #2C3E50;
    color: #FFFFFF;
    border-color: #2C3E50;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background-color: #DDDDDD;
    color: #666666;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
    line-height: 1.4;
}

.product-filter-btn.active .filter-count {
    background-color: #C5A059;
    color: #FFFFFF;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.product-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
}

.product-card:hover {
    border-color: #C5A059;
}

.product-card:hover .product-name {
    color: #C5A059;
}

.product-card[data-stock="out"] {
    opacity: 0.7;
}

.product-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #EEEEEE;
    flex-shrink: 0;
    border-bottom: 1px solid #DDDDDD;
}

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

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
}

.product-badge.group-dong {
    background-color: #A85D22;
    color: #FFFFFF;
}
.product-badge.group-nhom {
    background-color: #5B6B7A;
    color: #FFFFFF;
}
.product-badge.group-chi {
    background-color: #334155;
    color: #FFFFFF;
}
.product-badge.group-thiec {
    background-color: #6B5D52;
    color: #FFFFFF;
}
.product-badge.group-quang,
.product-badge.group-quang-mau {
    background-color: #B8924A;
    color: #FFFFFF;
}
.product-badge.group-quang-sat {
    background-color: #1E293B;
    color: #FFFFFF;
}
.product-badge.group-rare-earth {
    background-color: #6D28D9;
    color: #FFFFFF;
}

.product-stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
}

.product-stock-badge.in-stock {
    background-color: #166534;
    color: #DCFCE7;
}

.product-stock-badge.out-of-stock {
    background-color: #991B1B;
    color: #FEE2E2;
}

.product-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 6px;
    line-height: 1.35;
}

.product-grade {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #C5A059;
    margin-bottom: 8px;
}

.product-grade svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.product-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-origin {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666666;
    margin-bottom: 10px;
}

.product-origin svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.product-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #DDDDDD;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    color: #2C3E50;
}

.product-price.is-contact {
    font-size: 13px;
    font-weight: 700;
    color: #C5A059;
}

.product-cta-link {
    font-size: 13px;
    font-weight: 700;
    color: #C5A059;
}

.product-card:hover .product-cta-link {
    color: #A88444;
}

a.product-card {
    text-decoration: none;
    color: inherit;
    display: flex;
}

/* ----------------------------------------------------
   PRODUCT DETAIL PAGE
   ---------------------------------------------------- */
.breadcrumb {
    font-size: 13px;
    color: #666666;
    margin-bottom: 20px;
    padding: 10px 14px;
    background-color: #F0F0F0;
    border: 1px solid #DDDDDD;
}

.breadcrumb a {
    color: #C5A059;
    font-weight: 600;
}

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

.breadcrumb-sep {
    margin: 0 8px;
    color: #999999;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.detail-image-box {
    position: relative;
    overflow: hidden;
    border: 1px solid #DDDDDD;
}

.detail-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.detail-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2C3E50;
}

.detail-grade {
    font-size: 16px;
    color: #C5A059;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 18px;
    color: #2C3E50;
    margin-bottom: 8px;
}

.detail-price-label {
    font-size: 14px;
    color: #666666;
}

.detail-price.is-contact strong {
    color: #C5A059;
}

.detail-origin {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666666;
    margin-bottom: 14px;
}

.detail-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 18px;
}

.detail-specs {
    background-color: #F5F5F5;
    border: 1px solid #DDDDDD;
    padding: 16px;
    margin-bottom: 18px;
}

.detail-specs-title {
    font-size: 15px;
    margin-bottom: 10px;
    color: #2C3E50;
}

.detail-specs-list li {
    font-size: 13px;
    color: #666666;
    padding: 6px 0;
    border-bottom: 1px dashed #DDDDDD;
}

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

.detail-cta-box {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-order-form {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #DDDDDD;
    background-color: #FFFFFF;
}

/* ----------------------------------------------------
   NEWS CARDS (homepage grid + news page)
   ---------------------------------------------------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-full-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
}

.news-card:hover {
    border-color: #C5A059;
}

.news-card:hover .news-card-title {
    color: #C5A059;
}

.news-card-img-box {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid #DDDDDD;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    background-color: #C5A059;
    color: #FFFFFF;
    border-radius: 2px;
}

.news-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    font-size: 12px;
    color: #999999;
    margin-bottom: 6px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card-summary {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-more {
    margin-top: auto;
    padding-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #C5A059;
}

/* ----------------------------------------------------
   NEWS ARTICLE DETAIL
   ---------------------------------------------------- */
.article-detail {
    max-width: 820px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    padding: 32px;
}

.article-category {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    background-color: #C5A059;
    color: #FFFFFF;
    border-radius: 2px;
    margin-bottom: 12px;
}

.article-title {
    font-size: 28px;
    line-height: 1.35;
    color: #2C3E50;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 13px;
    color: #999999;
    margin-bottom: 16px;
}

.article-summary {
    font-size: 16px;
    font-weight: 500;
    color: #555555;
    line-height: 1.7;
    padding-left: 14px;
    border-left: 3px solid #C5A059;
    margin-bottom: 24px;
}

.article-cover {
    margin-bottom: 24px;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: #333333;
}

.article-body > * + * {
    margin-top: 16px;
}

.article-body h2 {
    font-size: 22px;
    color: #2C3E50;
    margin-top: 28px;
}

.article-body h3 {
    font-size: 18px;
    color: #2C3E50;
    margin-top: 22px;
}

.article-body ul,
.article-body ol {
    padding-left: 22px;
}

.article-body li + li {
    margin-top: 6px;
}

.article-body a {
    color: #C5A059;
    text-decoration: underline;
}

.article-body blockquote {
    padding: 12px 16px;
    border-left: 3px solid #C5A059;
    background-color: #FAF7F0;
    color: #555555;
    font-style: italic;
}

/* Ảnh minh hoạ do biên tập viên chèn giữa bài. */
.article-body img,
.article-body .article-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border: 1px solid #DDDDDD;
}

.article-body figcaption {
    text-align: center;
    font-size: 13px;
    color: #777777;
    margin-top: -10px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
}

.article-body th,
.article-body td {
    border: 1px solid #DDDDDD;
    padding: 8px 10px;
    text-align: left;
}

.article-back {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #DDDDDD;
    font-weight: 600;
}

.article-back a {
    color: #C5A059;
}

@media (max-width: 768px) {
    .article-detail {
        padding: 20px 16px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-body {
        font-size: 15px;
    }
}

/* ----------------------------------------------------
   CONTACT SECTION
   ---------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: stretch;
}

.contact-info-card {
    background-color: #2C3E50;
    color: #FFFFFF;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.contact-info-card a:not(.contact-big-hotline) {
    color: #FFFFFF;
    transition: color 200ms ease;
}

.contact-info-card a:not(.contact-big-hotline):hover {
    color: #C5A059;
}

.info-title {
    font-size: 18px;
    color: #C5A059;
    margin-bottom: 10px;
}

.info-desc {
    font-size: 14px;
    color: #CCCCCC;
    margin-bottom: 20px;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C5A059;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-label {
    font-size: 12px;
    font-weight: 700;
    color: #CCCCCC;
    margin-bottom: 2px;
}

.info-text {
    font-size: 14px;
    color: #FFFFFF;
}

.hover-underline:hover {
    text-decoration: underline;
    color: #C5A059;
}

.promises-box {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 16px;
    margin-top: auto;
}

.promises-title {
    font-size: 13px;
    font-weight: 700;
    color: #C5A059;
    margin-bottom: 10px;
}

.promises-list li {
    font-size: 13px;
    color: #CCCCCC;
    margin-bottom: 6px;
}

.promises-list li:last-child {
    margin-bottom: 0;
}

.contact-form-card {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    padding: 28px 24px;
}

.contact-big-hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    color: #C5A059;
    margin-bottom: 20px;
}

.contact-big-hotline:hover {
    color: #A88444;
}

.contact-big-hotline svg {
    width: 28px;
    height: 28px;
}

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */
.footer {
    background-color: #1a1a1a;
    color: #999999;
    padding-top: 40px;
    border-top: 3px solid #C5A059;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand {
    grid-column: span 1;
}

.brand-bio {
    font-size: 13px;
    color: #999999;
    margin: 14px 0 16px 0;
    line-height: 1.6;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 2px;
    background-color: #2C2C2C;
    border: 1px solid #3A3A3A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
}

.social-link:hover {
    background-color: #C5A059;
    color: #FFFFFF;
    border-color: #C5A059;
}

/* Nút chưa có link được ẩn bằng thuộc tính hidden (app.js và prerender) —
   display: flex ở trên sẽ đè mất nó nếu không nói rõ ở đây. */
.social-link[hidden] {
    display: none;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    border-bottom: 2px solid #C5A059;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.footer a {
    color: #999999;
    transition: color 200ms ease;
}

.footer a:hover {
    color: #C5A059;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-list a {
    font-size: 13px;
    color: #999999;
}

.footer-list a:hover {
    color: #C5A059;
}

.footer-info-text {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #999999;
}

/* ----------------------------------------------------
   COPYRIGHT BAR
   ---------------------------------------------------- */
.footer-bottom,
.site-info {
    border-top: 1px solid #333333;
    background-color: #111111;
    padding: 16px 0;
    font-size: 13px;
    color: #999999;
}

/* ----------------------------------------------------
   HOMEPAGE NEWS / PRODUCT FOOTER LINKS
   ---------------------------------------------------- */
.home-products-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.home-catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #C5A059;
    border-bottom: 1px solid #C5A059;
    padding-bottom: 2px;
}

.home-catalog-link:hover {
    color: #A88444;
    border-bottom-color: #A88444;
}

.home-catalog-link svg {
    width: 13px;
    height: 13px;
}

/* ----------------------------------------------------
   MODAL DIALOG
   ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    padding: 28px 24px;
    max-width: 460px;
    width: 90%;
}

.success-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #D1FAE5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10B981;
    margin: 0 auto 16px auto;
}

.success-icon {
    width: 36px;
    height: 36px;
}

.modal-title {
    font-size: 18px;
    color: #2C3E50;
    margin-bottom: 10px;
    text-align: center;
}

.modal-desc {
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.6;
}

/* ----------------------------------------------------
   SCROLL TO TOP BUTTON
   ---------------------------------------------------- */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 2px;
    background-color: #C5A059;
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
}

.scroll-top-btn:hover {
    background-color: #A88444;
}

.scroll-top-btn svg {
    width: 18px;
    height: 18px;
}

/* ----------------------------------------------------
   MOBILE STICKY BOTTOM CTA BAR
   ---------------------------------------------------- */
.mobile-cta-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: #FFFFFF;
        border-top: 1px solid #DDDDDD;
        padding: 8px 12px;
        gap: 10px;
    }

    .mobile-cta-call {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 16px;
        min-height: 48px;
        flex: 1;
        border-radius: 2px;
        background-color: #FFFFFF;
        border: 1px solid #2C3E50;
        color: #2C3E50;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .mobile-cta-call:hover,
    .mobile-cta-call:active {
        background-color: #2C3E50;
        color: #FFFFFF;
    }

    .mobile-cta-call svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .mobile-cta-quote {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        min-height: 48px;
        flex: 2;
        border-radius: 2px;
        background-color: #C5A059;
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
    }

    .mobile-cta-quote:hover,
    .mobile-cta-quote:active {
        background-color: #A88444;
    }
}

/* ----------------------------------------------------
   RESPONSIVE — TABLET (max-width: 1024px)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-rule {
        margin: 0 auto 16px;
    }

    .hero-description {
        max-width: 100%;
    }

    .slider,
    .hero-image-card {
        height: 320px;
        min-height: 320px;
    }

    .hero-secondary-img {
        height: 80px;
    }

    .stat-item {
        align-items: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-img {
        height: 280px;
    }

    /* Sidebar stacks above content */
    .content-sidebar-wrap {
        flex-direction: column-reverse;
    }

    .sidebar {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ----------------------------------------------------
   RESPONSIVE — MOBILE (max-width: 768px)
   ---------------------------------------------------- */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    body {
        overscroll-behavior-y: contain;
        padding-bottom: 70px;
    }



    /* --- Site header: stack logo / search / contact --- */
    .site-header .container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .logo-area {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 40px;
        max-width: 60vw;
    }

    .header-search {
        width: 100%;
        max-width: none;
    }

    .search-form {
        width: 100%;
    }

    .header-search input {
        min-width: 0;
    }

    .header-contact {
        width: 100%;
        max-width: none;
    }

    .btn-contact {
        width: 100%;
        justify-content: center;
    }

    /* --- Main navigation --- */
    .main-navigation {
        background-color: transparent;
        border-bottom: none;
    }

    .navbar-wrapper .container {
        flex-wrap: wrap;
        position: relative;
        padding: 0;
        justify-content: flex-end;
    }

    .nav-actions {
        display: none;
    }

    .nav-links-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background-color: #1A1A1A;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        padding: 0;
        overflow-y: auto;
    }

    .nav-links-wrapper.mobile-open {
        transform: translateX(0);
    }

    /* Sidebar Header Title */
    .sidebar-header {
        display: block;
        font-size: 20px;
        font-weight: 700;
        color: #FFFFFF;
        text-align: center;
        padding: 24px 0 16px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 16px;
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        font-size: 15px;
        font-weight: 500;
        color: #DDDDDD;
        padding: 14px 20px;
        width: 100%;
        text-align: left;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        transition: background-color 0.2s ease, color 0.2s ease;
        display: block;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: #FFFFFF;
    }

    .nav-link.active {
        background-color: #2C3E50;
        color: #FFFFFF;
    }

    /* Menu con dạng accordion trong sidebar */
    .nav-links li.has-submenu {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .nav-links li.has-submenu > .nav-link {
        flex: 1;
        width: auto;
    }

    .nav-submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        background: none;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: #DDDDDD;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .nav-submenu-toggle svg {
        width: 18px;
        height: 18px;
    }

    .has-submenu.submenu-open .nav-submenu-toggle svg {
        transform: rotate(180deg);
    }

    .nav-submenu {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.03);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .has-submenu.submenu-open .nav-submenu {
        display: block;
    }

    .nav-submenu .nav-link {
        padding-left: 36px;
        font-size: 14px;
    }

    /* Dynamic Menu Backdrop Overlay */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .menu-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle .bar {
        background-color: #2C3E50;
        transition: background-color 0.2s ease;
    }

    .menu-toggle.active .bar {
        background-color: #C5A059;
    }

    /* --- Spacing --- */
    .section-padding {
        padding: 24px 0;
    }

    .container {
        padding: 0 12px;
    }

    /* --- Hero --- */
    .hero-section {
        padding: 16px 0;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 22px;
    }

    .slider,
    .hero-image-card {
        height: 220px;
        min-height: 220px;
    }

    .hero-secondary-img {
        display: none;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        padding-right: 0;
        align-items: center;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-ctas a {
        text-align: center;
        width: 100%;
    }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    /* --- Products --- */
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    /* --- Projects --- */
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .product-filter-wrap {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 16px;
    }

    .product-filter-wrap::-webkit-scrollbar {
        display: none;
    }

    .product-filter-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        border: none;
        background: transparent;
        padding: 0;
        gap: 8px;
    }

    .product-filter-btn {
        background-color: #FFFFFF;
        border: 1px solid #DDDDDD;
        border-radius: 4px;
        height: 44px;
        padding: 0 14px;
        font-size: 13px;
        box-sizing: border-box;
    }

    /* --- News --- */
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .post-item {
        flex-direction: column;
    }

    .entry-thumb {
        width: 100%;
        height: 180px;
    }

    /* --- Content / Sidebar --- */
    .content-sidebar-wrap {
        flex-direction: column-reverse;
        padding: 16px 0;
    }

    .sidebar {
        width: 100%;
    }

    /* --- Footer: single column --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .footer-list a {
        display: block;
        padding: 4px 0;
        font-size: 14px;
    }

    /* --- Price / detail layouts --- */
    .price-cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-big-hotline {
        font-size: 22px;
    }

    .detail-img {
        height: 220px;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-cta-box {
        flex-direction: column;
    }

    /* --- Scroll to top: lift above sticky CTA bar --- */
    .scroll-top-btn {
        bottom: 76px;
    }

    /* --- Responsive Typography Scale & Grids Consistency --- */
    h1 { font-size: 22px !important; }
    h2 { font-size: 18px !important; }
    h3 { font-size: 15px !important; }
    
    .hero-title {
        font-size: 24px !important;
    }

    .section-title {
        font-size: 20px !important;
        border-left-width: 3px !important;
        padding-left: 10px !important;
    }

    .section-desc {
        font-size: 13px !important;
    }

    .product-name {
        font-size: 15px !important;
    }

    .product-desc {
        font-size: 12px !important;
    }

    .news-card-title {
        font-size: 15px !important;
    }

    .news-card-summary {
        font-size: 12px !important;
    }

    .market-price-table th, 
    .market-price-table td,
    .pricing-table th, 
    .pricing-table td {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}

/* ----------------------------------------------------
   SMALL SCREENS (max-width: 480px)
   ---------------------------------------------------- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 20px !important;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .section-title {
        font-size: 18px !important;
    }
}

/* ----------------------------------------------------
   WORKFLOW TIMELINE
   ---------------------------------------------------- */
.workflow-section {
    background-color: #F5F5F5;
}

.workflow-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2C3E50;
    color: #C5A059;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.timeline-panel {
    width: 100%;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 8px;
}

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

/* ----------------------------------------------------
   HOMEPAGE PRODUCTS CONTROLS
   ---------------------------------------------------- */
.home-products {
    background-color: #FFFFFF;
}

.home-products-header {
    margin-bottom: 24px;
}

.home-products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.home-filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.home-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    background: none;
    border: 1px solid #DDDDDD;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.home-filter-btn:hover {
    color: #2C3E50;
    border-color: #2C3E50;
}

.home-filter-btn.active {
    background-color: #2C3E50;
    color: #FFFFFF;
    border-color: #2C3E50;
}

.home-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #DDDDDD;
    height: 44px;
    padding: 0 12px;
    background-color: #FFFFFF;
    min-width: 220px;
    box-sizing: border-box;
}

.home-search-wrap svg {
    width: 18px;
    height: 18px;
    color: #999999;
    flex-shrink: 0;
}

.home-search-wrap input {
    border: none;
    font-size: 14px;
    color: #333333;
    width: 100%;
    background: transparent;
}

/* Service link */
.service-link {
    display: inline-block;
    color: #C5A059;
    font-size: 13px;
    font-weight: 700;
    margin-top: auto;
}

.service-link:hover {
    color: #A88444;
}

/* Services section */
.services-section {
    border-top: 1px solid #DDDDDD;
}

/* Responsive additions */
@media (max-width: 1024px) {
    .workflow-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .workflow-timeline {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .home-products-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-search-wrap {
        width: 100%;
        min-width: 0;
    }

    .home-filter-tabs {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .home-filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .home-filter-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ----------------------------------------------------
   ESTIMATOR / COST CALCULATOR
   ---------------------------------------------------- */
.estimator-section {
    background-color: #FFFFFF;
}

.estimator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.estimator-form-card {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    padding: 24px;
}

.estimator-result-card {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    padding: 24px;
    min-height: 300px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

.check-group {
    display: flex;
    align-items: flex-end;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333333;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #C5A059;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: #999999;
    text-align: center;
}

.result-icon-big {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: #DDDDDD;
}

.result-placeholder-text {
    font-size: 14px;
    color: #999999;
}

.result-title {
    font-size: 16px;
    color: #2C3E50;
    margin-bottom: 16px;
    border-bottom: 2px solid #C5A059;
    padding-bottom: 10px;
}

.result-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #2C3E50;
    margin-bottom: 16px;
}

.summary-label {
    font-size: 14px;
    color: #CCCCCC;
}

.summary-value {
    font-size: 24px;
    font-weight: 800;
    color: #C5A059;
}

.result-divider {
    border: none;
    border-top: 1px dashed #DDDDDD;
    margin: 16px 0;
}

.result-details {
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #EEEEEE;
    font-size: 14px;
}

.detail-label {
    color: #666666;
}

.detail-value {
    color: #333333;
}

.text-bold {
    font-weight: 700;
}

.text-green {
    color: #16a34a;
}

.display-block {
    display: block;
}

.result-note {
    background-color: #FBF6EC;
    border: 1px solid #E8DCC8;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .estimator-grid {
        grid-template-columns: 1fr;
    }

    .form-group-row {
        grid-template-columns: 1fr;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0s !important;
        animation-duration: 0.01ms !important;
    }
}
