/* --- Design System Variables (APC Wood Theme) --- */
:root {
    /* Color Palette adapted from An Phú Cường Logo */
    --primary-color: hsl(205, 82%, 40%);     /* Logo Corporate Blue (#1271B7) */
    --primary-hover: hsl(205, 90%, 32%);
    --primary-light: hsl(205, 82%, 94%);
    
    --logo-gray: hsl(0, 0%, 35%);            /* Logo Solid Gray (#5A5A5A) */
    --secondary-color: hsl(215, 25%, 15%);   /* Dark Charcoal for structure */
    --secondary-light: hsl(215, 15%, 35%);
    
    --text-primary: hsl(215, 25%, 12%);      /* High contrast readability */
    --text-secondary: hsl(215, 12%, 40%);    /* Muted Slate Gray */
    --text-white: hsl(0, 0%, 100%);
    
    --bg-main: hsl(210, 20%, 98%);           /* Clean backdrop */
    --bg-card: hsl(0, 0%, 100%);
    --bg-dark: hsl(215, 25%, 10%);           /* Dark Footer / Accent sections */
    
    --border-color: hsl(214, 15%, 88%);
    --accent-orange: hsl(16, 85%, 53%);      /* An Cuong Wood brand reference */
    
    /* Typography & Hierarchy */
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    
    /* Sharp Geometric Layout Values */
    --border-radius-sm: 2px;
    --border-radius-md: 4px;
    --border-radius-lg: 8px;
    
    /* Perspective Solid Shadows */
    --shadow-solid-sm: 3px 3px 0px rgba(18, 113, 183, 0.1);
    --shadow-solid-md: 6px 6px 0px rgba(18, 113, 183, 0.12);
    --shadow-solid-lg: 10px 10px 0px rgba(18, 113, 183, 0.15);
    
    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base & Reset Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* --- Spacing & Gutters Constraint --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 90px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

/* Section Typography & Readability Constraints */
.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 34px;
    color: var(--secondary-color);
    line-height: 1.35;
}

.section-desc {
    font-size: 15.5px;
    color: var(--text-secondary);
    max-width: 65ch;
    margin: 16px auto 0;
    line-height: 1.7;
}

/* Diagonal Slanted Title Divider matching logo block perspective */
.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--logo-gray) 40%);
    margin: 20px auto 0;
    transform: skewX(-20deg);
}

/* Button System - Sharp & Solid */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 4px 4px 0px var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
    box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--secondary-color);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--primary-color);
}

.btn-large {
    padding: 16px 36px;
    font-size: 15px;
}

.btn-full-width {
    width: 100%;
}

/* --- App Header / Sticky Navbar --- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.app-header.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    transition: var(--transition-smooth);
}

.app-header.scrolled .header-container {
    height: 68px;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

.app-header.scrolled .brand-logo-img {
    height: 44px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-light);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

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

.nav-btn-mobile {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* --- Hero: Pure Video Section (no overlay, full natural color) --- */
.hero-section {
    position: relative;
    width: 100%;
    /* 16:9 aspect ratio for the video */
    aspect-ratio: 16 / 7;
    max-height: 85vh;
    min-height: 320px;
    overflow: hidden;
    background-color: #0a1628;
    display: block;
    padding: 0;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --- Hero Caption Bar: clean strip below video --- */
.hero-caption-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 3px solid var(--primary-color);
    padding: 28px 0;
}

.hero-caption-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hero-caption-left {
    flex: 1;
    min-width: 0;
}

.caption-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(18, 113, 183, 0.2);
    color: #60b4f0;
    border: 1px solid rgba(18, 113, 183, 0.35);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-flex;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.highlight-caption {
    color: #f59e0b;
}

.hero-caption-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.6;
}

.hero-caption-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

/* CTA buttons in caption bar */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), #1a88d8);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(18, 113, 183, 0.4);
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(18, 113, 183, 0.6);
    color: #fff;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-hero-outline:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}


/* --- Introduction Section --- */
.intro-section {
    background-color: var(--bg-card);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 55px;
    align-items: center;
}

.intro-image-container {
    position: relative;
}

.image-accent-border {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    z-index: 1;
    pointer-events: none;
}

.intro-img {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-sm);
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    box-shadow: var(--shadow-solid-md);
}

.intro-text-content h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.35;
}

.paragraph {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
    max-width: 65ch;
    line-height: 1.75;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
}

.feature-icon {
    font-size: 18px;
    color: var(--primary-color);
    background-color: var(--primary-light);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
    box-shadow: 2px 2px 0px var(--logo-gray);
}

.feature-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.feature-info p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 55ch;
}

/* --- Zalo Stock Checker Bridge Widget --- */
.zalo-stock-checker {
    background-color: var(--bg-card);
    border: 2px solid var(--primary-color);
    padding: 30px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-solid-md);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.zalo-checker-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.zalo-icon-wrapper {
    font-size: 28px;
    color: var(--primary-color);
    background-color: var(--primary-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    box-shadow: 3px 3px 0px var(--secondary-color);
    flex-shrink: 0;
}

.zalo-checker-title-block h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 4px;
    font-weight: 700;
}

.zalo-checker-title-block p {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 65ch;
}

.zalo-checker-inputs {
    display: flex;
    gap: 12px;
    width: 420px;
    flex-shrink: 0;
}

.zalo-checker-inputs input {
    flex-grow: 1;
    min-height: 44px;
}

.zalo-checker-inputs button {
    flex-shrink: 0;
    min-height: 44px;
    white-space: nowrap;
}

/* --- Sample Box Call-to-Action Banner --- */
.sample-box-banner {
    background-color: var(--secondary-color);
    border-left: 6px solid var(--primary-color);
    padding: 40px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-solid-md);
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: var(--text-white);
}

.sample-banner-content {
    max-width: 700px;
}

.sample-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sample-banner-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.sample-banner-content p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
}

/* --- Product Showcase Section Filters & Grid --- */
.search-product-box {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-solid-sm);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--border-color);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(18, 113, 183, 0.15);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-tab {
    padding: 10px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 40px;
}

.filter-tab:hover {
    color: var(--secondary-color);
    border-color: var(--logo-gray);
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: 3px 3px 0px var(--secondary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-solid-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: var(--shadow-solid-md);
    border-color: var(--primary-color);
}

.product-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #eee;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: var(--text-white);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.product-code {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.product-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.product-spec {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-btn {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    min-height: 36px;
}

.product-btn:hover {
    color: var(--primary-hover);
}

/* --- Product Detail Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-card);
    width: 90%;
    max-width: 720px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-solid-lg);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 36px;
}

.modal-product-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
}

.modal-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.modal-product-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.modal-product-info .code {
    font-size: 12.5px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.modal-product-info p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
}

.modal-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 24px;
}

.modal-specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.modal-specs-table td {
    padding: 6px 0;
}

.modal-specs-table td.spec-name {
    font-weight: 600;
    color: var(--secondary-color);
    width: 42%;
}

.modal-specs-table td.spec-val {
    color: var(--text-secondary);
}

/* --- Warehouse Lookup Section --- */
.lookup-section {
    background-color: var(--bg-card);
}

.lookup-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 0;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-solid-md);
    border: 1px solid var(--border-color);
}

.lookup-filters {
    background-color: var(--bg-card);
    padding: 36px;
    border-right: 1px solid var(--border-color);
}

.lookup-filters h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-light);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: var(--transition-smooth);
    background-color: var(--bg-main);
    min-height: 44px;
}

.form-control:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(18, 113, 183, 0.1);
}

.lookup-summary-box {
    background-color: hsl(205, 80%, 96%);
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    border-radius: 0;
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.lookup-summary-box p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.lookup-results-panel {
    padding: 36px;
    display: flex;
    flex-direction: column;
    height: 520px;
    background-color: var(--bg-main);
}

.results-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
}

.results-list {
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 10px;
}

.results-list::-webkit-scrollbar {
    width: 6px;
}
.results-list::-webkit-scrollbar-track {
    background: transparent;
}
.results-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

.warehouse-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.warehouse-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-solid-sm);
}

.warehouse-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.warehouse-card-title {
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--secondary-color);
}

.warehouse-type-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
}

.warehouse-type-badge.tong-kho {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.warehouse-type-badge.showroom {
    background-color: hsl(200, 85%, 95%);
    color: hsl(200, 85%, 45%);
}

.warehouse-address, .warehouse-phone {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.warehouse-address i, .warehouse-phone i {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.warehouse-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.warehouse-map-btn {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
}

.warehouse-map-btn:hover {
    color: var(--primary-color);
}

/* --- FAQ AI Accordion Section --- */
.faq-section {
    background-color: var(--bg-card);
}

.faq-accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-main);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-solid-sm);
}

.faq-toggle {
    width: 100%;
    padding: 22px 28px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.45;
    transition: var(--transition-smooth);
}

.faq-chevron {
    font-size: 14px;
    color: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 28px;
}

.faq-content p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-bottom: 22px;
}

/* Active FAQ item styling */
.faq-item.active {
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    box-shadow: 4px 4px 0px var(--primary-color);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-item.active .faq-content {
    max-height: 300px; /* Constrain but enough room for answer */
}

/* --- Operating Warehouse Gallery --- */
.gallery-section {
    background-color: var(--bg-main);
}

.gallery-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-solid-md);
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
    height: auto;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.3) 70%, transparent 100%);
    padding: 30px 40px;
    color: var(--text-white);
    z-index: 10;
}

.carousel-caption h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 8px;
}

.carousel-caption p {
    font-size: 13.5px;
    opacity: 0.8;
    max-width: 60ch;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition-smooth);
}

.carousel-control:hover {
    background-color: var(--text-white);
    color: var(--secondary-color);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--primary-color);
    width: 24px;
}

/* --- Contact & Lead Form --- */
.contact-section {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.contact-info-panel h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin: 16px 0 20px;
    line-height: 1.3;
}

.contact-panel-desc {
    color: #94a3b8;
    margin-bottom: 40px;
    font-size: 15px;
    max-width: 50ch;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-wrapper {
    font-size: 20px;
    color: var(--primary-light);
    background-color: rgba(18, 113, 183, 0.15);
    border: 1px solid rgba(18, 113, 183, 0.3);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    box-shadow: 2px 2px 0px var(--primary-color);
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-text .label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.detail-text .value {
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
}

.detail-text a.value:hover {
    color: var(--primary-light);
}

.social-links-area {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-sm);
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #94a3b8;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--secondary-color);
}

/* Lead Form Panel */
.contact-form-panel {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 44px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-solid-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-form-panel h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-form-panel p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.half-width {
    width: 50%;
}

.form-success-alert {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.form-success-alert.show {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    font-size: 60px;
    color: #22c55e;
    margin-bottom: 20px;
}

.form-success-alert h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-success-alert p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- Footer --- */
.app-footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.65);
    padding: 80px 0 30px;
    border-top: 2px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-section .logo-area {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 45ch;
}

.certificates-logos {
    display: flex;
    gap: 8px;
}

.cert-badge {
    background-color: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    color: var(--text-white);
}

.footer-links-section h4 {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    font-size: 13px;
}

.powered-by {
    font-size: 11px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.3);
}

.text-white {
    color: var(--text-white) !important;
}

/* --- Responsive Breakpoints (UX: Solid Fluid Grids) --- */

@media (max-width: 1024px) {
    section {
        padding: 70px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        aspect-ratio: 16 / 9;
        max-height: 60vh;
    }
    
    .hero-caption-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .hero-caption-right {
        flex-direction: row;
        width: 100%;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-img {
        aspect-ratio: 16 / 10;
        height: auto;
    }
    
    .zalo-stock-checker {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .zalo-checker-inputs {
        width: 100%;
    }
    
    .sample-box-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 30px;
    }
    
    .lookup-wrapper {
        grid-template-columns: 1fr;
    }
    
    .lookup-filters {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 30px 20px;
    }
    
    .lookup-results-panel {
        padding: 30px 20px;
    }
    
    .policies-container {
        grid-template-columns: 1fr;
    }
    
    .policies-tabs {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
    }
    
    .policy-tab-btn {
        flex: 1;
        text-align: center;
        border-left: none;
        border-bottom: 4px solid transparent;
        padding: 16px;
        white-space: nowrap;
        justify-content: center;
    }
    
    .policy-tab-btn.active {
        border-bottom-color: var(--primary-color);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand-section {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }
    
    .hero-section {
        aspect-ratio: 16 / 9;
        min-height: unset;
        max-height: unset;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-caption-bar {
        padding: 20px 0;
    }
    
    .hero-caption-desc {
        display: none;
    }
    
    .hero-caption-right {
        flex-direction: column;
    }
    
    .btn-nav {
        display: none;
    }
    
    .hero-slogan-box {
        flex-wrap: wrap;
        max-width: 100%;
        gap: 8px;
        padding: 8px 12px;
    }
    
    .slogan-word {
        font-size: 12.5px;
    }
    
    .slogan-separator {
        display: none;
    }
    
    .zalo-checker-inputs {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Mobile Menu Drawer Overlay */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background-color: var(--bg-card);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 2px solid var(--primary-color);
        overflow-y: auto;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 14px 0;
        font-size: 15.5px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-btn-mobile {
        display: block !important;
        margin-top: 20px;
        background-color: var(--primary-color);
        color: var(--text-white) !important;
        padding: 14px 20px;
        border-radius: var(--border-radius-sm);
        text-align: center;
        font-weight: 700;
        box-shadow: 3px 3px 0px var(--secondary-color);
    }
    
    /* Animated mobile hamburger */
    .mobile-toggle.open .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.open .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .half-width {
        width: 100%;
    }
    
    .contact-form-panel {
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand-section {
        grid-column: span 1;
    }
    
    .policies-content-wrapper {
        padding: 30px 16px;
    }
}

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

/* --- Floating Edit Mode Control Panel --- */
.edit-mode-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none; /* Hidden by default, only visible for logged-in admins */
    gap: 12px;
}

.edit-mode-panel button {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    padding: 14px 24px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--secondary-color);
    transition: var(--transition-smooth);
}

.edit-mode-panel .edit-btn {
    background-color: var(--accent-orange);
    color: var(--text-white);
}

.edit-mode-panel .save-btn {
    background-color: #22c55e;
    color: var(--text-white);
    box-shadow: 4px 4px 0px var(--secondary-color);
}

.edit-mode-panel button:hover {
    transform: translateY(-2px);
}

/* --- Active Visual Edit Styling (Orange Dashed Borders) --- */
.editable-text-active {
    outline: 2px dashed var(--accent-orange) !important;
    outline-offset: 4px;
    cursor: text !important;
    background-color: rgba(249, 115, 22, 0.08) !important;
}

.editable-img-active {
    position: relative;
    cursor: pointer !important;
    outline: 3px dashed var(--accent-orange) !important;
    outline-offset: -3px;
    transition: var(--transition-smooth);
}

.editable-img-active::after {
    content: "\f03e  Đổi Ảnh Thực Tế";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(249, 115, 22, 0.95);
    color: white;
    font-size: 12px;
    padding: 10px 18px;
    border-radius: 4px;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.editable-img-active:hover {
    filter: brightness(0.85);
}

/* --- Events & Partnerships Gallery Section --- */
.events-gallery-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background-color: var(--bg-main);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

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

.event-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.event-card:hover .event-img-wrapper img {
    transform: scale(1.08);
}

.event-info {
    padding: 20px;
}

.event-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.event-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Product Subpage Styles --- */
.product-subpage {
    background-color: var(--bg-main);
}

.product-subpage .main-header {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subpage-hero {
    padding: 120px 0 80px;
    text-align: center;
    color: var(--text-white);
    margin-top: 80px;
}

.sub-subtitle {
    display: inline-block;
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.subpage-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.subpage-meta {
    font-size: 16px;
    opacity: 0.85;
}

.subpage-content {
    padding: 80px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 50px;
    align-items: start;
}

.main-article {
    background-color: var(--text-white);
    border-radius: var(--border-radius-sm);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-solid-sm);
}

.article-image-box {
    width: 100%;
    max-height: 450px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 35px;
}

.article-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    border-left: 4px solid var(--accent-orange);
    padding-left: 12px;
}

.article-body p {
    font-size: 15.5px;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.article-list li {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.article-list li i {
    margin-top: 4px;
    flex-shrink: 0;
}

.text-orange {
    color: var(--accent-orange);
}

/* Specification Table */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.spec-table th, .spec-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.spec-table th {
    background-color: var(--secondary-color);
    color: var(--text-white);
    font-weight: 700;
    font-family: var(--font-heading);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:nth-child(even) {
    background-color: rgba(249, 115, 22, 0.02);
}

/* Subpage Call to Action */
.subpage-cta {
    background: linear-gradient(135deg, var(--secondary-color), #1e293b);
    color: var(--text-white);
    padding: 40px;
    border-radius: var(--border-radius-sm);
    margin-top: 50px;
    box-shadow: var(--shadow-md);
}

.subpage-cta h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.subpage-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

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

.btn-zalo:hover {
    background-color: #0056d6;
}

/* Sidebar Styles */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.sidebar-box h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.sidebar-promises {
    list-style: none;
    padding: 0;
}

.sidebar-promises li {
    font-size: 13.5px;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.sidebar-links li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.sidebar-links a:hover {
    color: var(--accent-orange);
    transform: translateX(4px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-article {
        padding: 24px 16px;
    }
    .subpage-hero {
        padding: 100px 0 50px;
    }
}

@media (max-width: 576px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    .subpage-title {
        font-size: 28px;
    }
    .subpage-cta {
        padding: 25px;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Floating Contact Widgets --- */
.floating-contact-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 24px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-btn-zalo {
    background: #0068ff; /* Zalo Official Blue */
}

.floating-btn-hotline {
    background: #e11d48; /* Premium Rose Red for hotline */
}

/* Pulsing radar animation */
.floating-btn::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.6;
    animation: pulseRadar 1.8s infinite ease-out;
    pointer-events: none;
}

@keyframes pulseRadar {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* --- Visual Editor Image Picker Media Library Grid & Thumbs --- */
.image-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 20px;
    max-height: 450px;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(11, 19, 41, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar for image-picker-grid */
.image-picker-grid::-webkit-scrollbar {
    width: 6px;
}
.image-picker-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.image-picker-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.image-picker-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

.picker-thumb-wrapper {
    background-color: #111c44;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.picker-thumb-wrapper:hover {
    transform: translateY(-3px);
    border-color: var(--accent-orange);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.15);
}

.picker-thumb-wrapper.selected {
    border: 2px solid var(--accent-orange) !important;
    background-color: rgba(249, 115, 22, 0.06);
}

.picker-thumb-wrapper.selected::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 6px;
    right: 6px;
    color: var(--accent-orange);
    font-size: 16px;
    z-index: 10;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.picker-thumb-wrapper img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.picker-thumb-wrapper:hover img {
    filter: brightness(1.1);
}

.picker-thumb-name {
    font-size: 10.5px;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.picker-thumb-wrapper:hover .picker-thumb-name {
    color: white;
}

.picker-filter-btn.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.picker-filter-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        display: inline-flex;
    }
}



