/* ========================================================
   LevelLance Service Landing — Master Production Stylesheet
   Pure Vanilla CSS with High-End Design System Tokens
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

/* --- Reset & Global Baseline --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ll-font-family, 'Prompt', 'Inter', sans-serif);
    background-color: var(--ll-bg, #f8fafc);
    color: var(--ll-text, #0f172a);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Plus Jakarta Sans', var(--ll-font-family, 'Prompt', sans-serif);
    color: var(--ll-text, #0f172a);
    font-weight: 700;
    line-height: 1.25;
}

.h1 { font-size: 2.25rem; }
.h2 { font-size: 1.85rem; }
.h3 { font-size: 1.5rem; }
.h4 { font-size: 1.25rem; }
.h5 { font-size: 1.1rem; }
.h6 { font-size: 0.95rem; }

.display-4 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; }
.display-5 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.2; }
.display-6 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; }

.lead { font-size: 1.15rem; line-height: 1.7; color: var(--ll-muted, #475569); }
.small { font-size: 0.875rem; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }
.fst-italic { font-style: italic !important; }

a {
    color: var(--ll-primary, #2563eb);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
    color: var(--ll-primary-hover, #1d4ed8);
}
.text-decoration-none { text-decoration: none !important; }
.title-link {
    color: var(--ll-text, #0f172a) !important;
    transition: color 0.2s ease;
}
.title-link:hover {
    color: var(--ll-primary, #2563eb) !important;
}

/* --- Container & Layout Sections --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.layout-section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.bg-surface {
    background-color: var(--ll-surface, #ffffff);
}
.bg-white { background-color: var(--ll-surface, #ffffff) !important; color: var(--ll-text, #0f172a); }
.bg-light { background-color: var(--ll-bg, #f8fafc) !important; color: var(--ll-text, #0f172a); }
.bg-primary {
    background: linear-gradient(135deg, var(--ll-primary-fill, #2563eb), var(--ll-secondary-fill, #4f46e5)) !important;
    color: var(--ll-on-gradient, #ffffff) !important;
}
.bg-primary.text-white { color: var(--ll-on-gradient, #ffffff) !important; }
.bg-secondary {
    background-color: var(--ll-secondary-fill, #4f46e5) !important;
    color: var(--ll-on-gradient, #ffffff) !important;
}
.bg-dark {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

.bg-gradient-hero {
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ll-primary, #2563eb) 10%, transparent) 0%, transparent 70%);
}
[data-theme="dark"] .bg-gradient-hero {
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--ll-primary, #38bdf8) 12%, transparent) 0%, transparent 70%);
}

/* --- Top Navigation Header --- */
.navbar-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ll-border, #e2e8f0);
    transition: all 0.3s ease;
}
[data-theme="dark"] .navbar-top {
    background: rgba(11, 15, 25, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ll-text, #0f172a);
    text-decoration: none;
}
.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ll-primary-fill, #2563eb), var(--ll-secondary-fill, #4f46e5));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ll-on-gradient, #ffffff);
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}
.nav-link {
    color: var(--ll-text, #0f172a);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--ll-primary, #2563eb);
    background: rgba(37, 99, 235, 0.06);
}

/* --- Navigation Dropdowns & Multi-level Flyouts --- */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}
.nav-item-dropdown:hover > .nav-dropdown-toggle,
.nav-item-dropdown.is-open > .nav-dropdown-toggle {
    color: var(--ll-primary, #2563eb);
    background: rgba(37, 99, 235, 0.06);
}
.nav-item-dropdown:hover > .nav-dropdown-toggle .nav-caret,
.nav-item-dropdown.is-open > .nav-dropdown-toggle .nav-caret {
    transform: rotate(180deg);
}

/* Level 1: Drops Downwards directly below the menu item */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.04);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    z-index: 1050;
    pointer-events: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
[data-theme="dark"] .nav-dropdown-menu {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.nav-item-dropdown:hover > .nav-dropdown-menu,
.nav-item-dropdown:focus-within > .nav-dropdown-menu,
.nav-item-dropdown.is-open > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown Links */
.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ll-text, #0f172a);
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    cursor: pointer;
}
.nav-dropdown-link:hover,
.nav-dropdown-link:focus,
.nav-dropdown-submenu:hover > .nav-dropdown-link,
.nav-dropdown-submenu.is-open > .nav-dropdown-link {
    background: rgba(37, 99, 235, 0.08);
    color: var(--ll-primary, #2563eb);
    transform: translateX(3px);
}
[data-theme="dark"] .nav-dropdown-link:hover,
[data-theme="dark"] .nav-dropdown-link:focus,
[data-theme="dark"] .nav-dropdown-submenu:hover > .nav-dropdown-link,
[data-theme="dark"] .nav-dropdown-submenu.is-open > .nav-dropdown-link {
    background: rgba(56, 189, 248, 0.12);
    color: var(--ll-primary, #38bdf8);
}

/* Level 2 Submenu: Drops/Flies out directly to the RIGHT of the menu item */
.nav-dropdown-submenu {
    position: relative;
}
.nav-submenu-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 6px;
    min-width: 210px;
    background: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.04);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    z-index: 1055;
    pointer-events: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
[data-theme="dark"] .nav-submenu-menu {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}
.nav-dropdown-submenu:hover > .nav-submenu-menu,
.nav-dropdown-submenu:focus-within > .nav-submenu-menu,
.nav-dropdown-submenu.is-open > .nav-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}
.nav-dropdown-submenu:hover > .nav-submenu-toggle .nav-submenu-caret,
.nav-dropdown-submenu.is-open > .nav-submenu-toggle .nav-submenu-caret {
    transform: translateX(2px);
    color: var(--ll-primary, #2563eb);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--ll-primary-fill, #2563eb) 0%, var(--ll-secondary-fill, #4f46e5) 100%);
    color: var(--ll-on-gradient, #ffffff) !important;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    filter: brightness(1.05);
}
.btn-outline {
    background: var(--ll-surface, #ffffff);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ll-text, #0f172a) !important;
    border-color: var(--ll-border, #e2e8f0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.btn-outline:hover {
    border-color: var(--ll-primary, #2563eb);
    color: var(--ll-primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}
.btn-outline-primary {
    background: var(--ll-surface, #ffffff);
    color: var(--ll-primary, #2563eb) !important;
    border-color: var(--ll-primary, #2563eb);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}
.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--ll-primary-fill, #2563eb) 0%, var(--ll-secondary-fill, #4f46e5) 100%);
    color: var(--ll-on-gradient, #ffffff) !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}
.btn-outline-secondary {
    background: var(--ll-surface, #ffffff);
    color: var(--ll-muted, #475569) !important;
    border-color: var(--ll-border, #e2e8f0);
}
.btn-outline-secondary:hover {
    color: var(--ll-text, #0f172a) !important;
    border-color: var(--ll-text, #0f172a);
    background: rgba(0, 0, 0, 0.04);
}
.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 14px;
}
.btn-sm {
    padding: 7px 16px;
    font-size: 0.85rem;
    border-radius: 9px;
}

/* --- Badges & Pills --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(79, 70, 229, 0.08) 100%);
    color: var(--ll-primary, #2563eb);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.category-pill {
    display: inline-block;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ll-muted, #475569);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(15, 23, 42, 0.04);
}
[data-theme="dark"] .category-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.08);
}
.badge-accent {
    display: inline-block;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

/* --- Cards & Shading System --- */
.card {
    background: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: var(--ll-radius, 16px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 12px 28px -5px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    position: relative;
}

/* Solution Cards Showcase with Accent Glow */
.solution-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ll-primary, #2563eb), var(--ll-accent, #06b6d4), var(--ll-secondary, #4f46e5));
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px -10px rgba(37, 99, 235, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    border-color: rgba(37, 99, 235, 0.45);
}
.solution-card:hover::before {
    opacity: 1;
}
.solution-title {
    font-size: 1.2rem;
    line-height: 1.4;
}
.solution-desc {
    color: var(--ll-muted, #475569);
    line-height: 1.6;
}
.solution-highlights {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.solution-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--ll-muted, #475569);
}
.solution-pricing-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(79, 70, 229, 0.05) 100%);
    border: 1px solid rgba(37, 99, 235, 0.16);
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .solution-pricing-box {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .solution-pricing-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Pricing Cards & Scrollable Layout */
.pricing-plans-scroll-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px 24px 4px;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--ll-primary, #2563eb) #f1f5f9;
}
.pricing-plans-scroll-container::-webkit-scrollbar {
    height: 10px;
}
.pricing-plans-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}
.pricing-plans-scroll-container::-webkit-scrollbar-thumb {
    background: var(--ll-primary, #2563eb);
    border-radius: 999px;
}
.pricing-plans-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--ll-primary-hover, #1d4ed8);
}

.pricing-plans-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
    padding: 6px 12px 14px 12px;
}

.pricing-plans-track::before,
.pricing-plans-track::after {
    content: '';
    margin: auto;
}

.pricing-plan-item {
    flex: 0 0 340px;
    width: 340px;
    max-width: 85vw;
    display: flex;
    flex-direction: column;
}
.pricing-plan-item .pricing-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}
@media (max-width: 576px) {
    .pricing-plan-item {
        flex: 0 0 290px;
        width: 290px;
    }
}

.pricing-card {
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
}
.pricing-card.featured-plan {
    border: 2px solid var(--ll-primary, #2563eb);
    position: relative;
    box-shadow: 0 16px 36px -8px rgba(37, 99, 235, 0.2);
}
.price-tag {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.pricing-feature-list {
    list-style: none;
    padding: 0;
}
.pricing-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--ll-muted, #475569);
}

/* Testimonial Cards */
.testimonial-card {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}
.stars {
    font-size: 1.25rem;
    letter-spacing: 2px;
}
.testimonial-quote {
    line-height: 1.7;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    background: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: 12px;
    padding: 18px 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
    border-color: var(--ll-primary, #2563eb);
    box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.1);
}
.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "＋";
    font-size: 1.2rem;
    color: var(--ll-primary, #2563eb);
    font-weight: bold;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    content: "−";
}

/* Form Controls */
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--ll-text, #0f172a);
}
.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ll-text, #0f172a);
    background-color: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ll-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

/* Range Slider */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin: 16px 0;
}
[data-theme="dark"] .form-range {
    background: #334155;
}
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ll-primary, #2563eb);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
    transition: transform 0.1s;
}
.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}
.col-12 { width: 100%; padding: 0 12px; }
.col-9 { width: 75%; padding: 0 12px; }
.col-8 { width: 66.666667%; padding: 0 12px; }
.col-6 { width: 50%; padding: 0 12px; }
.col-4 { width: 33.333333%; padding: 0 12px; }
.col-3 { width: 25%; padding: 0 12px; }
.col-md-3 { width: 25%; padding: 0 12px; }
.col-md-4 { width: 33.333333%; padding: 0 12px; }
.col-md-5 { width: 41.666667%; padding: 0 12px; }
.col-md-6 { width: 50%; padding: 0 12px; }
.col-md-7 { width: 58.333333%; padding: 0 12px; }
.col-md-8 { width: 66.666667%; padding: 0 12px; }
.col-md-9 { width: 75%; padding: 0 12px; }
.col-md-12 { width: 100%; padding: 0 12px; }
.col-lg-3 { width: 25%; padding: 0 12px; }
.col-lg-4 { width: 33.333333%; padding: 0 12px; }
.col-lg-5 { width: 41.666667%; padding: 0 12px; }
.col-lg-6 { width: 50%; padding: 0 12px; }
.col-lg-8 { width: 66.666667%; padding: 0 12px; }
.col-lg-9 { width: 75%; padding: 0 12px; }
.col-lg-12 { width: 100%; padding: 0 12px; }

.overflow-y-auto { overflow-y: auto !important; }
.overflow-x-hidden { overflow-x: hidden !important; }
.overflow-hidden { overflow: hidden !important; }

.g-3 { margin-top: -8px; margin-bottom: -8px; }
.g-3 > [class*="col-"] { padding-top: 8px; padding-bottom: 8px; }
.g-4 { margin-top: -14px; margin-bottom: -14px; }
.g-4 > [class*="col-"] { padding-top: 14px; padding-bottom: 14px; }

/* Flex & Alignment Utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }

.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-self-start { align-self: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }

/* Spacing Utilities */
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 14px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ms-2 { margin-left: 8px !important; }
.me-2 { margin-right: 8px !important; }
.mt-auto { margin-top: auto !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 14px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 36px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 14px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 36px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.p-md-5 { padding: 36px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 14px !important; padding-bottom: 14px !important; }
.py-4 { padding-top: 28px !important; padding-bottom: 28px !important; }
.py-5 { padding-top: 48px !important; padding-bottom: 48px !important; }
.px-3 { padding-left: 14px !important; padding-right: 14px !important; }
.px-4 { padding-left: 24px !important; padding-right: 24px !important; }
.px-5 { padding-left: 36px !important; padding-right: 36px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-4 { padding-top: 24px !important; }

/* Text Utilities & Colors */
.text-center { text-align: center !important; }
.text-muted { color: var(--ll-muted, #475569) !important; }
.text-primary { color: var(--ll-primary, #2563eb) !important; }
.text-success { color: #047857 !important; }
.text-warning { color: #92400e !important; }
.text-danger { color: #b91c1c !important; }
.text-secondary { color: var(--ll-secondary, #4f46e5) !important; }
.text-white { color: #ffffff !important; }
.text-dark { color: var(--ll-text, #0f172a) !important; }
.text-info { color: #075985 !important; }

/* Borders & Shadows */
.border { border: 1px solid var(--ll-border, #e2e8f0) !important; }
.border-0 { border: 0 !important; }
.border-2 { border-width: 2px !important; }
.rounded { border-radius: 12px !important; }
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important; }
.shadow { box-shadow: 0 10px 25px -4px rgba(0,0,0,0.08) !important; }
.shadow-lg { box-shadow: 0 20px 40px -8px rgba(0,0,0,0.15) !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.list-unstyled { list-style: none !important; padding-left: 0 !important; }
.cursor-pointer { cursor: pointer !important; }

/* Stats Row */
.stats-row .card {
    border-radius: 14px;
    background: var(--ll-surface, #ffffff);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.88rem;
    color: var(--ll-muted, #475569);
}

/* Floating Live Chat Widget */
.floating-chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.floating-chat-bubble, .chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--ll-primary-fill, #2563eb), var(--ll-secondary-fill, #4f46e5));
    border: none;
    color: var(--ll-on-gradient, #ffffff);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.floating-chat-bubble:hover, .chat-toggle-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.55);
}
.unread-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 13px;
    height: 13px;
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}
.chat-modal-window {
    width: 380px;
    height: 520px;
    background: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 74px;
    right: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.chat-header, .chat-modal-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--ll-primary-fill, #2563eb), var(--ll-secondary-fill, #4f46e5));
    color: var(--ll-on-gradient, #ffffff);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-messages-container {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--ll-bg, #f8fafc);
}
.chat-message {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    max-width: 82%;
    line-height: 1.45;
    word-break: break-word;
}
.chat-message.chat-msg-staff, .chat-message.agent {
    background: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    align-self: flex-start;
    color: var(--ll-text, #0f172a);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.chat-message.chat-msg-visitor, .chat-message.user {
    background: linear-gradient(135deg, var(--ll-primary-fill, #2563eb), var(--ll-secondary-fill, #4f46e5));
    color: var(--ll-on-gradient, #ffffff);
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.chat-input-row {
    padding: 12px;
    border-top: 1px solid var(--ll-border, #e2e8f0);
    display: flex;
    gap: 8px;
    background: var(--ll-surface, #ffffff);
}

/* Footer */
.footer-main {
    background: var(--ll-surface, #ffffff);
    border-top: 1px solid var(--ll-border, #e2e8f0);
    padding: 70px 0 35px;
    color: var(--ll-muted, #475569);
}
.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ll-text, #0f172a);
}

/* Responsive Media Queries */
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-block { display: block !important; }
}

@media (max-width: 991px) {
    .nav-menu { display: none; }
    .nav-menu.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--ll-surface, #ffffff);
        border-bottom: 1px solid var(--ll-border, #e2e8f0);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }
    .col-md-3 { width: 50%; }
    .col-md-4, .col-lg-4, .col-lg-5 { width: 50%; }
}

@media (max-width: 767px) {
    .col-6, .col-md-3, .col-md-4, .col-md-6, .col-lg-4, .col-lg-5 { width: 100%; }
    .layout-section { padding: 50px 0; }
    .chat-modal-window { width: calc(100vw - 32px); right: -10px; }
}

/* Specific Home & Component Classes */
.hero-headline { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; }
.hero-subheadline { font-size: 1.15rem; line-height: 1.7; color: var(--ll-muted, #475569); }
.cta-banner-widget :is(h1, h2, h3, h4, h5, h6, p, li, span, a, strong, small) {
    color: var(--ll-on-gradient, #ffffff) !important;
}
.social-link-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.solutions-grid { margin-top: 10px; }
.btn-preview-modal { cursor: pointer; }
.preview-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fs-5 { font-size: 1.25rem !important; }
.testimonial-author { margin-top: 16px; }
.faq-answer { font-size: 0.95rem; line-height: 1.6; color: var(--ll-muted, #475569); }
.contact-form-card { border-radius: 18px; }
.ajax-contact-form { width: 100%; }
.form-response-msg {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
}

/* Page & Layout Extensions */
.my-5 { margin-top: 48px !important; margin-bottom: 48px !important; }
.pt-3 { padding-top: 14px !important; }
.border-top { border-top: 1px solid var(--ll-border, #e2e8f0) !important; }
.col-4 { width: 33.333333%; padding: 0 12px; }
.col-lg-8 { width: 66.666667%; padding: 0 12px; }
.g-5 { margin-top: -24px; margin-bottom: -24px; }
.g-5 > [class*="col-"] { padding-top: 24px; padding-bottom: 24px; }
.sticky-top { position: sticky; top: 90px; z-index: 10; }
.dynamic-page-wrapper { padding: 40px 0; }
.notice-card { border-radius: 16px; }
.fs-6 { font-size: 1rem !important; }
.text-start { text-align: left !important; }
.img-fluid { max-width: 100%; height: auto; display: block; }
.gallery-thumb { border-radius: 10px; overflow: hidden; }
.wysiwyg-content { line-height: 1.8; font-size: 1.05rem; color: var(--ll-text, #0f172a); }
.wysiwyg-content p { margin-bottom: 16px; }
.wysiwyg-content h2, .wysiwyg-content h3 { margin-top: 28px; margin-bottom: 14px; }
.wysiwyg-content ul, .wysiwyg-content ol { margin-left: 24px; margin-bottom: 18px; }

/* ==========================================================================
   Image Gallery & Lightbox Modal (Grid, Masonry, List & Marquee)
   ========================================================================== */
.gallery-grid {
    display: grid;
    gap: 16px;
    width: 100%;
}
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-grid--masonry {
    display: block;
    column-gap: 16px;
}
.gallery-grid--masonry.cols-2 { column-count: 2; }
.gallery-grid--masonry.cols-3 { column-count: 3; }
.gallery-grid--masonry.cols-4 { column-count: 4; }
.gallery-grid--masonry.cols-6 { column-count: 6; }
.gallery-grid--masonry .gallery-item {
    break-inside: avoid;
    margin: 0 0 16px;
    width: 100%;
}
.gallery-grid--list {
    display: flex;
    flex-direction: column;
}
.gallery-grid--list .gallery-item {
    display: flex;
    min-height: 140px;
    aspect-ratio: auto;
}
.gallery-grid--list .gallery-item img {
    width: 38%;
    height: auto;
    min-height: 140px;
}
.gallery-grid--list .gallery-item-caption {
    position: static;
    display: flex;
    flex: 1;
    align-items: center;
    opacity: 1;
    transform: none;
    background: var(--ll-surface, #ffffff);
    color: var(--ll-text, #0f172a);
}
.gallery-item[hidden] {
    display: none !important;
}
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.gallery-pagination button {
    padding: .5rem .9rem;
    border: 1px solid var(--ll-border, #cbd5e1);
    border-radius: .5rem;
    background: var(--ll-surface, #ffffff);
    color: var(--ll-text, #0f172a);
    cursor: pointer;
}
.gallery-pagination button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

@media (max-width: 991px) {
    .gallery-grid.cols-4, .gallery-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid--masonry.cols-4,
    .gallery-grid--masonry.cols-6 { column-count: 3; }
}
@media (max-width: 767px) {
    .gallery-grid.cols-3, .gallery-grid.cols-4, .gallery-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid--masonry.cols-3,
    .gallery-grid--masonry.cols-4,
    .gallery-grid--masonry.cols-6 { column-count: 2; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr !important; }
    .gallery-grid--masonry { column-count: 1 !important; }
    .gallery-grid--list .gallery-item {
        display: block;
        min-height: 0;
    }
    .gallery-grid--list .gallery-item img {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item-aspect-1-1 { aspect-ratio: 1 / 1; }
.gallery-item-aspect-4-3 { aspect-ratio: 4 / 3; }
.gallery-item-aspect-16-9 { aspect-ratio: 16 / 9; }
.gallery-item-aspect-auto { height: auto; min-height: 200px; }

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
}
.gallery-item:hover .gallery-item-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee Infinite Horizontal Scroll */
.gallery-marquee-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.gallery-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marqueeScroll var(--marquee-speed, 25s) linear infinite;
}
.gallery-marquee-track.reverse {
    animation-direction: reverse;
}
.gallery-marquee-wrap:hover .gallery-marquee-track {
    animation-play-state: paused;
}
.gallery-marquee-track .gallery-item {
    flex: 0 0 auto;
    width: 280px;
    height: 190px;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox .lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.gallery-lightbox .lightbox-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 30px;
}
.lightbox-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding: 10px 0;
}
.lightbox-counter {
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
}
.lightbox-tools {
    display: flex;
    gap: 10px;
}
.btn-lightbox-tool {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-lightbox-tool:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.08);
}
.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.lightbox-image-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 10px;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    user-select: none;
    cursor: zoom-in;
}
.lightbox-img.zoomed {
    max-width: none;
    max-height: none;
    transform: scale(1.8);
    cursor: zoom-out;
}
.lightbox-nav-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
    flex-shrink: 0;
}
.lightbox-nav-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
}
.lightbox-caption {
    color: #f1f5f9;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
    min-height: 48px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================================
   Page Builder Dynamic Pages & Sections Full Coverage
   ======================================================== */
.dynamic-page-wrapper {
    width: 100%;
    min-height: calc(100vh - 200px);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.layout-section {
    width: 100%;
    position: relative;
    background-color: #ffffff;
}

.layout-section.bg-default {
    background-color: #ffffff;
}

.layout-section.bg-page-inherit {
    background-color: transparent !important;
}

.layout-section.bg-surface {
    background-color: #f8fafc;
}

.article-reader-widget {
    max-width: 860px;
    margin-inline: auto;
    color: var(--ll-text, #0f172a);
    line-height: 1.85;
}
.article-reader-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ll-border, #e2e8f0);
}
.article-reader-title {
    margin: 0 0 .5rem;
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.35;
}
.article-reader-meta,
.article-catalog-meta {
    color: var(--ll-muted, #64748b);
    font-size: .875rem;
}
.article-reader-intro {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--ll-primary, #2563eb);
    border-radius: 0 .75rem .75rem 0;
    background: var(--ll-surface, #f8fafc);
}
.article-reader-toc {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: .75rem;
    background: var(--ll-surface, #fff);
}
.article-reader-toc h3 {
    margin: 0 0 .5rem;
    font-size: 1rem;
}
.article-reader-toc ol {
    margin: 0;
    padding-left: 1.25rem;
}
.article-reader-chapter {
    margin: 2rem 0;
    scroll-margin-top: 2rem;
}
.article-reader-chapter > h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}
.article-reader-content img {
    max-width: 100%;
    height: auto;
}
.article-catalog-header {
    margin-bottom: 1.25rem;
}
.article-catalog-header h2 {
    margin-bottom: .35rem;
    font-size: 1.65rem;
    font-weight: 700;
}
.article-catalog-header p {
    color: var(--ll-muted, #64748b);
}
.article-catalog-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.article-catalog-item {
    overflow: hidden;
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: .85rem;
    background: var(--ll-surface, #fff);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.article-catalog-item[hidden] {
    display: none !important;
}
.article-catalog-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f1f5f9;
}
.article-catalog-item-content {
    padding: 1rem;
}
.article-catalog-category {
    color: var(--ll-primary, #2563eb);
    font-size: .8rem;
    font-weight: 600;
}
.article-catalog-item h3 {
    margin: .35rem 0 .5rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.article-catalog-item h3 a {
    color: inherit;
    text-decoration: none;
}
.article-catalog-item h3 a:hover {
    color: var(--ll-primary, #2563eb);
}
.article-catalog-item p {
    margin-bottom: .75rem;
    color: var(--ll-muted, #64748b);
    font-size: .9rem;
}
.article-catalog-list .article-catalog-items {
    grid-template-columns: 1fr;
}
.article-catalog-item-list {
    display: flex;
    align-items: stretch;
}
.article-catalog-item-list .article-catalog-cover {
    width: 220px;
    min-height: 160px;
    aspect-ratio: auto;
}
.article-catalog-shelf .article-catalog-item {
    border-bottom: 4px solid var(--ll-primary, #2563eb);
}
.article-catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.article-catalog-pagination button {
    padding: .5rem .9rem;
    border: 1px solid var(--ll-border, #cbd5e1);
    border-radius: .5rem;
    background: var(--ll-surface, #fff);
    color: var(--ll-text, #0f172a);
    cursor: pointer;
}
.article-catalog-pagination button:disabled {
    cursor: not-allowed;
    opacity: .5;
}
@media (max-width: 768px) {
    .article-catalog-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .article-catalog-item-list {
        display: flex;
    }
    .article-catalog-item-list .article-catalog-cover {
        width: 160px;
        min-height: 120px;
        aspect-ratio: auto;
        flex: 0 0 160px;
    }
    .article-catalog-item-list .article-catalog-item-content {
        flex: 1;
        min-width: 0;
    }
}
@media (max-width: 480px) {
    .article-catalog-items {
        grid-template-columns: 1fr;
    }
    .article-catalog-item-list .article-catalog-cover {
        width: 104px;
        min-height: 104px;
        flex-basis: 104px;
    }
    .article-catalog-item-list .article-catalog-item-content {
        padding: .75rem;
    }
}

/* Site-wide responsive safeguards */
img, video, iframe, canvas, svg {
    max-width: 100%;
}

@media (max-width: 991px) {
    .nav-container {
        position: relative;
        gap: 8px;
    }
    .nav-menu.show {
        z-index: 1001;
        max-height: calc(100dvh - 84px);
        overflow-y: auto;
        left: 12px;
        right: 12px;
        border-radius: 0 0 12px 12px;
    }
    .nav-actions {
        gap: 8px;
    }
    .nav-item-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-dropdown-toggle, .nav-submenu-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-dropdown-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--ll-border, #e2e8f0);
        border-radius: 0;
        padding: 4px 0 4px 10px;
        margin-left: 8px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        pointer-events: auto;
    }
    .nav-item-dropdown.is-open > .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown-submenu {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-submenu-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--ll-primary, #2563eb);
        border-radius: 0;
        padding: 4px 0 4px 10px;
        margin-left: 8px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        pointer-events: auto;
    }
    .nav-dropdown-submenu.is-open > .nav-submenu-menu {
        display: block;
    }
    .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-8, .col-lg-9 {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .navbar-top {
        height: auto;
        min-height: 64px;
    }
    .nav-container {
        min-height: 64px;
        flex-wrap: wrap;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .brand-logo {
        min-width: 0;
        max-width: calc(100% - 128px);
        font-size: 1.05rem;
    }
    .brand-logo > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-actions {
        margin-left: auto;
    }
    .nav-actions .header-cta-btn {
        display: none;
    }
    .nav-menu.show {
        top: calc(100% + 1px);
        padding: 12px;
    }
    .nav-menu.show .nav-link {
        width: 100%;
        padding: 12px;
    }
    .layout-section {
        padding: 40px 0;
    }
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        padding-right: 8px;
        padding-left: 8px;
    }
    .col-6, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7,
    .col-md-8, .col-md-9, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
    .col-lg-8, .col-lg-9 {
        width: 100%;
    }
    .dynamic-page-wrapper {
        padding: 24px 0;
    }
    .footer-main {
        padding: 40px 0 24px;
    }
    .chat-modal-window {
        position: fixed;
        right: 12px;
        bottom: 84px;
        width: calc(100vw - 24px);
        max-width: 420px;
        max-height: min(70dvh, 640px);
    }
    .preview-modal-backdrop {
        padding: 12px;
        overflow-y: auto;
    }
    .gallery-grid.cols-2, .gallery-grid.cols-3, .gallery-grid.cols-4, .gallery-grid.cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .h1 { font-size: 1.8rem; }
    .h2 { font-size: 1.55rem; }
    .h3 { font-size: 1.3rem; }
    .lead { font-size: 1rem; }
    .btn {
        max-width: 100%;
        white-space: normal;
    }
    .nav-actions .btn-primary {
        padding: 7px 10px;
        font-size: .8rem;
    }
    .gallery-grid.cols-2, .gallery-grid.cols-3, .gallery-grid.cols-4, .gallery-grid.cols-6 {
        grid-template-columns: 1fr;
    }
    .wysiwyg-content,
    .article-reader-content,
    .page-body {
        overflow-wrap: anywhere;
    }
}

.dynamic-page-wrapper,
.layout-section,
.layout-section.bg-default {
    background-color: var(--ll-bg, #f8fafc);
    color: var(--ll-text, #0f172a);
}
.layout-section.bg-surface {
    background-color: var(--ll-surface, #ffffff);
}
.layout-section.bg-primary {
    background: linear-gradient(135deg, var(--ll-primary-fill, #2563eb), var(--ll-secondary-fill, #4f46e5)) !important;
    color: var(--ll-on-gradient, #ffffff) !important;
}
.layout-section.bg-primary :is(h1, h2, h3, h4, h5, h6, p, li, span, a, strong, small, .text-white) {
    color: var(--ll-on-gradient, #ffffff) !important;
}
.layout-section.bg-dark {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
.layout-section.bg-dark :is(h1, h2, h3, h4, h5, h6, p, li, span, a, strong, small) {
    color: #f8fafc !important;
}
.badge.bg-primary,
.badge-primary {
    background: linear-gradient(135deg, var(--ll-primary-fill, #2563eb), var(--ll-secondary-fill, #4f46e5)) !important;
    color: var(--ll-on-gradient, #ffffff) !important;
}
.badge.bg-secondary {
    background: var(--ll-secondary-fill, #4f46e5) !important;
    color: var(--ll-on-gradient, #ffffff) !important;
}

.image-carousel-widget {
    max-width: 100%;
}
.image-carousel-track {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #f1f5f9;
}
.image-carousel-slide {
    display: none;
    position: relative;
    margin: 0;
}
.image-carousel-slide.is-active {
    display: block;
}
.image-carousel-slide img {
    display: block;
    width: 100%;
    max-height: 560px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.image-carousel-slide figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: .85rem 1rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(15, 23, 42, .8));
}
.image-carousel-mode-fade .image-carousel-slide {
    display: block;
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.image-carousel-mode-fade .image-carousel-track {
    display: grid;
}
.image-carousel-mode-fade .image-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.image-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    margin-top: .75rem;
}
.image-carousel-controls > button {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--ll-border, #cbd5e1);
    border-radius: 50%;
    background: var(--ll-surface, #fff);
    color: var(--ll-text, #0f172a);
    font-size: 1.35rem;
    line-height: 1;
}
.image-carousel-controls [data-carousel-dots] {
    display: flex;
    gap: .4rem;
}
.image-carousel-dot {
    width: .55rem;
    height: .55rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
}
.image-carousel-dot.is-active {
    background: var(--ll-primary, #2563eb);
}
.image-carousel-mode-cards .image-carousel-track {
    display: flex;
    gap: 1rem;
    overflow: hidden;
}
.image-carousel-mode-cards .image-carousel-slide {
    flex: 0 0 80%;
    display: none;
}
.image-carousel-mode-cards .image-carousel-slide.is-active {
    display: block;
}
.image-carousel-mode-cards .image-carousel-slide img {
    aspect-ratio: 3 / 2;
}
.timeline-list {
    position: relative;
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0 0;
    padding: 0 0 0 2.25rem;
    list-style: none;
}
.timeline-list::before {
    position: absolute;
    top: .75rem;
    bottom: .75rem;
    left: .7rem;
    width: 2px;
    background: var(--ll-border, #cbd5e1);
    content: "";
}
.timeline-item {
    position: relative;
    min-height: 2rem;
}
.timeline-marker {
    position: absolute;
    top: .05rem;
    left: -2.25rem;
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border-radius: 50%;
    background: var(--ll-primary, #2563eb);
    color: #fff;
    font-size: .8rem;
}
.timeline-date {
    color: var(--ll-primary, #2563eb);
    font-size: .8rem;
    font-weight: 700;
}
.timeline-entry h3 {
    margin: .15rem 0 .35rem;
    font-size: 1.05rem;
}
.timeline-entry p {
    margin: 0;
    color: var(--ll-muted, #64748b);
}
.progress-bar-list {
    display: grid;
    gap: 1.15rem;
}
.progress-bar-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .35rem;
    font-size: .9rem;
    font-weight: 600;
}
.progress-track {
    height: .65rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}
.progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}
.progress-fill-primary { background: #2563eb; }
.progress-fill-success { background: #16a34a; }
.progress-fill-info { background: #0891b2; }
.progress-fill-warning { background: #d97706; }
.progress-fill-danger { background: #dc2626; }
.buttons-links-widget {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
}
.buttons-links-widget .buttons-links-text-link {
    color: var(--ll-primary, #2563eb);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.buttons-links-widget .buttons-links-cta {
    padding: .75rem 1.25rem;
    font-weight: 700;
}
.buttons-links-widget .buttons-links-group-item + .buttons-links-group-item {
    margin-left: -.65rem;
    border-radius: 0;
}
.buttons-links-widget .buttons-links-group-item:first-of-type {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.buttons-links-widget .buttons-links-group-item:last-of-type {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.buttons-links-widget .buttons-links-back-top {
    margin-left: auto;
}

@media (max-width: 575px) {
    .image-carousel-slide img { aspect-ratio: 4 / 3; }
    .image-carousel-mode-cards .image-carousel-slide { flex-basis: 92%; }
}

/* Single Image Interactive Secondary Switch */
.single-image-interactive {
    position: relative;
    overflow: hidden;
    display: inline-block;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.single-image-interactive.has-secondary {
    cursor: pointer;
}
.single-image-interactive .single-image-primary,
.single-image-interactive .single-image-secondary {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.single-image-interactive .single-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

/* Effect: Fade */
.single-image-interactive.effect-fade.trigger-hover:hover .single-image-primary,
.single-image-interactive.effect-fade.trigger-click.is-active .single-image-primary {
    opacity: 0;
}
.single-image-interactive.effect-fade.trigger-hover:hover .single-image-secondary,
.single-image-interactive.effect-fade.trigger-click.is-active .single-image-secondary {
    opacity: 1;
    pointer-events: auto;
}

/* Effect: Zoom */
.single-image-interactive.effect-zoom .single-image-secondary {
    transform: scale(1.15);
}
.single-image-interactive.effect-zoom.trigger-hover:hover .single-image-primary,
.single-image-interactive.effect-zoom.trigger-click.is-active .single-image-primary {
    opacity: 0;
    transform: scale(0.92);
}
.single-image-interactive.effect-zoom.trigger-hover:hover .single-image-secondary,
.single-image-interactive.effect-zoom.trigger-click.is-active .single-image-secondary {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Effect: Slide */
.single-image-interactive.effect-slide .single-image-secondary {
    transform: translateX(100%);
}
.single-image-interactive.effect-slide.trigger-hover:hover .single-image-primary,
.single-image-interactive.effect-slide.trigger-click.is-active .single-image-primary {
    transform: translateX(-100%);
    opacity: 0;
}
.single-image-interactive.effect-slide.trigger-hover:hover .single-image-secondary,
.single-image-interactive.effect-slide.trigger-click.is-active .single-image-secondary {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Effect: 3D Flip */
.single-image-interactive.effect-flip {
    perspective: 1200px;
}
.single-image-interactive.effect-flip .single-image-primary {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}
.single-image-interactive.effect-flip .single-image-secondary {
    backface-visibility: hidden;
    transform: rotateY(180deg);
    transform-style: preserve-3d;
}
.single-image-interactive.effect-flip.trigger-hover:hover .single-image-primary,
.single-image-interactive.effect-flip.trigger-click.is-active .single-image-primary {
    transform: rotateY(-180deg);
}
.single-image-interactive.effect-flip.trigger-hover:hover .single-image-secondary,
.single-image-interactive.effect-flip.trigger-click.is-active .single-image-secondary {
    opacity: 1;
    transform: rotateY(0deg);
    pointer-events: auto;
}

/* ========================================================
   Page Builder Section Scroll Animations & Fade Engine
   GPU-Accelerated, Silky Smooth 60/120fps with Auto Repeat
   ======================================================== */

.pb-scroll-section {
    opacity: 0;
    transition-property: opacity, transform, filter;
    transition-duration: var(--pb-dur, 0.8s);
    transition-timing-function: var(--pb-ease, cubic-bezier(0.16, 1, 0.3, 1));
    transition-delay: var(--pb-del, 0s);
    will-change: opacity, transform, filter;
    backface-visibility: hidden;
}

/* Active / In-View State: Fades & slides smoothly into view */
.pb-scroll-section.pb-in-view {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0deg) !important;
    filter: blur(0px) !important;
}

/* Out-of-view States for each Animation Style */

/* 1. Fade / Fade In */
.pb-scroll-section.pb-anim-fade,
.pb-scroll-section.pb-anim-fade-in {
    transform: translateZ(0);
}

/* 2. Fade Up (Slide from bottom) */
.pb-scroll-section.pb-anim-fade-up {
    transform: translate3d(0, 52px, 0);
}

/* 3. Fade Down (Slide from top) */
.pb-scroll-section.pb-anim-fade-down {
    transform: translate3d(0, -52px, 0);
}

/* 4. Fade Left (Slide from left) */
.pb-scroll-section.pb-anim-fade-left {
    transform: translate3d(-60px, 0, 0);
}

/* 5. Fade Right (Slide from right) */
.pb-scroll-section.pb-anim-fade-right {
    transform: translate3d(60px, 0, 0);
}

/* 6. Zoom In (Scale up from smaller) */
.pb-scroll-section.pb-anim-zoom-in {
    transform: scale3d(0.88, 0.88, 1);
}

/* 7. Zoom Out (Scale down from larger) */
.pb-scroll-section.pb-anim-zoom-out {
    transform: scale3d(1.10, 1.10, 1);
}

/* 8. 3D Flip Up (Perspective tilt) */
.pb-scroll-section.pb-anim-flip-up {
    transform: perspective(1200px) rotateX(25deg) translate3d(0, 40px, 0);
    transform-origin: center bottom;
}

/* 9. Blur In (Focus in) */
.pb-scroll-section.pb-anim-blur-in {
    filter: blur(12px);
    transform: scale3d(0.97, 0.97, 1);
}

/* 10. Gentle Bounce In */
.pb-scroll-section.pb-anim-bounce-in {
    transform: translate3d(0, 56px, 0);
}

/* 11. Subtle Rotate In */
.pb-scroll-section.pb-anim-rotate-in {
    transform: rotate(-3.5deg) scale3d(0.95, 0.95, 1);
}

/* Accessibility: User preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pb-scroll-section {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

