/* ==========================================================================
   VINALOCK GLOBAL RESPONSIVE & INTERACTIVE ELEMENTS
   ========================================================================== */

/* Floating Action Buttons with Light Glassmorphism Toolboxes (Desktop & Tablet) */
.vnl-floating-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vnl-floating-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Glassmorphism Toolbox (Smart Live-Carousel Pill) */
.vnl-floating-toolbox {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #1e293b !important;
    font-family: var(--vnl-font-heading, 'Be Vietnam Pro', 'Be Vietnam Pro', sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    user-select: none;
    text-decoration: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vnl-floating-toolbox strong {
    color: #dc2626;
    font-weight: 800;
    margin-left: 3px;
}

.vnl-floating-item:hover .vnl-floating-toolbox {
    transform: translateX(-6px) scale(1.02);
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(220, 38, 38, 0.15);
}

/* Live Online Status Dot */
.vnl-status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: vnlStatusPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes vnlStatusPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Smart Message Carousel inside Toolbox */
.vnl-smart-carousel {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.vnl-carousel-item {
    display: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.vnl-carousel-item.is-active {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
}

/* Floating Action Buttons (48x48 Perfect Circles) */
.vnl-floating-btn {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
    text-decoration: none !important;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    padding: 0;
    box-sizing: border-box;
}

.vnl-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

/* 1. Hotline Button & Double Radar Waves */
.vnl-floating-btn--hotline {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.vnl-floating-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #dc2626;
    pointer-events: none;
}

.vnl-floating-pulse--1 {
    animation: vnlRadarPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.vnl-floating-pulse--2 {
    animation: vnlRadarPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) 1.2s infinite;
}

@keyframes vnlRadarPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.85;
    }

    60% {
        transform: scale(1.4);
        opacity: 0.15;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Micro-Ring Shake Animation for Phone Icon */
.vnl-icon-shake {
    animation: vnlPhoneRing 4.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes vnlPhoneRing {

    0%,
    82%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    84% {
        transform: rotate(-14deg) scale(1.08);
    }

    86% {
        transform: rotate(14deg) scale(1.08);
    }

    88% {
        transform: rotate(-10deg) scale(1.08);
    }

    90% {
        transform: rotate(10deg) scale(1.08);
    }

    92% {
        transform: rotate(-4deg);
    }

    94% {
        transform: rotate(4deg);
    }

    96% {
        transform: rotate(0deg);
    }
}

/* 2. Zalo Button & Live Online Badge */
.vnl-floating-btn--zalo {
    background: transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible;
}

.vnl-floating-btn--zalo .vnl-zalo-floating-svg {
    width: 48px;
    height: 48px;
    display: block;
    border-radius: 12px;
    filter: drop-shadow(0 4px 14px rgba(0, 104, 255, 0.38));
    transition: filter 0.25s ease;
}

.vnl-floating-btn--zalo:hover .vnl-zalo-floating-svg {
    filter: drop-shadow(0 8px 22px rgba(0, 104, 255, 0.55));
}

.vnl-floating-btn--zalo .vnl-live-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
    animation: vnlBadgeBreathe 2s ease-in-out infinite;
}

@keyframes vnlBadgeBreathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.vnl-icon-bounce {
    animation: vnlSubtleBounce 4.5s ease-in-out 2.25s infinite;
}

@keyframes vnlSubtleBounce {

    0%,
    86%,
    100% {
        transform: translateY(0);
    }

    90% {
        transform: translateY(-3px) scale(1.05);
    }

    94% {
        transform: translateY(1px);
    }

    97% {
        transform: translateY(0);
    }
}

/* 3. Top Button with Progress Ring (Clean Light Theme & Smart Flow) */
.vnl-floating-item--top {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin-top: -12px;
    pointer-events: none;
    overflow: hidden;
    transform: scale(0.8) translateY(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vnl-floating-item--top.is-visible {
    opacity: 1;
    visibility: visible;
    max-height: 60px;
    margin-top: 0;
    pointer-events: auto;
    overflow: visible;
    transform: scale(1) translateY(0);
}

.vnl-floating-btn--top {
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-right: 0 !important;
}

.vnl-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.vnl-progress-ring__bg {
    stroke: #e2e8f0;
}

.vnl-progress-ring__bar {
    stroke: #dc2626;
    transition: stroke-dashoffset 0.1s linear;
}

.vnl-top-arrow {
    position: relative;
    z-index: 2;
    color: #1e293b !important;
    transition: transform 0.2s ease;
}

.vnl-floating-btn--top:hover .vnl-top-arrow {
    transform: translateY(-2px);
    color: #dc2626 !important;
}

/* Mobile Bottom Bar (2 Columns: Hotline Red + Zalo Blue) */
.vnl-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 9998;
    padding: 8px 12px;
}

@media (max-width: 767px) {
    .vnl-mobile-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    body {
        padding-bottom: 60px !important;
    }

    /* Requirement 2: Ẩn Hotline & Zalo floating ở mobile < 768px, chỉ hiển thị nút Top */
    .vnl-floating-item--hotline,
    .vnl-floating-item--zalo,
    .vnl-floating-toolbox {
        display: none !important;
    }

    .vnl-floating-actions {
        bottom: 74px;
        right: 14px;
        pointer-events: none;
    }

    .vnl-floating-item--top {
        pointer-events: auto;
    }
}

.vnl-mobile-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border-radius: 8px;
    font-family: var(--vnl-font-heading, 'Be Vietnam Pro', sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: opacity 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.vnl-mobile-bar__btn:active {
    transform: scale(0.98);
}

.vnl-mobile-bar__btn--hotline {
    background: #dc2626 !important;
}

.vnl-mobile-bar__btn--zalo {
    background: #0068ff !important;
}

.vnl-mobile-bar__btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Consultation Modal Popup */
.vnl-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.vnl-modal-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.vnl-modal-box {
    background: #ffffff;
    border-radius: var(--vnl-radius-lg);
    width: 100%;
    max-width: 520px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.vnl-modal-backdrop.is-active .vnl-modal-box {
    transform: scale(1);
}

.vnl-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    transition: background 0.2s;
}

.vnl-modal-close:hover {
    background: #e2e8f0;
    color: var(--vnl-navy);
}

/* Modal Container & Form Enhancements */
.vnl-modal-container {
    background: #ffffff;
    border-radius: var(--vnl-radius-lg);
    width: 100%;
    max-width: 520px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.vnl-modal-backdrop.is-active .vnl-modal-container {
    transform: scale(1);
}

.vnl-modal-header {
    margin-bottom: 24px;
}

.vnl-modal-title {
    font-family: var(--vnl-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--vnl-secondary);
    margin-bottom: 6px;
}

.vnl-modal-desc {
    font-size: 14px;
    color: var(--vnl-text-muted);
    line-height: 1.5;
}

.vnl-form-group {
    margin-bottom: 16px;
}

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

.vnl-form-input,
.vnl-form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--vnl-border);
    border-radius: var(--vnl-radius-md);
    background: #f8fafc;
    color: var(--vnl-secondary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vnl-form-input:focus,
.vnl-form-textarea:focus {
    border-color: var(--vnl-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.vnl-modal-notice {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--vnl-text-muted);
}

.vnl-btn--block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
}

/* ==========================================================================
   HOMEPAGE MOBILE & TABLET COMPONENT LAYOUTS
   ========================================================================== */

/* 1. SẢN PHẨM NỔI BẬT: Slider thẻ sản phẩm */
@media (max-width: 767px) {
    .vnl-products__grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 14px !important;
        padding: 4px 16px 16px !important;
        /* margin-left: -16px !important;
        margin-right: -16px !important; */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .vnl-products__grid::-webkit-scrollbar {
        display: none;
    }

    .vnl-products__grid>.vnl-product-card {
        flex: 0 0 84% !important;
        width: 84% !important;
        max-width: 84% !important;
        min-width: 84% !important;
        scroll-snap-align: start;
    }

    .vnl-products__footer {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        margin-top: 28px !important;
    }

    .vnl-products__footer .vnl-btn {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .vnl-products__grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 16px !important;
        padding: 4px 20px 20px !important;
        /* margin-left: -20px !important;
        margin-right: -20px !important; */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .vnl-products__grid::-webkit-scrollbar {
        display: none;
    }

    .vnl-products__grid>.vnl-product-card {
        flex: 0 0 calc((100% - 24px) / 2.3) !important;
        width: calc((100% - 24px) / 2.3) !important;
        max-width: calc((100% - 24px) / 2.3) !important;
        min-width: calc((100% - 24px) / 2.3) !important;
        scroll-snap-align: start;
    }
}

/* 2. VỀ CHÚNG TÔI & VÌ SAO CHỌN VINALOCK: Mobile (< 768px) xếp 1 cột, Tablet (>= 768px) giữ 2 cột */
@media (max-width: 767px) {

    /* Section Về chúng tôi (.vnl-about) */
    .vnl-about__grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    .vnl-about__content {
        display: contents !important;
    }

    .vnl-about__content > .vnl-eyebrow {
        order: 1 !important;
        margin-bottom: -18px !important;
    }

    .vnl-about__content > .vnl-heading {
        order: 2 !important;
        margin-bottom: -14px !important;
    }

    .vnl-about__content > .vnl-desc {
        order: 3 !important;
        margin-top: 0 !important;
    }

    .vnl-about__content > .vnl-about__benefits {
        order: 4 !important;
    }

    .vnl-about__gallery {
        order: 5 !important;
        width: 100% !important;
    }

    .vnl-about__content > .vnl-about__actions {
        order: 6 !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

}

/* Section Vì sao chọn Vinalock (.vnl-why-us): Tiêu đề -> Banner Ảnh -> 4 Thẻ Cards */
@media (max-width: 1023px) {
    .vnl-why-us__grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
    }

    .vnl-why-us__content {
        display: contents !important;
    }

    .vnl-why-us__content > .vnl-eyebrow {
        order: 1 !important;
        text-align: center !important;
        width: 100% !important;
        margin-bottom: -22px !important;
    }

    .vnl-why-us__content > .vnl-heading {
        order: 2 !important;
        text-align: center !important;
        width: 100% !important;
        margin-bottom: -18px !important;
    }

    .vnl-why-us__content > .vnl-desc {
        order: 3 !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 0 !important;
        width: 100% !important;
    }

    .vnl-why-us__media {
        order: 4 !important;
        width: 100% !important;
    }

    .vnl-why-us__content > .vnl-why-us__reasons {
        order: 5 !important;
        width: 100% !important;
    }
}

/* 3. SECTION TIN TỨC: Mobile cuộn ngang 1 hàng (84% viewport), Tablet giữ nguyên */
@media (max-width: 767px) {
    .vnl-news__grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 14px !important;
        padding: 4px 16px 16px !important;
        /* margin-left: -16px !important;
        margin-right: -16px !important; */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .vnl-news__grid::-webkit-scrollbar {
        display: none;
    }

    .vnl-news__grid>.vnl-news-card {
        flex: 0 0 84% !important;
        width: 84% !important;
        max-width: 84% !important;
        min-width: 84% !important;
        scroll-snap-align: start;
    }
}

/* UX Builder Canvas Isolation */
.ux-builder-active .vnl-floating-actions,
.ux-builder-active .vnl-mobile-bar,
.ux-builder-active .vnl-modal-backdrop,
html.uxb-iframe .vnl-floating-actions,
html.uxb-iframe .vnl-mobile-bar,
html.uxb-iframe .vnl-modal-backdrop {
    display: none !important;
}

/* ==========================================================================
   SERVICES & PROJECTS LAYOUT ISOLATION & RESPONSIVE RULES
   ========================================================================== */
.vnl-service-card:hover,
.vnl-project-card:hover,
.vnl-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1), 0 4px 8px -4px rgba(0, 0, 0, 0.06);
}

.vnl-service-tab:hover,
.vnl-project-tab:hover {
    background-color: #e2e8f0;
    color: #0f172a !important;
}

.vnl-service-tab.is-active:hover,
.vnl-project-tab.is-active:hover {
    background-color: var(--vnl-primary) !important;
    color: #ffffff !important;
}

@media (max-width: 1023px) {

    .vnl-service-grid,
    .vnl-project-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }
}

@media (max-width: 767px) {

    .vnl-service-grid,
    .vnl-project-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* .vnl-service-card .vnl-card-body,
    .vnl-project-card .vnl-card-body,
    .vnl-service-card > div:last-child,
    .vnl-project-card > div:last-child {
        padding: 12px 14px 14px !important;
    } */

    .vnl-service-card h2,
    .vnl-project-card h2,
    .vnl-archive-card h2 {
        font-size: 15.5px !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }
}

/* Content Article & Media Reset (Anti-Clash with Flatsome / WP defaults) */
.vnl-entry-content,
.entry-content {
    color: #334155;
    font-size: 16px;
    line-height: 1.85;
    word-break: break-word;
}

.vnl-entry-content h2,
.entry-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fee2e2;
}

.vnl-entry-content h3,
.entry-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin: 24px 0 10px;
}

.vnl-entry-content h4,
.entry-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    line-height: 1.45;
    margin: 18px 0 8px;
}

.vnl-entry-content p,
.entry-content p {
    margin: 0 0 18px;
}

.vnl-entry-content ul,
.entry-content ul {
    list-style: disc;
    padding-left: 24px;
    margin: 0 0 20px;
}

.vnl-entry-content li,
.entry-content li {
    margin-bottom: 6px;
}

/* Responsive Images */
.vnl-entry-content img,
.entry-content img,
.vnl-imported-img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 16px auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Responsive 16:9 Video Embeds */
.vnl-entry-content iframe,
.entry-content iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: 10px;
    margin: 20px 0;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   AC-01 EDITORIAL ARTICLE LAYOUT ALIGNMENT & PSEUDO-ELEMENT SUPPRESSION
   ========================================================================== */
.vnl-article-layout::before,
.vnl-article-layout::after {
    display: none !important;
    content: none !important;
}

@media (min-width: 1024px) {
    .vnl-article-layout::before,
    .vnl-article-layout::after {
        display: none !important;
        content: none !important;
    }
}

@media (max-width: 1023px) {
    .vnl-article-layout::before,
    .vnl-article-layout::after {
        display: none !important;
        content: none !important;
    }
}

/* Responsive Tables (AC-02, AC-03, AC-04 Table Scroll Parity) */
.vnl-table-scroll-wrapper,
.vnl-specs-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 24px 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.vnl-table-scroll-wrapper table,
.vnl-specs-table-wrapper table,
.vnl-entry-content table,
.entry-content table {
    width: 100% !important;
    min-width: 580px !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0 auto !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    background-color: #ffffff !important;
    border: none !important;
    white-space: normal !important;
}

.vnl-table-scroll-wrapper th,
.vnl-specs-table-wrapper th,
.vnl-entry-content th,
.entry-content th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    padding: 14px 18px !important;
    text-align: left !important;
    font-weight: 700 !important;
    border: 1px solid #e2e8f0 !important;
}

.vnl-table-scroll-wrapper td,
.vnl-specs-table-wrapper td,
.vnl-entry-content td,
.entry-content td {
    padding: 14px 18px !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
}

.vnl-table-scroll-wrapper td:first-child,
.vnl-specs-table-wrapper td:first-child,
.vnl-entry-content td:first-child,
.entry-content td:first-child {
    font-weight: 700 !important;
    color: #1e293b !important;
    background-color: #f8fafc !important;
    width: 30% !important;
    min-width: 160px !important;
}

.vnl-table-scroll-wrapper tr:nth-child(odd),
.vnl-specs-table-wrapper tr:nth-child(odd),
.vnl-entry-content tr:nth-child(odd),
.entry-content tr:nth-child(odd) {
    background-color: #fbfcfd !important;
}

.vnl-table-scroll-wrapper tr:nth-child(even),
.vnl-specs-table-wrapper tr:nth-child(even),
.vnl-entry-content tr:nth-child(even),
.entry-content tr:nth-child(even) {
    background-color: #ffffff !important;
}

.vnl-table-scroll-wrapper tr:hover td,
.vnl-specs-table-wrapper tr:hover td,
.vnl-entry-content tr:hover td,
.entry-content tr:hover td {
    background-color: #f1f5f9 !important;
}

/* Responsive Table Wrapper for Mobile */
@media (max-width: 767px) {

    .vnl-entry-content table:not(.vnl-table-scroll-wrapper table):not(.vnl-specs-table-wrapper table),
    .entry-content table:not(.vnl-table-scroll-wrapper table):not(.vnl-specs-table-wrapper table) {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .vnl-table-scroll-wrapper table,
    .vnl-specs-table-wrapper table {
        display: table !important;
    }

    .vnl-service-grid,
    .vnl-project-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* ==========================================================================
   GLOBAL CONSULTATION MODAL ISOLATION
   ========================================================================== */
.vnl-modal-backdrop {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.vnl-modal-backdrop.is-active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.vnl-modal-container {
    background: #ffffff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    position: relative;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.vnl-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    line-height: 1;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
}

.vnl-modal-close:hover {
    color: #0f172a;
}