/*
 * Main Custom Stylesheet for Kmar Warantec Theme
 * Converts all Tailwind utilities into premium vanilla CSS.
 */

:root {
    /* Color Palette */
    --color-brand-teal: #009BA3;
    --color-brand-teal-dark: #007D83;
    --color-brand-navy: #102A43;
    --color-brand-navy-light: #183C60;
    --color-brand-accent: #EAF8F8;
    --color-brand-accent-hover: #D8F2F2;
    
    --color-white: #ffffff;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;
    
    --color-emerald-500: #10b981;
    --color-emerald-600: #059669;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Container Width */
    --container-max-width: 80rem; /* 1280px */
}

/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-white);
    color: var(--color-slate-800);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-all);
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.kmar-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* Helper Utilities */
.bg-white {
    background-color: var(--color-white) !important;
}
.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Flexbox & Grid Utility Classes for Theme */
.grid { display: grid; }
.flex { display: flex; }
.hidden { display: none !important; }
.bg-white { background-color: var(--color-white) !important; }
.bg-slate-50 { background-color: var(--color-slate-50) !important; }
.bg-slate-50\/50 { background-color: rgba(248, 250, 252, 0.5) !important; }

/* ----------------------------------------------------
 * BUTTONS & INTERACTIVE ELEMENTS
 * ---------------------------------------------------- */
.kmar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-all);
    white-space: nowrap;
}

.kmar-btn-primary {
    background-color: var(--color-brand-teal);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 155, 163, 0.2);
}

.kmar-btn-primary:hover {
    background-color: var(--color-brand-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 155, 163, 0.3);
}

.kmar-btn-secondary {
    background-color: var(--color-white);
    color: var(--color-slate-800);
    border: 1px solid var(--color-slate-200);
}

.kmar-btn-secondary:hover {
    background-color: var(--color-slate-50);
    border-color: var(--color-slate-300);
}

.kmar-btn-navy {
    background-color: var(--color-brand-navy);
    color: var(--color-white);
}

.kmar-btn-navy:hover {
    background-color: var(--color-brand-navy-light);
}

.kmar-btn-group {
    display: flex;
    gap: 0.5rem;
}

/* ----------------------------------------------------
 * HEADER & NAVIGATION
 * ---------------------------------------------------- */
.kmar-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-slate-100);
    box-shadow: var(--shadow-sm);
}

.kmar-top-bar {
    background-color: var(--color-brand-navy);
    color: var(--color-white);
    font-size: 0.75rem;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .kmar-top-bar {
        display: none;
    }
}

.kmar-header-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-left span, .top-bar-left a {
    color: var(--color-slate-300);
}

.top-bar-left a:hover {
    color: var(--color-brand-teal);
}

.top-bar-left svg {
    margin-right: 0.25rem;
}

.divider {
    color: var(--color-slate-700);
}

.sitemap-link {
    color: var(--color-slate-300);
    font-size: 11px;
}

.sitemap-link:hover {
    color: var(--color-brand-teal);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    cursor: pointer;
    color: var(--color-slate-300);
}

.lang-selector:hover .lang-dropdown {
    display: block;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-brand-navy);
    border: 1px solid var(--color-slate-800);
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 100;
    width: 120px;
    box-shadow: var(--shadow-lg);
}

.lang-dropdown li {
    padding: 0.25rem 1rem;
}

.lang-dropdown li a {
    color: var(--color-slate-300);
    display: block;
}

.lang-dropdown li a:hover {
    color: var(--color-brand-teal);
}

/* Main Navigation Row */
.kmar-main-nav {
    padding: 0.75rem 0;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 2.75rem;
    width: auto;
    object-contain: contain;
}

.desktop-menu {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-menu {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-list li a {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-700);
    padding: 0.5rem 0;
    position: relative;
}

.nav-list li a:hover, .nav-list li.current-menu-item a {
    color: var(--color-brand-teal);
}

.nav-list li.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-brand-teal);
    border-radius: 9999px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 640px) {
    .header-actions .trigger-consultation {
        display: none;
    }
}

/* Mobile Language Switcher Styles in Mobile Drawer */
.mobile-lang-list {
    list-style: none !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}
.mobile-lang-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
}
.mobile-lang-list li::after {
    content: '|';
    margin-left: 0.5rem;
    color: var(--color-slate-300);
}
.mobile-lang-list li:last-child::after {
    content: '';
}
.mobile-lang-list li a {
    color: var(--color-slate-400) !important;
    text-decoration: none !important;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
}
.mobile-lang-list li.current-lang a {
    color: var(--color-brand-teal) !important;
}

.search-container {
    position: relative;
}

.search-trigger {
    background: none;
    border: none;
    color: var(--color-slate-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-all);
}

.search-trigger:hover {
    color: var(--color-brand-teal);
    background-color: var(--color-slate-50);
}

.search-dropdown-form {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 16rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.search-dropdown-form.active {
    display: block;
}

.search-dropdown-form form {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.search-dropdown-form input[type="search"] {
    flex-grow: 1;
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 0.25rem;
}

.search-dropdown-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-brand-teal);
}

.search-dropdown-form button[type="submit"] {
    background-color: var(--color-brand-teal);
    color: var(--color-white);
    border: none;
    padding: 0.375rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-dropdown-form button[type="submit"]:hover {
    background-color: var(--color-brand-teal-dark);
}

.mobile-menu-trigger {
    background: none;
    border: none;
    color: var(--color-slate-700);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .mobile-menu-trigger {
        display: none;
    }
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-slate-100);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    z-index: 49;
}

.mobile-menu-panel.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.mobile-nav-list {
    list-style: none;
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-slate-100);
}

.mobile-nav-list li a {
    display: block;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-slate-700);
    border-radius: 0.375rem;
}

.mobile-nav-list li a:hover, .mobile-nav-list li.current-menu-item a {
    background-color: var(--color-slate-50);
    color: var(--color-brand-teal);
}

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    padding-top: 0.75rem;
}

.mobile-sitemap {
    font-size: 0.75rem;
    color: var(--color-slate-500);
}

/* ----------------------------------------------------
 * FOOTER STYLING
 * ---------------------------------------------------- */
.kmar-footer {
    background-color: var(--color-brand-navy);
    color: var(--color-slate-200);
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--color-slate-900);
    text-align: left;
}

.kmar-footer-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .kmar-footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .kmar-footer-container {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 2.75rem;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-slogan {
    font-size: 0.875rem;
    color: var(--color-slate-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition-all);
}

.social-icon:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    border: none;
    border-left: 2px solid var(--color-brand-teal);
    padding-left: 0.5rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu li a {
    font-size: 0.875rem;
    color: var(--color-slate-400);
}

.footer-menu li a:hover {
    color: var(--color-brand-teal);
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.875rem;
    color: var(--color-slate-400);
}

.contact-item a:hover {
    color: var(--color-brand-teal);
}

.contact-item svg {
    margin-top: 0.25rem;
}

.zalo-qr-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.75rem;
}

.zalo-qr-img-wrapper {
    background-color: var(--color-white);
    padding: 0.5rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

.zalo-qr-img {
    width: 88px;
    height: 88px;
    display: block;
}

.zalo-qr-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.zalo-title {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.zalo-slogan {
    font-size: 11px;
    color: var(--color-slate-400);
    line-height: 1.4;
}

/* Sub Footer */
.kmar-sub-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sub-footer-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-slate-500);
}

@media (min-width: 640px) {
    .sub-footer-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

.distributor-by a {
    color: var(--color-slate-400);
    font-weight: 600;
}

.distributor-by a:hover {
    color: var(--color-brand-teal);
}

.credit-link {
    color: var(--color-brand-teal);
    font-weight: 700;
}

.credit-link:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------
 * FLOATING CONSULTATION MODAL
 * ---------------------------------------------------- */
.kmar-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.kmar-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

.kmar-modal-container {
    background-color: var(--color-white);
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
    max-width: 56rem; /* 896px */
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    position: relative;
    max-height: 92vh;
    display: flex;
    animation: slideUp 0.3s ease-out;
}

.kmar-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 50;
    background-color: #ff4a4a;
    color: var(--color-white);
    border: none;
    border-radius: 9999px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-all);
}

.kmar-modal-close:hover {
    background-color: #e03d3d;
}

.modal-form-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-form-left {
    width: 100%;
    padding: 2rem;
    background-color: #eef6fc;
    overflow-y: auto;
    text-align: left;
}

@media (min-width: 768px) {
    .modal-form-left {
        width: 55%;
    }
}

.modal-form-right {
    display: none;
    width: 45%;
    position: relative;
    background-color: var(--color-slate-100);
}

@media (min-width: 768px) {
    .modal-form-right {
        display: block;
    }
}

.modal-form-right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent, rgba(15, 23, 42, 0.1));
}

.form-header {
    margin-bottom: 1.25rem;
}

.form-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
    letter-spacing: -0.02em;
}

.form-header p {
    font-size: 0.75rem;
    color: var(--color-slate-500);
    margin-top: 0.125rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.875rem;
    font-size: 0.75rem;
}

.form-group label {
    font-weight: 700;
    color: var(--color-slate-700);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.5rem;
    background-color: var(--color-white);
    font-size: 0.75rem;
    transition: var(--transition-all);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-brand-teal);
    box-shadow: 0 0 0 2px rgba(0, 155, 163, 0.15);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .form-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.form-privacy-note {
    font-size: 10px;
    color: var(--color-slate-400);
    line-height: 1.4;
    margin: 0.5rem 0 0.875rem 0;
}

/* Success & Error Form States */
.form-success-message {
    text-align: center;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.form-success-message h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
}

.form-success-message p {
    font-size: 0.875rem;
    color: var(--color-slate-600);
    max-width: 480px;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.form-error-message {
    padding: 0.5rem;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 0.5rem;
    color: #dc2626;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ----------------------------------------------------
 * HOMEPAGE BUILDER COMPONENTS
 * ---------------------------------------------------- */

/* Component 1: Hero Banner */
.kmar-hero-section {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(135deg, #0b1e2e 0%, #0d2e38 50%, #0a1a24 100%);
    color: var(--color-white);
    overflow: hidden;
    padding: 5rem 0;
    border-bottom: 1px solid var(--color-slate-900);
    text-align: left;
}

.kmar-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.kmar-hero-overlay-r {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(11, 30, 46, 0.95), rgba(13, 46, 56, 0.9), transparent);
}

.kmar-hero-overlay-t {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, #0b1e2e, transparent);
}

.kmar-hero-glow {
    position: absolute;
    top: 25%;
    right: 25%;
    width: 500px;
    height: 500px;
    background-color: rgba(0, 155, 163, 0.1);
    border-radius: 9999px;
    filter: blur(140px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 7fr 5fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    background-color: rgba(0, 155, 163, 0.1);
    color: var(--color-brand-teal);
    border: 1px solid rgba(0, 155, 163, 0.3);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: 'Inter';
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.1875rem; /* 35px */
    }
}

.hero-desc {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-slate-300);
    line-height: 1.7;
    max-width: 42rem;
}

@media (min-width: 640px) {
    .hero-desc {
        font-size: 1rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-metrics {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    font-family: 'Inter';
    font-size: 0.75rem;
    color: var(--color-slate-400);
}

.metric-val {
    color: var(--color-brand-teal);
    font-weight: 700;
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

@media (min-width: 640px) {
    .metric-val {
        font-size: 1rem;
    }
}

.metric-lbl {
    text-transform: uppercase;
    font-size: 10px;
}

/* Hero Right Column Visual Overlay */
.hero-visual-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-2xl);
    position: relative;
    max-width: 24rem;
    width: 100%;
    margin: 0 auto;
}

.hero-visual-card-glow {
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(0, 155, 163, 0.2);
    border-radius: 9999px;
    filter: blur(32px);
    z-index: -1;
}

.hero-hud-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-brand-teal), transparent);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.hero-visual-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.hero-hud-code {
    font-size: 10px;
    font-family: 'Inter';
    color: var(--color-brand-teal);
    letter-spacing: 0.1em;
    font-weight: 700;
}

.hero-hud-badge {
    padding: 0.125rem 0.5rem;
    font-size: 9px;
    font-family: 'Inter';
    background-color: rgba(0, 155, 163, 0.2);
    color: var(--color-brand-teal);
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 155, 163, 0.3);
}

.hero-visual-img-wrapper {
    aspect-ratio: 1/1;
    background-color: rgba(15, 23, 42, 0.6);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.5s;
}

.hero-visual-card:hover .hero-visual-img {
    transform: scale(1.05);
}

.hero-hud-overlay {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.625rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter';
    font-size: 10px;
    color: var(--color-slate-300);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.hero-hud-overlay-pass {
    color: var(--color-brand-teal);
    font-weight: 700;
}

.hero-visual-card h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-visual-card p {
    font-size: 13px;
    color: var(--color-slate-400);
    line-height: 1.4;
}

/* Component 2: Achievements / Stats Bar */
.kmar-stats-section {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
    padding: 2rem 0;
    position: relative;
    z-index: 20;
    box-shadow: var(--shadow-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    padding: 0.5rem 0;
}

@media (min-width: 768px) {
    .stat-item {
        padding: 0;
    }
    .stat-item:not(:first-child) {
        border-left: 1px solid var(--color-slate-100);
    }
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brand-teal);
    font-family: 'Inter';
}

@media (min-width: 640px) {
    .stat-val {
        font-size: 1.875rem;
    }
}

.stat-lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Component 3: Quick Introduction */
.kmar-intro-section {
    background-color: #f3f9f9;
    padding: 4rem 0;
    border-bottom: 1px solid #e2ecec;
    text-align: left;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .intro-grid {
        grid-template-columns: 7fr 5fr;
    }
}

.intro-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-tagline {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-brand-teal);
    letter-spacing: 0.15em;
    font-family: 'Inter';
    display: block;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-slate-900);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

.title-underline {
    height: 4px;
    width: 3rem;
    background-color: var(--color-brand-teal);
    border-radius: 0.25rem;
    margin: 0 auto;
    margin-top: 0.25rem;
}
.intro-left .title-underline {
    margin: 0;
}
.intro-desc {
    font-size: 0.875rem;
    color: var(--color-slate-600);
    line-height: 1.7;
}

@media (min-width: 640px) {
    .intro-desc {
        font-size: 1rem;
    }
}

.intro-desc p {
    margin-bottom: 1rem;
}

.intro-desc p:last-child {
    margin-bottom: 0;
}

.intro-sub-desc {
    font-size: 0.875rem;
    color: var(--color-slate-500);
    line-height: 1.6;
}

.intro-right-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
}

@media (min-width: 640px) {
    .intro-right-image-wrapper {
        aspect-ratio: 1/1;
    }
}

.intro-right-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-right-image-wrapper .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
}

.intro-image-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-slate-200);
}

.intro-badge-tag {
    font-size: 10px;
    font-family: 'Inter';
    color: var(--color-brand-teal);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.intro-badge-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate-800);
    margin-top: 0.125rem;
}

/* Component 4: Core Strengths */
.kmar-strengths-section {
    background-color: var(--color-white);
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--color-slate-200);
    text-align: left;
}

.strengths-header {
    text-align: center;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.strengths-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .strengths-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.strength-card {
    padding: 1.5rem;
    background-color: rgba(248, 250, 252, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
}

.strength-card:hover {
    background-color: var(--color-white);
    border-color: rgba(0, 155, 163, 0.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.strength-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background-color: rgba(0, 155, 163, 0.1);
    color: var(--color-brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    transition: var(--transition-all);
}

.strength-card:hover .strength-icon-wrapper {
    background-color: var(--color-brand-teal);
    color: var(--color-white);
}

.strength-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-900);
}

.strength-card p {
    font-size: 13px;
    color: var(--color-slate-500);
    line-height: 1.6;
}

/* Component 5: Interactive Categories Tab Dashboard */
.kmar-categories-section {
    background-color: var(--color-slate-50);
    padding: 5rem 0;
    border-bottom: 1px solid var(--color-slate-200);
    text-align: left;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: 5fr 7fr;
    }
}

.categories-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
}

.cat-tab-btn {
    width: 100%;
    text-align: left;
    padding: 1.125rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-slate-200);
    background-color: var(--color-white);
    color: var(--color-slate-800);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-all);
}

.cat-tab-btn:hover {
    border-color: rgba(0, 155, 163, 0.4);
    background-color: rgba(243, 251, 251, 0.3);
}

.cat-tab-btn.active {
    background-color: #0b1e2e;
    border-color: #0b1e2e;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.cat-tab-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cat-tab-title {
    font-size: 0.875rem;
    font-weight: 700;
    display: block;
}

@media (min-width: 640px) {
    .cat-tab-title {
        font-size: 1rem;
    }
}

.cat-tab-btn:not(.active):hover .cat-tab-title {
    color: var(--color-brand-teal);
}

.cat-tab-subtitle {
    font-size: 10px;
    font-family: 'Inter';
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-slate-400);
    display: block;
}

.cat-tab-btn.active .cat-tab-subtitle {
    color: var(--color-brand-teal);
}

.cat-tab-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid var(--color-slate-200);
    background-color: var(--color-slate-50);
    color: var(--color-slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-all);
}

.cat-tab-btn:hover .cat-tab-icon {
    color: var(--color-brand-teal);
    border-color: rgba(0, 155, 163, 0.4);
}

.cat-tab-btn.active .cat-tab-icon {
    background-color: var(--color-brand-teal);
    color: var(--color-white);
    border-color: var(--color-brand-teal);
    transform: rotate(90deg) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Category Details Card Panel */
.category-details-panel {
    background-color: var(--color-white);
    border-radius: 1rem;
    border: 1px solid var(--color-slate-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .category-details-panel {
        padding: 2.5rem;
    }
}

.category-mascot-wrapper {
    position: absolute;
    bottom: -2rem;
    right: -6rem;
    width: 11rem;
    height: 11rem;
    z-index: 10;
    pointer-events: none;
    transition: all 0.7s ease-out;
}

@media (min-width: 768px) {
    .category-mascot-wrapper {
        bottom: -3rem;
        right: -6rem;
        width: 14rem;
        height: 14rem;
    }
}

.category-details-panel:hover .category-mascot-wrapper {
    transform: scale(1.1) translateY(-12px);
    filter: drop-shadow(0 15px 25px rgba(0,155,163,0.22));
}

.category-mascot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
}

.category-panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cat-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-slate-100);
    padding-bottom: 1rem;
}

.cat-panel-badge {
    padding: 0.25rem 0.75rem;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter';
    background-color: rgba(0, 155, 163, 0.1);
    color: var(--color-brand-teal);
    border-radius: 9999px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cat-panel-origin {
    font-size: 11px;
    color: var(--color-slate-400);
    font-family: 'Inter';
}

.cat-panel-title-area {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cat-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .cat-panel-title {
        font-size: 1.5rem;
    }
}

.cat-panel-subtitle {
    font-size: 11px;
    font-family: 'Inter';
    font-weight: 700;
    color: var(--color-slate-400);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cat-panel-desc {
    font-size: 0.75rem;
    color: var(--color-slate-600);
    line-height: 1.6;
    font-weight: 300;
}

@media (min-width: 640px) {
    .cat-panel-desc {
        font-size: 0.875rem;
    }
}

.cat-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cat-features-title {
    font-size: 10px;
    font-family: 'Inter';
    font-weight: 700;
    color: var(--color-slate-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cat-feature-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.cat-feature-check {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: rgba(0, 155, 163, 0.1);
    color: var(--color-brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.cat-feature-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-slate-700);
    line-height: 1.4;
}

@media (min-width: 640px) {
    .cat-feature-text {
        font-size: 0.875rem;
    }
}

.cat-panel-actions {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-slate-100);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Component 6: Certifications & Clinical Proof */
.kmar-certifications-section {
    background-color: var(--color-white);
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--color-slate-200);
    text-align: left;
}

.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .certifications-grid {
        grid-template-columns: 7fr 5fr;
    }
}

.certs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .certs-list {
        grid-template-columns: 1fr 1fr;
    }
}

.certs-list .cert-card-item {
    border: 1px solid var(--color-slate-200);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    background-color: var(--color-white);
    cursor: zoom-in;
    transition: var(--transition-all);
}

.certs-list .cert-card-item:hover {
    border-color: rgba(0, 155, 163, 0.3);
    box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
    .certs-list .cert-card-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }
    .certs-list .cert-img-wrapper {
        order: -1;
    }
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cert-heading {
    color: var(--color-brand-teal);
    font-weight: 700;
    font-size: 0.875rem;
    font-family: 'Inter';
}

@media (min-width: 640px) {
    .cert-heading {
        font-size: 1rem;
    }
}

.cert-sub {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-500);
}

.cert-desc {
    font-size: 11px;
    color: var(--color-slate-400);
    line-height: 1.4;
}

.cert-img-wrapper {
    width: 5rem;
    height: 7rem;
    flex-shrink: 0;
    background-color: var(--color-white);
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 640px) {
    .cert-img-wrapper {
        width: 6rem;
        height: 8rem;
    }
}

.cert-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.cert-card-item:hover .cert-img-wrapper img {
    transform: scale(1.05);
}

/* Clinical Panel Right */
.clinical-showcase-panel {
    background-color: var(--color-slate-50);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-slate-200);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.clinical-badge-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clinical-live-pulse {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background-color: var(--color-emerald-500);
    animation: pulse 1.5s infinite;
}

.clinical-badge-tag {
    font-size: 11px;
    font-family: 'Inter';
    font-weight: 700;
    color: var(--color-brand-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clinical-showcase-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-900);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clinical-showcase-panel p {
    font-size: 0.75rem;
    color: var(--color-slate-600);
    line-height: 1.6;
    font-weight: 300;
}

@media (min-width: 640px) {
    .clinical-showcase-panel p {
        font-size: 0.875rem;
    }
}

.clinical-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.clinical-img-box {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--color-slate-200);
    background-color: var(--color-white);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-all);
}

.clinical-img-box:hover {
    box-shadow: var(--shadow-md);
}

.clinical-img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    transition: transform 0.5s;
}

.clinical-img-box:hover img {
    transform: scale(1.03);
}

/* Component 7: Latest News & Events */
.kmar-news-section {
    background-color: var(--color-slate-50);
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-slate-200);
    text-align: left;
}

.news-header-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--color-slate-200);
    padding-bottom: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .news-header-row {
        flex-direction: row;
        align-items: flex-end;
    }
}

.news-viewall-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-brand-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.news-viewall-btn:hover {
    color: var(--color-brand-teal-dark);
}

.news-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .news-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card-wrapper {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--color-slate-200);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
}

.news-card-wrapper:hover {
    border-color: rgba(0, 155, 163, 0.4);
    box-shadow: var(--shadow-md);
}

.news-img-header {
    position: relative;
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-slate-100);
    border-bottom: 1px solid var(--color-slate-100);
}

.news-img-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card-wrapper:hover .news-img-header img {
    transform: scale(1.05);
}

.news-cat-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.125rem 0.625rem;
    font-size: 9px;
    font-family: 'Inter';
    font-weight: 700;
    background-color: var(--color-brand-navy);
    color: var(--color-white);
    border-radius: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.news-card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-slate-900);
    line-height: 1.4;
    transition: var(--transition-all);
}

.news-card-wrapper:hover .news-card-title {
    color: var(--color-brand-teal);
}

/* Component 8: Final Call To Action (CTA) */
.kmar-cta-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    background-image: linear-gradient(135deg, #005b60 0%, #0c2333 100%);
    color: var(--color-white);
    border-top: 1px solid var(--color-slate-900);
    text-align: center;
}

.cta-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.7;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background-color: rgba(0, 155, 163, 0.15);
    border-radius: 9999px;
    filter: blur(100px);
}

.cta-content-wrapper {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.cta-content-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .cta-content-wrapper h2 {
        font-size: 1.75rem; /* 28px */
    }
}

.cta-desc {
    font-size: 0.75rem;
    color: var(--color-slate-300);
    max-width: 42rem;
    line-height: 1.6;
    font-weight: 300;
}

@media (min-width: 640px) {
    .cta-desc {
        font-size: 0.875rem;
    }
}

.cta-action {
    padding-top: 1rem;
}

/* ----------------------------------------------------
 * CLIENT SIDE FLOATING MOUSE TOOLTIP (Certifications)
 * ---------------------------------------------------- */
.kmar-hover-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 150;
    background-color: var(--color-white);
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(11,30,46,0.25);
    border: 1px solid var(--color-slate-200);
    width: 18rem;
    display: none;
}

.kmar-hover-tooltip img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    border: 1px solid var(--color-slate-100);
}

.kmar-hover-tooltip-title {
    font-size: 10px;
    text-align: center;
    color: var(--color-slate-500);
    font-weight: 700;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter';
}

/* Product Details Thumbnail Button Styles */
.prod-thumbnail-btn {
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}
.prod-thumbnail-btn.active {
    border-color: var(--color-brand-teal) !important;
    border-width: 2px !important;
    box-shadow: 0 4px 12px rgba(0, 155, 163, 0.15) !important;
}

/* Reusable Zoomable Lightbox */
.kmar-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.kmar-lightbox.active {
    display: flex;
}

.kmar-lightbox-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(15, 23, 42, 0.9);
    padding: 0.625rem;
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: var(--shadow-2xl);
    z-index: 210;
}

.lightbox-btn {
    background: none;
    border: none;
    color: var(--color-slate-200);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.lightbox-btn:hover {
    color: var(--color-white);
    background-color: var(--color-slate-800);
}

.lightbox-btn-close {
    background-color: #ff4a4a;
    color: var(--color-white);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
}

.lightbox-btn-close:hover {
    background-color: #e03d3d;
}

.lightbox-zoom-indicator {
    font-size: 0.75rem;
    color: var(--color-slate-400);
    padding: 0 0.25rem;
    font-family: 'Inter';
}

.lightbox-stage {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-height: 70vh;
    width: auto;
    max-width: 85vw;
    object-fit: contain;
    transition: transform 0.1s ease-out;
}

.lightbox-title {
    display: none;
    text-align: center;
    margin-top: 1rem;
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    max-width: 28rem;
    background-color: rgba(15, 23, 42, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

/* ----------------------------------------------------
 * PAGE BUILDER SUBPAGE PAGES GENERAL STYLING
 * ---------------------------------------------------- */
.kmar-subpage-header {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 5rem 0;
    color: var(--color-white);
    text-align: left;
}

.kmar-subpage-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.kmar-subpage-header-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breadcrumbs {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-300);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--color-brand-teal);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--color-slate-500);
}

.subpage-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

@media (min-width: 640px) {
    .subpage-title {
        font-size: 2.25rem;
    }
}

.subpage-desc {
    font-size: 0.875rem;
    color: var(--color-slate-300);
    max-width: 48rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .subpage-desc {
        font-size: 1rem;
    }
}

/* About Page (Giới thiệu 5 tabs) */
.about-tabs-container {
    border-bottom: 1px solid var(--color-slate-200);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.about-tab-link {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    color: var(--color-slate-500);
    cursor: pointer;
    transition: var(--transition-all);
}

.about-tab-link.active {
    color: var(--color-brand-teal);
    border-bottom-color: var(--color-brand-teal);
    font-weight: 700;
}

/* Specific product tabs menu overrides */
.about-tabs-container .about-tab-link.active {
    background-color: var(--color-brand-teal) !important;
    color: var(--color-white) !important;
    border: none !important;
}

.about-tabs-container .about-tab-link:hover:not(.active) {
    background-color: rgba(0, 155, 163, 0.05) !important;
    color: var(--color-brand-teal) !important;
    border: none !important;
}

.about-tab-content-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.about-tab-content-panel.active {
    display: block;
}

.about-quote-box {
    background: linear-gradient(to right, rgba(0, 155, 163, 0.1), rgba(0, 155, 163, 0.05), transparent);
    border-left: 4px solid var(--color-brand-teal);
    padding: 1.25rem;
    border-radius: 0 0.75rem 0.75rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-900);
    line-height: 1.6;
}

.about-img-box {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-md);
    background-color: var(--color-slate-50);
}

.about-img-box img {
    width: 100%;
    object-fit: cover;
}

.milestones-timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--color-slate-200);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
    margin-top: 2rem;
}

.milestone-node {
    position: relative;
}

.milestone-node::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 6px);
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background-color: var(--color-brand-teal);
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 4px var(--color-brand-accent);
}

.milestone-year {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-brand-teal);
    font-family: 'Inter';
    margin-bottom: 0.25rem;
}

.milestone-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.5rem;
}

.milestone-details {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: 13px;
    color: var(--color-slate-500);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Products listing template (products.php) */
.products-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 4.5rem; /* Pushes layout down slightly so it's not too close to the top */
}

@media (min-width: 1024px) {
    .products-layout-wrapper {
        grid-template-columns: 3fr 9fr;
    }
}

/* Mobile toggle button */
.mobile-filter-toggle-btn {
    display: none;
}

@media (max-width: 1023px) {
    .mobile-filter-toggle-btn {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.875rem 1.25rem !important;
        background-color: var(--color-white) !important;
        border: 1px solid var(--color-slate-200) !important;
        border-radius: 0.75rem !important;
        color: var(--color-slate-800) !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        cursor: pointer;
        transition: var(--transition-all);
        box-shadow: var(--shadow-sm);
        margin-bottom: 1rem;
    }
    
    .mobile-filter-toggle-btn:hover {
        border-color: var(--color-brand-teal) !important;
        color: var(--color-brand-teal) !important;
    }
    
    .mobile-filter-toggle-btn.active .toggle-icon {
        transform: rotate(180deg);
    }

    .sidebar-content-wrapper {
        display: none;
        margin-bottom: 1.5rem;
    }
    
    .sidebar-content-wrapper.show {
        display: block !important;
        animation: fadeIn 0.25s ease-in-out;
    }
}

.products-sidebar-filters {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-slate-200);
    text-align: left;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

/* Sidebar Headings */
.sidebar-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: var(--color-slate-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-slate-100);
    padding-bottom: 0.875rem;
    margin-bottom: 1.25rem !important;
}

.sidebar-title svg {
    color: var(--color-brand-teal);
}

.sidebar-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.625rem;
}

/* Search input & Perfectly Centered Icon */
.product-search-box {
    margin-bottom: 1.25rem;
}

.product-search-box form {
    position: relative;
    display: block;
    width: 100%;
}

.product-search-box input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.25rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 0.5rem;
    font-size: 12px;
    color: var(--color-slate-800);
    transition: var(--transition-all);
}

.product-search-box input:focus {
    outline: none;
    border-color: var(--color-brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 155, 163, 0.1);
}

.product-search-box input::placeholder {
    color: var(--color-slate-400);
}

.product-search-box form svg {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-slate-300);
    width: 14px;
    height: 14px;
    pointer-events: none; /* Allows click-through to trigger input focus */
}

/* Diameter filter */
.diameter-filter-group {
    margin-bottom: 1.25rem;
}

.diameter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.diameter-pill-btn {
    padding: 0.35rem 0.625rem;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--color-slate-200);
    border-radius: 4px;
    background-color: var(--color-white);
    color: var(--color-slate-600);
    cursor: pointer;
    transition: var(--transition-all);
}

.diameter-pill-btn.active {
    background-color: var(--color-brand-teal) !important;
    border-color: var(--color-brand-teal) !important;
    color: var(--color-white) !important;
}

.diameter-pill-btn:hover:not(.active) {
    border-color: var(--color-brand-teal);
    color: var(--color-brand-teal);
    background-color: var(--color-brand-accent);
}

/* Tree controls (Expand / Collapse) */
.tree-controls-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.btn-tree-control {
    flex: 1;
    padding: 0.45rem 0.5rem;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--color-slate-200);
    border-radius: 4px;
    background-color: var(--color-white);
    color: var(--color-slate-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: var(--transition-all);
}

.btn-tree-control:hover {
    border-color: var(--color-brand-teal);
    color: var(--color-brand-teal);
    background-color: var(--color-brand-accent);
}

/* All products button */
.all-products-btn-wrapper {
    margin-bottom: 1rem;
}

.all-products-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-all);
    border: 1px solid rgba(0, 155, 163, 0.15) !important;
    background-color: rgba(0, 155, 163, 0.04) !important;
    color: var(--color-brand-teal) !important;
}

.all-products-link:hover {
    background-color: rgba(0, 155, 163, 0.08) !important;
}

.all-products-link.active-reset {
    border-color: var(--color-brand-teal) !important;
    background-color: var(--color-brand-teal) !important;
    color: var(--color-white) !important;
}

.all-count-badge {
    background-color: #cbd5e1;
    color: var(--color-slate-700);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    transition: var(--transition-all);
}

.all-products-link.active-reset .all-count-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

/* Category tree container & scrollbar */
.sidebar-category-tree-container {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-category-tree-container::-webkit-scrollbar {
    width: 4px;
}
.sidebar-category-tree-container::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-category-tree-container::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: 9999px;
}
.sidebar-category-tree-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-400);
}

/* Category tree elements */
.sidebar-cat-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cat-tree li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-cat-tree > li {
    margin-bottom: 0.375rem;
}

/* Row alignment - aligned badge and trigger */
.cat-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.cat-item-row a {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.5rem;
    color: var(--color-slate-700);
    font-size: 12px;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: var(--transition-all);
}

.cat-item-row a:hover {
    color: var(--color-brand-teal);
    background-color: var(--color-brand-accent);
}

.sidebar-cat-tree li.active > .cat-item-row > a {
    color: var(--color-brand-teal);
    background-color: var(--color-brand-accent);
    font-weight: 700;
}

.sidebar-cat-tree li.active > .cat-item-row .cat-count-badge {
    background-color: var(--color-brand-teal);
    color: var(--color-white);
}

.cat-name {
    flex-grow: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-count-badge {
    background-color: #f1f5f9;
    color: var(--color-slate-400);
    padding: 0.125rem 0.45rem;
    border-radius: 9999px;
    font-size: 9px;
    font-weight: 700;
    min-width: 1.6rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.cat-toggle-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.25rem;
    padding: 0;
    margin-right: 0.5rem;
    flex-shrink: 0;
    transition: var(--transition-all);
}

.cat-toggle-trigger:hover {
    color: var(--color-brand-teal);
    background-color: var(--color-brand-accent);
}

.cat-toggle-trigger svg {
    transition: transform 0.2s ease;
}

.sidebar-cat-tree li.expanded > .cat-item-row .cat-toggle-trigger svg {
    transform: rotate(90deg);
}

/* Nested sub-tree lines & curves styling */
.cat-tree-sub {
    list-style: none;
    padding-left: 1.35rem;
    margin: 0;
    display: none;
    position: relative;
}

.sidebar-cat-tree li.expanded > .cat-tree-sub {
    display: block;
}

/* Vertical line for the sub-tree branch */
.cat-tree-sub::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0.75rem;
    left: 0.65rem;
    width: 1px;
    border-left: 1px solid #e2e8f0;
}

/* Curved elbow connectors for list items in sub-tree */
.cat-tree-sub > li {
    position: relative;
}

.cat-tree-sub > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: -0.7rem;
    width: 0.7rem;
    height: 1.05rem;
    border-bottom: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    border-bottom-left-radius: 6px;
}

/* Consultation box matching target 100% - moved outside and padded */
.sidebar-consult-card {
    background-color: var(--color-brand-navy) !important;
    color: var(--color-white) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    margin-top: 1.5rem !important; /* Space between the filter sidebar and the consultation card */
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.875rem !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Radial circle background display configuration */
.sidebar-consult-card[data-pattern="circle"]::after {
    content: "";
    position: absolute;
    bottom: -2.5rem;
    right: -2.5rem;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 155, 163, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-consult-card span {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    display: block;
}

.sidebar-consult-card p {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.sidebar-consult-card a {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--color-brand-teal) !important;
    transition: var(--transition-all) !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.sidebar-consult-card a:hover {
    color: var(--color-white) !important;
}

.products-grid-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .products-grid-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .products-grid-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
}

.product-card:hover {
    border-color: rgba(0, 155, 163, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.product-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--color-slate-50);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-card-img img {
    transform: scale(1.03);
}

.product-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.product-card-cat {
    font-size: 10px;
    font-family: 'Inter';
    font-weight: 700;
    color: var(--color-brand-teal);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-card-desc {
    font-size: 13px;
    color: var(--color-slate-500);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Technology page (technology.php) */
.tech-process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .tech-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tech-process-card {
    padding: 1.25rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-100);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.tech-process-card .step-num {
    font-size: 14px;
    font-weight: 900;
    font-family: 'Inter';
    color: var(--color-brand-teal);
    display: block;
    margin-bottom: 0.25rem;
}

.tech-process-card h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-slate-900);
    margin-bottom: 0.5rem;
}

.tech-process-card p {
    font-size: 11px;
    color: var(--color-slate-500);
    line-height: 1.5;
}

/* Library layout (library.php) */
.library-upper-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.library-tabs-pill {
    background-color: rgba(226, 232, 240, 0.7);
    padding: 0.375rem;
    border-radius: 9999px;
    display: flex;
    gap: 0.375rem;
    max-width: 24rem;
    width: 100%;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(203, 213, 225, 0.3);
}

.library-tab-pill-btn {
    flex: 1;
    padding: 0.625rem 0;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-all);
}

.library-tab-pill-btn.active {
    background-color: var(--color-white);
    color: var(--color-brand-teal);
    box-shadow: var(--shadow-md);
}

.library-lower-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.library-filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 9999px;
    border: none;
    background-color: transparent;
    color: var(--color-slate-600);
    cursor: pointer;
    transition: var(--transition-all);
}

.library-filter-btn:hover {
    color: var(--color-slate-950);
    background-color: rgba(241, 245, 249, 0.5);
}

.library-filter-btn.active {
    background-color: rgba(0, 155, 163, 0.1);
    color: var(--color-brand-teal);
}

.library-masonry-gallery {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) {
    .library-masonry-gallery {
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .library-masonry-gallery {
        column-count: 3;
    }
}

@media (min-width: 1024px) {
    .library-masonry-gallery {
        column-count: 4;
    }
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    width: 100%;
}

.gallery-media-card {
    position: relative;
    width: 100%;
    background-color: var(--color-slate-900);
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.4);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
}

.gallery-media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-out;
}

.gallery-media-card:hover img {
    transform: scale(1.04);
}

.gallery-media-card-hover {
    position: absolute;
    inset: 0;
    background-color: rgba(2, 6, 23, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-all);
}

.gallery-media-card:hover .gallery-media-card-hover {
    background-color: rgba(2, 6, 23, 0.25);
}

.gallery-hover-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--color-white);
    color: var(--color-brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transform: scale(0.9);
    opacity: 0;
    transition: var(--transition-all);
}

.gallery-media-card:hover .gallery-hover-icon {
    transform: scale(1);
    opacity: 1;
}

.video-duration-tag {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

/* Contact page layout (contact.php) */
.contact-branch-card {
    padding: 1rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-100);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.contact-branch-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-slate-50);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-slate-900);
}

.contact-branch-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 11px;
    color: var(--color-slate-600);
}

.contact-branch-details a:hover {
    color: var(--color-brand-teal);
    text-decoration: underline;
}

.branch-map-link {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-brand-teal);
}

.branch-map-link:hover {
    color: var(--color-brand-teal-dark);
    text-decoration: underline;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    text-align: left;
}

.faq-item {
    border: 1px solid var(--color-slate-200);
    border-radius: 0.75rem;
    background-color: var(--color-white);
    overflow: hidden;
}

.faq-question-btn {
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-slate-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question-btn:hover {
    color: var(--color-brand-teal);
}

.faq-question-btn svg {
    transition: transform 0.2s;
    color: var(--color-slate-400);
}

.faq-item.active .faq-question-btn svg {
    transform: rotate(180deg);
    color: var(--color-brand-teal);
}

.faq-answer-panel {
    display: none;
    padding: 0 1rem 1rem 1rem;
    font-size: 0.875rem;
    color: var(--color-slate-500);
    border-top: 1px solid var(--color-slate-100);
    line-height: 1.6;
}

.faq-item.active .faq-answer-panel {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

/* Sitemap Page (sitemap.php) */
/* Sitemap Page (sitemap.php) - Premium Visual Tree Layout */
.sitemap-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 2rem 0;
    position: relative;
}

/* Root node (TRANG CHỦ) styles */
.sitemap-root-node {
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.sitemap-root-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-brand-navy);
    color: var(--color-white);
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
    transition: var(--transition-all);
}

.sitemap-root-link:hover {
    background-color: var(--color-brand-navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.sitemap-root-icon {
    display: flex;
    align-items: center;
    color: var(--color-brand-teal);
}

.sitemap-root-arrow {
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: transform 0.2s;
}

.sitemap-root-link:hover .sitemap-root-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* Root vertical connector line going down */
.sitemap-root-node::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 2rem;
    background-color: var(--color-slate-200);
    transform: translateX(-50%);
}

/* The grid container for the 6 columns */
.sitemap-tree-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    width: 100%;
    position: relative;
    padding-top: 2rem;
}

/* Horizontal connecting trunk across columns (from middle of col 1 to middle of col 6) */
.sitemap-tree-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(100% / 12);
    right: calc(100% / 12);
    height: 2px;
    background-color: var(--color-slate-200);
}

/* Vertical branch line going down from trunk to each column header */
.sitemap-tree-col {
    position: relative;
    display: flex;
    flex-direction: column;
}

.sitemap-tree-col::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    width: 2px;
    height: 2rem;
    background-color: var(--color-slate-200);
    transform: translateX(-50%);
}

/* Column Header Card */
.sitemap-tree-col-header {
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-100);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.015);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    position: relative;
}

.col-header-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-slate-50);
    color: var(--color-brand-navy);
    transition: var(--transition-all);
}

.sitemap-tree-col:hover .col-header-icon-box {
    background-color: var(--color-brand-accent);
    color: var(--color-brand-teal);
    transform: scale(1.05);
}

.col-header-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-brand-navy);
    margin: 0;
}

/* Column body and list of sub-cards */
.sitemap-tree-col-body {
    margin-top: 1.5rem;
    flex-grow: 1;
}

.sitemap-tree-list {
    display: flex;
    flex-direction: column;
}

/* Card list item wrapper */
.sitemap-tree-item-wrapper {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem; /* creates left space for connecting stem */
}

/* Vertical segment of line connecting the sub-cards in the column */
.sitemap-tree-item-wrapper::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-slate-200);
    transition: var(--transition-all);
}

.sitemap-tree-item-wrapper:first-child::before {
    top: 50%;
}

.sitemap-tree-item-wrapper:last-child::before {
    bottom: 50%;
}

.sitemap-tree-col:hover .sitemap-tree-item-wrapper::before {
    background-color: var(--color-slate-200); /* Keep it stable or highlight */
}

/* Horizontal stem connecting the card itself to the vertical line */
.sitemap-tree-item-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.75rem;
    width: 1.25rem;
    height: 2px;
    background-color: var(--color-slate-200);
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-all);
}

.sitemap-tree-item-wrapper:hover::after {
    background-color: var(--color-brand-teal);
}

/* Bullet node on the vertical line segment */
.sitemap-tree-node {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-slate-300);
    border: 2px solid var(--color-white);
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: var(--transition-all);
}

.sitemap-tree-item-wrapper:hover .sitemap-tree-node {
    background-color: var(--color-brand-teal);
    transform: translate(-50%, -50%) scale(1.3);
}

/* Sub-card link styles */
.sitemap-tree-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-100);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: var(--transition-all);
    text-align: left;
}

.sitemap-tree-card:hover {
    border-color: var(--color-brand-teal-dark);
    transform: translateX(4px);
    box-shadow: 0 8px 16px -4px rgba(0, 155, 163, 0.08);
}

.card-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 0.5rem;
}

.card-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-slate-800);
    margin: 0;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 0.6875rem;
    color: var(--color-slate-400);
    margin: 0;
    line-height: 1.3;
}

.sitemap-tree-card:hover .card-title {
    color: var(--color-brand-navy);
}

.card-action-arrow {
    display: flex;
    align-items: center;
    color: var(--color-slate-300);
    transition: var(--transition-all);
}

.sitemap-tree-card:hover .card-action-arrow {
    color: var(--color-brand-teal);
    transform: translateX(2px);
}

/* Special styling for active page in sitemap */
.sitemap-tree-card.active-item {
    border-color: var(--color-brand-teal);
    background-color: var(--color-brand-accent);
}
.sitemap-tree-card.active-item .card-title {
    color: var(--color-brand-teal-dark);
}
.sitemap-tree-card.active-item .card-action-arrow {
    color: var(--color-brand-teal);
}

/* RESPONSIVE DESIGN BREAKPOINTS */
@media (max-width: 1279px) {
    .sitemap-tree-grid {
        grid-template-columns: repeat(3, 1fr);
        padding-top: 0;
        gap: 1.5rem;
    }
    
    /* Hide top horizontal trunk and branch lines */
    .sitemap-tree-grid::before,
    .sitemap-tree-col::before,
    .sitemap-root-node::after {
        display: none;
    }
    
    .sitemap-root-node {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .sitemap-tree-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 539px) {
    .sitemap-tree-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .sitemap-tree-col-header {
        padding: 1.25rem 1rem;
    }
}

/* 404 View specific styles */
.kmar-404-view-root {
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.kmar-404-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(2px);
}

.kmar-404-card {
    max-width: 540px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.kmar-404-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.6);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.kmar-404-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kmar-404-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-slate-950);
}

.kmar-404-content h2 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-slate-900);
}

.kmar-404-content p {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-slate-800);
    line-height: 1.6;
}

.kmar-404-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
}

.kmar-404-actions .kmar-btn {
    width: 100%;
}

.kmar-404-actions .kmar-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.kmar-404-actions .kmar-btn-group .kmar-btn {
    background-color: rgba(255, 255, 255, 0.7);
}

.kmar-404-actions .kmar-btn-group .kmar-btn:hover {
    background-color: var(--color-white);
}

.kmar-404-footer {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-slate-900);
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
    width: 100%;
}

.kmar-404-footer strong a {
    color: var(--color-brand-teal);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* Pagination Styling to match target mockups */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-slate-600);
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.5rem;
    transition: var(--transition-all);
}

.pagination .page-numbers:hover {
    border-color: var(--color-brand-teal);
    color: var(--color-brand-teal);
    background-color: var(--color-brand-accent);
}

.pagination .page-numbers.current {
    background-color: var(--color-brand-teal);
    border-color: var(--color-brand-teal);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 155, 163, 0.2);
}

.pagination .page-numbers.dots {
    border-color: transparent;
    background-color: transparent;
    color: var(--color-slate-400);
    cursor: default;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    min-width: auto;
    padding: 0 1rem;
    font-weight: 600;
    color: var(--color-slate-500);
}

/* ----------------------------------------------------
 * LIBRARY PAGE SPECIFIC STYLES
 * ---------------------------------------------------- */
.library-upper-tabs {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem; /* Add top spacing to separate from subpage header banner */
    margin-bottom: 2.5rem; /* Space between upper tabs and lower categories */
}
.library-tabs-pill {
    display: inline-flex;
    background-color: var(--color-slate-100);
    padding: 0.25rem;
    border-radius: 9999px;
    border: 1px solid var(--color-slate-200);
}
.library-tab-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-slate-500);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.library-tab-pill-btn.active {
    background-color: white;
    color: var(--color-slate-900);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.library-tab-pill-btn svg {
    color: var(--color-slate-400);
    transition: color 0.2s;
}
.library-tab-pill-btn.active svg {
    color: var(--color-brand-teal);
}

.library-lower-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3.5rem; /* Pushes the masonry gallery down for premium spacing */
}
.library-filter-btn {
    padding: 0.375rem 1.25rem;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--color-slate-200);
    background-color: white;
    color: var(--color-slate-600);
    cursor: pointer;
    transition: all 0.2s;
}
.library-filter-btn.active {
    background-color: var(--color-brand-accent);
    color: var(--color-brand-teal);
    border-color: rgba(0, 155, 163, 0.15);
}

/* Premium Masonry columns matching screenshot spacing */
.library-masonry-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}
@media (max-width: 1024px) {
    .library-masonry-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .library-masonry-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .library-masonry-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}

.library-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
.kmar-btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: var(--color-slate-700);
    border: 1px solid var(--color-slate-200);
    border-radius: 9999px;
    padding: 0.75rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.kmar-btn-load-more:hover {
    background-color: var(--color-slate-50);
    border-color: var(--color-slate-300);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.kmar-btn-load-more:active {
    transform: translateY(0);
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.gallery-media-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-slate-100);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    width: 100%;
}
.gallery-media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.1);
}
.gallery-media-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.gallery-media-card-hover {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.3);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s;
}
.gallery-media-card:hover .gallery-media-card-hover {
    opacity: 1;
}
.gallery-hover-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: white;
    color: var(--color-brand-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gallery-media-card:hover .gallery-hover-icon {
    transform: scale(1);
}
.video-duration-tag {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background-color: rgba(10, 12, 18, 0.85);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
}

/* PREMIUM FULLSCREEN LIGHTBOX STYLING */
.premium-lightbox-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 12, 18, 0.99);
    z-index: 99999;
    display: none;
    align-items: stretch;
}
.premium-lightbox-modal.active {
    display: flex;
}
.lightbox-modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}
.lightbox-main-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 1.5rem;
}
.lightbox-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.lightbox-counter {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter';
    background: rgba(255,255,255,0.04);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}
.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.lightbox-controls button {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.lightbox-controls button:hover {
    background-color: rgba(255,255,255,0.15);
    color: white;
}
.lightbox-controls button.active {
    background-color: var(--color-brand-teal);
    color: white;
}
.lightbox-viewer-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.lightbox-nav-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}
.lightbox-nav-btn:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}
.lightbox-media-wrapper {
    position: absolute;
    inset: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-media-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transition: transform 0.2s ease-out;
}
.lightbox-media-wrapper img.zoom-active {
    transform: scale(1.5);
    cursor: zoom-out;
}
.lightbox-bottom-bar {
    display: none;
    text-align: center;
    padding-top: 1rem;
    z-index: 10;
}
.lightbox-media-title {
    display: none;
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

/* Lightbox Sidebar */
.lightbox-sidebar {
    width: 300px;
    background-color: rgba(15, 18, 28, 0.98);
    border-left: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
}
@media (max-width: 900px) {
    .lightbox-sidebar {
        display: none; /* Hide sidebar on smaller tablets and mobile screens */
    }
}
.lightbox-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lightbox-sidebar-title {
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.lightbox-sidebar-count {
    background-color: rgba(0, 155, 163, 0.15);
    color: var(--color-brand-teal);
    font-size: 11px;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}
.lightbox-thumbnail-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    align-content: start;
}
.lightbox-thumb-item {
    aspect-ratio: 4/3;
    border-radius: 0.375rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    position: relative;
    transition: all 0.2s;
}
.lightbox-thumb-item:hover {
    opacity: 0.8;
}
.lightbox-thumb-item.active {
    border-color: var(--color-brand-teal);
    opacity: 1;
}
.lightbox-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lightbox-thumb-item .thumb-video-icon {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.lightbox-thumb-item .thumb-duration {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    background-color: rgba(0,0,0,0.7);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 0.125rem 0.25rem;
    border-radius: 0.125rem;
}

/* HTML5 Video container */
.lightbox-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background-color: black;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.lightbox-video-container iframe, .lightbox-video-container video {
    width: 100%;
    height: 100%;
    border: none;
}
.video-stage-thumbnail-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-stage-play-btn {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background-color: var(--color-brand-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 155, 163, 0.4);
    transition: transform 0.2s;
}
.video-stage-play-btn:hover {
    transform: scale(1.08);
}


/* ----------------------------------------------------
 * ABOUT PAGE SPECIFIC STYLES
 * ---------------------------------------------------- */
.about-quote-box {
    border-left: 4px solid var(--color-brand-teal);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    line-height: 1.5;
    background-color: var(--color-white);
}

.about-quote-box-inline {
    border-left: 3px solid var(--color-brand-teal);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-brand-navy);
    line-height: 1.5;
    background-color: var(--color-slate-50);
    border-radius: 0 0.5rem 0.5rem 0;
}

.overview-sections-container {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-top: 2.5rem;
}

.overview-alternate-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .overview-alternate-row {
        grid-template-columns: 1fr 1fr;
    }
    .overview-alternate-row.image-left .overview-text-col {
        order: 2;
    }
    .overview-alternate-row.image-left .overview-image-col {
        order: 1;
    }
}

.overview-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.overview-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    position: relative;
    padding-bottom: 0.5rem;
}

.overview-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.5rem;
    height: 2px;
    background-color: var(--color-brand-teal);
}

.overview-content {
    font-size: 14px;
    color: var(--color-slate-600);
    line-height: 1.6;
}

.overview-content p {
    margin-bottom: 1rem;
}

.overview-content p:last-child {
    margin-bottom: 0;
}

.overview-sub-heading {
    color: var(--color-brand-teal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--color-brand-teal);
    padding-left: 0.75rem;
    text-transform: uppercase;
}

.overview-bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.overview-bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.875rem;
    font-size: 13.5px;
    line-height: 1.5;
}

.overview-bullet-list li::before {
    content: '•';
    color: var(--color-brand-teal);
    font-weight: bold;
    font-size: 1.25rem;
    position: absolute;
    left: 0.25rem;
    top: -0.125rem;
}

.overview-bullet-list li strong {
    color: var(--color-slate-800);
}

.overview-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    aspect-ratio: 4/3;
}

.overview-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overview-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(15, 18, 28, 0.9) 0%, rgba(15, 18, 28, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    pointer-events: none;
}

.overview-image-badge {
    background-color: var(--color-brand-teal);
    color: var(--color-white);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    width: max-content;
}

.overview-image-caption {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
}

.overview-full-width-row {
    margin-top: 1rem;
    border-top: 1px solid var(--color-slate-100);
    padding-top: 2.5rem;
}

.glossary-item {
    margin-bottom: 2rem;
}

.glossary-item h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-brand-navy);
    margin-bottom: 0.375rem;
}

.glossary-item p {
    font-size: 13.5px;
    color: var(--color-slate-600);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.glossary-item span {
    font-size: 12px;
    font-style: italic;
    color: var(--color-brand-teal);
}

/* Timeline Header */
.timeline-header {
    margin-bottom: 2.5rem;
}

.timeline-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    font-size: 14px;
    color: var(--color-slate-500);
}

/* Certifications styles */
.certs-header {
    margin-bottom: 3rem;
}

.certs-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    margin-bottom: 0.5rem;
}

.certs-subtitle {
    font-size: 14px;
    color: var(--color-slate-500);
}

.certs-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .certs-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .certs-grid-4col {
        grid-template-columns: 1fr;
    }
}

.certs-grid-4col .cert-card-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.certs-grid-4col .cert-card-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 155, 163, 0.2);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

@media (max-width: 640px) {
    .certs-grid-4col .cert-image-preview {
        order: -1;
        width: 100%;
    }
}

.cert-card-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: var(--color-brand-accent);
    color: var(--color-brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-slate-800);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cert-card-description {
    font-size: 13px;
    color: var(--color-slate-500);
    line-height: 1.5;
    flex-grow: 1;
    margin: 0;
}

.cert-image-preview {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--color-slate-100);
    aspect-ratio: 4/3;
}

.cert-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zoom-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 12, 18, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s;
}

.certs-grid-4col .cert-card-item:hover .zoom-overlay {
    opacity: 1;
}

.zoom-btn {
    background-color: rgba(10, 12, 18, 0.85);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    backdrop-filter: blur(4px);
}

/* Clinical Header */
.clinical-header {
    margin-bottom: 2.5rem;
}

.clinical-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    margin-bottom: 0.5rem;
}

.clinical-subtitle {
    font-size: 14px;
    color: var(--color-slate-500);
}

.clinical-evidence-section {
    margin-top: 3rem;
    border-top: 1px solid var(--color-slate-200);
    padding-top: 2.5rem;
}

.clinical-evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.75rem;
}

.clinical-evidence-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-brand-teal);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.clinical-evidence-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    margin: 0;
}

.clinical-view-all {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-brand-teal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.clinical-view-all:hover {
    text-decoration: underline;
}

.clinical-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .clinical-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .clinical-posts-grid {
        grid-template-columns: 1fr;
    }
}

.clinical-post-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-100);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.clinical-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: var(--color-slate-200);
}

.clinical-post-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.clinical-post-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.clinical-post-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--color-brand-teal);
    color: var(--color-white);
    font-size: 9px;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.02em;
}

.clinical-post-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.clinical-post-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-slate-800);
    line-height: 1.45;
    margin: 0;
    transition: color 0.2s;
}

.clinical-post-card:hover .clinical-post-title {
    color: var(--color-brand-teal);
}

/* Representative Vietnam styles */
.rep-profile-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    background-color: var(--color-slate-50);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--color-slate-100);
}

@media (min-width: 1024px) {
    .rep-profile-card {
        grid-template-columns: 300px 1fr;
        align-items: start;
    }
}

.rep-profile-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rep-logo-box {
    max-width: 180px;
    height: auto;
}

.rep-logo-box img {
    width: 100%;
    height: auto;
    display: block;
}

.rep-profile-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-slate-600);
    line-height: 1.5;
    margin: 0;
}

.rep-profile-right {
    display: flex;
    flex-direction: column;
}

.rep-profile-desc {
    font-size: 14px;
    color: var(--color-slate-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.rep-contact-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid var(--color-slate-200);
    padding-top: 1.5rem;
}

.rep-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13.5px;
    color: var(--color-slate-700);
}

.rep-contact-item svg {
    color: var(--color-brand-teal);
    flex-shrink: 0;
}

.rep-contact-item strong {
    color: var(--color-slate-900);
    font-size: 14px;
}

.rep-support-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(241, 245, 249, 0.6);
    border: 1px solid var(--color-slate-200);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin-bottom: 3.5rem;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .rep-support-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.rep-support-info {
    display: flex;
    flex-direction: column;
}

.rep-support-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-brand-navy);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rep-support-text {
    font-size: 13px;
    color: var(--color-slate-500);
    margin: 0.25rem 0 0 0;
}

.rep-support-btn {
    background-color: var(--color-brand-navy);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.rep-support-btn:hover {
    background-color: var(--color-brand-teal);
}

.rep-offices-section {
    margin-top: 1.5rem;
}

.rep-offices-title {
    text-align: left;
    font-size: 15px;
    font-weight: 800;
    color: var(--color-brand-navy);
    border-left: 3px solid var(--color-brand-teal);
    padding-left: 0.75rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    line-height: 1.25;
}

.rep-offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .rep-offices-grid {
        grid-template-columns: 1fr;
    }
}

.office-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.2s;
}

.office-card:hover {
    border-color: rgba(0, 155, 163, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.office-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-brand-teal);
}

.office-card-header svg {
    flex-shrink: 0;
}

.office-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-brand-navy);
}

.office-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.office-info-item {
    font-size: 13px;
    color: var(--color-slate-600);
    margin: 0;
    line-height: 1.5;
}

.office-info-item strong {
    color: var(--color-slate-800);
}

.office-info-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.office-info-item a:hover {
    color: var(--color-brand-teal);
    text-decoration: underline;
}

.rep-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.rep-contact-item a:hover {
    color: var(--color-brand-teal);
}

.office-card-footer {
    margin-top: 0.5rem;
}
.office-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-slate-600);
    text-decoration: none;
    border: 1px solid var(--color-slate-200);
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    background-color: var(--color-white);
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.office-map-btn svg {
    flex-shrink: 0;
}

.office-map-btn:hover {
    background-color: var(--color-brand-accent);
    color: var(--color-brand-teal);
    border-color: rgba(0, 155, 163, 0.15);
}

.hidden {
    display: none !important;
}

/* Product Detail Main Grid */
@media (min-width: 1024px) {
    .prod-detail-main-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Related Products Grid */
@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (min-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Product Thumbs Track scrollbar hide */
#prod-thumbs-track::-webkit-scrollbar {
    display: none;
}

/* ====================================================
 * RESPONSIVE OVERRIDES — TABLET & MOBILE
 * Kmar-Warantec Theme — Added responsive refinements
 * Breakpoints: Tablet 768–1023px | Mobile ≤767px | Small ≤480px
 * ==================================================== */

/* ─────────────────────────────────────────────────────
 * TABLET: 768px – 1023px
 * ───────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {

    .kmar-container {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    /* ── Hero: 2 cột trên tablet (content + visual card) ── */
    .kmar-hero-section {
        padding: 3.5rem 0;
        min-height: 460px;
    }
    .hero-grid {
        grid-template-columns: 6fr 5fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: 1.875rem;
    }
    .hero-visual-card {
        max-width: 100%;
    }

    /* ── Stats ── */
    .stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* ── Intro ── */
    .kmar-intro-section {
        padding: 3rem 0;
    }

    /* ── Strengths ── */
    .kmar-strengths-section {
        padding: 3rem 0;
    }
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Categories ── */
    .kmar-categories-section {
        padding: 3rem 0;
    }
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .category-details-panel {
        min-height: 420px;
    }
    /* Mascot: thu nhỏ và giữ trong bounds trên tablet */
    .category-mascot-wrapper {
        right: -2rem;
        bottom: -2rem;
        width: 9rem;
        height: 9rem;
    }

    /* ── Certifications ── */
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    .certs-list {
        grid-template-columns: 1fr 1fr;
    }
    .certs-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    .clinical-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── News ── */
    .news-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Products listing: dùng mobile filter trên tablet ── */
    .products-layout-wrapper {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
    .products-grid-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── About / Rep ── */
    .overview-alternate-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .rep-profile-card {
        grid-template-columns: 1fr;
        padding: 1.75rem;
    }
    .rep-offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Subpage Header ── */
    .kmar-subpage-header {
        padding: 3.5rem 0;
    }
    .subpage-title {
        font-size: 1.875rem;
    }

    /* ── Modal ── */
    .kmar-modal-container {
        max-height: 94vh;
    }

    /* ── Footer ── */
    .kmar-footer {
        padding-top: 3rem;
    }
    .kmar-footer-container {
        grid-template-columns: 1fr 1fr;
    }

    /* ── Sitemap ── */
    .sitemap-tree-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ── Library ── */
    .library-masonry-gallery {
        grid-template-columns: repeat(2, 1fr);
        column-count: 2;
    }
}

/* ─────────────────────────────────────────────────────
 * MOBILE: ≤ 767px
 * ───────────────────────────────────────────────────── */
@media (max-width: 767px) {

    /* ── GLOBAL ── */
    .kmar-container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    /* ── HEADER ── */
    .kmar-header-container {
        padding: 0 1rem;
    }
    .brand-logo {
        height: 2.25rem;
    }

    /* ── HERO SECTION ── */
    .kmar-hero-section {
        padding: 2.5rem 0 2rem;
        min-height: auto;
    }
    .hero-title {
        font-size: 1.625rem;
        line-height: 1.25;
    }
    .hero-desc {
        font-size: 0.875rem;
    }
    /* Buttons stacked full-width */
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-buttons .kmar-btn {
        width: 100%;
        justify-content: center;
    }
    /* Hero metrics — 3 cột gọn */
    .hero-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        font-size: 10px;
    }
    .metric-val {
        font-size: 0.8125rem;
    }
    .metric-lbl {
        font-size: 9px;
    }
    .hero-visual-card {
        max-width: 100%;
        padding: 1rem;
    }

    /* ── STATS ── */
    .kmar-stats-section {
        padding: 1.5rem 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-val {
        font-size: 1.375rem;
    }
    .stat-lbl {
        font-size: 11px;
    }

    /* ── INTRO ── */
    .kmar-intro-section {
        padding: 2.5rem 0;
    }
    .intro-right-image-wrapper {
        aspect-ratio: 16/9;
    }

    /* ── STRENGTHS ── */
    .kmar-strengths-section {
        padding: 2.5rem 0;
    }

    /* ── CATEGORIES ── */
    .kmar-categories-section {
        padding: 2.5rem 0;
    }
    .categories-grid {
        margin-top: 1.5rem;
        gap: 1.25rem;
    }
    .category-details-panel {
        min-height: auto;
        padding: 1.25rem;
    }
    /* Mascot: ẩn hoàn toàn trên mobile để tránh overflow */
    .category-mascot-wrapper {
        display: none;
    }
    .cat-panel-actions {
        padding-top: 1rem;
        margin-top: 0.75rem;
        flex-direction: column;
    }
    .cat-panel-actions .kmar-btn {
        width: 100%;
        justify-content: center;
    }

    /* ── CERTIFICATIONS ── */
    .kmar-certifications-section {
        padding: 2.5rem 0;
    }
    .certifications-grid {
        margin-top: 1.5rem;
        gap: 1.5rem;
    }
    .certs-grid-4col {
        grid-template-columns: 1fr;
    }
    .clinical-posts-grid {
        grid-template-columns: 1fr;
    }

    /* ── NEWS SECTION ── */
    .kmar-news-section {
        padding: 2.5rem 0;
    }
    .news-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
    }

    /* ── CTA SECTION ── */
    .kmar-cta-section {
        padding: 2.5rem 0;
    }
    .cta-content-wrapper h2 {
        font-size: 1.375rem;
    }

    /* ── SUBPAGE HEADER ── */
    .kmar-subpage-header {
        padding: 2.5rem 0;
    }
    .subpage-title {
        font-size: 1.375rem;
        line-height: 1.25;
    }
    .subpage-desc {
        font-size: 0.8125rem;
    }
    .kmar-subpage-header-content {
        gap: 0.625rem;
    }

    /* ── SECTION TYPOGRAPHY ── */
    .section-title {
        font-size: 1.375rem;
        line-height: 1.3;
    }

    /* ── PRODUCTS LISTING ── */
    .products-layout-wrapper {
        margin-top: 1.5rem;
    }
    .products-grid-list {
        grid-template-columns: 1fr;
    }

    /* ── MOBILE MENU ── */
    .mobile-nav-list {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.375rem !important;
    }
    /* Fix: w-full mt-4 không phải vanilla CSS class → override qua context */
    .mobile-menu-footer .kmar-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.75rem;
    }

    /* ── MODAL ── */
    .kmar-modal-container {
        border-radius: 1rem;
        max-height: 95vh;
        overflow-y: auto;
        flex-direction: column;
    }
    .modal-form-wrapper {
        flex-direction: column;
    }
    .modal-form-left {
        width: 100%;
        padding: 1.5rem;
        overflow-y: unset;
    }
    .modal-form-right {
        display: none;
    }

    /* ── ABOUT PAGE ── */
    .about-tabs-container {
        gap: 0.25rem;
    }
    .about-tab-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    .overview-alternate-row {
        gap: 1.5rem;
    }

    /* ── REP / OFFICES ── */
    .rep-profile-card {
        padding: 1.25rem;
        gap: 1.5rem;
    }
    .rep-offices-grid {
        grid-template-columns: 1fr;
    }
    .rep-support-bar {
        padding: 1rem 1.25rem;
        margin-bottom: 2rem;
    }

    /* ── PRODUCT DETAIL ── */
    .prod-detail-main-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── FOOTER ── */
    .kmar-footer {
        padding-top: 2.5rem;
        padding-bottom: 1.5rem;
    }
    .kmar-footer-container {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    /* ── SITEMAP ── */
    .sitemap-tree-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─────────────────────────────────────────────────────
 * SMALL MOBILE: ≤ 480px
 * ───────────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Container tighter */
    .kmar-container {
        padding-right: 0.875rem;
        padding-left: 0.875rem;
    }
    .kmar-header-container {
        padding: 0 0.875rem;
    }

    /* Hero - rất nhỏ */
    .kmar-hero-section {
        padding: 2rem 0 1.75rem;
    }
    .hero-title {
        font-size: 1.375rem;
    }
    /* Metrics 2 cột khi màn quá nhỏ để tránh chữ vỡ */
    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Stats 2 cột */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-val {
        font-size: 1.25rem;
    }

    /* Typography */
    .section-title {
        font-size: 1.25rem;
    }
    .subpage-title {
        font-size: 1.25rem;
    }
    .cta-content-wrapper h2 {
        font-size: 1.25rem;
    }

    /* Buttons tap-friendly */
    .kmar-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }

    /* Cards */
    .strength-card {
        padding: 1.125rem;
    }
    .cat-tab-btn {
        padding: 0.875rem;
    }

    /* Modal */
    .kmar-modal-container {
        border-radius: 0.75rem;
    }
    .modal-form-left {
        padding: 1.25rem;
    }
    .form-header h3 {
        font-size: 1.0625rem;
    }

    /* News filter pills */
    .news-pill-btn {
        padding: 0.375rem 0.875rem;
        font-size: 11px;
    }

    /* Products grid: 1 cột */
    .products-grid-list {
        grid-template-columns: 1fr;
    }

    /* Sitemap: 1 cột */
    .sitemap-tree-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile nav: 1 cột khi quá nhỏ */
    .mobile-nav-list {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    .footer-slogan {
        max-width: 100%;
    }
    .zalo-qr-box {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Search dropdown vừa màn */
    .search-dropdown-form {
        width: 90vw;
        right: -50%;
    }
}
