/*
 * 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;
}

/* Flexbox & Grid Utility Classes for Theme */
.grid { display: grid; }
.flex { display: flex; }
.hidden { display: none !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;
}

.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;
}

.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: 800;
}

.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: 800;
    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: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.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: 320px;
    margin-bottom: 0.5rem;
}

.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: monospace;
}

.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: monospace;
    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: monospace;
    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: monospace;
    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: monospace;
    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: 800;
    color: var(--color-brand-teal);
    font-family: monospace;
}

@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: 11px;
    font-weight: 700;
    color: var(--color-brand-teal);
    letter-spacing: 0.15em;
    font-family: monospace;
    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-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: monospace;
    color: var(--color-brand-teal);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.intro-badge-title {
    font-size: 0.75rem;
    font-weight: 800;
    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;
    max-width: 32rem;
    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: 800;
    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: monospace;
    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;
    overflow: hidden;
}

@media (min-width: 640px) {
    .category-details-panel {
        padding: 2.5rem;
    }
}

.category-mascot-wrapper {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    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: -3rem;
        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: monospace;
    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: monospace;
}

.cat-panel-title-area {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cat-panel-title {
    font-size: 1.25rem;
    font-weight: 800;
    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: monospace;
    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: monospace;
    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;
    }
}

.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);
}

.cert-card-item:hover {
    border-color: rgba(0, 155, 163, 0.3);
    box-shadow: var(--shadow-md);
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cert-heading {
    color: var(--color-brand-teal);
    font-weight: 800;
    font-size: 0.875rem;
    font-family: monospace;
}

@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: monospace;
    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: monospace;
    font-weight: 800;
    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;
    max-width: 56rem;
    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: 800;
    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: monospace;
}

/* 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: monospace;
}

.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 {
    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: 800;
    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;
}

.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: 800;
    color: var(--color-brand-teal);
    font-family: monospace;
    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: 3rem;
}

@media (min-width: 1024px) {
    .products-layout-wrapper {
        grid-template-columns: 3fr 9fr;
    }
}

.products-sidebar-filters {
    background-color: var(--color-slate-50);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--color-slate-200);
    text-align: left;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-slate-200);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-slate-900);
}

.sidebar-cat-tree {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-cat-tree li {
    font-size: 0.875rem;
}

.sidebar-cat-tree a {
    color: var(--color-slate-600);
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.sidebar-cat-tree a:hover, .sidebar-cat-tree li.active > a {
    color: var(--color-brand-teal);
    background-color: rgba(0, 155, 163, 0.05);
    font-weight: 600;
}

.sidebar-cat-tree ul {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-left: 1px dashed var(--color-slate-200);
}

.product-search-box {
    margin-bottom: 1.5rem;
    position: relative;
}

.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: 0.875rem;
}

.product-search-box svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-slate-400);
}

.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: monospace;
    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: 800;
    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: monospace;
    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: 800;
    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-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sitemap-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sitemap-col {
    background-color: var(--color-slate-50);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-slate-200);
}

.sitemap-col-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-slate-900);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-brand-teal);
    padding-bottom: 0.5rem;
}

.sitemap-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sitemap-list li a {
    font-size: 0.875rem;
    color: var(--color-slate-600);
    font-weight: 500;
}

.sitemap-list li a:hover {
    color: var(--color-brand-teal);
    text-decoration: underline;
}

/* 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: 800;
    color: var(--color-slate-950);
}

.kmar-404-content h2 {
    font-size: 0.875rem;
    font-weight: 800;
    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; }
}
