/*
Theme Name: Bể cá Mạnh Tuấn Theme
Theme URI: https://becamanhtuan.com/
Description: Custom standalone high-performance WordPress theme for Bể Cá Mạnh Tuấn, designed to replace Flatsome. Clean, modern, responsive, and SEO-optimized.
Author: becamanhtuan.com
Author URI: https://becamanhtuan.com/
Version: 1.0.0
Text Domain: becamanhtuan
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================================
   1. DESIGN TOKENS (CSS VARIABLES)
   ========================================================================= */
:root {
    --primary-color: #04529c;
    --primary-dark: #02386e;
    --primary-light: #0f6bc4;
    --accent-color: #C05530;
    --accent-light: #fef2f2;
    --success-color: #627D47;
    --alert-color: #b20000;
    --bg-color: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-width: 1200px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1.25rem; }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

iframe {
    border: none;
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================================================================
   3. LAYOUT GRID & FLEX UTILITIES
   ========================================================================= */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex-grow: 1;
    padding: 0;
}

/* Remove empty container padding on frontpage and custom landing templates to avoid huge white space below header/above footer */
.home .site-content,
.page-template:not(.page-template-default) .site-content {
    padding: 0 !important;
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

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

/* =========================================================================
   4. NAVIGATION HEADER
   ========================================================================= */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.25s ease;
}

/* Adjust sticky header position when WordPress Admin Bar is visible */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.header-top-bar {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    text-align: center;
}

.header-main-bar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    padding: 12px 0; /* vertical padding to maintain hover bridge */
}

.main-navigation a {
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--primary-color);
}

.main-navigation .menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
    transition: transform 0.25s ease;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Sub-menu */
.main-navigation ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: var(--bg-white) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
    min-width: 220px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* Hover bridge */
.main-navigation ul.sub-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.main-navigation li:hover > ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.main-navigation ul.sub-menu li {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.main-navigation ul.sub-menu a {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-main) !important;
    width: 100% !important;
    transition: var(--transition);
}

.main-navigation ul.sub-menu a:hover {
    background-color: var(--bg-color) !important;
    color: var(--primary-color) !important;
    padding-left: 24px !important;
}

.main-navigation ul.sub-menu a::after {
    display: none !important; /* Hide caret arrow for sub-menu level child items if any */
}

.main-navigation ul.sub-menu .current-menu-item > a {
    color: var(--primary-color) !important;
    background-color: var(--bg-color) !important;
}

.header-ctas {
    align-items: center;
    display: flex;
    gap: 15px;
}

/* Common button design */
.btn-cta {
    align-items: center;
    border: 2px solid transparent;
    border-radius: 9999px;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-hotline {
    background-color: var(--alert-color);
    color: var(--bg-white) !important;
}

.btn-hotline:hover {
    background-color: transparent;
    border-color: var(--alert-color);
    color: var(--alert-color) !important;
}

.btn-zalo {
    background-color: #0068ff;
    color: var(--bg-white) !important;
}

.btn-zalo:hover {
    background-color: transparent;
    border-color: #0068ff;
    color: #0068ff !important;
}

.btn-zalo img {
    height: 18px;
    width: 18px;
}

/* Mobile burger menu */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    font-size: 24px;
    color: var(--text-heading);
}

/* Mobile navigation overlay */
.mobile-nav-overlay {
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    display: none;
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 2000;
}

.mobile-nav-menu {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 320px;
    padding: 25px 20px;
    position: relative;
    width: 80%;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.mobile-nav-menu ul {
    list-style: none;
    margin-top: 15px;
}

.mobile-nav-menu li {
    margin-bottom: 20px;
}

.mobile-nav-menu a {
    color: var(--text-heading);
    font-size: 18px;
    font-weight: 700;
}

.mobile-nav-menu .menu-item-has-children {
    position: relative;
}

.mobile-nav-menu .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 50px !important;
}

.mobile-nav-menu .menu-item-has-children > a::after {
    display: none !important;
}

/* Styled mobile toggle button */
.mobile-nav-menu .submenu-toggle-btn {
    position: absolute;
    right: 0;
    top: -5px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-muted);
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-nav-menu .submenu-toggle-btn:hover {
    color: var(--primary-color);
}

.mobile-nav-menu .menu-item-has-children.active > .submenu-toggle-btn {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.mobile-nav-menu .sub-menu {
    list-style: none;
    margin-top: 10px;
    margin-bottom: 5px;
    padding-left: 15px;
    border-left: 2px solid var(--primary-color);
    display: none; /* COLLAPSED BY DEFAULT */
    flex-direction: column;
}

.mobile-nav-menu .sub-menu li {
    margin-bottom: 10px;
}

.mobile-nav-menu .sub-menu li:last-child {
    margin-bottom: 0;
}

.mobile-nav-menu .sub-menu a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

/* =========================================================================
   5. CARDS & HERO STYLING (INDEX/ARCHIVES)
   ========================================================================= */
.post-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-8px);
}

.post-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.post-card-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    border-radius: 0;
    transition: var(--transition);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.post-card-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.post-card-title a {
    color: var(--text-heading);
}

.post-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.post-card-meta {
    align-items: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

/* =========================================================================
   6. ARTICLE READING STYLING (SINGLE)
   ========================================================================= */
.single-post-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    margin: 0 auto;
    max-width: 960px;
    padding: 40px;
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-category {
    background-color: var(--accent-light);
    color: var(--accent-color);
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 9999px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.4;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

.post-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 15px;
}

.post-featured-image {
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

/* Core WordPress content formatting rules */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* Image alignment rules for articles */
.entry-content figure,
.entry-content .wp-block-image,
.entry-content p > img,
.entry-content > img {
    margin-bottom: 32px !important;
}

.entry-content figure img,
.entry-content .wp-block-image img,
.entry-content .wp-caption img,
.entry-content img.aligncenter,
.entry-content p > img,
.entry-content > img {
    display: block !important;
    height: auto !important;
    max-width: min(100%, 900px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.entry-content .wp-block-image + *,
.entry-content figure + *,
.entry-content p:has(> img) + *,
.entry-content > img + * {
    margin-top: 32px !important;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-color);
    padding: 20px 25px;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Custom layout collapse for term descriptions */
.woo-cat-desc-wrap {
    margin-top: 30px;
    position: relative;
}

.woo-cat-desc-wrap.is-collapsed .woo-cat-desc-inner {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.woo-cat-desc-wrap.is-collapsed .woo-cat-desc-inner::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.woo-cat-desc-toggle {
    display: block;
    margin: 15px auto 0;
    padding: 12px 22px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease;
}

.woo-cat-desc-toggle:hover {
    opacity: 0.9;
}

.custom-contact-box {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-contact-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.custom-contact-box .contact-hotline {
    background-color: var(--alert-color);
    color: var(--bg-white);
    border-color: var(--alert-color);
}

.custom-contact-box .contact-hotline:hover {
    background-color: transparent;
    color: var(--alert-color);
    border-color: var(--alert-color);
}

.custom-contact-box .contact-zalo {
    background-color: #0068ff;
    color: var(--bg-white);
    border-color: #0068ff;
}

.custom-contact-box .contact-zalo:hover {
    background-color: transparent;
    color: #0068ff;
    border-color: #0068ff;
}

.custom-contact-box .contact-zalo img {
    width: 22px;
    height: 22px;
}

/* =========================================================================
   7. WOOCOMMERCE SYSTEM INTEGRATION
   ========================================================================= */
.woocommerce-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    padding: 40px;
}

.woo-cat-h1-rankmath {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    color: var(--primary-dark);
}

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

.product-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-item-image {
    aspect-ratio: 1;
    overflow: hidden;
}

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

.product-item-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-item-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.product-item-action {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    margin-top: auto;
    text-align: center;
}

.product-item-action:hover {
    background-color: var(--primary-dark);
}

/* =========================================================================
   8. FOOTER LAYOUT
   ========================================================================= */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

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

.footer-widget-title {
    border-left: 4px solid var(--accent-color);
    color: var(--bg-white);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-left: 12px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: var(--border-color);
}

.footer-widget a:hover {
    color: var(--bg-white);
}

.footer-contact-info p {
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-contact-info i {
    color: var(--accent-color);
    margin-right: 8px;
    width: 16px;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    padding-top: 25px;
    text-align: center;
    color: var(--border-color);
}

/* =========================================================================
   9. RESPONSIVE STYLING
   ========================================================================= */
@media (max-width: 991px) {
    .main-navigation {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .header-ctas {
        display: none;
    }
    h1 { font-size: 2rem; }
    .single-post-wrapper,
    .woocommerce-wrapper {
        padding: 25px;
    }
}

@media (max-width: 575px) {
    .custom-logo-link img {
        max-height: 50px;
    }
    .site-content {
        padding: 0;
    }
    .single-post-wrapper,
    .woocommerce-wrapper {
        padding: 20px 15px;
    }
    .post-title {
        font-size: 1.85rem;
    }
    .entry-content {
        font-size: 1rem;
    }
    .custom-contact-box a {
        padding: 16px;
        font-size: 16px;
    }
}

/* =========================================================================
   10. HOMEPAGE SPECIFIC STYLING
   ========================================================================= */
.home-services-section {
    padding: 30px 0;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    max-width: 700px;
    margin: -20px auto 40px;
    line-height: 1.55;
}

.home-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-banner-card {
    position: relative;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: flex-end;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
}

.service-banner-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-banner-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(2, 56, 110, 0.95) 0%, rgba(2, 56, 110, 0.45) 50%, rgba(0, 0, 0, 0.15) 100%);
    transition: all 0.4s ease;
    z-index: 1;
}

.service-banner-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    width: 100%;
    color: var(--bg-white);
}

.service-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.service-title-text {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--bg-white) !important;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.service-desc-text {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    max-width: 90%;
}

.service-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--bg-white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.service-link-btn i {
    transition: transform 0.3s ease;
}

/* Hover Effects */
.service-banner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(2, 56, 110, 0.25);
    border-color: rgba(4, 82, 156, 0.3);
}

.service-banner-card:hover .service-banner-img {
    transform: scale(1.06);
}

.service-banner-card:hover .service-banner-gradient {
    background: linear-gradient(to top, rgba(4, 82, 156, 0.98) 0%, rgba(4, 82, 156, 0.6) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.service-banner-card:hover .service-link-btn {
    border-color: var(--bg-white);
}

.service-banner-card:hover .service-link-btn i {
    transform: translateX(5px);
}


/* Home Section Styles */
.home-section {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}
.home-section:last-of-type {
    border-bottom: none;
}
.section-title {
    font-size: 1.85rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    text-transform: uppercase;
    font-weight: 800;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Tabs System */
.tab-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}
.tab-link {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 14px;
    transition: var(--transition);
}
.tab-link:hover,
.tab-link.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
.tab-panel {
    display: none;
    width: 100%;
}
.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Products Grid on Homepage */
.home-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
    width: 100%;
}
.home-product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}
.home-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}
.home-product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}
.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.home-product-card:hover .home-product-image img {
    transform: scale(1.05);
}
.home-product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}
.home-product-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--text-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}
.home-product-btn {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
    display: inline-block;
    transition: var(--transition);
}
.home-product-card:hover .home-product-btn {
    background-color: var(--primary-dark);
}

.home-viewmore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: var(--transition);
    margin-top: 10px;
}
.home-viewmore-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Parallax CTA Banner */
.home-cta-banner {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
}
.home-cta-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
}
.home-cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}
.home-cta-title {
    font-size: 2.25rem;
    color: var(--bg-white);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.3;
}
.home-cta-phone {
    font-size: 1.85rem;
    margin-bottom: 0;
}
.home-cta-phone a {
    color: #ffd000;
    font-weight: 800;
}
.home-cta-phone a:hover {
    color: var(--bg-white);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   9. WOOCOMMERCE ARCHIVE SHOP & CATEGORY GRID STYLING
   ========================================================================= */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 !important;
    width: 100% !important;
}

ul.products li.product {
    background-color: var(--bg-white) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-premium) !important;
    overflow: hidden !important;
    transition: var(--transition) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    float: none !important;
    border: 1px solid var(--border-color) !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Style WooCommerce card links container */
ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    flex-grow: 1 !important;
}

/* Style image in WooCommerce card */
ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    background-color: #f1f5f9 !important;
    border-radius: 0 !important;
    transition: var(--transition) !important;
}

ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

/* Style title in WooCommerce card */
ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 20px 15px 15px 15px !important;
    color: var(--text-heading) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 44px !important;
    text-align: center !important;
}

/* Disable default WooCommerce float-clearing pseudo-elements so they do not take up cells in our CSS Grid */
ul.products::before,
ul.products::after {
    content: none !important;
    display: none !important;
}

/* Filters & Metadata Layout on Archive pages */
.woocommerce-ordering {
    margin-bottom: 30px !important;
}

.woocommerce-ordering select {
    padding: 10px 16px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background-color: var(--bg-white) !important;
    color: var(--text-main) !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition) !important;
}

.woocommerce-ordering select:focus {
    border-color: var(--primary-color) !important;
}

.woocommerce-result-count {
    font-size: 14px !important;
    color: var(--text-muted) !important;
    margin-bottom: 20px !important;
}

nav.woocommerce-pagination {
    margin-top: 40px !important;
    text-align: center !important;
}

nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    gap: 8px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

nav.woocommerce-pagination ul.page-numbers li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

nav.woocommerce-pagination ul.page-numbers li a,
nav.woocommerce-pagination ul.page-numbers li span.current {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 6px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    text-decoration: none !important;
}

nav.woocommerce-pagination ul.page-numbers li a {
    background-color: var(--bg-white) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

nav.woocommerce-pagination ul.page-numbers li a:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--bg-white) !important;
}

nav.woocommerce-pagination ul.page-numbers li span.current {
    background-color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--bg-white) !important;
}

/* Custom AJAX Load More Button */
.lht-loadmore-btn {
    display: inline-block !important;
    padding: 12px 35px !important;
    background-color: var(--primary-color) !important;
    color: var(--bg-white) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-sm) !important;
    outline: none !important;
}

.lht-loadmore-btn:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

.lht-loadmore-btn:disabled {
    background-color: var(--text-muted) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* =========================================================================
   11. CATEGORY DESCRIPTION IMAGES & LIGHTBOX POPUP
   ========================================================================= */
.woo-cat-desc-after-products {
    font-size: 16px !important;
    line-height: 1.85 !important;
    color: var(--text-main) !important;
}

.woo-cat-desc-after-products p {
    margin-bottom: 1.6rem !important;
    color: #334155 !important; /* Slate-700 for premium text readability */
}

.woo-cat-desc-after-products h2,
.woo-cat-desc-after-products h3,
.woo-cat-desc-after-products h4 {
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    color: var(--text-heading) !important;
    line-height: 1.4 !important;
}

.woo-cat-desc-after-products img {
    display: block !important;
    height: auto !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 1.8rem !important;
    margin-top: 1.8rem !important;
}

.woo-cat-desc-after-products img:hover {
    transform: scale(1.015);
    box-shadow: var(--shadow-md);
}

.woo-cat-desc-after-products figure {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    margin-bottom: 1.8rem !important;
}

/* Premium Table Styling for Category Description & Post Content */
.woo-cat-desc-after-products table,
.entry-content table {
    width: 100% !important;
    max-width: 600px !important; /* Limit width to look compact and tidy */
    margin: 28px auto !important; /* Center the table itself */
    border-collapse: separate !important; /* Allow border radius to show correctly */
    border-spacing: 0 !important;
    font-size: 15px !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border-color) !important;
}

/* Ensure table images/icons render inline and small, avoiding block centering */
.woo-cat-desc-after-products table img,
.entry-content table img {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
    width: 18px !important;
    height: 18px !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: default !important;
    pointer-events: none !important;
}

.woo-cat-desc-after-products table tr th,
.entry-content table tr th {
    background-color: var(--primary-color) !important;
    color: var(--bg-white) !important;
    font-weight: 700 !important;
    padding: 14px 18px !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.05em !important;
    border-bottom: 2px solid var(--primary-dark) !important;
}

.woo-cat-desc-after-products table tr td,
.entry-content table tr td {
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    vertical-align: middle !important;
    line-height: 1.65 !important;
    background-color: var(--bg-white) !important;
}

/* Remove bottom border for the last row to maintain rounded corners on table */
.woo-cat-desc-after-products table tr:last-child td,
.entry-content table tr:last-child td {
    border-bottom: none !important;
}

/* Zebra striping for alternate rows */
.woo-cat-desc-after-products table tr:nth-child(even) td,
.entry-content table tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

/* Hover effects */
.woo-cat-desc-after-products table tr:hover td,
.entry-content table tr:hover td {
    background-color: #eff6ff !important;
    transition: background-color 0.2s ease;
}

/* Responsive Table scrollbar for mobile screens */
@media screen and (max-width: 767px) {
    .woo-cat-desc-after-products table,
    .entry-content table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Lightbox Modal */
.lht-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lht-lightbox-modal.is-active {
    display: flex;
    opacity: 1;
}

.lht-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lht-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lht-lightbox-modal.is-active .lht-lightbox-image {
    transform: scale(1);
}

.lht-lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    max-width: 80%;
}

.lht-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    user-select: none;
    z-index: 100000;
    line-height: 1;
}

.lht-lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* =========================================================================
   12. FLOATING CONTACT ACTIONS (BOTTOM-LEFT FIXED)
   ========================================================================= */
.lht-floating-contact {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lht-float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.lht-float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lht-float-btn.float-phone {
    background-color: var(--alert-color); /* Red */
    color: #fff !important;
    font-size: 20px;
}

/* Pulsing effect to attract attention */
.lht-float-btn.float-phone::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background-color: var(--alert-color);
    animation: lht-pulse 2s infinite;
}

@keyframes lht-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.lht-float-btn.float-zalo {
    background-color: #0068ff; /* Zalo Blue */
}

.lht-float-btn.float-zalo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    transition: none;
    cursor: pointer;
}

/* Tooltips */
.lht-float-btn::after {
    content: attr(aria-label);
    position: absolute;
    left: 70px;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-10px);
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.lht-float-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media screen and (max-width: 767px) {
    .lht-floating-contact {
        bottom: 20px;
        left: 20px;
        gap: 12px;
    }
    .lht-float-btn {
        width: 48px;
        height: 48px;
    }
    .lht-float-btn.float-phone {
        font-size: 18px;
    }
    .lht-float-btn.float-zalo img {
        width: 24px;
        height: 24px;
    }
    /* Hide tooltips on mobile since there is no hover */
    .lht-float-btn::after {
        display: none !important;
    }
}

/* =========================================================================
   12. NEWS SEARCH BAR & FORM (PREMIUM DESIGN)
   ========================================================================= */
.news-search-wrapper {
    max-width: 540px;
    margin: 0 auto 50px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.news-search-form {
    width: 100%;
}

.news-search-form .search-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 8px 6px 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.news-search-form .search-input-wrap:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.08), 0 10px 20px -6px rgba(15, 23, 42, 0.08);
}

.news-search-form .search-input-wrap:focus-within {
    border-color: #04529c;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(4, 82, 156, 0.15), 0 10px 20px -6px rgba(4, 82, 156, 0.15);
}

.news-search-form .search-field {
    flex-grow: 1;
    border: none !important;
    outline: none !important;
    font-size: 16px;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
    padding: 8px 0;
    margin-right: 15px;
    width: 100%;
}

.news-search-form .search-field::placeholder {
    color: #94a3b8;
    font-size: 15px;
}

.news-search-form .search-submit {
    background: linear-gradient(135deg, #04529c 0%, #02386e 100%);
    color: #ffffff;
    border: none;
    outline: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(4, 82, 156, 0.3);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.news-search-form .search-submit:hover {
    background: linear-gradient(135deg, #0f6bc4 0%, #04529c 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(4, 82, 156, 0.4);
}

.news-search-form .search-submit:active {
    transform: scale(0.95);
}

/* Mobile overrides for homepage grids */
@media (max-width: 768px) {
    .home-services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .service-banner-card {
        height: 280px !important;
    }
    .service-banner-content {
        padding: 20px !important;
    }
    .service-title-text {
        font-size: 20px !important;
    }
    .service-desc-text {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 575px) {
    .service-banner-card {
        height: 220px !important;
    }
    .service-desc-text {
        display: none !important;
    }
    .service-title-text {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    .service-tag {
        font-size: 10px !important;
        margin-bottom: 8px !important;
        padding: 2px 10px !important;
    }
    .home-products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    .home-product-info {
        padding: 12px !important;
    }

    .home-product-title {
        font-size: 13px !important;
        line-height: 1.5 !important;
        height: 40px !important;
        margin-bottom: 10px !important;
    }
    .home-product-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .lp-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* =========================================================================
   14. WOOCOMMERCE SINGLE PRODUCT PAGE STYLING
   ========================================================================= */
.single-product .woocommerce-wrapper {
    padding: 40px 0;
}

/* Two-column responsive layout for single product */
@media (min-width: 768px) {
    .single-product div.product {
        display: grid !important;
        grid-template-columns: 1.15fr 0.85fr !important;
        gap: 50px !important;
        align-items: start !important;
    }
    
    .single-product div.product .woocommerce-product-gallery {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
    
    .single-product div.product .summary {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
}

/* Main gallery container and flex-viewport styling */
.woocommerce-product-gallery {
    position: relative !important;
}

.woocommerce-product-gallery .flex-viewport {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-white) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
}

.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

.woocommerce-product-gallery__image {
    height: 100% !important;
}

.woocommerce-product-gallery__image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.woocommerce-product-gallery__image img:not(.zoomImg) {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background-color: #ffffff !important;
    border-radius: 0 !important; /* Managed by parent flex-viewport */
}



/* Single product gallery thumbnails */
.single-product .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px !important;
    margin-top: 15px !important;
    padding: 0 !important;
    list-style: none !important;
}

.single-product .flex-control-thumbs li {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .flex-control-thumbs li img {
    border-radius: var(--radius-sm) !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    opacity: 0.65 !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
}

.single-product .flex-control-thumbs li img.flex-active,
.single-product .flex-control-thumbs li img:hover {
    border-color: var(--primary-color) !important;
    opacity: 1 !important;
}

/* Floating Magnifying Glass/Lightbox Trigger Button */
.woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 99 !important;
    background-color: var(--bg-white) !important;
    color: var(--text-heading) !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: var(--transition) !important;
    text-decoration: none !important;
}

.woocommerce-product-gallery__trigger:hover {
    background-color: var(--primary-color) !important;
    color: var(--bg-white) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Inject FontAwesome Search/Zoom icon dynamically into trigger button */
.woocommerce-product-gallery__trigger::before {
    font-family: "Font Awesome 6 Free" !important;
    content: "\f00e" !important; /* fa-search-plus / zoom-in */
    font-weight: 900 !important;
    font-size: 16px !important;
    display: inline-block !important;
}

/* Hide default WooCommerce zoom icon image inside the trigger link */
.woocommerce-product-gallery__trigger img {
    display: none !important;
}

/* Product Info summary section tweaks for clean typography */
.single-product .summary .product_title {
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
    color: var(--text-heading) !important;
}

.single-product .summary .woocommerce-product-details__short-description {
    margin-bottom: 25px !important;
    color: var(--text-muted) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* PhotoSwipe Overlays Z-Index priority */
.pswp {
    z-index: 99999 !important;
}

/* Project CPT Archive Grid - 3 columns on desktop, 2 on mobile */
.project-archive-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}
@media (max-width: 767px) {
    .project-archive-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
}

/* Single Project Showcase Layout */
.project-single-showcase {
    padding: 50px 0;
    background-color: #f8fafc;
}
.project-header {
    margin-bottom: 30px;
    text-align: left;
}
.project-meta-category {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}
.project-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.25;
}
.project-meta-date {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}
.project-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 991px) {
    .project-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
.project-main-content {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}
@media (max-width: 768px) {
    .project-main-content {
        padding: 20px;
    }
}
.project-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.project-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.project-gallery-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.project-gallery-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
@media (max-width: 576px) {
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.project-gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.project-gallery-item:hover img {
    transform: scale(1.05);
}

/* Sidebar Styles */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}
@media (max-width: 991px) {
    .project-sidebar {
        position: static;
    }
}
.project-sidebar-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-premium);
}
.sidebar-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    text-transform: uppercase;
}
.project-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.project-spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.project-spec-list li:last-child {
    border-bottom: none;
}
.spec-label {
    color: var(--text-muted);
    font-weight: 600;
}
.spec-label i {
    margin-right: 6px;
    color: var(--primary-color);
}
.spec-value {
    color: var(--text-heading);
    font-weight: 700;
    text-align: right;
}
.project-sidebar-card.contact-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
}
.project-sidebar-card.contact-card .sidebar-card-title {
    color: var(--bg-white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}
.sidebar-contact-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

/* Sidebar CTAs */
.sidebar-buttons,
.project-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}
.project-btn-hotline {
    background-color: #ef4444;
    color: var(--bg-white) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}
.project-btn-hotline:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}
.project-btn-zalo {
    background-color: #0068ff;
    color: var(--bg-white) !important;
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.25);
}
.project-btn-zalo img {
    width: 20px;
    height: 20px;
}
.project-btn-zalo:hover {
    background-color: #0056d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.35);
}

/* Bottom Call To Action */
.project-bottom-cta {
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
}
.project-cta-inner {
    background-color: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    border-left: 5px solid var(--primary-color);
}
.project-cta-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.project-cta-desc {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.project-cta-buttons {
    flex-direction: row;
    justify-content: center;
    max-width: 550px;
    margin: 0 auto;
}
@media (max-width: 576px) {
    .project-cta-buttons {
        flex-direction: column;
    }
}

/* Custom paragraph spacing adjustments for single project content */
.project-single-showcase .entry-content p {
    margin-bottom: 0.95rem !important;
}

/* =========================================================================
   11. SINGLE PRODUCT REDESIGN STYLING
   ========================================================================= */
.product-single-layout {
    padding: 20px 0 50px 0;
}

.product-layout-grid {
    display: grid;
    grid-template-columns: 45% 50%;
    gap: 5%;
    margin-bottom: 35px;
    align-items: start;
}

.product-gallery-column {
    position: sticky;
    top: 90px;
}

.product-summary-column {
    display: flex;
    flex-direction: column;
}

.product-cat-label {
    background-color: var(--accent-light);
    color: var(--accent-color);
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.product-single-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-short-description {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 25px;
}

.product-short-description p {
    margin-bottom: 0;
}

/* Premium Contact Box Card */
.product-contact-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-card-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.contact-card-title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 2px;
    text-transform: uppercase;
}

.contact-card-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}

.contact-card-actions {
    display: flex;
    gap: 10px;
}

.product-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.product-action-btn.btn-hotline {
    background-color: var(--alert-color);
    color: var(--bg-white) !important;
    border-color: var(--alert-color);
    box-shadow: 0 4px 12px rgba(178, 0, 0, 0.15);
}

.product-action-btn.btn-hotline:hover {
    background-color: #900000;
    border-color: #900000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(178, 0, 0, 0.25);
}

.product-action-btn.btn-zalo {
    background-color: #0068ff;
    color: var(--bg-white) !important;
    border-color: #0068ff;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.15);
}

.product-action-btn.btn-zalo img {
    width: 20px;
    height: 20px;
}

.product-action-btn.btn-zalo:hover {
    background-color: #0056d6;
    border-color: #0056d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 104, 255, 0.25);
}

/* Trust Policies 3-Column Badges */
.product-policies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
}

.policy-card-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.policy-card-item:hover {
    background: #f0fdf4;
    border-color: #86efac;
    transform: translateY(-1px);
}

.policy-card-icon {
    width: 30px;
    height: 30px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.policy-card-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.policy-card-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.policy-card-desc {
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Legacy Support */
.product-policies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.policy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-main);
}

.policy-icon {
    color: var(--success-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Detailed content section */
.product-description-section {
    margin-top: 45px;
    padding: 35px 30px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.product-detail-header-bar {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.product-detail-header-bar .header-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-color, #04529c);
    background: #f0f7ff;
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid #bae6fd;
    margin-bottom: 10px;
}

.product-detail-header-bar .header-bar-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--primary-dark, #02386e);
    text-transform: uppercase;
    letter-spacing: -0.2px;
    margin: 0;
    line-height: 1.3;
}

.product-detail-header-bar .header-bar-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #04529c), #0ea5e9);
    border-radius: 3px;
    margin: 10px auto 0;
}

.product-detailed-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    padding: 40px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
}

.product-detailed-content p {
    margin-bottom: 1.2rem;
}

.product-detailed-content p:last-child {
    margin-bottom: 0;
}

.product-detailed-content h2, 
.product-detailed-content h3 {
    color: var(--primary-dark);
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Responsive adjustment for product layout */
@media (max-width: 991px) {
    .product-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-gallery-column {
        position: static;
    }
    .product-single-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 575px) {
    .product-detailed-content {
        padding: 20px;
    }
    .contact-card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .product-action-btn {
        width: 100%;
    }
    .product-policies-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* =========================================================================
   12. 404 ERROR PAGE STYLING
   ========================================================================= */
.error-404-layout {
    padding: 0;
    margin-top: -30px;
    background-color: var(--bg-color);
}

.error-404-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    padding: 50px 40px;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.error-404-icon {
    font-size: 64px;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: rotateCompass 10s linear infinite;
}

@keyframes rotateCompass {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-404-title {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.error-404-subtitle {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.error-404-text {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Search Form in 404 */
.error-404-search {
    margin: 0 auto 35px;
    max-width: 450px;
}

.error-404-search .search-form {
    display: flex;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.error-404-search .search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(4, 82, 156, 0.15);
}

.error-404-search .search-field {
    border: none !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    width: 100% !important;
    outline: none !important;
}

.error-404-search .search-submit {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.error-404-search .search-submit:hover {
    background-color: var(--primary-dark);
}

/* Actions in 404 */
.error-404-actions {
    margin-bottom: 40px;
}

.error-404-actions .btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(4, 82, 156, 0.2);
    transition: var(--transition);
}

.error-404-actions .btn-home:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 82, 156, 0.3);
}

/* Quick links in 404 */
.error-404-quicklinks {
    border-top: 1px dashed var(--border-color);
    padding-top: 30px;
}

.quicklinks-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.quicklinks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quicklinks-grid a {
    display: block;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none !important;
    transition: var(--transition);
}

.quicklinks-grid a:hover {
    background-color: var(--primary-light);
    color: var(--bg-white) !important;
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 107, 196, 0.15);
}

/* Responsive */
@media (max-width: 575px) {
    .error-404-layout {
        margin-top: 0;
    }
    .error-404-wrapper {
        padding: 40px 20px;
    }
    .error-404-title {
        font-size: 4.5rem;
    }
    .error-404-subtitle {
        font-size: 1.5rem;
    }
    .quicklinks-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .error-404-search .search-submit span {
        display: none;
    }
    .error-404-search .search-submit {
        padding: 0 16px;
    }
}

/* =========================================================================
   13. BACK TO TOP BUTTON (BOTTOM-RIGHT FIXED)
   ========================================================================= */
.lht-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    font-size: 20px;
    border: none;
    outline: none;
}

.lht-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.lht-back-to-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    background-color: var(--primary-dark);
}

@media screen and (max-width: 767px) {
    .lht-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* =========================================================================
   14. PROJECT ARCHIVE CATEGORIES BAR (PREMIUM CARDS)
   ========================================================================= */
.project-cats-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 25px 0 25px;
    padding: 0;
}

.cat-item-link {
    position: relative;
    height: 100px;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cat-item-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
}

.cat-item-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%);
    transition: background 0.3s ease;
    z-index: 2;
}

.cat-item-name {
    position: relative;
    z-index: 3;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

/* Hover effects */
.cat-item-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cat-item-link:hover .cat-item-bg {
    transform: scale(1.1);
}

.cat-item-link:hover .cat-item-overlay {
    background: linear-gradient(180deg, rgba(4, 82, 156, 0.65) 0%, rgba(4, 82, 156, 0.85) 100%);
}

/* Active state */
.cat-item-link.active {
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(192, 85, 48, 0.25);
}

.cat-item-link.active .cat-item-overlay {
    background: linear-gradient(180deg, rgba(4, 82, 156, 0.7) 0%, rgba(2, 56, 110, 0.9) 100%);
}

.cat-item-link.active .cat-item-name {
    color: #fff !important;
    font-weight: 800;
}

/* Mobile responsive (horizontal scroll list) */
@media screen and (max-width: 991px) {
    .project-cats-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 5px 15px 15px;
        margin: 15px -15px 20px; /* breakout of parent container padding to reach screen edges */
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Hide Firefox scrollbar */
    }
    
    .project-cats-list::-webkit-scrollbar {
        display: none; /* Hide Chrome/Safari scrollbar */
    }
    
    .cat-item-link {
        flex: 0 0 150px; /* fixed width for horizontal sliding cards */
        height: 90px;
        scroll-snap-align: start;
    }
    
    .cat-item-name {
        font-size: 0.88rem;
    }
}

/* Project card category badges */
.project-card-cats {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.project-card-cat-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color) !important;
    background-color: var(--accent-light);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.project-card-cat-tag:hover {
    background-color: var(--accent-color) !important;
    color: #fff !important;
}

/* =========================================================================
   15. NEWS ARCHIVE CATEGORIES BAR
   ========================================================================= */
.news-cats-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 0;
}

@media screen and (max-width: 991px) {
    .news-cats-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 5px 15px 15px;
        margin: 15px -15px 20px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    
    .news-cats-list::-webkit-scrollbar {
        display: none;
    }
    
    .news-cats-list .cat-item-link {
        flex: 0 0 160px;
        height: 90px;
        scroll-snap-align: start;
    }
}

/* =========================================================================
   16. TABLE OF CONTENTS (TOC) STYLING
   ========================================================================= */
.lht-toc-container {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    padding: 15px 20px;
    margin: 25px 0;
    display: inline-block;
    min-width: 320px;
    max-width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.lht-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.lht-toc-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
}

.lht-toc-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
    outline: none;
    user-select: none;
}

.lht-toc-toggle:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.lht-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lht-toc-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.lht-toc-list a {
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.lht-toc-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.lht-toc-item-h2 {
    padding-left: 0;
    list-style-type: none;
}

.lht-toc-item-h3 {
    padding-left: 20px;
    list-style-type: none;
    position: relative;
}

.lht-toc-item-h3::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #aaa;
}

@media (max-width: 575px) {
    .lht-toc-container {
        display: block;
        width: 100%;
        min-width: 100%;
    }
}

/* ==========================================================================
   AJAX LOAD MORE BUTTON STYLES
   ========================================================================== */
.load-more-wrapper {
    margin: 40px auto 25px;
    text-align: center;
    clear: both;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 36px;
    background: #ffffff;
    color: var(--primary-color, #04529c);
    border: 2px solid var(--primary-color, #04529c);
    border-radius: 9999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(4, 82, 156, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.btn-load-more:hover {
    background: linear-gradient(135deg, var(--primary-color, #04529c) 0%, var(--primary-light, #0f6bc4) 100%);
    color: #ffffff;
    border-color: var(--primary-color, #04529c);
    box-shadow: 0 8px 22px rgba(4, 82, 156, 0.28);
    transform: translateY(-2px);
}

.btn-load-more:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(4, 82, 156, 0.2);
}

.btn-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #cbd5e1;
    box-shadow: none;
    transform: none;
}

.btn-load-more .btn-text,
.btn-load-more .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.btn-load-more .btn-text i {
    font-size: 14px;
    transition: transform 0.5s ease;
}

.btn-load-more:hover .btn-text i {
    transform: rotate(180deg);
}

.no-more-text {
    font-size: 14px;
    color: #64748b;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 500;
}

.no-more-text i {
    color: #10b981;
    font-size: 15px;
}


/* =========================================================================
   15. MODERN MOBILE DRAWER & BOTTOM BAR NAVIGATION
   ========================================================================= */

/* Mobile Header Actions */
.menu-toggle.mobile-menu-left,
.mobile-header-call {
    display: none !important;
}

@media (max-width: 991px) {
    .main-navigation,
    .header-ctas {
        display: none !important;
    }

    .header-main-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* Left: Mobile Menu Toggle Button */
    .menu-toggle.mobile-menu-left {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: #f1f5f9;
        color: #0f172a;
        font-size: 20px;
        border: 1px solid #e2e8f0;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
        flex-shrink: 0;
        z-index: 2;
    }
    .menu-toggle.mobile-menu-left:active {
        background: #e2e8f0;
        transform: scale(0.92);
    }

    /* Center: Logo */
    .site-branding {
        flex: 1 1 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 8px !important;
    }
    .custom-logo-link {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    .custom-logo-link img {
        max-height: 48px !important;
        width: auto !important;
        display: block;
        margin: 0 auto;
    }

    /* Right: Mobile Call Button */
    .mobile-header-call {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: #ffffff !important;
        font-size: 18px;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
        transition: transform 0.2s ease;
        text-decoration: none !important;
        flex-shrink: 0;
        z-index: 2;
    }
    .mobile-header-call:active {
        transform: scale(0.92);
    }
}

/* Mobile Drawer Backdrop */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Drawer Panel (Full Screen) */
.mobile-drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    background: #ffffff;
    z-index: 99995;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: none;
    overflow: hidden;
}
.mobile-drawer-panel.is-active {
    transform: translateX(0);
}

/* Drawer Header */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top, 0px));
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
}
.mobile-drawer-brand img {
    max-height: 44px;
    width: auto;
    display: block;
}
.mobile-drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #475569;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.mobile-drawer-close:active {
    background: #e2e8f0;
    color: #0f172a;
}

/* Drawer Quick Actions */
.mobile-drawer-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.drawer-quick-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.drawer-quick-btn:active {
    transform: scale(0.96);
}
.drawer-call-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}
.drawer-call-btn i {
    font-size: 16px;
}
.drawer-zalo-btn {
    background: #0068ff;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 104, 255, 0.25);
}
.drawer-zalo-btn img {
    width: 20px;
    height: 20px;
}
.drawer-quick-btn .btn-subtext {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    line-height: 1.2;
}
.drawer-quick-btn .btn-maintext {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 2px;
}

/* Drawer Navigation List */
.mobile-drawer-nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px;
}
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-menu-item {
    margin-bottom: 4px;
    border-radius: 10px;
    overflow: hidden;
}
.mobile-menu-item .menu-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    flex-grow: 1;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}
.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: #f1f5f9;
    color: var(--primary-color, #0284c7);
}
.mobile-menu-item .item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--primary-color, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.submenu-toggle-arrow {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.25s ease, color 0.25s ease;
    border-radius: 8px;
}
.submenu-toggle-arrow:active {
    background: #e2e8f0;
}
.mobile-menu-item.is-open .submenu-toggle-arrow i {
    transform: rotate(180deg);
    color: var(--primary-color, #0284c7);
}

/* Submenu Accordion */
.mobile-submenu-list {
    display: none;
    list-style: none;
    margin: 4px 0 8px 16px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid var(--primary-color, #0284c7);
    background: #f8fafc;
    border-radius: 0 10px 10px 0;
}
.mobile-menu-item.is-open .mobile-submenu-list {
    display: block;
    animation: slideDown 0.25s ease forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-submenu-list li {
    margin-bottom: 2px;
}
.mobile-submenu-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.mobile-submenu-list a:hover,
.mobile-submenu-list a:active {
    color: var(--primary-color, #0284c7);
    background: #ffffff;
}
.mobile-submenu-list a i {
    font-size: 10px;
    color: #94a3b8;
}

/* Drawer Footer */
.mobile-drawer-footer {
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    flex-shrink: 0;
}
.drawer-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    line-height: 1.45;
}
.drawer-info-row:last-child {
    margin-bottom: 0;
}
.drawer-info-row i {
    color: var(--primary-color, #0284c7);
    margin-top: 2px;
    flex-shrink: 0;
}

/* =========================================================================
   16. STICKY MOBILE BOTTOM BAR (NATIVE APP FEEL)
   ========================================================================= */
.lht-mobile-bottom-bar {
    display: none;
}

@media (max-width: 767px) {
    /* Push content up to not be covered by fixed bottom bar */
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }
    
    /* Hide desktop floating buttons on mobile to avoid screen clutter */
    .lht-floating-contact {
        display: none !important;
    }

    .lht-back-to-top {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px) + 12px) !important;
        right: 14px !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 15px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }

    .lht-mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        min-height: 62px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.09);
        z-index: 9990;
        align-items: center;
        justify-content: space-around;
        padding-top: 7px;
        padding-bottom: max(7px, env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #64748b;
        text-decoration: none !important;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: -0.2px;
        gap: 4px;
        background: none;
        border: none;
        padding: 4px 2px 2px;
        cursor: pointer;
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav-item i {
        font-size: 23px;
        line-height: 1;
    }
    .bottom-nav-item.active,
    .bottom-nav-item:active {
        color: var(--primary-color, #0284c7);
    }
    .bottom-zalo-icon {
        width: 25px;
        height: 25px;
        display: block;
        object-fit: contain;
    }

    /* Floating Center Hotline Call Button */
    .bottom-nav-item.bottom-nav-call {
        position: relative;
        color: #dc2626;
        padding-top: 0;
    }
    .bottom-nav-call .call-btn-wrapper {
        position: relative;
        width: 56px;
        height: 56px;
        margin-top: -28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .bottom-nav-call .call-btn-circle {
        position: relative;
        z-index: 3;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 23px;
        box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45);
        border: 3.5px solid #ffffff;
        transition: transform 0.2s ease;
    }
    .bottom-nav-call:active .call-btn-circle {
        transform: scale(0.92);
    }
    .bottom-nav-call .call-pulse-ring {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: rgba(239, 68, 68, 0.4);
        z-index: 1;
        pointer-events: none;
        animation: pulseRing 2s infinite cubic-bezier(0.2, 0, 0.2, 1);
        transform-origin: center center;
    }
    .bottom-nav-call .call-pulse-ring.ring-2 {
        animation-delay: 0.7s;
        background: rgba(239, 68, 68, 0.25);
    }
    .bottom-nav-call .call-text {
        color: #dc2626;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: -0.2px;
        margin-top: 3px;
        line-height: 1;
    }
    @keyframes pulseRing {
        0% { transform: scale(0.92); opacity: 0.85; }
        60% { opacity: 0.3; }
        100% { transform: scale(1.55); opacity: 0; }
    }

    /* Responsive improvements for other components */
    /* Tabs slider on homepage */
    .tab-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        width: 100% !important;
        justify-content: flex-start !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
    }
    .tab-nav::-webkit-scrollbar {
        display: none !important;
    }
    .tab-link {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        white-space: nowrap !important;
        padding: 8px 16px !important;
        font-size: 13.5px !important;
    }

    /* Single post CTA buttons stack */
    .single-post-wrapper .btn-cta,
    .product-contact-card .product-action-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Fluid Post Title */
    .post-title {
        font-size: 1.45rem !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    /* Fluid Product Single Title */
    .product-single-title {
        font-size: 1.4rem !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    /* Breadcrumbs on mobile */
    .breadcrumb-nav {
        font-size: 12.5px !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px !important;
        scrollbar-width: none !important;
    }
    .breadcrumb-nav::-webkit-scrollbar {
        display: none !important;
    }
}
