/* =============================================================================
   COMREX – MAIN STYLESHEET
   Sections:
     1.  CSS Variables & Reset
     2.  Typography
     3.  Utility Classes
     4.  Buttons
     5.  Header
     6.  Navigation
     7.  Hero / Slider
     8.  Section Titles
     9.  Home – About Preview
    10.  Home – Services
    11.  Home – Products
    12.  Home – News
    13.  Breadcrumb
    14.  Page Content (generic)
    15.  Products Page (/product)
    16.  Product Detail
    17.  Blog / News Detail
    18.  Contact Page
    19.  Certifications
    20.  Partners
    21.  Careers
    22.  Footer
    23.  Map
    24.  Pagination
    25.  Animations & Scroll Effects
    26.  Back-to-top Button
    27.  Tables
    28.  Responsive Overrides
============================================================================= */


/* =============================================================================
   1. CSS VARIABLES & RESET
============================================================================= */
:root {
    --primary-blue: #1a237e;
    --secondary-blue: #283593;
    --light-blue: #3949ab;
    --accent-red: #e53935;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, .1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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


/* =============================================================================
   2. TYPOGRAPHY
============================================================================= */
h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.slogan,
.section-title h2 {
    font-family: 'Oswald', sans-serif;
}


/* =============================================================================
   3. UTILITY CLASSES
============================================================================= */
.bg-light-custom {
    background: var(--bg-light) !important;
}

.text-primary-custom {
    color: var(--primary-blue) !important;
}

.fade-in-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.field-error {
    border-color: var(--accent-red) !important;
}

/* Tab content toggle */
.tab-content>.tab-pane {
    display: none;
}

.tab-content>.active {
    display: block;
}

.tab-pane {
    transition: opacity 0.2s ease;
}

@media (max-width: 991px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        --bs-gutter-x: 15px;
    }
}


/* =============================================================================
   4. BUTTONS
============================================================================= */
.btn-primary-custom {
    background: var(--accent-red);
    color: #fff;
    padding: 10px 28px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(229, 57, 53, .35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, .45);
    background: #c62828;
    color: #fff;
}

.btn-outline-custom {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    background: transparent;
    display: inline-block;
    cursor: pointer;
}

.btn-outline-custom:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
}

.btn-solid-custom {
    background: var(--primary-blue);
    color: #fff;
    padding: 8px 24px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 12px;
    border: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-solid-custom:hover {
    background: var(--accent-red);
    color: #fff;
    transform: translateY(-2px);
}

.btn-full-width,
.btn-Checkout.btn-full-width {
    width: 100%;
    justify-content: center;
    display: inline-flex;
}

.btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.btn-back-to-top:hover {
    background: var(--accent-red);
    transform: translateY(-3px);
}

@media (max-width: 575px) {
    .btn-primary-custom {
        padding: 8px 20px;
        font-size: 12px;
    }

    .btn-outline-custom {
        padding: 6px 16px;
        font-size: 11px;
    }

    .btn-solid-custom {
        padding: 6px 18px;
        font-size: 11px;
    }
}


/* =============================================================================
   5. HEADER
============================================================================= */
.frontend-header {
    /* layout handled inline / Bootstrap */
}

.header-logo-img {
    max-height: 50px;
}

.logo-text-large {
    font-size: 2.5rem;
    color: var(--primary-blue);
    letter-spacing: 2px;
}

.logo-sup {
    font-size: 1.5rem;
    vertical-align: super;
}

.slogan-text {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Phone button */
.btn-phone-link {
    color: var(--primary-blue);
}

.zalo-badge {
    top: -10px;
    right: -15px;
    width: 30px;
    height: 30px;
    padding: 2px;
}

/* Search */
.search-input {
    background-color: #f0f2f5;
    color: #333;
}

.search-btn {
    color: var(--primary-blue);
}

.frontend-header .search-box-modern input:focus {
    outline: none;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, .1);
}

/* Cart */
.cart-btn-circle {
    width: 50px;
    height: 50px;
    background-color: #f0f2f5;
}

.cart-badge {
    background-color: var(--primary-blue);
    font-size: 0.75rem;
}

/* Language switcher */
.lang-btn {
    border-color: #dcdcdc !important;
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
}

.lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
}

.lang-name-vn {
    color: #e50027;
}

.lang-chevron {
    font-size: 0.8rem;
}

.lang-dropdown-menu {
    border-radius: 12px;
    min-width: 100px;
}

/* Hamburger */
.hamburger-icon {
    color: var(--primary-blue);
}

/* Scroll state */
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}


/* =============================================================================
   6. NAVIGATION
============================================================================= */
.main-nav-modern .nav-link {
    font-size: 16px;
    letter-spacing: 0.75px;
    position: relative;
    font-family: 'Oswald', sans-serif;
    transition: var(--transition);
}

.main-nav-link {
    color: var(--primary-blue);
}

.nav-font-size {
    font-size: 1.05rem;
}

/* Underline indicator */
.main-nav-modern .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-blue);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav-modern .nav-link:hover::after,
.main-nav-modern .nav-link.active::after {
    width: 100%;
}

/* Close button (mobile) */
.navbar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--light-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 1050;
}

@media (min-width: 992px) {
    .navbar-close {
        display: none;
    }
}

/* Mobile full-screen overlay */
@media (max-width: 991.98px) {
    #mainNav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-blue);
        padding-top: 1rem;
        overflow-y: auto;
        visibility: hidden;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    #mainNav.show {
        visibility: visible;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        transform: translateX(0);
    }

    #mainNav .nav-link {
        color: #fff !important;
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    #mainNav .nav-link:hover,
    #mainNav .nav-link.active {
        color: var(--accent-red) !important;
    }
}

body.menu-open {
    overflow: hidden;
}


/* =============================================================================
   7. HERO / SLIDER
============================================================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

/* Carousel mode: banner full width, height theo tỷ lệ ảnh */
.hero-section:has(#heroCarousel) {
    padding: 0;
    min-height: 0;
    display: block;
    background: #1a1a2e;
}

.hero-section:has(#heroCarousel)::before {
    display: none;
}

#heroCarousel {
    width: 100%;
    position: relative;
}

.hero-slide {
    position: relative;
    width: 100%;
    line-height: 0;
}

.hero-slide-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-slide-caption {
    line-height: normal;
    pointer-events: none;
    z-index: 2;
}

.hero-slide-caption a {
    pointer-events: auto;
}

.hero-slide-text {
    min-height: 420px;
    display: flex;
    align-items: center;
    line-height: normal;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 50%, rgba(0, 0, 0, .1) 100%);
    pointer-events: none;
    z-index: 1;
}

.min-vh-75 {
    min-height: 420px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.06" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, .3);
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-content h2 {
    font-size: 22px;
    color: #ffeb3b;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .2);
}

.hero-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, .92);
    line-height: 1.7;
    max-width: 95%;
}

.hero-illustration {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-illustration .gear-icon {
    font-size: 180px;
    color: rgba(255, 255, 255, .12);
    animation: rotate 25s linear infinite;
}

.hero-slider-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Prev / Next buttons */
.hero-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    font-size: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .92);
    color: var(--primary-blue);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    transition: background .25s, border-color .25s, color .25s, box-shadow .25s, transform .2s;
}

.hero-ctrl i {
    font-size: 15px;
    line-height: 1;
}

.hero-ctrl:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 6px 20px rgba(26, 35, 126, .35);
    transform: translateY(-50%) scale(1.05);
}

.hero-ctrl:active {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-50%) scale(.96);
    box-shadow: 0 2px 10px rgba(26, 35, 126, .3);
}

.hero-ctrl-prev {
    left: 20px;
}

.hero-ctrl-next {
    right: 20px;
}

/* Dot indicators */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .35);
    padding: 0;
    cursor: pointer;
    transition: width .3s ease, background .25s, border-color .25s, transform .2s;
}

.hero-dot:hover {
    background: rgba(26, 35, 126, .45);
    border-color: var(--primary-blue);
    transform: scale(1.15);
}

.hero-dot.active {
    width: 28px;
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(26, 35, 126, .4);
}

.hero-dot.active:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

@media (max-width: 991px) {
    .hero-section {
        min-height: 350px;
        padding: 40px 0;
    }

    .hero-section:has(#heroCarousel) {
        padding: 0;
        min-height: 0;
    }

    .hero-slide-text,
    .min-vh-75 {
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-illustration .gear-icon {
        font-size: 120px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 300px;
        padding: 30px 0;
        text-align: center;
    }

    .hero-section:has(#heroCarousel) {
        padding: 0;
        min-height: 0;
    }

    .hero-slide-text,
    .min-vh-75 {
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content h2 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 12px;
        line-height: 1.6;
        max-width: 100%;
    }

    .hero-illustration {
        display: none !important;
    }

    .hero-ctrl {
        width: 40px;
        height: 40px;
    }

    .hero-ctrl i {
        font-size: 13px;
    }

    .hero-ctrl-prev {
        left: 12px;
    }

    .hero-ctrl-next {
        right: 12px;
    }

    .hero-dots {
        bottom: 14px;
        padding: 6px 12px;
        gap: 6px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    .hero-dot.active {
        width: 22px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content h2 {
        font-size: 13px;
    }
}


/* =============================================================================
   8. SECTION TITLES
============================================================================= */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-blue);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    margin-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
    border-radius: 2px;
}

.section-title p {
    color: #888;
    margin-top: 12px;
    font-size: 15px;
}

.section-title-left {
    text-align: left;
}

.section-title-left h2::after {
    left: 0;
    transform: none;
}

@media (max-width: 767px) {
    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 24px;
        padding-bottom: 10px;
    }

    .section-title h2::after {
        width: 50px;
        height: 3px;
    }

    .section-title p {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .section-title h2 {
        font-size: 20px;
    }
}


/* =============================================================================
   9. HOME – ABOUT PREVIEW
============================================================================= */
.about-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.about-content h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 20px;
}

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

.about-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.about-content ul li {
    padding: 6px 0 6px 26px;
    position: relative;
    font-size: 14px;
    color: #555;
}

.about-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 12px;
    top: 8px;
}

.about-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
    display: block;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* About page – info sidebar */
.about-info-text {
    font-size: 13px;
}

@media (max-width: 991px) {
    .about-section {
        padding: 40px 0;
    }

    .about-content {
        margin-bottom: 30px;
    }

    .about-content h3 {
        font-size: 18px;
    }

    .about-content p,
    .about-content ul li {
        font-size: 13px;
    }
}


/* =============================================================================
   10. HOME – SERVICES
============================================================================= */
.services-section {
    padding: 60px 0;
    background: #fff;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.service-card h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 18px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 13px;
}

.service-icon {
    width: 75px;
    height: 75px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 6px 15px rgba(26, 35, 126, .25);
}

@media (max-width: 767px) {
    .services-section {
        padding: 40px 0;
    }

    .service-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .service-card h3 {
        font-size: 16px;
    }
}


/* =============================================================================
   11. HOME – PRODUCTS PREVIEW
============================================================================= */
.products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

/* Category tabs (shared with Products page) */
.product-tabs {
    margin-bottom: 35px;
}

.custom-tabs {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-tabs .nav-link {
    color: var(--primary-blue);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary-blue);
    background: transparent;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
    margin-bottom: 8px;
}

.custom-tabs .nav-link:hover {
    background: rgba(26, 35, 126, .05);
}

.custom-tabs .nav-link.active {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* Product card */
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 20px;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    padding: 25px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
}

@media (max-width: 767px) {
    .products-section {
        padding: 40px 0;
    }

    .product-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 25px;
    }

    .custom-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
    }

    .custom-tabs .nav-link {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 11px;
        margin-bottom: 0;
    }

    .product-image {
        height: 180px;
        padding: 20px;
    }

    .product-image img {
        max-height: 140px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h4 {
        font-size: 14px;
    }
}


/* =============================================================================
   12. HOME – NEWS PREVIEW
============================================================================= */
.news-section {
    padding: 60px 0;
    background: #fff;
}

.news-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: #fff;
    margin-bottom: 20px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image--auto {
    height: auto;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-card .news-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

.news-content {
    padding: 18px;
}

.news-content h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
}

.news-content p {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

/* List-style news card */
.list-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    padding: 0.75rem;
}

.list-card .news-image {
    flex: 0 0 30%;
    width: 100%;
    height: 100%;
    max-height: 200px;
}

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

.list-card .news-content {
    flex: 1;
    padding: 0;
}

.list-card .news-date {
    position: static;
    margin-bottom: 0.5rem;
    padding: 5px 12px 5px 0;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .9);
}

@media (max-width: 767px) {
    .news-section {
        padding: 40px 0;
    }

    .news-image {
        height: 160px;
    }

    .news-content {
        padding: 15px;
    }

    .news-content h4 {
        font-size: 14px;
    }
}


/* =============================================================================
   13. BREADCRUMB
============================================================================= */
.breadcrumb-section {
    background: var(--gradient-primary);
    padding: 40px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.breadcrumb-section h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    text-transform: uppercase;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    position: relative;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, .8);
}

.breadcrumb-nav a:hover {
    color: #ffeb3b;
}

.breadcrumb-nav .current {
    color: #fff;
    font-weight: 600;
}

.breadcrumb-chevron {
    font-size: 10px;
}

@media (max-width: 767px) {
    .breadcrumb-section {
        padding: 30px 0;
    }

    .breadcrumb-section h1 {
        font-size: 24px;
    }

    .breadcrumb-nav {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* Page banner (khi MetaData có Banner) */
.page-banner {
    width: 100%;
    height: 340px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-banner-title {
    text-align: center;
    padding: 32px 16px 16px;
}

.page-banner-title h1 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1a2e;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.page-banner-bar {
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .page-banner {
        height: 200px;
    }

    .page-banner-title h1 {
        font-size: 22px;
    }
}


/* =============================================================================
   14. PAGE CONTENT (GENERIC)
============================================================================= */
.page-content {
    padding: 50px 0;
}

.content-block {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.content-block h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

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

.content-block ul {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}

.content-block ul li {
    padding: 6px 0 6px 26px;
    position: relative;
    color: #555;
    font-size: 14px;
}

.content-block ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 12px;
    top: 8px;
}

/* Don't show bullet inside tab nav lists */
.content-block ul.custom-tabs li::before {
    content: none;
    display: none;
}

.page-content-title {
    color: var(--primary-blue);
    font-weight: 900;
}

.section-related-heading {
    color: var(--primary-blue);
    font-weight: 900;
}

@media (max-width: 767px) {
    .page-content {
        padding: 35px 0;
    }

    .content-block {
        padding: 20px;
        margin-bottom: 20px;
    }

    .content-block h3 {
        font-size: 18px;
    }

    .content-block p,
    .content-block ul li {
        font-size: 13px;
    }
}


/* =============================================================================
   15. PRODUCTS PAGE (/product)
============================================================================= */
.products-page-section {
    background: #fff;
    min-height: 60vh;
}

/* Pill tabs */
.products-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    border: none;
}

.products-tab-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 0.45rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.products-tab-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.products-tab-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}


/* =============================================================================
   16. PRODUCT DETAIL
============================================================================= */
.product-gallery {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 35px;
    text-align: center;
    margin-bottom: 20px;
}

.product-gallery img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.product-gallery-thumb {
    padding: 12px;
    cursor: pointer;
}

.product-thumb-img {
    max-height: 60px;
}

.product-specs {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.product-specs h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-size: 20px;
}

.product-detail-title {
    color: var(--primary-blue);
    font-weight: 900;
    margin-bottom: 8px;
    font-size: 22px;
}

.product-sku-text {
    font-size: 13px;
}

.product-description-body {
    line-height: 1.7;
    color: #555;
    font-size: 14px;
}

.product-spec-heading {
    font-size: 16px;
}

.product-related-heading {
    color: var(--primary-blue);
    font-weight: 900;
    font-size: 20px;
}

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

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table td {
    padding: 10px 0;
    font-size: 14px;
}

.specs-table td:first-child {
    color: #777;
    width: 40%;
    font-weight: 500;
}

.specs-table td:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

@media (max-width: 767px) {
    .product-gallery {
        padding: 20px;
    }

    .product-gallery img {
        max-height: 200px;
    }

    .product-specs {
        padding: 20px;
    }

    .specs-table td {
        font-size: 13px;
        padding: 8px 0;
    }
}


/* =============================================================================
   17. BLOG / NEWS DETAIL
============================================================================= */
.news-detail-header {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
}

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

.news-detail-header .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    color: #fff;
}

.news-detail-header .overlay h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-detail-content {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.news-detail-content p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 18px;
    font-size: 15px;
}

.news-detail-content h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin: 25px 0 15px;
    font-size: 20px;
}

.news-detail-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 18px;
}

.news-detail-content ul li {
    padding: 6px 0 6px 26px;
    position: relative;
    color: #444;
    font-size: 15px;
}

.news-detail-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 12px;
    top: 9px;
}

.article-detail-title {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 900;
}

.article-meta {
    font-size: 13px;
}

@media (max-width: 767px) {
    .news-detail-header {
        height: 250px;
    }

    .news-detail-header .overlay {
        padding: 20px;
    }

    .news-detail-header .overlay h1 {
        font-size: 18px;
    }

    .news-detail-content {
        padding: 20px;
    }

    .news-detail-content p {
        font-size: 14px;
    }

    .news-detail-content h4 {
        font-size: 18px;
    }
}


/* =============================================================================
   18. CONTACT PAGE
============================================================================= */
.contact-info-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    text-align: center;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.contact-info-card h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-info-card p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin: 0 auto 15px;
}

.contact-form {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.contact-form-heading {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info-text {
    font-size: 14px;
}

.form-control-custom {
    border: 2px solid #e8eaf6;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 13px;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 14px;
    font-family: 'Roboto', sans-serif;
}

.form-control-custom:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, .1);
    outline: none;
}

select.form-control-custom {
    appearance: auto;
}

.checkout-warning {
    color: red;
    margin-top: 10px;
}

.thank-you-note {
    color: #3366cc;
}

@media (max-width: 767px) {
    .contact-info-card {
        margin-bottom: 15px;
        padding: 20px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .contact-form {
        padding: 25px;
    }
}

/* Contact page — new layout */
.contact-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.contact-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    margin-bottom: 10px;
}

.contact-heading-bar {
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.contact-sub {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.contact-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid #cdd0e3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 14px;
}

.contact-form-panel {
    background: #eef0f8;
    border-radius: 16px;
    padding: 36px 40px;
}

.form-label-custom {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.btn-contact-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-contact-submit:hover {
    opacity: 0.88;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 380px;
    border: none;
    display: block;
}

@media (max-width: 767px) {
    .contact-form-panel {
        padding: 24px 20px;
    }

    .contact-heading {
        font-size: 20px;
    }
}


/* =============================================================================
   19. CERTIFICATIONS
============================================================================= */
.cert-section {
    padding: 60px 0;
}

.cert-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-4px);
}

.cert-frame {
    border: 1px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
}

.cert-frame i {
    font-size: 70px;
    color: var(--primary-blue);
}

.cert-info h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px;
}

.cert-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .cert-section {
        padding: 40px 0;
    }

    .cert-card {
        padding: 20px;
    }

    .cert-frame {
        padding: 15px;
    }

    .cert-frame i {
        font-size: 50px;
    }

    .cert-info h4 {
        font-size: 16px;
    }
}


/* =============================================================================
   20. PARTNERS
============================================================================= */
.partners-section {
    padding: 60px 0;
    background: #fff;
}

.partner-group h4 {
    border-left: 6px solid var(--accent-red);
    padding-left: 10px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
}

.partner-category {
    margin-bottom: 40px;
}

.partner-category h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 4px solid var(--accent-red);
    font-size: 18px;
}

.partner-logo {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.partner-logo:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.partner-logo img {
    max-width: 100%;
    max-height: 45px;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

.partner-title-fallback {
    color: var(--primary-blue);
    font-weight: 700;
}

@media (max-width: 767px) {
    .partners-section {
        padding: 40px 0;
    }

    .partner-category {
        margin-bottom: 30px;
    }

    .partner-category h3 {
        font-size: 16px;
    }

    .partner-logo {
        height: 70px;
        padding: 15px;
    }
}


/* =============================================================================
   21. CAREERS
============================================================================= */
.job-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

.job-card h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 17px;
}

.job-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #777;
    flex-wrap: wrap;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 767px) {
    .job-card {
        padding: 20px;
    }

    .job-card h4 {
        font-size: 15px;
    }

    .job-meta {
        gap: 10px;
    }
}


/* =============================================================================
   22. FOOTER
============================================================================= */
.frontend-footer {
    background-color: var(--primary-blue);
    border-top: 10px solid var(--accent-red);
    color: rgba(255, 255, 255, .85);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-watermark {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    line-height: 0;
}

.footer-container-inner>.row {
    z-index: 1;
}

.footer-watermark-text {
    display: block;
    width: 100%;
    font-size: 25vw;
    color: rgba(255, 255, 255, .03);
    white-space: nowrap;
    font-weight: 900;
    text-align: center;
    line-height: 0.85;
    transform: translateY(18%);
}

.footer-watermark-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: bottom center;
    opacity: .12;
    filter: brightness(0) invert(1);
}

.footer-container-inner {
    z-index: 1;
    position: relative;
}

.footer-heading {
    letter-spacing: 1px;
}

.footer-link {
    color: inherit;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-link:hover {
    color: #ffeb3b;
}

.footer-contact-body {
    line-height: 1.8;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, .3) !important;
    transition: var(--transition);
}

.footer-social-link:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red) !important;
}

.footer-zalo-label {
    font-size: 0.7rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 2rem;
    padding: 1rem 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
    margin: 0;
}

.frontend-footer .footer-widget ul li a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.frontend-footer .social-links a:hover {
    background-color: #fff;
    color: var(--primary-blue) !important;
}

@media (max-width: 767px) {
    .frontend-footer {
        padding-top: 2.5rem;
    }
}


/* =============================================================================
   23. MAP
============================================================================= */
.map-container {
    width: 100%;
    border: none;
    display: block;
}

.map-iframe {
    border: 0;
    display: block;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

@media (max-width: 767px) {
    .map-container iframe {
        height: 250px;
    }
}


/* =============================================================================
   24. PAGINATION
============================================================================= */
.pagination-custom {
    gap: 6px;
    justify-content: center;
}

.pagination-custom .page-link {
    color: var(--primary-blue);
    border: 1px solid #e0e0e0;
    border-radius: 50% !important;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
    margin: 0;
    font-size: 13px;
    padding: 0;
}

.pagination-custom .page-link:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.pagination-custom .active .page-link {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

@media (max-width: 575px) {
    .pagination-custom .page-link {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}


/* =============================================================================
   25. ANIMATIONS & SCROLL EFFECTS
============================================================================= */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s ease-out;
}


/* =============================================================================
   26. TABLES
============================================================================= */
.table-bordered {
    border: 1px solid #dee2e6;
    width: 100%;
    border-collapse: collapse;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #dee2e6;
    padding: 10px;
    font-size: 14px;
}

@media (max-width: 767px) {

    .table-bordered td,
    .table-bordered th {
        padding: 8px;
        font-size: 13px;
    }
}


/* =============================================================================
   27. SCROLLBAR
============================================================================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}