/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */
:root {
    --primary: #d8a356;
    --primary-dark: #b8832e;
    --primary-light: #f0c070;
    --dark: #111111;
    --text: #000000;
    --text-muted: #666;
    --bg-light: #f8f8f8;
    --bg-footer: #f7f7f7;
    --white: #ffffff;
    --header-h: 90px;
    --font-body: 'Montserrat', sans-serif;
    --font-alt: 'Dancing Script', cursive;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.10);
    --radius: 4px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    /* Prevent content from hiding behind the fixed header */
    padding-top: 130px; 
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-body); font-weight: 700; color: var(--text); }

/* Global Animations */
@keyframes dropIn { 
    from { opacity: 0; transform: translateY(-8px); } 
    to { opacity: 1; transform: translateY(0); } 
}
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Common UI Elements */
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: clamp(20px, 2.5vw, 30px); letter-spacing: 1px; text-transform: uppercase; }
.section-header p { color: var(--text-muted); margin-top: 10px; font-size: 14px; }
.divider-line { width: 60px; height: 3px; background: var(--primary); margin: 12px auto 0; border-radius: 2px; }

/* Global Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: var(--white);
    padding: 12px 32px; font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.8px; border-radius: var(--radius);
    transition: all var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(216,163,86,0.35); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px solid var(--primary); color: var(--primary);
    padding: 11px 24px; font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.6px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ==========================================================================
   3. HEADER & TOP BAR
   ========================================================================== */
#header {
    position: fixed !important; 
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 9999 !important;
    transform: translateY(0) !important; /* Prevent iOS/Safari cut-off bug */
    margin-top: 0 !important;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: all 0.35s ease;
}

.header-top-bar {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    font-size: 12px;
    padding: 5px 0;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    max-height: 50px;
    opacity: 1;
}
.header-top-bar a { color: var(--white); font-weight: 600; }

/* Header Buttons */
.header-search-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text); font-size: 17px; padding: 8px;
    transition: color var(--transition);
}
.header-search-btn:hover { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    background: none; border: none; cursor: pointer;
    font-size: 22px; color: var(--text); padding: 6px;
}

/* ==========================================================================
   4. OPTION 1: DEFAULT HEADER (Logo Left, Nav Right)
   ========================================================================== */
.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
}
.header-main-row #logo img {
    height: 70px;
    width: auto;
    transition: opacity var(--transition);
}
.header-main-row #logo:hover img { opacity: 0.85; }
.header-main-row .header-nav > li > a {
    padding: 0 16px;
    height: var(--header-h);
    line-height: var(--header-h);
}

/* ==========================================================================
   5. OPTION 2: STACKED HEADER (Logo Top, Nav Bottom)
   ========================================================================== */
.header-main-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo-row {
    width: 100%;
    background-image: url('../images/doanphatnt-bg-03s.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; 
}
/* Blur/Opacity Overlay */
.header-logo-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    opacity: 0.50; 
    z-index: 0; 
}

.header-logo-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1; /* Bring above overlay */
    padding: 16px 24px 12px;
}

/* Brand Logo Typography */
.brand-logo-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}
.brand-logo-stacked img {
    height: 65px;
    margin-bottom: 4px;
}
.brand-text { text-align: center; }
.brand-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    color: #5D5D5C;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.brand-slogan {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    color: #a67c33; 
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.header-actions {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}
.header-logo-row .header-search-btn,
.header-logo-row .mobile-menu-btn { color: var(--text); }
.header-logo-row .header-search-btn:hover,
.header-logo-row .mobile-menu-btn:hover { color: var(--primary); }

.header-nav-row {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    position: relative; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}
.header-nav-row .header-nav > li > a {
    padding: 0 20px;
    height: 60px; 
    line-height: 60px;
}
.mobile-search-only { display: none; }
.desktop-search-only {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================================================================
   6. DESKTOP NAVIGATION & DROPDOWN
   ========================================================================== */
.header-nav {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}
.header-nav > li { position: relative; }
.header-nav > li > a {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text);
    transition: color var(--transition);
    white-space: nowrap;
}

/* Underline Animation */
.header-nav > li > a::after {
    content: ''; display: block; height: 3px; background: var(--primary);
    transform: scaleX(0); transition: transform var(--transition);
    position: absolute; bottom: 0; left: 16px; right: 16px;
    border-radius: 2px 2px 0 0;
}
.header-nav > li:hover > a,
.header-nav > li.active > a,
.header-nav > li.current-menu-item > a { color: var(--primary); }
.header-nav > li:hover > a::after,
.header-nav > li.active > a::after,
.header-nav > li.current-menu-item > a::after { transform: scaleX(1); }

/* Dropdown Sub-menu */
.header-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background-color: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.13);
    border-top: 3px solid var(--primary);
    min-width: 220px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    z-index: 999;
    border-radius: 0 0 var(--radius) var(--radius);
    animation: dropIn 0.2s ease;
}
.header-nav li.dropdown:hover > .dropdown-menu { display: block; }
.header-nav .dropdown-menu li { display: block; width: 100%; }
.header-nav .dropdown-menu li a.menu-link {
    display: block; padding: 11px 20px; font-size: 13px; font-weight: 600;
    color: var(--text); border-bottom: 1px solid #f0f0f0; transition: all var(--transition);
}
.header-nav .dropdown-menu li:last-child a.menu-link { border-bottom: none; }
.header-nav .dropdown-menu li a.menu-link:hover {
    background-color: var(--bg-light); color: var(--primary); padding-left: 28px;
}

/* ==========================================================================
   7. STICKY SHRINK EFFECTS (ON SCROLL)
   ========================================================================== */
#header.scrolled { padding: 0; }

/* Hide Top Bar Smoothly */
#header.scrolled .header-top-bar {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
    border: none !important;
}

@media (min-width: 769px) {
    .header-main-wrapper, .brand-logo-stacked, .brand-logo-stacked img, 
    .header-logo-row, .header-logo-inner, .header-nav-row {
        transition: all 0.35s ease;
    }

    /* Option 2 Stacked converts to Row layout */
    #header.scrolled .header-main-wrapper {
        flex-direction: row; justify-content: space-between; padding: 0 24px; height: 70px; 
    }
    #header.scrolled .header-logo-row { width: auto; background: none; }
    #header.scrolled .header-logo-row::before { opacity: 0; visibility: hidden; }
    #header.scrolled .header-logo-inner { padding: 0; width: auto; }
    
    #header.scrolled .brand-logo-stacked { flex-direction: row; gap: 12px; }
    #header.scrolled .brand-logo-stacked img { height: 46px; margin-bottom: 0; }
    #header.scrolled .brand-text { text-align: left; display: flex; flex-direction: column; justify-content: center; }
    #header.scrolled .brand-title { font-size: 17px; color: var(--text); line-height: 1.1; margin-bottom: 2px; }
    #header.scrolled .brand-slogan { display: block; font-size: 10px; color: #a67c33; letter-spacing: 1.2px; margin-top: 0; }
    
    #header.scrolled .header-nav-row { width: auto; border-bottom: none; justify-content: flex-end; padding-right: 35px; }
    #header.scrolled .header-nav-row .header-nav > li > a { height: 70px; line-height: 70px; }
    #header.scrolled .header-logo-row .header-search-btn { color: var(--text); }

    /* Option 1 Default Shrink Effect */
    #header.scrolled .header-main-row { height: 70px; }
    #header.scrolled .header-main-row #logo img { height: 50px; }
    #header.scrolled .header-main-row .header-nav > li > a { height: 70px; line-height: 70px; }
}

/* ==========================================================================
   8. MOBILE NAVIGATION & OVERLAY
   ========================================================================== */
.mobile-nav-overlay {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    z-index: 999999 !important; /* Force priority over fixed header */
}
.mobile-nav-overlay.open { visibility: visible; opacity: 1; }

.mobile-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }

.mobile-sidebar {
    position: relative;
    width: 280px;
    background: var(--white);
    height: 100%;
    overflow-y: auto;
    padding: calc(24px + env(safe-area-inset-top)) 0 24px 0; /* Accommodate notch designs */
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-nav-overlay.open .mobile-sidebar { transform: translateX(0); }

.close-mobile {
    position: absolute !important;
    top: calc(14px + env(safe-area-inset-top)) !important;
    right: 14px !important;
    background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text);
    z-index: 9999999 !important;
}

/* Mobile Link Styles */
.mobile-nav { list-style: none; padding: 0 16px; }
.mobile-nav li a {
    display: block; padding: 12px 8px;
    font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid #f0f0f0; color: var(--text);
    transition: color var(--transition);
}
.mobile-nav li a:hover { color: var(--primary); }

/* Accordion Interaction */
.mobile-nav .menu-item-has-children { position: relative; }
.toggle-sub-menu {
    position: absolute; right: 0; top: 0;
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
}
.toggle-sub-menu .fa-minus { display: none; }
.menu-item-has-children.active > .toggle-sub-menu .fa-plus { display: none; }
.menu-item-has-children.active > .toggle-sub-menu .fa-minus { display: block; }

.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease;
    padding: 0 0 0 15px;
    background: var(--bg-light);
}
.menu-item-has-children.active > .sub-menu { max-height: 500px; padding: 10px 0 10px 15px; }
.sub-menu li a { font-size: 13px; text-transform: none; color: var(--text-muted); border-bottom: none; padding: 8px; }

/* ==========================================================================
   9. WORDPRESS ADMIN BAR COMPATIBILITY
   ========================================================================== */
body.admin-bar #header { top: 32px !important; }
body.admin-bar .mobile-nav-overlay { top: 32px !important; height: calc(100dvh - 32px) !important; }

@media screen and (max-width: 782px) {
    body.admin-bar #header { top: 46px !important; }
    body.admin-bar .mobile-nav-overlay { top: 46px !important; height: calc(100dvh - 46px) !important; }
}

/* ==========================================================================
   10. HERO SLIDER
   ========================================================================== */
.hero-slider { position: relative; width: 100%; overflow: hidden; background: #1a1a1a; }
#slidesTrack { display: flex; transition: transform 0.7s cubic-bezier(.77,0,.18,1); width: 100%; }
.slide { min-width: 100%; box-sizing: border-box; position: relative; }
.slide img { width: 100%; max-height: 580px; object-fit: cover; filter: brightness(0.82); }

.slide-caption {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 48px; 
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5)); color: var(--white);
}
.slide-caption h2 { font-size: clamp(20px, 3vw, 36px); margin-bottom: 8px;  color: var(--white); }
.slide-caption p { font-size: 16px; opacity: 0.85; }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.18); backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.4); border-radius: 50%;
    color: var(--white); width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; z-index: 10;
    transition: background var(--transition), border-color var(--transition);
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}
.slider-dots .dot {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); 
    cursor: pointer; transition: background var(--transition), transform var(--transition);
}
.slider-dots .dot.active { background: var(--primary); transform: scale(1.3); }

/* ==========================================================================
   11. CTA BANNER
   ========================================================================== */
.cta-banner { background: var(--primary); color: var(--white); text-align: center; padding: 18px 24px; }
.cta-banner p { font-size: 14px; font-weight: 600; margin-bottom: 4px; letter-spacing: 0.4px; }
.cta-banner p:last-of-type { margin-bottom: 12px; font-size: 13px; }
.cta-btn {
    display: inline-block; background: var(--white); color: var(--primary);
    font-weight: 700; font-size: 13px; padding: 10px 28px; border-radius: 2px;
    letter-spacing: 0.8px; text-transform: uppercase;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cta-btn:hover { background: var(--dark); color: var(--white); transform: translateY(-1px); }

/* ==========================================================================
   12. PAGE SECTIONS (About, Tabs, Projects, Calc, Blog)
   ========================================================================== */
/* About Section */
.about-section { background: var(--bg-light); padding: 64px 0; }
.about-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 28px; margin-bottom: 16px; }
.about-text h2 span { color: var(--primary); }
.about-text p { color: #444; line-height: 1.8; margin-bottom: 24px; font-size: 14px; }
.service-icons { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 20px; }
.service-icon-item { text-align: center; cursor: pointer; }
.service-icon-item img { width: 76px; height: 76px; object-fit: contain; margin: 0 auto 6px; }
.service-icon-item h4 { font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--text); }

/* Style Tabs Section */
.style-section { padding: 64px 0; background: #0d0d0d; position: relative; overflow: hidden; }
.style-section::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1600607688969-a5bfcd646154?w=1600&q=60') center/cover no-repeat; opacity: 0.18; }
.style-section .container { position: relative; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.style-tabs-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin-bottom: 40px; }
.style-tabs-nav li a { display: block; padding: 8px 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.2); border-radius: 2px; transition: all var(--transition); }
.style-tabs-nav li.active a, .style-tabs-nav li a:hover { color: var(--white); background: var(--primary); border-color: var(--primary); }
.style-panel { display: none; text-align: center; color: var(--white); animation: fadeIn 0.4s ease; }
.style-panel.active { display: block; }
.style-panel h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; color:#ffffff; }
.style-panel p { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.78); max-width: 640px; margin: 0 auto; }

/* Projects Section */
.projects-section { padding: 64px 0; background: var(--white); }
.projects-section .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.project-tabs-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin-bottom: 32px; }
.project-tabs-nav li a { display: block; padding: 7px 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid transparent; transition: all var(--transition); }
.project-tabs-nav li.active a, .project-tabs-nav li a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.project-panel { display: none; }
.project-panel.active { display: block; animation: fadeIn 0.3s ease; }
.projects-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.project-card { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/2; background: #eee; cursor: pointer; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover img { transform: scale(1.07); }
.project-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.25); display: flex; align-items: flex-end; opacity: 0; transition: opacity var(--transition); }
.project-card:hover .project-overlay { opacity: 1; }
.project-info { padding: 14px; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: var(--white); transform: translateY(8px); transition: transform var(--transition); }
.project-card:hover .project-info { transform: translateY(0); }
.project-info h5 { font-size: 13px; margin-bottom: 3px; }
.project-info ul { list-style: none; font-size: 11px; opacity: 0.8; }
.view-all-wrap { text-align: center; margin-top: 32px; }

/* Construction Calculator Section */
.calc-section { padding: 64px 0; position: relative; overflow: hidden; background: #1a1a1a; }
.calc-section::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=60') center/cover no-repeat; opacity: 0.2; }
.calc-section .container { position: relative; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.calc-section .section-header h2 { color: var(--white); }
.calc-section .section-header p { color: rgba(255,255,255,0.65); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.75); letter-spacing: 0.5px; text-transform: uppercase; }
.calc-field input, .calc-field select { background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.2); color: var(--white); padding: 11px 14px; font-size: 13px; border-radius: var(--radius); outline: none; transition: border-color var(--transition); }
.calc-field input::placeholder { color: rgba(255,255,255,0.35); }
.calc-field select option { background: #222; color: var(--white); }
.calc-field input:focus, .calc-field select:focus { border-color: var(--primary); }
.calc-actions { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.calc-btn { background: var(--primary); color: var(--white); border: none; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; padding: 13px 40px; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); }
.calc-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.calc-results { color: var(--white); font-size: 14px; text-align: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 14px 24px; min-width: 280px; display: none; }
.calc-results.show { display: block; animation: fadeIn 0.4s ease; }
.calc-results span { color: var(--primary); font-weight: 700; }

/* Process Details Section */
.process-section { padding: 64px 0; position: relative; overflow: hidden; background: #16161a; }
.process-section::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1600&q=60') center/cover; opacity: 0.15; }
.process-section .container { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.process-section .section-header h2 { color: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; margin-top: 8px; }
.process-step { text-align: center; padding: 12px 8px; }
.step-icon { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 12px; }
.step-number { display: inline-block; background: var(--primary); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; margin-bottom: 8px; letter-spacing: 0.5px; }
.process-step h3 { font-size: 15px; color: var(--white); font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* Blog Section */
.blog-section { padding: 100px 0; background: var(--white); }
.blog-section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 8px; }
.blog-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); background: var(--white); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }
.blog-card-img { aspect-ratio: 3/2; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 18px; }
.blog-card-body h5 { font-size: 14.5px; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.blog-card-body a:hover h5 { color: var(--primary); }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
#footer { background: var(--bg-footer); border-top: 1px solid #ebebeb; }
.footer-main { max-width: 1280px; margin: 0 auto; padding: 48px 24px 36px; display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 1fr; gap: 40px; }
.footer-col h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-col p, .footer-col li { font-size: 13px; color: #555; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-email-form { display: flex; flex-direction: column; gap: 10px; }
.footer-email-form input { padding: 10px 14px; border: 1px solid #ddd; border-radius: var(--radius); font-size: 13px; outline: none; transition: border-color var(--transition); }
.footer-email-form input:focus { border-color: var(--primary); }
.footer-email-form button { background: var(--primary); color: var(--white); border: none; padding: 11px; font-weight: 700; font-size: 13px; cursor: pointer; border-radius: var(--radius); transition: background var(--transition); }
.footer-email-form button:hover { background: var(--primary-dark); }
.footer-logo { max-width: 90px; margin-bottom: 16px; }
.social-icons { display: flex; gap: 10px; margin: 14px 0; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all var(--transition); }
.social-icon:hover { background: var(--dark); transform: translateY(-2px); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact li i { color: var(--primary); margin-top: 4px; min-width: 14px; }

.footer-bottom { background: var(--dark); color: rgba(255,255,255,0.6); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom-nav { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-bottom-nav a { font-size: 12px; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-bottom-nav a:hover { color: var(--primary); }
.copyright { font-size: 12px; }

/* ==========================================================================
   14. FLOATING CONTACTS & BACK TO TOP
   ========================================================================== */
.float-contacts { position: fixed; bottom: 24px; right: 18px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.18); transition: transform var(--transition), box-shadow var(--transition); overflow: hidden; }
.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }
.float-btn.phone { background: #27ae60; }
.float-btn.zalo { background: #006af5; }
.float-btn.fb { background: #1877f2; }
.float-btn.email { background: var(--primary); }
.float-btn i, .float-btn img { color: var(--white); font-size: 18px; width: 22px; height: 22px; object-fit: contain; }

#back-to-top { position: fixed; bottom: 24px; left: 18px; z-index: 500; width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary); color: var(--primary); font-size: 16px; display: none; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); box-shadow: var(--shadow); }
#back-to-top.show { display: flex; }
#back-to-top:hover { background: var(--primary); color: var(--white); }

/* ==========================================================================
   15. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(3,1fr); }
    .process-grid { grid-template-columns: repeat(3,1fr); gap: 20px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 68px; }
    
    /* Adjust top padding to match smaller mobile header height */
    body { padding-top: 100px; } 
    
    /* Hide Desktop Navigation */
    .header-nav, .header-nav-row { display: none; }
    .mobile-menu-btn, .mobile-search-only { display: block; }
    
    /* Option 1 Default Mobile Adjustments */
    .header-main-row { height: var(--header-h); }
    .header-main-row #logo img { height: 50px !important; }
    
    /* Option 2 Stacked Layout Adapts to Mobile Horizontal Pattern */
    .header-main-wrapper { padding: 0; height: auto; }
    .header-logo-row, .header-logo-inner { padding: 0 24px; justify-content: flex-start; height: var(--header-h); }
    .header-logo-row::before { opacity: 0; visibility: hidden; } /* Remove dark bg overlay on mobile */
    .header-logo-row { background: none; }
    
    .brand-logo-stacked { flex-direction: row; align-items: center; gap: 12px; }
    .brand-logo-stacked img { height: 40px !important; margin-bottom: 0; }
    .brand-text { text-align: left; }
    .brand-title { font-size: 16px; color: var(--text); }
    .brand-slogan { font-size: 9px; letter-spacing: 0.5px; color: var(--primary-dark); }
    
    .header-logo-row .header-search-btn { color: var(--text); }

    /* General Layout Adjustments */
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .service-icons { grid-template-columns: repeat(4,1fr); }
    .projects-grid { grid-template-columns: repeat(2,1fr); }
    .process-grid { grid-template-columns: repeat(2,1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
    .calc-grid { grid-template-columns: 1fr; }
    .slide-caption { padding: 18px 20px; }
}

@media (max-width: 480px) {
    .projects-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
    .process-grid { grid-template-columns: repeat(2,1fr); }
    .footer-main { grid-template-columns: 1fr; }
    .style-tabs-nav li a { padding: 6px 12px; font-size: 11px; }
}

/* ==========================================================================
   16. SEARCH POPUP
   ========================================================================== */
.search-popup-overlay {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100dvh;
    z-index: 9999999 !important; /* Hiển thị trên cùng */
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.search-popup-overlay.open {
    visibility: visible;
    opacity: 1;
}

.search-popup-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85); /* Nền tối mờ */
    backdrop-filter: blur(5px);
}

.search-popup-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}
.search-popup-overlay.open .search-popup-content {
    transform: translateY(0);
}

.search-form {
    display: flex;
    width: 100%;
    border-bottom: 2px solid var(--primary);
}

.search-field {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: clamp(24px, 4vw, 36px);
    padding: 10px 0;
    outline: none;
    font-family: var(--font-body);
}
.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: clamp(20px, 3vw, 28px);
    cursor: pointer;
    padding: 0 15px;
    transition: color var(--transition);
}
.search-submit:hover {
    color: var(--white);
}

.close-search-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    transition: color var(--transition);
}
.close-search-btn:hover {
    color: var(--primary);
}

/* ==========================================================================
   17. PAGINATION (Search & Blog Archives)
   ========================================================================== */
.custom-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.custom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-light);
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.custom-pagination .page-numbers:hover,
.custom-pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(216,163,86,0.25);
}
.custom-pagination .screen-reader-text {
    display: none; /* Hide screen reader text visually */
}

/* ==========================================================================
   18. ABOUT TEMPLATE PAGE
   ========================================================================== */
.about-template-page {
    /* Remove background properties from here */
    padding-top: 100px;
}

/* Hero Section */
.about-hero-banner {
    /* Move background properties here */
    background-image: url('../images/banner02.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps the smooth parallax scrolling effect */
    
    padding: 100px 0;
    text-align: center;
    position: relative;
}

/* Create the dark overlay and blur effect using ::before */
.about-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(3px); /* Frosted glass effect applied to the background image */
    z-index: 0;
}

/* Ensure container content sits above the overlay */
.about-hero-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1; /* Crucial: Brings the text above the ::before overlay */
}

.about-hero-banner h1 {
    font-size: clamp(32px, 5vw, 48px);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 800;
}

.about-hero-banner .divider-line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 20px;
}

.about-hero-banner p {
    font-size: 16px;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

/* Company Introduction Section */
.about-intro-section {
    padding: 80px 0;
    background: var(--white);
}
.about-intro-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.about-intro-section .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-intro-text h2 {
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: var(--dark);
    line-height: 1.3;
}
.about-intro-text h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
}
.about-intro-text p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 24px;
}
.about-intro-image {
    position: relative;
}
.about-intro-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    height: 380px;
}

/* Core Services Section */
.about-activities-section {
    padding: 80px 0;
    background: var(--bg-light);
}
.about-activities-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.about-activities-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}
.about-activities-section .section-header h2 {
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.about-activities-section .section-header .divider-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--white);
    padding: 36px 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}
.service-icon-wrap {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 20px;
}
.service-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}
.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Strengths & Pillars Section */
.about-values-section {
    padding: 80px 0;
    background: var(--white);
}
.about-values-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.about-values-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}
.about-values-section .section-header h2 {
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.about-values-section .section-header .divider-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
}
.values-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.value-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
}
.value-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.value-row h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}
.value-row p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

/* Responsive adjustments for About Us Template */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .about-template-page {
        padding-top: 100px;
    }
    .about-hero-banner {
        padding: 60px 0;
    }
    .about-intro-section .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-intro-image img {
        height: auto;
        max-height: 320px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .value-row {
        flex-direction: column;
        gap: 8px;
        padding-left: 15px;
    }
}

/* Multi-level dropdown configuration for desktop view */
@media (min-width: 992px) {
    
    /* Set the parent item inside the first dropdown as a relative reference points */
    .header-nav-row .header-nav .dropdown-menu li {
        position: relative;
    }

    /* Position the secondary submenu (level 2+) to the right side of its parent */
    .header-nav-row .header-nav .dropdown-menu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: 0;
        margin-left: 0;
        display: none; /* Hide by default until hovered */
    }

    /* Display the nested submenu smoothly when hovering over the parent list item */
    .header-nav-row .header-nav .dropdown-menu li:hover > .dropdown-menu {
        display: block !important;
    }
}

/* ==========================================================================
   19. CONTACT TEMPLATE PAGE
   ========================================================================== */
/* Hero Section Banner */
.contact-template-page .contact-hero-banner {
    /* Setup Parallax Background */
    background-image: url('../images/banner02.jpg'); /* Replace with your desired image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax scrolling effect */
    position: relative;
    padding: 160px 0 100px; /* Tăng padding để lộ diện tích ảnh nền nhiều hơn */
    text-align: center;
}

/* Glassmorphism Overlay to keep text readable */
.contact-template-page .contact-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 249, 250, 0.80); /* Lớp phủ trắng trong suốt 80% */
    backdrop-filter: blur(4px); /* Hiệu ứng làm mờ nền */
    z-index: 0;
}

/* Bring content above the overlay */
.contact-template-page .contact-hero-banner .container {
    position: relative;
    z-index: 1;
}

.contact-template-page .contact-hero-banner h1 {
    font-size: clamp(32px, 5vw, 48px);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 800;
}

.contact-template-page .contact-hero-banner .divider-line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}
.contact-template-page .contact-hero-banner p {
    font-size: 16px;
    color: var(--text-muted); /* Màu xám chữ nhạt */
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.6;
}
/* Content Grid Layout */
.contact-content-section {
    padding: 80px 0;
}
.contact-content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: stretch; /* SỬA Ở ĐÂY: Kéo giãn 2 cột bằng nhau */
}

/* Card Wrappers styling */
.contact-info-wrap, 
.contact-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-info-wrap h2, 
.contact-form-wrap h2 {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--dark);
    letter-spacing: 0.5px;
}
.contact-desc {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Contact Meta Details List */
.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-details-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-details-list li i {
    font-size: 16px;
    color: var(--white);
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(216, 163, 86, 0.2);
}
.contact-details-list li strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.contact-details-list li p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive Google Map Wrapper */
.contact-map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #ebebeb;
}
.contact-map-container iframe {
    display: block;
}

/* Form Groups Layout */
.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.custom-contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.custom-contact-form label {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.custom-contact-form label .required {
    color: #e74c3c;
}
.custom-contact-form input, 
.custom-contact-form textarea {
    background: #fdfdfd;
    border: 1px solid #ddd;
    padding: 12px 16px;
    width:100%;
    font-size: 14px;
    border-radius: var(--radius);
    outline: none;
    font-family: var(--font-body);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.custom-contact-form input:focus, 
.custom-contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(216, 163, 86, 0.1);
    background: var(--white);
}
.custom-contact-form input::placeholder, 
.custom-contact-form textarea::placeholder {
    color: #ccc;
}
.form-submit-btn {
    border: none;
    cursor: pointer;
    justify-content: center;
    padding: 14px;
    font-size: 13px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
@media (max-width: 768px) {
    .contact-template-page {
        padding-top: 100px;
    }
    .contact-template-page .contact-hero-banner {
        padding: 50px 0;
    }
    .contact-info-wrap, 
    .contact-form-wrap {
        padding: 24px;
    }
}
/* =======================================================
   Flexbox Layout to push image to bottom of the card
   ======================================================= */
.contact-info-wrap {
    display: flex;
    flex-direction: column;
}

/* Force the list to take up available space, pushing the image down */
.contact-details-list {
    flex-grow: 1;
    margin-bottom: 32px;
}

/* Customer Support Image Styling */
.contact-support-img {
    margin-top: auto; /* Ensures it strictly aligns to the bottom */
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-support-img img {
    width: 100%;
    height: 220px; /* Chiều cao cố định để khung hình luôn chuẩn */
    object-fit: cover; /* Chống méo hình khi co giãn */
    display: block;
    transition: transform var(--transition);
}

/* Thêm hiệu ứng zoom nhẹ cho sinh động khi trỏ chuột */
.contact-info-wrap:hover .contact-support-img img {
    transform: scale(1.05);
}
/* =======================================================
   Full-Width Google Map Section
   ======================================================= */
.contact-map-section {
    width: 100%;
    display: block;
    line-height: 0; /* Remove default spacing below iframe */
}

.contact-map-section iframe {
    width: 100%;
    display: block;
    pointer-events: auto;
}

/* Phục hồi Icon máy bay giấy cho nút Submit của Shortcode */
.custom-contact-form .form-submit-btn .button-text::after {
    content: "\f1d8"; /* Mã icon paper-plane của FontAwesome */
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 13px;
}

/* Đảm bảo nút Submit của plugin căn giữa chữ + icon */
.custom-contact-form .form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}


/* ==========================================================================
   21. BLOG GRID & ARCHIVE CARDS (Uniform Layout & Truncate Text)
   ========================================================================== */

/* 1. Thiết lập lưới hiển thị bài viết (Responsive Grid) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Tự động chia cột, tối thiểu 300px */
    gap: 30px;
    align-items: stretch;
}

/* 2. Cấu trúc mỗi thẻ bài viết (Card) */
.blog-grid article {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eee; /* Viền mờ (tùy chọn) */
    border-radius: 8px; /* Bo góc */
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-grid article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* 3. Xử lý Hình ảnh: Kích thước bằng nhau, responsive, không méo hình */
.blog-grid article .post-thumbnail img,
.blog-grid article .post-thumbnail-link img,
.blog-grid article img.wp-post-image {
    width: 100%;
    height: 240px; /* Bạn có thể điều chỉnh chiều cao này theo ý muốn */
    object-fit: cover; /* Cắt ảnh lấp đầy khung mà không bị méo */
    display: block;
}

/* 4. Vùng chứa nội dung chữ */
.blog-grid article .entry-content {
    padding: 24px;
    flex-grow: 1; /* Đẩy nội dung chiếm hết không gian còn lại để các card bằng nhau */
    display: flex;
    flex-direction: column;
}

/* 5. Giới hạn Tiêu đề tối đa 3 dòng */
.blog-grid article .entry-header {
    margin-bottom: 12px;
}

.blog-grid article .entry-title,
.blog-grid article .entry-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Cắt chữ sau 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    margin: 0;
}

/* 6. Giới hạn Mô tả (Excerpt/Content) tối đa 5 dòng */
.blog-grid article .entry-summary,
.blog-grid article .entry-excerpt,
.blog-grid article .entry-content p {
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Cắt chữ sau 5 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Tùy chỉnh ẩn meta (ngày tháng, tác giả) nếu quá dài hoặc dồn bố cục */
.blog-grid article .entry-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}
/* ==========================================================================
   SINGLE POST LAYOUT (Blog Article + Sidebar)
   ========================================================================== */
.site-main.single .archive-banner {
   margin-top: 100px;
   position:relative
}
.site-main.single .about-hero-banner {
    background-image: url(../images/banner02.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 50px 0;
    text-align: center;
    position: relative;
}
.site-main.single .about-hero-banner h1 {
    font-size: clamp(32px, 5vw, 48px);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 800;
}

/* Responsive Mobile & Tablet cho trang chi tiết bài viết */
@media (max-width: 991px) {
    .site-main.single .post-content-area,
    .site-main.single .post-sidebar-area {
        flex: 0 0 100% !important; 
        max-width: 100% !important;
    }
    
    .site-main.single .post-sidebar-area {
        margin-top: 40px !important; /* Tạo khoảng cách khi Sidebar rớt xuống dưới bài viết */
    }
}
/* ==========================================================================
   SHOP WIDGETS IN BLOG SIDEBAR (Đồng bộ Widget Shop sang Blog)
   ========================================================================== */

/* --- 1. Custom Search Widget --- */
.site-main .post-sidebar-area .sshop-search-form {
    display: flex !important;
    position: relative !important;
    margin-bottom: 20px !important;
}

.site-main .post-sidebar-area .sshop-search-form .search-field {
    width: 100% !important;
    padding: 12px 45px 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    outline: none !important;
    background: #fff !important;
    color: #333 !important;
    box-shadow: none !important;
}

.site-main .post-sidebar-area .sshop-search-form .ss-search-button {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 45px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    transition: 0.3s ease !important;
}

.site-main .post-sidebar-area .sshop-search-form .ss-search-button:hover {
    color: var(--primary, #d8a356) !important;
}

/* --- 2. Custom Category Widget --- */
.site-main .post-sidebar-area .sshop-category-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-main .post-sidebar-area .sshop-category-list li {
    position: relative !important;
    display: block !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 0 !important; /* Xóa khoảng trống thừa của thẻ li mặc định */
}

.site-main .post-sidebar-area .sshop-category-list li a {
    display: block !important;
    padding: 12px 0 !important;
    color: #444 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: 0.3s ease !important;
    font-weight: 500 !important;
}

.site-main .post-sidebar-area .sshop-category-list li a:hover,
.site-main .post-sidebar-area .sshop-category-list li.current-cat > a {
    color: var(--primary, #d8a356) !important;
    padding-left: 5px !important; 
}

/* Nút bấm Đóng/Mở (+ / -) */
.site-main .post-sidebar-area .sshop-category-list .children {
    display: none; 
    list-style: none !important;
    margin: 0 0 10px 15px !important;
    padding: 0 !important;
    border-left: 2px solid #f0f0f0 !important;
}

.site-main .post-sidebar-area .sshop-category-list .children li {
    border-bottom: none !important;
}

.site-main .post-sidebar-area .sshop-category-list .children li a {
    padding: 8px 0 8px 15px !important;
    font-size: 14px !important;
    color: #666 !important;
}

.site-main .post-sidebar-area .sshop-category-list .toggle-sub-menu {
    position: absolute !important;
    right: 0 !important;
    top: 8px !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f8f8 !important;
    border: 1px solid #eaeaea !important;
    border-radius: 4px !important;
    color: #666 !important;
    z-index: 2 !important;
    transition: 0.3s ease !important;
}

.site-main .post-sidebar-area .sshop-category-list .toggle-sub-menu:hover {
    background: var(--primary, #d8a356) !important;
    color: #fff !important;
    border-color: var(--primary, #d8a356) !important;
}

.site-main .post-sidebar-area .sshop-category-list .toggle-sub-menu .fa-minus { display: none !important; }
.site-main .post-sidebar-area .sshop-category-list li.open > .toggle-sub-menu .fa-plus { display: none !important; }
.site-main .post-sidebar-area .sshop-category-list li.open > .toggle-sub-menu .fa-minus { display: inline-block !important; }

/* --- 3. Custom Recent Products Widget --- */
.site-main .post-sidebar-area .simple-shop-recent-products {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.site-main .post-sidebar-area .simple-product-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 15px !important;
}

.site-main .post-sidebar-area .simple-product-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.site-main .post-sidebar-area .simple-product-item .product-image {
    flex: 0 0 80px !important;
    width: 80px !important;
    height: 80px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
}

.site-main .post-sidebar-area .simple-product-item .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.site-main .post-sidebar-area .simple-product-item .product-info {
    flex: 1 !important;
    min-width: 0 !important; 
}

.site-main .post-sidebar-area .simple-product-item .product-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.site-main .post-sidebar-area .simple-product-item .product-title a {
    color: #333 !important;
    text-decoration: none !important;
    padding: 0 !important; 
    display: inline !important;
}

.site-main .post-sidebar-area .simple-product-item .product-row-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 5px !important;
}

.site-main .post-sidebar-area .simple-product-item .price-text {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--primary, #d8a356) !important;
}

.site-main .post-sidebar-area .simple-product-item .cart-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
    background: #f8f8f8 !important;
    border: 1px solid #eee !important;
    color: #333 !important;
    border-radius: 4px !important;
    display: inline-flex !important;
}

.site-main .post-sidebar-area .simple-product-item .cart-btn:hover {
    background: var(--primary, #d8a356) !important;
    color: #fff !important;
}

/* ==========================================================================
   PROJECT CARD HOVER EFFECTS
   ========================================================================== */
.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px; 
    text-decoration: none;
    background: #000;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Lớp phủ đen mặc định ẩn đi (opacity: 0) */
.project-card .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Màu đen mờ 75% */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

/* Bố cục nội dung chữ trượt xuống chờ sẵn */
.project-card .project-info {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card .project-info h5 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.project-card .project-excerpt {
    color: #dddddd;
    font-size: 14px;
    line-height: 1.5;
}

/* --- KHI HOVER CHUỘT VÀO --- */

/* 1. Zoom nhẹ hình ảnh nền */
.project-card:hover img {
    transform: scale(1.1);
}

/* 2. Hiện lớp phủ tối */
.project-card:hover .project-overlay {
    opacity: 1;
    visibility: visible;
}

/* 3. Chữ trượt mượt mà lên đúng tâm */
.project-card:hover .project-info {
    transform: translateY(0);
}

/* ==========================================================================
   PROJECT GRID LAYOUT (Hiển thị dạng lưới 3 cột)
   ========================================================================== */
.project-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    margin-top: 30px !important;
}
/* Kích thước ảnh của project card để nó có tỷ lệ đẹp, không bị cao quá hoặc lùn quá */
.project-card {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 8px !important; 
    text-decoration: none !important;
    background: #000 !important;
    /* Aspect ratio giúp card giữ được hình chữ nhật (4:3) đồng nhất cho mọi ảnh */
    aspect-ratio: 4 / 3 !important; 
    width: 100% !important;
}

.project-card img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Cắt ảnh tràn viền vừa vặn mà không bị méo */
    display: block !important;
    transition: transform 0.5s ease !important;
}

/* ==========================================================================
   RESPONSIVE GRID (Xử lý trên điện thoại / Tablet)
   ========================================================================== */
@media (max-width: 991px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 2 cột trên Tablet */
        gap: 20px !important;
    }
}

@media (max-width: 575px) {
    .project-grid {
        grid-template-columns: 1fr !important; /* 1 cột trên điện thoại */
        gap: 16px !important;
    }
}
/* ==========================================================================
   PROJECT TABS LOGIC (CSS Chuyển Tab và Nút bấm)
   ========================================================================== */
.project-tabs-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.project-tabs-nav li a {
    display: inline-block !important;
    padding: 8px 24px !important;
    background: #f8f8f8 !important;
    color: #333 !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.project-tabs-nav li.active a,
.project-tabs-nav li a:hover {
    background: var(--primary, #d8a356) !important;
    color: #fff !important;
}

/* Quan trọng: Ẩn các tab không active */
.project-tab-pane {
    display: none; 
}

/* Hiện tab active kèm hiệu ứng mờ dần (Fade In) */
.project-tab-pane.active {
    display: block;
    animation: fadeInTab 0.5s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   GIỚI HẠN TEXT 3 DÒNG & CANH GIỮA
   ========================================================================== */
.limit-3-lines-center {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important; /* Ép hiển thị đúng 3 dòng */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* Hiện dấu ... nếu văn bản dài hơn 3 dòng */
    text-align: center !important; /* Canh giữa văn bản */
    word-break: break-word !important; /* Chống tràn chữ với các từ quá dài */
    width: 100%;
}
/* =============================================
       PRICE LIST PAGE STYLES
       ============================================= */
    .price-list-page {
        font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
        color: #222;
        background: #fff;
    }

    .price-list-page .container {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* ---- INTRO HEADER ---- */
    .pl-intro-header {
        background: #ffffff;
        padding: 24px 0 18px;
    }
    .pl-intro-header h2 {
        font-size: 1.1rem;
        font-weight: 800;
        color: #7a5c28;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 0 0 10px;
    }
    .pl-intro-header ul {
        list-style: none;
        padding: 0; margin: 0;
        font-size: 0.85rem;
        color: #444;
        line-height: 1.8;
    }
    .pl-intro-header ul li::before {
        content: '✓ ';
        color: #7a5c28;
        font-weight: 700;
    }

    /* ---- SECTION TITLE ---- */
    .pl-section-title {
        text-align: center;
        font-size: 1.7rem;
        font-weight: 900;
        color: #222;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 40px 0 20px;
        position: relative;
    }
    .pl-section-title::after {
        content: '';
        display: block;
        width: 60px; height: 3px;
        background: #c8861a;
        margin: 8px auto 0;
        border-radius: 2px;
    }

    /* ---- PRICING TABLE ---- */
    .pl-pricing-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 6px;
        font-size: 0.82rem;
    }
    .pl-pricing-table th {
        background: #1a2c4e;
        color: #fff;
        padding: 10px 8px;
        text-align: center;
        font-weight: 700;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .pl-pricing-table th:first-child {
        background: #152340;
        text-align: left;
        width: 200px;
    }
    .pl-pricing-table td {
        border: 1px solid #ddd;
        padding: 10px 8px;
        vertical-align: top;
    }
    .pl-pricing-table td:first-child {
        background: #1a2c4e;
        color: #fff;
        font-weight: 700;
        font-size: 0.8rem;
    }
    .pl-pricing-table td ul {
        list-style: none;
        padding: 0; margin: 0;
        line-height: 1.7;
    }
    .pl-pricing-table td ul li::before {
        content: '• ';
        color: #c8861a;
    }
    .pl-pricing-table td ul li.highlight {
        color: #c8861a;
        font-style: italic;
    }
    .pl-pricing-table td ul li.orange {
        color: #e07b1a;
    }
    .pl-pricing-note {
        font-size: 0.78rem;
        color: #777;
        font-style: italic;
        margin: 4px 0 20px;
    }

    /* ---- DISCOUNT TABLE ---- */
    .pl-discount-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 6px;
        font-size: 0.82rem;
    }
    .pl-discount-table th {
        background: #1a2c4e;
        color: #fff;
        padding: 10px 12px;
        font-weight: 700;
        font-size: 0.78rem;
        text-transform: uppercase;
        text-align: center;
    }
    .pl-discount-table td {
        border: 1px solid #ddd;
        padding: 10px 12px;
        text-align: center;
        font-weight: 600;
        font-size: 0.85rem;
    }
    .pl-discount-table tr.header-row td {
        background: #1a2c4e;
        color: #fff;
        font-weight: 700;
        font-size: 0.78rem;
        text-transform: uppercase;
    }
    .pl-discount-val {
        color: #c8861a;
        font-weight: 800;
    }

    /* ---- DEDUCTION TABLE ---- */
    .pl-section-subtitle {
        text-align: center;
        font-size: 1.2rem;
        font-weight: 800;
        color: #222;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin: 36px 0 16px;
        position: relative;
    }
    .pl-section-subtitle::after {
        content: '';
        display: block;
        width: 50px; height: 3px;
        background: #c8861a;
        margin: 6px auto 0;
        border-radius: 2px;
    }

    .pl-deduction-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 30px;
        font-size: 0.85rem;
    }
    .pl-deduction-table thead tr th {
        background: #1a2c4e;
        color: #fff;
        padding: 10px 14px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.78rem;
        letter-spacing: 0.5px;
    }
    .pl-deduction-table thead tr th:last-child {
        background: #c8861a;
        text-align: center;
    }
    .pl-deduction-table tbody tr td {
        border: 1px solid #ddd;
        padding: 12px 14px;
        font-weight: 600;
    }
    .pl-deduction-table tbody tr td:last-child {
        text-align: center;
        font-weight: 800;
        color: #c8861a;
        font-size: 1rem;
    }
    .pl-deduction-table tbody tr td.free {
        color: #c8861a;
        font-weight: 900;
        font-size: 1.05rem;
    }

    /* ---- PHONG THUY SECTION ---- */
    .pl-phongthuy-section {
        background: #f9f5ee;
        border-left: 6px solid #c8861a;
        padding: 30px 0 30px;
        margin: 10px 0 0;
    }
    .pl-phongthuy-section .pl-section-block-title {
        display: inline-block;
        background: #c8861a;
        color: #fff;
        font-weight: 900;
        font-size: 1.3rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        padding: 10px 36px;
        margin-bottom: 30px;
        clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
    }

    .pl-tuvantrongoi {
        background: #1a2c4e;
        color: #fff;
        text-align: center;
        padding: 14px 20px 10px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
    .pl-tuvantrongoi .label {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #adc6e8;
        margin-bottom: 6px;
    }
    .pl-tuvantrongoi .price-big {
        font-size: 3rem;
        font-weight: 900;
        color: #fff;
        line-height: 1;
        letter-spacing: -1px;
    }
    .pl-tuvantrongoi .price-big span {
        font-size: 1.1rem;
        font-weight: 600;
        color: #e8c97a;
        letter-spacing: 1px;
    }
    .pl-tuvantrongoi .price-desc {
        font-size: 0.82rem;
        color: #c5d9f0;
        margin-top: 8px;
        line-height: 1.6;
    }

    .pl-phongthuy-list {
        list-style: none;
        padding: 0; margin: 0 0 10px;
    }
    .pl-phongthuy-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px dashed #ddd;
        font-size: 0.84rem;
        line-height: 1.6;
        color: #333;
    }
    .pl-phongthuy-list li::before {
        content: '';
        display: block;
        min-width: 22px; min-height: 22px;
        width: 22px; height: 22px;
        background: #c8861a;
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        margin-top: 2px;
    }

    /* ---- QUY TRINH SECTION ---- */
    .pl-quytrinh-section {
        padding: 40px 0 20px;
    }
    .pl-quytrinh-section .pl-section-block-title {
        display: inline-block;
        background: #c8861a;
        color: #fff;
        font-weight: 900;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        padding: 10px 36px;
        margin-bottom: 30px;
        clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
    }

    .pl-steps {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
    }
    .pl-steps::before {
        content: '';
        position: absolute;
        left: 52px;
        top: 0; bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, #c8861a 0%, #1a2c4e 100%);
        z-index: 0;
    }
    .pl-step {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }
    .pl-step-num {
        min-width: 88px;
        text-align: right;
    }
    .pl-step-num .step-label {
        font-size: 0.6rem;
        font-weight: 700;
        color: #c8861a;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: block;
    }
    .pl-step-num .step-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        background: #c8861a;
        color: #fff;
        font-weight: 900;
        font-size: 1rem;
        border-radius: 50%;
        border: 3px solid #fff;
        box-shadow: 0 0 0 3px #c8861a;
        margin-top: 2px;
    }
    .pl-step-body {
        flex: 1;
        background: #fff;
        border: 1px solid #e0d0b0;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .pl-step-body .step-title {
        background: #1a2c4e;
        color: #fff;
        padding: 10px 16px;
        font-weight: 800;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .pl-step-body .step-content {
        padding: 14px 16px;
        font-size: 0.83rem;
        line-height: 1.75;
        color: #333;
    }
    .pl-step-body .step-content p {
        margin: 0 0 8px;
    }
    .pl-step-body .step-content p:last-child { margin-bottom: 0; }
    .pl-step-body .step-content .highlight-days {
        color: #c8861a;
        font-weight: 700;
    }

    @media (max-width: 640px) {
        .pl-pricing-table, .pl-discount-table, .pl-deduction-table {
            font-size: 0.74rem;
        }
        .pl-pricing-table th, .pl-pricing-table td { padding: 7px 5px; }
        .pl-section-title { font-size: 1.2rem; }
        .pl-tuvantrongoi .price-big { font-size: 2rem; }
        .pl-steps::before { left: 44px; }
        .pl-step-num { min-width: 70px; }
    }
    /* Responsive Grid for Packages */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns desktop */
    gap: 20px;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* 1 column mobile */
    }
}

/* Deduction Table (Always 2 columns) */
.pl-deduction-table {
    width: 100%;
    table-layout: fixed; /* Giữ 2 cột cố định */
}
/* Container 3 cột cho desktop, 1 cột cho mobile */
.pl-grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Container 2 cột cho cả desktop và mobile (dùng cho Giảm trừ phí) */
.pl-grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Style cho các thẻ gói */
.pl-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pl-card h3 {
    text-align: center;
    background: #1a2c4e;
    color: #fff;
    padding: 10px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
}

.pl-card ul { list-style: none; padding: 0; }
.pl-card ul li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }

/* Responsive cho mobile */
@media (max-width: 768px) {
    .pl-grid-3-cols { grid-template-columns: 1fr; }
    /* Giữ nguyên 2 cột cho mobile nếu muốn, hoặc đổi thành 1 nếu cần */
    .pl-grid-2-cols { grid-template-columns: 1fr; } 
}
.pl-deduction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Ép buộc luôn là 2 cột */
    gap: 15px;
    margin-top: 20px;
}

.pl-deduction-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    border-radius: 6px;
}

.pl-deduction-card h4 {
    margin-bottom: 10px;
    color: #1a2c4e;
    font-size: 0.9rem;
}

.pl-deduction-card .value {
    font-weight: 700;
    color: #b8832e; /* Màu chủ đạo của bạn */
}

/* Main wrapper to constrain width */
/* Container padding and spacing */
.pl-info-package {
    padding: 60px 0;
}

/* Mobile First Layout: Stack items vertically */
.pl-info-package .layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Category header takes full width */
.pl-info-package .category-header {
    width: 100%;
    font-size: 1.25rem;
    font-weight: 700;
    color: #275d5e;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Pricing card styling */
.pl-info-package .pricing-box {
    background-color: #fcfcfc;
    border: 1px solid #f0f0f0;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.pl-info-package .package-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary, #d8a356); /* Fallback to theme primary color */
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.pl-info-package .price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #275d5e;
}

.pl-info-package .price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.pl-info-package .price-unit {
    font-size: 1rem;
    font-weight: 700;
}

.pl-info-package .service-description {
    font-size: 0.9375rem;
    color: var(--text-muted, #666);
    line-height: 1.6;
    margin: 0;
}

/* Reset features list default styles */
.pl-info-package .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Align icon and text side-by-side */
.pl-info-package .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.pl-info-package .feature-item:last-child {
    margin-bottom: 0;
}

.pl-info-package .feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px; /* Visual alignment with the first line of text */
}

.pl-info-package .feature-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text, #333);
    margin: 0;
}

/* Desktop Layout Adjustments (min-width: 992px) */
@media (min-width: 992px) {
    .pl-info-package .layout-wrapper {
        flex-direction: row;
        flex-wrap: wrap; /* Allows header to wrap properly */
        align-items: center; /* Vertically center the content */
        padding: 40px;
        gap: 0; /* Reset gap, use padding instead */
    }

    .pl-info-package .category-header {
        flex: 0 0 100%;
        margin-bottom: 40px;
        font-size: 1.5rem;
    }

    /* Assign 40% width for the pricing card */
    .pl-info-package .card-container {
        flex: 0 0 40%; 
        padding-right: 40px;
        border-right: 1px solid #eaeaea; /* Vertical divider between card and features */
    }

    /* Assign 60% width for the features list */
    .pl-info-package .features-list {
        flex: 0 0 60%; 
        padding-left: 40px;
    }
}
/* ==========================================================================
   404 ERROR PAGE STYLES
   ========================================================================== */
.error-404-section {
    padding: 100px 24px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-light, #f8f8f8); /* Màu nền xám nhạt nhẹ nhàng */
}

.error-404-content {
    max-width: 650px;
    margin: 0 auto;
}

.error-404-content .error-code {
    font-size: clamp(100px, 15vw, 180px);
    font-weight: 900;
    line-height: 1;
    color: var(--primary, #d8a356);
    margin-bottom: 10px;
    text-shadow: 4px 4px 0px rgba(216, 163, 86, 0.15); /* Đổ bóng nhẹ cho số 404 */
}

.error-404-content .error-title {
    font-size: clamp(24px, 4vw, 32px);
    color: var(--dark, #111);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
}

.error-404-content .error-desc {
    font-size: 16px;
    color: var(--text-muted, #666);
    margin-bottom: 35px;
    line-height: 1.6;
}

/* ==========================================================================
   Định dạng thanh tìm kiếm trong trang 404
   ========================================================================== */
.error-search-form {
    max-width: 500px; /* Nới rộng một chút để form đẹp hơn */
    margin: 0 auto 35px auto;
}

.error-search-form .search-form {
    display: flex;
    align-items: stretch; /* Ép input và button có chiều cao bằng nhau tuyệt đối */
    width: 100%;
}

/* Ép thẻ label (đang bọc input) chiếm toàn bộ khoảng trống còn lại bên trái */
.error-search-form .search-form label {
    flex: 1;
    margin: 0;
    display: flex;
}

.error-search-form .search-field {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-right: none; /* XÓA VIỀN PHẢI để dính liền với nút Tìm kiếm */
    border-radius: 30px 0 0 30px; /* Bỏ bo tròn bên phải */
    font-size: 15px;
    outline: none;
    background: #fff;
    transition: var(--transition, 0.3s ease);
}

.error-search-form .search-field:focus {
    border-color: var(--primary, #d8a356);
}

.error-search-form .search-submit {
    position: static; /* Xóa absolute để phần tử linh hoạt nằm kế bên input */
    width: auto;
    height: auto;
    padding: 0 30px;
    border: none;
    background: var(--primary, #d8a356);
    color: #fff;
    border-radius: 0 30px 30px 0; /* Bo tròn nốt nửa bên phải */
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Ngăn chữ "Tìm Kiếm" bị rớt xuống 2 dòng */
    transition: var(--transition, 0.3s ease);
}

.error-search-form .search-submit:hover {
    background: var(--primary-dark, #b8832e);
}

/* ==========================================================================
   ROUGH CONSTRUCTION TEMPLATE STYLES
   ========================================================================== */

.rc-wrapper {
    padding: 60px 0;
    background: var(--bg-light, #f8f8f8);
}

.rc-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Intro Box Layout */
.rc-intro-section {
    margin-bottom: 50px;
}

.rc-content-box {
    background: var(--white, #ffffff);
    padding: 40px;
    border-radius: var(--radius, 4px);
    box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,0.10));
    border-top: 4px solid var(--primary, #d8a356);
}

.rc-section-title {
    font-size: 28px;
    color: var(--primary, #d8a356);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.rc-description {
    font-size: 16px;
    color: var(--text-muted, #666);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Features List Setup */
.rc-feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.rc-feature-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text, #000000);
}

/* Custom Checkmark matching primary color */
.rc-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary, #d8a356);
    font-weight: bold;
    font-size: 18px;
}

/* Pricing Image Styling */
.rc-pricing-media {
    text-align: center;
    padding-bottom: 40px;
}

.rc-image-container {
    display: inline-block;
    border-radius: var(--radius, 4px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,0.10));
    background: var(--white, #ffffff);
    padding: 10px;
}

.rc-img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    transition: var(--transition, 0.3s ease);
}

/* Subtle hover effect for the pricing image */
.rc-image-container:hover .rc-img-fluid {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rc-content-box {
        padding: 25px;
    }
    
    .rc-section-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   ROUGH CONSTRUCTION HERO BANNER (UPDATED TO PREVENT HEADER OVERLAP)
   ========================================================================== */

.rc-template-page .rc-hero-banner {
    /* Transparent dark overlay over the background image */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/banner02.jpg') no-repeat center center;
    background-size: cover;
    
    /* Increased top padding (140px) to push the text down and clear the fixed header.
       Adjust 140px higher or lower depending on your exact header height.
    */
    padding: 160px 0 80px 0; 
    
    text-align: center;
    color: var(--white, #ffffff);
    position: relative;
    z-index: 1; /* Ensures content stays correctly layered */
}

.rc-template-page .rc-hero-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.rc-template-page .rc-hero-banner h1 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: var(--white, #ffffff);
    line-height: 1.3;
}

.rc-template-page .rc-hero-banner .divider-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary, #d8a356);
    margin: 0 auto 15px auto;
}

.rc-template-page .rc-hero-banner p {
    font-family: var(--font-body);
    font-size: 16px;
    font-style: italic;
    opacity: 0.9;
    margin: 0;
    color: var(--white, #ffffff);
}

/* Responsive banner adjustments for tablets and mobile devices */
@media (max-width: 768px) {
    .rc-template-page .rc-hero-banner {
        /* Slightly reduce top padding on smaller screens if header height shrinks */
        padding: 110px 0 60px 0;
    }
    .rc-template-page .rc-hero-banner h1 {
        font-size: 28px;
    }
}

/* ==========================================================================
   ROUGH CONSTRUCTION PRICING TABLE SECTION
   ========================================================================== */

.rc-pricing-table-section {
    padding: 60px 0;
    background: var(--white, #ffffff);
}

.rc-pricing-table-section .container {
    max-width: 900px; /* Constrain width to keep table readable */
    margin: 0 auto;
    padding: 0 15px;
}

.rc-table-title {
    text-align: center;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark, #111111);
    margin-bottom: 35px;
    line-height: 1.4;
    white-space: pre-line; /* Allows line breaks if formatting requires it */
}

.rc-table-responsive {
    width: 100%;
    overflow-x: auto; /* Horizontal scroll on very small devices */
}

.rc-custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

/* Table Header Styles */
.rc-custom-table th {
    color: var(--white, #ffffff);
    padding: 22px 15px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
}

.rc-custom-table th.col-building {
    background-color: #d19a6a; /* Light brown/tan from the image */
    width: 65%;
}

.rc-custom-table th.col-price {
    background-color: #1a625e; /* Dark teal from the image */
    width: 35%;
}

/* Table Body Styles */
.rc-custom-table td {
    padding: 18px 24px;
    border: 1px solid #eba98c; /* Peach/coral border color */
    font-size: 16px;
    font-weight: 500;
    color: var(--text, #000000);
}

.rc-custom-table td.price-val {
    text-align: center;
    font-weight: 600;
}

/* Table Note */
.rc-table-note {
    font-size: 15px;
    color: #e38466; /* Coral text color for the note */
    font-style: italic;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rc-custom-table th {
        font-size: 14px;
        padding: 15px 10px;
    }
    .rc-custom-table td {
        font-size: 14px;
        padding: 15px 12px;
    }
    .rc-table-note {
        font-size: 13px;
    }
}
/* ==========================================================================
   1-COLUMN FINISHING LABOR TABLE (nhan-cong.png)
   ========================================================================== */

.rc-labor-1col-section {
    padding: 60px 0;
    background: var(--white, #ffffff);
}

.rc-labor-1col-section .container {
    max-width: 900px; /* Giới hạn chiều rộng để bảng không bị quá bè */
    margin: 0 auto;
    padding: 0 15px;
}

.rc-custom-table.labor-1col-variant {
    width: 100%;
    border-collapse: collapse;
}

/* Phần tiêu đề nền nâu nhạt */
.rc-custom-table.labor-1col-variant th {
    background-color: #d19a6a; 
    color: var(--white, #ffffff);
    padding: 20px 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.6;
    border: 1px solid #d19a6a;
}

/* Phần nội dung viền cam nhạt, chữ căn giữa */
.rc-custom-table.labor-1col-variant td {
    padding: 20px 15px;
    border: 1px solid #eba98c; /* Viền màu cam nhạt theo ảnh */
    background-color: var(--white, #ffffff);
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #333333);
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .rc-custom-table.labor-1col-variant th,
    .rc-custom-table.labor-1col-variant td {
        font-size: 13.5px;
        padding: 15px 10px;
    }
}
/* ==========================================================================
   ROUGH CONSTRUCTION COEFFICIENT TABLE
   ========================================================================== */

.rc-coef-table-section {
    padding: 60px 0;
    background: var(--white, #ffffff);
}

.rc-coef-table-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.rc-custom-table.coef-variant {
    width: 100%;
    border-collapse: collapse;
}

/* Header Styling */
.rc-custom-table.coef-variant th {
    color: var(--white, #ffffff);
    padding: 22px 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid #eba98c; /* Khớp viền cam nhạt */
}

.rc-custom-table.coef-variant th.col-items {
    background-color: #d19a6a; /* Màu nền nâu nhạt */
    width: 80%;
}

.rc-custom-table.coef-variant th.col-coef {
    background-color: #1a625e; /* Màu nền xanh lục đậm */
    width: 20%;
}

/* Body Styling */
.rc-custom-table.coef-variant td {
    border: 1px solid #eba98c;
    padding: 16px;
    font-size: 15px;
    vertical-align: middle;
    color: var(--text, #111111);
}

.rc-custom-table.coef-variant td.col-group-name {
    font-weight: 700;
    text-align: center;
    width: 20%;
}

.rc-custom-table.coef-variant td.col-group-desc {
    text-align: left;
    font-size: 14px;
    width: 30%;
    line-height: 1.6;
}

/* Căn trái nếu có mô tả (Giống Móng Đơn, Móng Băng) */
.rc-custom-table.coef-variant td.col-item-name.has-desc {
    text-align: left;
    width: 30%;
}

/* Căn giữa nếu không có mô tả (Giống Tầng Hầm, Ban Công) */
.rc-custom-table.coef-variant td.col-item-name.no-desc {
    text-align: center;
}

.rc-custom-table.coef-variant td.col-item-val {
    text-align: center;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .rc-custom-table.coef-variant th,
    .rc-custom-table.coef-variant td {
        font-size: 13.5px;
        padding: 12px 8px;
    }
}

/* ==========================================================================
   ROUGH CONSTRUCTION MATERIALS TABLE (Bảng 4 cột)
   ========================================================================== */

.rc-mat-table-section {
    padding: 60px 0;
    background: var(--white, #ffffff);
}

.rc-mat-table-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.rc-custom-table.mat-variant {
    width: 100%;
    border-collapse: collapse;
}

/* Header Styling */
.rc-custom-table.mat-variant th {
    color: var(--white, #ffffff);
    padding: 24px 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
}

/* 3 cột đầu màu nâu nhạt */
.rc-custom-table.mat-variant th.col-stt,
.rc-custom-table.mat-variant th.col-name,
.rc-custom-table.mat-variant th.col-type {
    background-color: #d19a6a; 
}

/* Cột cuối màu xanh lục đậm */
.rc-custom-table.mat-variant th.col-desc {
    background-color: #1a625e; 
}

/* Kích thước cột tham khảo */
.rc-custom-table.mat-variant th.col-stt { width: 8%; }
.rc-custom-table.mat-variant th.col-name { width: 22%; }
.rc-custom-table.mat-variant th.col-type { width: 28%; }
.rc-custom-table.mat-variant th.col-desc { width: 42%; }

/* Body Styling (Chỉ kẻ ngang) */
.rc-custom-table.mat-variant td {
    padding: 22px 15px;
    border-bottom: 1px solid #eba98c; /* Đường kẻ ngang màu cam nhạt */
    font-size: 15px;
    color: var(--text, #111111);
    vertical-align: middle;
    line-height: 1.6;
}

/* Không kẻ viền ngang ở dòng cuối cùng (tùy chọn theo ảnh) */
.rc-custom-table.mat-variant tr:last-child td {
    border-bottom: 2px solid #eba98c;
}

.rc-custom-table.mat-variant td.text-center {
    text-align: center;
}

/* Cột mô tả: Mặc định căn trái, nếu nội dung ngắn có thể ép căn giữa bằng class .text-center trong PHP */
.rc-custom-table.mat-variant td.text-desc {
    text-align: left;
}
.rc-custom-table.mat-variant td.text-desc.text-center {
    text-align: center;
}

.rc-custom-table.mat-variant td.font-bold {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .rc-custom-table.mat-variant th,
    .rc-custom-table.mat-variant td {
        font-size: 13.5px;
        padding: 15px 10px;
    }
}

/* ==========================================================================
   DETAILED ESTIMATE TABLE (Bảng Dự Toán Có Chi Tiết)
   ========================================================================== */
.rc-estimate-desc {
    max-width: 900px; /* Giới hạn độ rộng để text không tràn quá xa */
    margin: 0 auto 30px auto; /* Căn giữa block mô tả, đẩy bảng xuống 30px */
    font-size: 15px;
    color: var(--text, #333333);
    line-height: 1.6;
    text-align: left; /* Chữ căn trái giống thiết kế */
    font-style: italic; /* Để nghiêng một chút giúp phân biệt với text thường (tuỳ chọn) */
}

@media (max-width: 768px) {
    .rc-estimate-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
}
.rc-estimate-table-section {
    padding: 60px 0;
    background: var(--bg-light, #f8f8f8);
}

.rc-estimate-table-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.rc-custom-table.estimate-variant {
    width: 100%;
    min-width: 1000px; /* Bắt buộc cuộn ngang trên mobile để không vỡ chữ */
    border-collapse: collapse;
}

/* Header */
.rc-custom-table.estimate-variant th {
    background-color: #1a625e; /* Xanh lục đậm */
    color: var(--white, #ffffff);
    padding: 16px 10px;
    font-size: 14.5px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #1a625e;
}

.rc-custom-table.estimate-variant th.col-amount {
    background-color: #d19a6a; /* Nâu nhạt cho cột Thành tiền */
}

/* Kích thước cột ưu tiên hiển thị */
.rc-custom-table.estimate-variant th.col-stt { width: 5%; }
.rc-custom-table.estimate-variant th.col-item { width: 15%; }
.rc-custom-table.estimate-variant th.col-details { width: 25%; }
.rc-custom-table.estimate-variant th.col-qty { width: 12%; }
.rc-custom-table.estimate-variant th.col-price { width: 15%; }
.rc-custom-table.estimate-variant th.col-coef { width: 12%; }
.rc-custom-table.estimate-variant th.col-amount { width: 16%; }

/* Body */
.rc-custom-table.estimate-variant td {
    padding: 16px 12px;
    border: 1px solid #cbd5e1; /* Viền xám nhạt */
    font-size: 14.5px;
    color: var(--text, #111111);
    vertical-align: middle;
}

.rc-custom-table.estimate-variant td.text-right {
    text-align: right;
}

.rc-custom-table.estimate-variant td.text-primary {
    color: var(--primary, #d8a356);
}

/* Footer (Tổng cộng) */
.rc-custom-table.estimate-variant tfoot td {
    background-color: var(--white, #ffffff);
    border-top: 2px solid #1a625e;
    padding: 20px 12px;
    font-size: 16px;
}
/* ==========================================================================
   TABLE FOOTER (TỔNG CỘNG)
   ========================================================================== */

.rc-custom-table tfoot td {
    background-color: var(--bg-light, #f8f8f8);
    border-top: 2px solid #d19a6a; /* Viền nhấn đậm hơn ngăn cách thân bảng và footer */
    padding: 18px 12px;
}

.rc-custom-table tfoot td.footer-label {
    text-transform: uppercase;
    padding-right: 20px;
    font-size: 15px;
    color: var(--text, #111111);
}

.rc-custom-table tfoot td.footer-sum {
    color: var(--primary, #d8a356);
    font-size: 16px;
}
/* ==========================================================================
   NOTE BELOW TABLE (Ghi chú dưới bảng)
   ========================================================================== */

.rc-scope-note-wrapper {
    margin-top: 15px;
    text-align: right; /* Căn phải cho ghi chú, nếu thích căn trái bạn đổi thành left */
}

.rc-table-bottom-note {
    font-size: 14.5px;
    color: #e38466; /* Màu cam nhạt đồng bộ hoặc bạn có thể dùng var(--text-muted) */
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .rc-table-bottom-note {
        font-size: 13.5px;
        text-align: right;
    }
}