/*
 * Global front-end styles.
 * Prefer async <link> in header over @import for Google Fonts
 * (avoids blocking CSS; also helps TinyMCE / file preview).
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
 * Front-end default: square corners.
 * Wrapped in :where() so specificity stays 0 — template / component rules with
 * border-radius + !important (e.g. .news-ranking-box) can override cleanly.
 * Admin (.admin-body) is excluded so TinyMCE Oxide / file preview keep rounding.
 */
:where(body:not(.admin-body) *, body:not(.admin-body) *::before, body:not(.admin-body) *::after) {
    border-radius: 0 !important;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --border-color: #d9d9d9;
    --text-color: #1a1a1a;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
}

body:not(.admin-body):not(.solution-page) {
    --border-color: #d9d9d9;
}
body.solution-page {
    --border-color: #aecddb;
}

/* Global layout - Flexbox */
html {
    scrollbar-gutter: stable;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Global layout - Flexbox */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

/*  - 2400px */
.container {
    max-width: 2400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 1600px */
body:not(.products):not(.product-detail) .container {
    max-width: 1600px;
}

body.products .container,
body.product-detail .container {
    max-width: 100%;
    /* Desktop: flush left with sidebar; right inset via --lt-page-pad-r. Wrap/narrow mode overrides to equal LR. */
    padding-left: 0;
    padding-right: var(--lt-page-pad-r, 16px);
}

/* Narrow / attr-wrapped: equal horizontal inset (list template also hardens this) */
@media (max-width: 1024px) {
    body.products .products-main-section > .container,
    body.product-detail .products-main-section > .container {
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
}
body.product-detail .products-layout.is-attr-wrapped,
body.products .products-layout.is-attr-wrapped {
    width: 100%;
    max-width: 100%;
}

/*  - contact-wrapper1600px */
.content-wrapper-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/*  -  (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .content-wrapper-container {
        max-width: 100%;
        padding: 0 30px;
    }
}

/*  -  (≤768px) */
@media (max-width: 768px) {
    .content-wrapper-container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/*  -  (≤480px) */
@media (max-width: 480px) {
    .content-wrapper-container {
        padding: 0 10px;
    }
}

.navbar .container,
.touchscreen-nav .container {
    max-width: 100%;
}

/* .navbar.navbar-rapoo */

/*  -  (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

/*  -  (≤768px) */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/*  -  (≤480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar .container,
    .touchscreen-nav .container {
        padding: 0.75rem 10px;
    }
}

/* ============================================
   Touchsite shared marketing sections
   ============================================ */
.touchsite-section {
    padding: 2rem 0;
}

.touchsite-intro-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,248,252,0.96) 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.touchsite-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 1.5rem;
    align-items: center;
}

.touchsite-intro-copy {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.touchsite-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
}

.touchsite-section-title {
    font-size: clamp(1.75rem, 2.5vw, 2.6rem);
    line-height: 1.12;
    color: #0f172a;
    max-width: 16ch;
}

.touchsite-section-text {
    max-width: 64ch;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.75;
}

.touchsite-stat-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.touchsite-stat-card {
    min-height: 116px;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.touchsite-stat-value {
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 500;
    color: #111827;
    line-height: 1;
}

.touchsite-stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

.touchsite-intro-grid-home {
    min-height: 0;
}

.touchsite-intro-grid-compact {
    align-items: start;
}

.touchsite-intro-grid-compact .touchsite-intro-copy {
    gap: 0.75rem;
}

.touchsite-intro-grid-compact .touchsite-stat-list {
    align-self: stretch;
}

.touchsite-detail-intro {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(37, 99, 235, 0.08);
    padding: 1.35rem;
    margin-bottom: 1.5rem;
}

.touchsite-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.touchsite-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.touchsite-breadcrumbs a:hover {
    text-decoration: underline;
}

.touchsite-breadcrumbs-dark {
    color: rgba(226, 232, 240, 0.74);
}

.touchsite-breadcrumbs-dark a {
    color: #7dd3fc;
}

.touchsite-detail-intro-main {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.touchsite-detail-title {
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
    line-height: 1.08;
    color: #0f172a;
}

.touchsite-detail-summary {
    max-width: 72ch;
    color: #475569;
    line-height: 1.72;
}

.touchsite-detail-meta {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.touchsite-detail-meta-card {
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.touchsite-detail-meta-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.touchsite-detail-meta-value {
    font-size: 1.05rem;
    color: #0f172a;
}

.touchsite-detail-intro-dark {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.38) 0%, rgba(15, 23, 42, 0.2) 100%);
    border-color: rgba(125, 211, 252, 0.18);
}

.touchsite-detail-intro-dark .touchsite-kicker,
.touchsite-detail-intro-dark .touchsite-detail-title,
.touchsite-detail-intro-dark .touchsite-detail-meta-value {
    color: #f8fafc;
}

.touchsite-detail-intro-dark .touchsite-detail-summary,
.touchsite-detail-intro-dark .touchsite-detail-meta-label {
    color: rgba(226, 232, 240, 0.78);
}

.touchsite-detail-intro-dark .touchsite-detail-meta-card {
    background: rgba(15, 23, 42, 0.28);
    border-color: rgba(125, 211, 252, 0.14);
}

.newsletter-banner {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: linear-gradient(135deg, #eef6ff 0%, #f7fafc 52%, #eef2ff 100%) !important;
}

.newsletter-subtitle {
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .touchsite-intro-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
}

@media (max-width: 768px) {
    .touchsite-section {
        padding: 1.5rem 0;
    }

    .touchsite-section-title {
        max-width: none;
    }

    .touchsite-section-text {
        max-width: none;
    }

    .touchsite-detail-intro {
        padding: 1rem;
    }

    .touchsite-detail-meta {
        grid-template-columns: 1fr;
    }

    .news-layout-with-sidebar {
        grid-template-columns: 1fr;
    }

    .touchsite-stat-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .touchsite-stat-card {
        min-height: auto;
    }

    .content-wrapper-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* News list — left wide / right narrow; text wraps fluidly */
.news-layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 1.5rem 1.75rem;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.news-content-main {
    min-width: 0;
    container-type: inline-size;
    container-name: news-main;
}

.news-grid,
.news-grid-single-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.news-card {
    display: grid;
    grid-template-columns: var(--lt-img-w, 300px) minmax(0, 1fr);
    gap: var(--lt-card-gap, 1rem);
    column-gap: var(--lt-card-gap, 1rem);
    align-items: stretch;
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    box-sizing: border-box;
    padding-left: var(--lt-img-left, 0px);
}

.news-card-image {
    display: block;
    position: relative;
    width: min(300px, 86%);
    min-width: 0;
    max-width: min(300px, 86%);
    aspect-ratio: 300 / 210;
    height: auto;
    margin: 0.85rem auto;
    flex-shrink: 1;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 8px;
    box-sizing: border-box;
    justify-self: center;
}

.news-card-image img,
.news-card-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-weight: 400;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.1rem 1rem 0;
    min-width: 0;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.55rem;
    font-size: 0.85rem;
    color: #64748b;
}

.news-card-title {
    margin: 0 0 0.45rem;
    font-size: 1.18rem;
    line-height: 1.35;
}

.news-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.news-card-title a:hover {
    color: #2563eb;
}

.news-card-summary {
    display: none;
}

.news-card-thumbnail-intro {
    margin: 0 0 0.8rem;
    color: #475569;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 400;
}

.news-card-link:hover {
    text-decoration: underline;
}

/*  - Rapoo */
.navbar-rapoo {
    background-color: #ffffff;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 0;
    box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.45);
    overflow: visible;
}

/* Overlay nav: dark veil so white menu text stays readable on light slides */
.chrome-header-stack[data-chrome-position="overlay"]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.18) 70%, rgba(15, 23, 42, 0) 100%);
    opacity: 1;
    transition: opacity 0.25s ease;
}
.chrome-header-stack[data-chrome-position="overlay"] > * {
    position: relative;
    z-index: 1;
}
body.is-nav-scrolled .chrome-header-stack[data-chrome-position="overlay"]::before,
.chrome-header-stack[data-chrome-position="overlay"]:has(.navbar-rapoo.is-nav-scrolled)::before,
.chrome-header-stack[data-chrome-position="overlay"]:has(.navbar-rapoo.is-nav-on-light)::before {
    opacity: 0;
}

/* Light slide under overlay: frost + dark type instead of white-on-white */
.chrome-header-stack[data-chrome-position="overlay"] .navbar-rapoo.is-nav-on-light:not(.is-nav-scrolled):not(.is-scrolled) {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.4) !important;
}
.chrome-header-stack[data-chrome-position="overlay"] .navbar-rapoo.is-nav-on-light:not(.is-nav-scrolled):not(.is-scrolled) .nav-menu-rapoo > li > a {
    color: var(--nav-link-color-scrolled, #1a1a1a) !important;
    text-shadow: none;
}
.chrome-header-stack[data-chrome-position="overlay"] .navbar-rapoo.is-nav-on-light:not(.is-nav-scrolled):not(.is-scrolled) .nav-menu-rapoo > li > a:hover,
.chrome-header-stack[data-chrome-position="overlay"] .navbar-rapoo.is-nav-on-light:not(.is-nav-scrolled):not(.is-scrolled) .nav-menu-rapoo li:hover > a {
    color: var(--nav-hover-color-scrolled, var(--nav-hover-color, #1d4ed8)) !important;
}
.chrome-header-stack[data-chrome-position="overlay"] .navbar-rapoo.is-nav-on-light:not(.is-nav-scrolled):not(.is-scrolled) .nav-menu-rapoo > li > a.active {
    color: var(--nav-active-color-scrolled, var(--nav-active-color, #2563eb)) !important;
}
.chrome-header-stack[data-chrome-position="overlay"] .navbar-rapoo.is-nav-on-light:not(.is-nav-scrolled):not(.is-scrolled) .search-toggle-rapoo,
.chrome-header-stack[data-chrome-position="overlay"] .navbar-rapoo.is-nav-on-light:not(.is-nav-scrolled):not(.is-scrolled) .mobile-menu-toggle-rapoo {
    color: var(--nav-search-color-scrolled, var(--nav-link-color-scrolled, #1a1a1a)) !important;
}
.chrome-header-stack[data-chrome-position="overlay"] .navbar-rapoo:not(.is-nav-scrolled):not(.is-scrolled):not(.is-nav-on-light) .nav-menu-rapoo > li > a,
.chrome-header-stack[data-chrome-position="overlay"] .navbar-rapoo:not(.is-nav-scrolled):not(.is-scrolled):not(.is-nav-on-light) .search-toggle-rapoo,
.chrome-header-stack[data-chrome-position="overlay"] .navbar-rapoo:not(.is-nav-scrolled):not(.is-scrolled):not(.is-nav-on-light) .mobile-menu-toggle-rapoo {
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.55), 0 0 14px rgba(15, 23, 42, 0.4);
}

/* News list/detail: same overlay chrome as other pages (transparent at top, solid after scroll). */

:root {
    --navbar-height: 70px;
    --navbar-content-gap: 0px;
    --navbar-menu-line-height: normal;
    --nav-dd-duration: 0.45s;
    --nav-dd-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --chrome-topbar-height: 36px;
    /* Sticky element sits below full header (top bar + nav); JS/CSS zeroes --chrome-topbar-sticky when top bar collapses */
    --chrome-topbar-sticky: 0px;
    --chrome-debug-offset: 0px;
    --chrome-sticky-offset: calc(var(--navbar-height, 70px) + var(--chrome-topbar-sticky, 0px) + var(--chrome-debug-offset, 0px));
}

body.debug-mode-on {
    --chrome-debug-offset: 36px;
}

body.is-topbar-collapsed {
    --chrome-topbar-sticky: 0px;
}

/* Top info bar: phone / email / links / language */
.chrome-header-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.chrome-topbar {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    height: var(--chrome-topbar-height, 36px);
    max-height: var(--chrome-topbar-height, 36px);
    /* Must stay visible: language dropdown expands below top bar; hidden clips the block and breaks clicks */
    overflow: visible;
    transition: height 0.28s ease, max-height 0.28s ease, opacity 0.28s ease, padding 0.28s ease, border-width 0.28s ease;
    font-size: 13px;
    line-height: 1;
    box-sizing: border-box;
}
.chrome-header-stack:has(.chrome-lang.is-open) .chrome-topbar,
.chrome-topbar:has(.chrome-lang.is-open) {
    z-index: 1205;
}
.chrome-topbar-inner {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    padding-left: calc(var(--topbar-pad-left, var(--nav-pad-left, 24px)) + var(--topbar-left-offset-x, 0px));
    padding-right: max(0px, calc(var(--topbar-pad-right, var(--nav-pad-right, 24px)) - var(--topbar-right-offset-x, 0px)));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}
.chrome-topbar-left {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-width: 0;
    flex-wrap: nowrap;
    margin-left: 0;
}
.chrome-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-width: 0;
    flex-wrap: nowrap;
    margin-left: auto;
    margin-right: 0;
    overflow: visible;
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
}
.chrome-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.95;
}
.chrome-topbar-item:hover {
    opacity: 1;
    text-decoration: underline;
}
.chrome-topbar-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.chrome-lang {
    position: relative;
    z-index: 6;
}
.chrome-lang.is-open {
    z-index: 1210;
}
.chrome-lang-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.chrome-lang-toggle:hover,
.chrome-lang.is-open .chrome-lang-toggle {
    background: rgba(255, 255, 255, 0.14);
}
.chrome-lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 148px;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: #fff;
    color: #0f172a;
    border: 1px solid #d9d9d9;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    z-index: 1220;
    max-height: min(70vh, 360px);
    overflow-y: auto;
}
.chrome-lang-menu.is-fixed {
    position: fixed;
    top: auto;
    right: auto;
}
.chrome-lang-menu[hidden] {
    display: none !important;
}
.chrome-lang-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.45rem 0.85rem;
    font-size: 13px;
    color: #0f172a;
    cursor: pointer;
}
.chrome-lang-option:hover {
    background: #f1f5f9;
}
html.cms-translating,
html.cms-translating body {
    cursor: progress;
}
html.cms-translating .chrome-lang-toggle {
    opacity: 0.7;
}
.chrome-gtranslate-host {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
/* Hide Google Translate default top bar / branding */
.goog-te-banner-frame,
.skiptranslate iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}
body {
    top: 0 !important;
}
.goog-te-gadget,
.goog-te-gadget-simple {
    font-size: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
/* Keep custom language menu above Google overlays */
.chrome-lang-menu.is-fixed,
.chrome-lang.is-open {
    z-index: 10050 !important;
}

@media (max-width: 1024px) {
    .chrome-header-stack,
    .chrome-header-stack[data-chrome-position="overlay"],
    .chrome-header-stack[data-chrome-position="fixed"] {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
    .chrome-topbar,
    .chrome-topbar-inner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .chrome-topbar-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
        gap: 0.65rem;
    }
    .chrome-topbar-left,
    .chrome-topbar-right {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .chrome-topbar-inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
        gap: 0.5rem;
    }
    .chrome-topbar-left {
        gap: 0.65rem;
        overflow: hidden;
    }
    .chrome-topbar-item span:not(.chrome-topbar-ico) {
        display: none;
    }
    .chrome-topbar-item .chrome-topbar-ico {
        display: inline-flex;
    }
}

/* Fixed nav: reserve height for main content so it is not covered */
body.has-fixed-navbar .main-wrapper {
    padding-top: calc(var(--navbar-height, 70px) + var(--navbar-content-gap, 0px));
    gap: 0;
}

/* Prevent white bars between nav and hero from blank text nodes */
body.has-fixed-navbar .main-wrapper > .navbar-rapoo {
    margin-bottom: 0;
}
body.has-fixed-navbar .main-wrapper > .page-hero,
body.has-fixed-navbar .main-wrapper > .hero-section,
body.has-fixed-navbar .main-wrapper > .hero-section-rapoo,
body.has-fixed-navbar .main-wrapper > .page-header {
    margin-top: 0;
}

@media (max-width: 768px) {
    .navbar-rapoo {
        margin-bottom: 0;
        box-shadow: 0 12px 24px -20px rgba(15, 23, 42, 0.35);
        top: 0;
    }

    body.has-fixed-navbar .main-wrapper {
        padding-top: calc(var(--navbar-height, 56px) + var(--navbar-content-gap, 0px));
    }

    .page-hero,
    .hero-section,
    .hero-section-rapoo,
    .page-header {
        margin-top: 0;
    }
}

/*  - 1600px */
.navbar-container-rapoo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--nav-content-max-width, 1600px);
    margin: 0 auto;
    padding: 0 var(--nav-pad-right, 40px) 0 var(--nav-pad-left, 40px);
    height: var(--navbar-height, 70px);
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    width: 100%;
}

/* LOGO -  */
.nav-brand-rapoo {
    flex-shrink: 0;
    display: flex;
    align-items: var(--logo-v-align, center);
    height: 100%;
    align-self: stretch;
    box-sizing: border-box;
}

.nav-brand-rapoo a {
    display: flex;
    align-items: inherit;
    text-decoration: none;
    height: 100%;
}

.nav-brand-rapoo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Custom layout block wrappers must not break flex layout */
.navbar-container-rapoo.chrome-layout-inner > .chrome-block {
    display: contents;
}

.site-title-rapoo {
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.nav-menu-rapoo {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
    height: 100%;
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.nav-menu-rapoo li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
    isolation: isolate;
}

/*  - Rapoo */
.nav-menu-rapoo > li > a {
    color: var(--nav-link-color, #1a1a1a);
    text-decoration: none;
    transition: color 0.28s ease, transform 0.28s ease;
    display: flex;
    align-items: center;
    padding: 0 26px;
    white-space: nowrap;
    font-weight: 500;
    font-size: 15px;
    height: 100%;
    position: relative;
    border-radius: 0;
    box-sizing: border-box;
    min-width: fit-content;
    flex-shrink: 0;
    margin: 0;
    border: none;
    border-bottom: none;
    outline: none;
}

/* Text label: stretch to link height; underline width matches label text */
.nav-menu-rapoo > li > a .nav-link-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    height: 100%;
}

/* Single underline: expands from center; length matches menu text */
.nav-menu-rapoo > li > a .nav-link-label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--nav-ul-offset, 0px);
    height: var(--nav-ul-thickness, 2px);
    background: var(--nav-ul-color, currentColor);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--nav-ul-duration, 0.42s) cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    opacity: 0.95;
}

/* Do not draw lines on anchor pseudo-elements; avoid duplicate underlines */
.nav-menu-rapoo > li > a::after {
    content: none !important;
    display: none !important;
}

.nav-menu-rapoo > li > a:hover {
    color: var(--nav-hover-color, #1d4ed8);
    background: transparent;
    border-bottom: none;
    transform: none;
    padding: 0 26px;
    margin: 0;
}

.navbar-rapoo[data-nav-underline="1"] .nav-menu-rapoo > li > a:hover .nav-link-label::after,
.navbar-rapoo[data-nav-underline="1"] .nav-menu-rapoo li:hover > a .nav-link-label::after,
.navbar-rapoo[data-nav-underline="1"] .nav-menu-rapoo > li > a.active .nav-link-label::after,
.navbar-rapoo[data-nav-underline="1"] .nav-menu-rapoo .has-dropdown:focus-within > a .nav-link-label::after,
[data-nav-underline="1"] .nav-menu-rapoo > li > a:hover .nav-link-label::after,
[data-nav-underline="1"] .nav-menu-rapoo li:hover > a .nav-link-label::after,
[data-nav-underline="1"] .nav-menu-rapoo > li > a.active .nav-link-label::after,
.navbar-rapoo[data-nav-hover-anim="underline"]:not([data-nav-underline]) .nav-menu-rapoo > li > a:hover .nav-link-label::after,
.navbar-rapoo[data-nav-hover-anim="underline"]:not([data-nav-underline]) .nav-menu-rapoo li:hover > a .nav-link-label::after,
.navbar-rapoo[data-nav-hover-anim="underline"]:not([data-nav-underline]) .nav-menu-rapoo > li > a.active .nav-link-label::after,
[data-nav-hover-anim="underline"]:not([data-nav-underline]) .nav-menu-rapoo > li > a:hover .nav-link-label::after,
[data-nav-hover-anim="underline"]:not([data-nav-underline]) .nav-menu-rapoo li:hover > a .nav-link-label::after {
    transform: scaleX(1);
}

.navbar-rapoo[data-nav-underline="0"] .nav-menu-rapoo > li > a .nav-link-label::after,
[data-nav-underline="0"] .nav-menu-rapoo > li > a .nav-link-label::after {
    content: none !important;
    display: none !important;
}

.nav-menu-rapoo > li > a.active {
    color: var(--nav-active-color, #2563eb);
    border-bottom: none;
}

.nav-menu-rapoo li:hover > a {
    color: var(--nav-hover-color, #1d4ed8);
    background: transparent;
    border-bottom: none;
    transform: none;
    padding: 0 26px;
    margin: 0;
}

.nav-menu-rapoo li > a.active:hover {
    color: var(--nav-active-color, #2563eb);
    border-bottom: none;
}

/* Hover animation overrides (motion; underline via data-nav-underline) */
.navbar-rapoo[data-nav-hover-anim="lift"] .nav-menu-rapoo > li > a:hover,
.navbar-rapoo[data-nav-hover-anim="lift"] .nav-menu-rapoo li:hover > a,
[data-nav-hover-anim="lift"] .nav-menu-rapoo > li > a:hover,
[data-nav-hover-anim="lift"] .nav-menu-rapoo li:hover > a {
    transform: translateY(-2px);
}
.navbar-rapoo[data-nav-hover-anim="scale"] .nav-menu-rapoo > li > a:hover,
.navbar-rapoo[data-nav-hover-anim="scale"] .nav-menu-rapoo li:hover > a,
[data-nav-hover-anim="scale"] .nav-menu-rapoo > li > a:hover,
[data-nav-hover-anim="scale"] .nav-menu-rapoo li:hover > a {
    transform: scale(1.04);
}

.nav-menu-rapoo .vertical-dropdown > a {
    position: relative;
    z-index: 1;
    will-change: auto;
}

.nav-menu-rapoo .vertical-dropdown:hover > a {
    z-index: 1003;
    transform: none;
    margin: 0;
    padding: 0 26px;
}

.nav-search-rapoo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-toggle-rapoo {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nav-search-color, var(--nav-link-color, #1a1a1a));
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-toggle-rapoo:hover {
    color: var(--nav-search-hover-color, var(--nav-hover-color, #444));
}

.search-toggle-rapoo svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.mobile-menu-toggle-rapoo {
    display: none !important;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a1a;
    padding: 8px;
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-menu-toggle-rapoo:hover {
    color: #444;
}

.nav-menu-rapoo {
    position: relative;
}

.nav-menu-rapoo .has-dropdown .dropdown-arrow {
    font-size: 0;
    opacity: 0.55;
    margin-left: 6px;
    padding: 0;
    margin-right: -2px;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease, opacity 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    position: relative;
    color: currentColor;
}
.nav-menu-rapoo .has-dropdown .dropdown-arrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.nav-menu-rapoo .has-dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 0.85;
}

.nav-menu-rapoo .has-dropdown {
    position: relative;
    flex-shrink: 0;
    isolation: isolate;
}

.nav-menu-rapoo .vertical-dropdown {
    position: relative;
    flex-shrink: 0;
    isolation: isolate;
}

.nav-menu-rapoo .dropdown-menu:not(.products-grid-menu):not(.vertical-menu) {
    display: none;
    position: fixed;
    /* Default like product panel: JS sets top; fallback to top bar + nav height without JS */
    top: var(--nav-mega-top, calc(var(--chrome-topbar-height, 0px) + var(--navbar-height, 70px) + var(--chrome-debug-offset, 0px)));
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    list-style: none;
    min-height: var(--nav-dd-height, auto);
    padding: var(--nav-dd-pad-top, 2.5rem) calc((100vw - min(var(--nav-dd-size, 1600px), 100vw - 40px)) / 2) var(--nav-dd-pad-bottom, 2.5rem);
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    z-index: 1000;
    overflow: visible;
    gap: 0;
    column-gap: 2rem;
    row-gap: 0;
    justify-items: stretch;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    --dropdown-columns: 4;
}

.nav-menu-rapoo .dropdown-menu:not(.products-grid-menu):not(.vertical-menu)::before {
    content: "";
    position: fixed;
    top: var(--nav-mega-top, calc(var(--chrome-topbar-height, 0px) + var(--navbar-height, 70px) + var(--chrome-debug-offset, 0px)));
    left: 0;
    right: 0;
    width: 100vw;
    height: auto;
    bottom: 0;
    min-height: var(--nav-dd-height, auto);
    background: var(--nav-dropdown-bg, #ffffff);
    background-image: repeating-linear-gradient(
        to right,
        transparent,
        transparent calc((100% / var(--dropdown-columns)) - 0.5px),
        rgba(226, 232, 240, 0.9) calc((100% / var(--dropdown-columns)) - 0.5px),
        rgba(226, 232, 240, 0.9) calc(100% / var(--dropdown-columns))
    );
    box-shadow: var(--nav-dd-shadow, 0 18px 45px -22px rgba(15, 23, 42, 0.35));
    border-bottom: var(--nav-dd-border-bottom, 0) solid var(--nav-dd-border-color, #e5e7eb);
    z-index: -1;
    pointer-events: none;
    box-sizing: border-box;
}

/* Mobile / click: display toggle. Desktop: mode-based show/hide via data-nav-dd-anim */
.nav-menu-rapoo .has-dropdown.is-open > .dropdown-menu {
    display: grid;
}

.nav-menu-rapoo .has-dropdown.is-open > .dropdown-menu.grid-layout {
    display: block;
}

@media (min-width: 769px) {
    .nav-menu-rapoo .has-dropdown > .dropdown-menu {
        display: grid;
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        /* Default curtain: fixed position, panel slides down / rolls up */
        transform: none;
        transform-origin: top center;
        clip-path: inset(0 0 100% 0);
        overflow: hidden;
        transition:
            visibility var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            clip-path var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1));
    }

    .nav-menu-rapoo .has-dropdown > .dropdown-menu.grid-layout,
    .nav-menu-rapoo .has-dropdown > .dropdown-menu.products-grid-menu {
        display: block;
    }

    .nav-menu-rapoo .has-dropdown > .dropdown-menu::before {
        opacity: 1;
        transform: none;
        transform-origin: top center;
        clip-path: inset(0 0 100% 0);
        transition:
            clip-path var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1));
    }

    .nav-menu-rapoo:not(.active) .has-dropdown:hover > .dropdown-menu,
    .nav-menu-rapoo:not(.active) .has-dropdown:focus-within > .dropdown-menu,
    .nav-menu-rapoo:not(.active) .has-dropdown.is-open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        clip-path: inset(0 0 0 0);
    }

    .nav-menu-rapoo:not(.active) .has-dropdown:hover > .dropdown-menu::before,
    .nav-menu-rapoo:not(.active) .has-dropdown:focus-within > .dropdown-menu::before,
    .nav-menu-rapoo:not(.active) .has-dropdown.is-open > .dropdown-menu::before {
        opacity: 1;
        transform: none;
        clip-path: inset(0 0 0 0);
    }

    .nav-menu-rapoo .has-dropdown:hover .dropdown-arrow,
    .nav-menu-rapoo .has-dropdown:focus-within .dropdown-arrow,
    .nav-menu-rapoo .has-dropdown.is-open .dropdown-arrow {
        transform: rotate(180deg);
        opacity: 0.85;
    }

    /* —— Fade: opacity only —— */
    .navbar-rapoo[data-nav-dd-anim="fade"] .has-dropdown > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim="fade"] .has-dropdown > .dropdown-menu::before,
    [data-nav-dd-anim="fade"] .nav-menu-rapoo .has-dropdown > .dropdown-menu,
    [data-nav-dd-anim="fade"] .nav-menu-rapoo .has-dropdown > .dropdown-menu::before {
        opacity: 0;
        transform: none;
        clip-path: none;
        overflow: visible;
        transition:
            opacity var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            visibility var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1));
    }

    /* —— Slide down only: no fade, visible motion —— */
    .navbar-rapoo[data-nav-dd-anim="slide"] .has-dropdown > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim="slide"] .has-dropdown > .dropdown-menu::before,
    [data-nav-dd-anim="slide"] .nav-menu-rapoo .has-dropdown > .dropdown-menu,
    [data-nav-dd-anim="slide"] .nav-menu-rapoo .has-dropdown > .dropdown-menu::before {
        opacity: 1;
        transform: translate3d(0, -36px, 0);
        clip-path: none;
        overflow: visible;
        transition:
            visibility var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            transform var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1));
    }

    /* —— Fade + slight slide down —— */
    .navbar-rapoo[data-nav-dd-anim="fade-slide"] .has-dropdown > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim="fade-slide"] .has-dropdown > .dropdown-menu::before,
    [data-nav-dd-anim="fade-slide"] .nav-menu-rapoo .has-dropdown > .dropdown-menu,
    [data-nav-dd-anim="fade-slide"] .nav-menu-rapoo .has-dropdown > .dropdown-menu::before {
        opacity: 0;
        transform: translate3d(0, -24px, 0);
        clip-path: none;
        overflow: visible;
        transition:
            opacity var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            visibility var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            transform var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1));
    }

    /* —— Slight scale —— */
    .navbar-rapoo[data-nav-dd-anim="scale"] .has-dropdown > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim="scale"] .has-dropdown > .dropdown-menu::before,
    [data-nav-dd-anim="scale"] .nav-menu-rapoo .has-dropdown > .dropdown-menu,
    [data-nav-dd-anim="scale"] .nav-menu-rapoo .has-dropdown > .dropdown-menu::before {
        opacity: 0;
        transform: scale(0.92);
        clip-path: none;
        overflow: visible;
        transition:
            opacity var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            visibility var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            transform var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1));
    }

    /* —— Curtain (default): fixed frame, slide down / roll up —— */
    .navbar-rapoo[data-nav-dd-anim="roll"] .has-dropdown > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim="roll"] .has-dropdown > .dropdown-menu::before,
    [data-nav-dd-anim="roll"] .nav-menu-rapoo .has-dropdown > .dropdown-menu,
    [data-nav-dd-anim="roll"] .nav-menu-rapoo .has-dropdown > .dropdown-menu::before {
        opacity: 1;
        transform: none;
        clip-path: inset(0 0 100% 0);
        overflow: hidden;
        transition:
            visibility var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            clip-path var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1));
    }

    /* —— No animation —— */
    .navbar-rapoo[data-nav-dd-anim="none"] .has-dropdown > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim="none"] .has-dropdown > .dropdown-menu::before,
    [data-nav-dd-anim="none"] .nav-menu-rapoo .has-dropdown > .dropdown-menu,
    [data-nav-dd-anim="none"] .nav-menu-rapoo .has-dropdown > .dropdown-menu::before {
        opacity: 0;
        transform: none;
        clip-path: none;
        transition: none !important;
    }
    .navbar-rapoo[data-nav-dd-anim="none"] .has-dropdown:hover > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim="none"] .has-dropdown:focus-within > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim="none"] .has-dropdown.is-open > .dropdown-menu,
    [data-nav-dd-anim="none"] .nav-menu-rapoo .has-dropdown:hover > .dropdown-menu,
    [data-nav-dd-anim="none"] .nav-menu-rapoo .has-dropdown:focus-within > .dropdown-menu,
    [data-nav-dd-anim="none"] .nav-menu-rapoo .has-dropdown.is-open > .dropdown-menu {
        transition: none !important;
    }

    /* Expanded state must override collapsed styles from modes above (desktop bar only) */
    .navbar-rapoo[data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown:hover > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown:focus-within > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown.is-open > .dropdown-menu,
    [data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown:hover > .dropdown-menu,
    [data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown:focus-within > .dropdown-menu,
    [data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown.is-open > .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        clip-path: inset(0 0 0 0) !important;
    }

    .navbar-rapoo[data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown:hover > .dropdown-menu::before,
    .navbar-rapoo[data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown:focus-within > .dropdown-menu::before,
    .navbar-rapoo[data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown.is-open > .dropdown-menu::before,
    [data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown:hover > .dropdown-menu::before,
    [data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown:focus-within > .dropdown-menu::before,
    [data-nav-dd-anim] .nav-menu-rapoo:not(.active) .has-dropdown.is-open > .dropdown-menu::before {
        opacity: 1 !important;
        transform: none !important;
        clip-path: inset(0 0 0 0) !important;
    }

    .navbar-rapoo[data-nav-dd-anim="roll"] .has-dropdown:hover > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim="roll"] .has-dropdown:focus-within > .dropdown-menu,
    .navbar-rapoo[data-nav-dd-anim="roll"] .has-dropdown.is-open > .dropdown-menu,
    [data-nav-dd-anim="roll"] .nav-menu-rapoo .has-dropdown:hover > .dropdown-menu,
    [data-nav-dd-anim="roll"] .nav-menu-rapoo .has-dropdown:focus-within > .dropdown-menu,
    [data-nav-dd-anim="roll"] .nav-menu-rapoo .has-dropdown.is-open > .dropdown-menu {
        overflow: hidden !important;
    }
}

/* News / Services vertical dropdown: click (.active) only; stay in frame; left-aligned text */
.nav-menu-rapoo .vertical-dropdown {
    position: relative;
    overflow: visible;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    right: auto !important;
    width: var(--nav-vdd-size, 240px) !important;
    max-width: min(var(--nav-vdd-size, 240px), calc(100vw - 16px)) !important;
    min-width: 0;
    min-height: var(--nav-vdd-height, auto);
    padding: 0 !important;
    margin: 0;
    /* Center with main menu items (translate to avoid transform animation conflicts) */
    translate: -50% 0;
    background: #ffffff;
    border-radius: var(--nav-vdd-radius, 8px);
    border: 1px solid var(--nav-vdd-border-color, #e5e7eb);
    border-bottom: var(--nav-vdd-border-bottom, 1px) solid var(--nav-vdd-border-color, #e5e7eb);
    box-shadow: var(--nav-vdd-shadow, 0 12px 28px rgba(15, 23, 42, 0.14));
    list-style: none;
    z-index: 1002;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: auto;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu::before,
.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu::after {
    display: none !important;
    content: none !important;
}

.nav-menu-rapoo .vertical-dropdown.is-open > .dropdown-menu.vertical-menu {
    display: flex !important;
    flex-direction: column;
}

@media (min-width: 769px) {
    .nav-menu-rapoo .vertical-dropdown > .dropdown-menu.vertical-menu {
        display: flex !important;
        flex-direction: column;
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        transform-origin: top center;
        clip-path: inset(0 0 100% 0);
        overflow: hidden;
        transition:
            visibility var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            clip-path var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1));
    }

    .nav-menu-rapoo:not(.active) .vertical-dropdown:hover > .dropdown-menu.vertical-menu,
    .nav-menu-rapoo:not(.active) .vertical-dropdown:focus-within > .dropdown-menu.vertical-menu,
    .nav-menu-rapoo:not(.active) .vertical-dropdown.is-open > .dropdown-menu.vertical-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        clip-path: inset(0 0 0 0);
    }

    .navbar-rapoo[data-nav-dd-anim="fade"] .vertical-dropdown > .dropdown-menu.vertical-menu,
    [data-nav-dd-anim="fade"] .nav-menu-rapoo .vertical-dropdown > .dropdown-menu.vertical-menu {
        opacity: 0;
        transform: none;
        clip-path: none;
        overflow: visible;
        transition:
            opacity var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            visibility var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1));
    }

    .navbar-rapoo[data-nav-dd-anim="slide"] .vertical-dropdown > .dropdown-menu.vertical-menu,
    [data-nav-dd-anim="slide"] .nav-menu-rapoo .vertical-dropdown > .dropdown-menu.vertical-menu {
        opacity: 1;
        transform: translate3d(0, -20px, 0);
        clip-path: none;
        overflow: visible;
    }

    .navbar-rapoo[data-nav-dd-anim="fade-slide"] .vertical-dropdown > .dropdown-menu.vertical-menu,
    [data-nav-dd-anim="fade-slide"] .nav-menu-rapoo .vertical-dropdown > .dropdown-menu.vertical-menu {
        opacity: 0;
        transform: translate3d(0, -16px, 0);
        clip-path: none;
        overflow: visible;
    }

    .navbar-rapoo[data-nav-dd-anim="scale"] .vertical-dropdown > .dropdown-menu.vertical-menu,
    [data-nav-dd-anim="scale"] .nav-menu-rapoo .vertical-dropdown > .dropdown-menu.vertical-menu {
        opacity: 0;
        transform: scale(0.92);
        clip-path: none;
        overflow: visible;
    }

    .navbar-rapoo[data-nav-dd-anim="roll"] .vertical-dropdown > .dropdown-menu.vertical-menu,
    [data-nav-dd-anim="roll"] .nav-menu-rapoo .vertical-dropdown > .dropdown-menu.vertical-menu {
        opacity: 1;
        transform: none;
        clip-path: inset(0 0 100% 0);
        overflow: hidden;
        transition:
            visibility var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1)),
            clip-path var(--nav-dd-duration, 0.45s) var(--nav-dd-ease, cubic-bezier(0.22, 1, 0.36, 1));
    }

    .navbar-rapoo[data-nav-dd-anim="none"] .vertical-dropdown > .dropdown-menu.vertical-menu,
    [data-nav-dd-anim="none"] .nav-menu-rapoo .vertical-dropdown > .dropdown-menu.vertical-menu {
        transition: none !important;
        transform: none;
    }

    .navbar-rapoo[data-nav-dd-anim] .nav-menu-rapoo:not(.active) .vertical-dropdown:hover > .dropdown-menu.vertical-menu,
    .navbar-rapoo[data-nav-dd-anim] .nav-menu-rapoo:not(.active) .vertical-dropdown:focus-within > .dropdown-menu.vertical-menu,
    .navbar-rapoo[data-nav-dd-anim] .nav-menu-rapoo:not(.active) .vertical-dropdown.is-open > .dropdown-menu.vertical-menu,
    [data-nav-dd-anim] .nav-menu-rapoo:not(.active) .vertical-dropdown:hover > .dropdown-menu.vertical-menu,
    [data-nav-dd-anim] .nav-menu-rapoo:not(.active) .vertical-dropdown:focus-within > .dropdown-menu.vertical-menu,
    [data-nav-dd-anim] .nav-menu-rapoo:not(.active) .vertical-dropdown.is-open > .dropdown-menu.vertical-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        clip-path: inset(0 0 0 0) !important;
    }
}

.nav-menu-rapoo .vertical-dropdown.dropdown-align-right > .dropdown-menu.vertical-menu {
    left: auto !important;
    right: 0 !important;
    translate: none;
}
.nav-menu-rapoo .vertical-dropdown.dropdown-align-left > .dropdown-menu.vertical-menu {
    left: 0 !important;
    right: auto !important;
    translate: none;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li:last-child {
    border-bottom: none;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li::before,
.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li::after {
    display: none !important;
    content: none !important;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: var(--nav-vdd-item-pad-y, 0.7rem) var(--nav-vdd-item-pad-x, 0.75rem) !important;
    gap: 0.5rem;
    text-align: left !important;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    border: none !important;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    transform: none !important;
    box-shadow: none !important;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu > li:first-child > a {
    padding-top: calc(var(--nav-vdd-item-pad-y, 0.7rem) + var(--nav-vdd-pad-top, 0px)) !important;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu > li:last-child > a {
    padding-bottom: calc(var(--nav-vdd-item-pad-y, 0.7rem) + var(--nav-vdd-pad-bottom, 0px)) !important;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu > li:only-child > a {
    padding-top: calc(var(--nav-vdd-item-pad-y, 0.7rem) + var(--nav-vdd-pad-top, 0px)) !important;
    padding-bottom: calc(var(--nav-vdd-item-pad-y, 0.7rem) + var(--nav-vdd-pad-bottom, 0px)) !important;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu > li:hover,
.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu > li > a:hover {
    background: var(--nav-dropdown-hover-bg, #f8fafc);
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li a::before {
    display: none !important;
    content: none !important;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li a:hover {
    color: #1d4ed8;
    background: var(--nav-dropdown-hover-bg, #f8fafc);
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li a:hover::before {
    display: none !important;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li a .dropdown-item-image {
    width: 28px;
    height: 28px;
    margin: 0 !important;
    flex-shrink: 0;
    border: none;
    box-shadow: none;
    border-radius: 4px;
    object-fit: contain;
    background: transparent;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li a:hover .dropdown-item-image {
    transform: none !important;
    box-shadow: none !important;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li a .dropdown-item-title {
    flex: 1;
    text-align: left !important;
    font-size: 0.95rem;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu-rapoo .vertical-dropdown .dropdown-menu.vertical-menu li a .dropdown-item-subtitle {
    display: none;
}

.nav-menu-rapoo .dropdown-menu li {
    position: relative;
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
}

.nav-menu-rapoo .dropdown-menu li a {
    color: #1f2937;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.15rem;
    padding: 0.4rem 0;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 400;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    height: 100%;
    border-radius: 0;
    white-space: normal;
    background: transparent;
    border: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.nav-menu-rapoo .dropdown-menu li a:hover {
    color: #0f172a;
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 16px 36px -24px rgba(59, 130, 246, 0.45);
}

.nav-menu-rapoo .dropdown-menu li a .dropdown-item-image {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background-color: transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-menu-rapoo .dropdown-menu li + li::before {
    content: "";
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    top: 10%;
    bottom: 10%;
    width: 1.5px;
    background: rgba(226, 232, 240, 0.9);
    pointer-events: none;
}

.nav-menu-rapoo .dropdown-menu li:nth-child(4n + 1)::before {
    display: none;
}

.nav-menu-rapoo .dropdown-menu li a:hover .dropdown-item-image {
    border-color: transparent;
    box-shadow: none;
    transform: translateY(-2px) scale(1.05);
}

.nav-menu-rapoo .has-dropdown {
    position: relative;
}

.nav-menu-rapoo .has-dropdown > .dropdown-menu:not(.products-grid-menu):not(.vertical-menu) {
    position: fixed !important;
    /* Same height as product panel: JS sets --nav-mega-top / top; fallback to chrome bottom */
    top: var(--nav-mega-top, calc(var(--chrome-topbar-height, 0px) + var(--navbar-height, 70px) + var(--chrome-debug-offset, 0px))) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.nav-menu-rapoo .dropdown-menu li a .dropdown-item-title {
    font-size: 1.05rem;
    font-weight: 400;
    color: #0f172a;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu-rapoo .dropdown-menu li a .dropdown-item-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: #475569;
    line-height: 1.45;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu-rapoo .dropdown-menu li a:hover .dropdown-item-subtitle {
    color: #0f172a;
}

@media (max-width: 1640px) {
    .nav-menu-rapoo .dropdown-menu {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 1280px) {
    .nav-menu-rapoo .dropdown-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-left: 20px;
        padding-right: 20px;
        --dropdown-columns: 3;
    }
}

@media (max-width: 1024px) {
    .nav-menu-rapoo .dropdown-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 20px;
        padding-right: 20px;
        --dropdown-columns: 2;
    }

    .nav-menu-rapoo .dropdown-menu li::before {
        display: block;
    }

    .nav-menu-rapoo .dropdown-menu li:nth-child(2n + 1)::before {
        display: none;
    }
}

/* z-index */
.nav-menu-rapoo > li {
    position: relative;
    z-index: 1;
}

.nav-menu-rapoo > li:hover {
    z-index: 1001; /* z-index */
}

.nav-menu-rapoo .dropdown-menu {
    z-index: 1002;
}

@media (max-width: 768px) {
    .nav-menu-rapoo .dropdown-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none;
        box-shadow: none;
        padding: 1rem 0;
        margin: 0;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        transform: none;
        left: auto;
        gap: 1rem;
        justify-content: flex-start;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        --dropdown-columns: 1;
    }
    
    .nav-menu-rapoo .dropdown-menu li {
        display: block;
        padding: 0;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .nav-menu-rapoo .dropdown-menu li a {
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        gap: 0.5rem;
        border-radius: 12px;
        border-width: 1px;
        background: rgba(248, 250, 252, 0.9);
    }
    
    .nav-menu-rapoo .has-dropdown.is-open > .dropdown-menu {
        display: grid;
    }
    
    .nav-menu-rapoo .dropdown-menu li::after {
        display: none;
    }
    
    .nav-menu-rapoo .dropdown-menu li a .dropdown-item-image {
        width: 48px;
        height: 48px;
        padding: 6px;
        border-radius: 12px;
        margin-right: 0;
    }
}

.nav-menu-rapoo .dropdown-menu.grid-layout .item-image {
    width: 130px;
    height: 130px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.nav-menu-rapoo .dropdown-menu.grid-layout .grid-item a:hover .item-image {
    border-color: #d9d9d9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-menu-rapoo .dropdown-menu.grid-layout .item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-menu-rapoo .dropdown-menu.grid-layout .grid-item a:hover .item-image img {
    transform: scale(1.08);
}

.nav-menu-rapoo .dropdown-menu.grid-layout .item-title {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.nav-menu-rapoo .dropdown-menu.grid-layout .grid-item a:hover .item-title {
    color: #0284c7;
}

@media (max-width: 1200px) {
    .nav-menu-rapoo .dropdown-menu.grid-layout {
        min-width: min(960px, calc(100vw - 60px));
        padding: 1.75rem 1.5rem;
    }
    .nav-menu-rapoo .dropdown-menu.grid-layout .grid-container {
        gap: 1.25rem;
    }
    .nav-menu-rapoo .dropdown-menu.grid-layout .item-image {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 992px) {
    .nav-menu-rapoo .dropdown-menu.grid-layout {
        min-width: min(820px, calc(100vw - 40px));
        padding: 1.5rem 1.25rem;
    }
    .nav-menu-rapoo .dropdown-menu.grid-layout .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    .nav-menu-rapoo .dropdown-menu.grid-layout .item-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .nav-menu-rapoo .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        min-width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-left: 0;
        border-right: 0;
        padding: 1.25rem 1.5rem;
    }
    .nav-menu-rapoo .dropdown-menu.grid-layout {
        padding: 1.25rem 1.25rem;
        min-width: 100%;
    }
    .nav-menu-rapoo .dropdown-menu.grid-layout .grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .nav-menu-rapoo .dropdown-menu.grid-layout .item-image {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .nav-menu-rapoo .dropdown-menu.grid-layout .grid-container {
        grid-template-columns: 1fr;
    }
    .nav-menu-rapoo .dropdown-menu.grid-layout .item-image {
        width: 75px;
        height: 75px;
    }
    .nav-menu-rapoo .dropdown-menu.grid-layout .grid-item a {
        padding: 12px;
    }
}

/* ============================================
   Rapoo -
   ============================================ */

@media (max-width: 1024px) and (min-width: 769px) {
    .navbar-container-rapoo {
        padding: 0 30px;
    }
    
    .nav-menu-rapoo > li > a {
        padding: 0 12px;
        font-size: 14px;
    }
}

/*  - Rapoo */
@media (max-width: 768px) {
    .navbar-container-rapoo {
        padding: 0 56px 0 14px;
        height: 56px;
        position: relative;
    }
    
    .nav-brand-rapoo img {
        height: 32px;
    }
    
    .site-title-rapoo {
        font-size: 18px;
    }
    
    .mobile-menu-toggle-rapoo {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute !important;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        margin: 0 !important;
    }
    
    .nav-search-rapoo {
        display: none;
    }
    
    
    .nav-menu-rapoo {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        margin: 0;
        border-top: 1px solid #f0f0f0;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu-rapoo.active {
        max-height: calc(100vh - 56px);
        opacity: 1;
        visibility: visible;
        padding: 0;
        overflow-y: auto;
    }
    
    .nav-menu-rapoo > li {
        width: 100%;
        margin: 0;
        padding: 0;
        height: auto;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu-rapoo > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu-rapoo > li > a {
        padding: 10px 16px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #1a1a1a;
        font-size: 15px;
        height: auto;
        min-height: 0;
        line-height: 1.3;
    }
    
    .nav-menu-rapoo > li > a:hover {
        background-color: #f8f8f8;
    }
    
    /* Arrow already rendered in markup — no underline pseudo on mobile drawers */
    .nav-menu-rapoo .has-dropdown > a::after,
    .nav-menu-rapoo .has-dropdown > a .nav-link-label::after {
        content: none !important;
        display: none !important;
    }
    
    .nav-menu-rapoo .has-dropdown.is-open > a::after,
    .nav-menu-rapoo .has-dropdown.is-open > a .nav-link-label::after {
        content: none !important;
        display: none !important;
    }
    
}

/* ============================================
    - Rapoo
   ============================================ */

.search-overlay-rapoo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay-rapoo.active {
    opacity: 1;
    visibility: visible;
}

.search-container-rapoo {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    padding: 0;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay-rapoo.active .search-container-rapoo {
    transform: translateY(0);
}

.search-header-rapoo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.search-header-rapoo h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
}

.search-close-rapoo {
    background: none;
    border: none;
    font-size: 24px;
    color: #444;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-close-rapoo:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

.search-form-rapoo {
    display: flex;
    padding: 1.5rem;
    gap: 0.75rem;
}

.search-input-rapoo {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input-rapoo:focus {
    border-color: #1a1a1a;
}

.search-submit-rapoo {
    padding: 0.875rem 2rem;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-submit-rapoo:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    .search-overlay-rapoo {
        padding-top: 50px;
    }
    
    .search-container-rapoo {
        width: 95%;
        margin: 0 10px;
    }
    
    .search-header-rapoo {
        padding: 1rem;
    }
    
    .search-form-rapoo {
        padding: 1rem;
        flex-direction: column;
    }
    
    .search-submit-rapoo {
        width: 100%;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: var(--warning-color);
    color: var(--white);
}

.btn-warning:hover {
    background-color: #d68910;
}

.btn-success {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: #27ae60;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

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

.table th {
    background-color: var(--light-color);
    font-weight: 400;
    color: var(--text-color);
}

.table tr:hover {
    background-color: #f8f9fa;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Global layout - Flexbox */
.main-content {
    flex: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.content-box {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.footer {
    background-color: #4b0f0f;
    color: #9ca3af;
    text-align: center;
    padding: 1.25rem 0;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.footer .container {
    max-width: 100%;
}

.footer-meta {
    margin: 0;
    font-size: 0.9rem;
    color: #9ca3af;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-meta a:hover {
    text-decoration: none;
    color: #f3f4f6;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
}

.file-icon {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border-radius: 4px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.file-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: var(--white);
    padding: 2rem 0;
}

.admin-sidebar .logo {
    padding: 0 2rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 0.5rem;
}

.admin-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.admin-menu a:hover,
.admin-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background-color: var(--bg-color);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-title {
    font-size: 2rem;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    
    .file-card {
        min-width: 100%;
    }
    
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    
    .nav-menu .dropdown-menu {
        position: static;
        display: none;
        min-width: 100%;
        max-width: 100%;
        box-shadow: none;
        background-color: var(--bg-color);
        padding: 0.5rem 0;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        left: auto;
        transform: none;
    }
    
    .nav-menu .has-dropdown.active .dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            max-height: 500px;
            transform: translateY(0);
        }
    }
    
    .nav-menu .dropdown-menu a {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 1.5rem; 
        width: 100%;
        position: relative;
    }
    
    .nav-menu .dropdown-menu a:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%; 
        height: 1px;
        background-color: var(--border-color);
    }
    
    .nav-menu .dropdown-menu a:last-child {
        
    }
    
    
    .nav-menu .dropdown-menu-image,
    .nav-menu .dropdown-menu-image img {
        display: none !important;
    }
    
    
    .nav-menu .dropdown-menu a {
        padding-left: 1.5rem;
    }
    
    .nav-menu .dropdown-menu-title {
        width: 100%;
        flex: 1;
    }
    
    .nav-menu .dropdown-menu-item {
        width: 100%;
    }
    
    
    .nav-menu .dropdown-menu a .menu-icon {
        margin-right: 0.75rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-brand a {
        font-size: 1.2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/*  (Hero Section) */
.hero-section {
    position: relative;
    width: 100%;
    color: #ffffff;
    padding: 1.5rem 0;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0f172a;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(37, 99, 235, 0.64) 100%),
        url('/assets/uploads/2025/11/20251107181645_accd40ec.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    text-align: center;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .hero-content p {
        font-size: 1.05rem;
    }
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    /* With fixed nav, main-wrapper has padding-top; do not pull hero up or clip slides */
    margin-top: 0;
    box-shadow: 0 24px 70px -40px rgba(15, 23, 42, 0.6);
    width: 100%;
    max-width: none !important; /* Do not narrow via rules outside .main-wrapper section{max-width:100%} */
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    --page-hero-height-base: 300px;
    --page-hero-bg-height-base: var(--page-hero-height-base);
    --page-hero-height-num: 300; /* Unitless, for calc(100vw * n / designWidth) */
    --page-hero-bg-height-num: var(--page-hero-height-num);
    --page-hero-design-width: 1920;
    --page-hero-slide-fit: cover;
    /*
     * Scale with viewport width; honor admin px as-is (no min/max clamp).
     * Wider viewports grow taller; keep aspect ratio to reduce cropping of bg/slides.
     */
    --page-hero-height: calc(100vw * var(--page-hero-height-num) / var(--page-hero-design-width, 1920));
    --page-hero-bg-height: calc(100vw * var(--page-hero-bg-height-num) / var(--page-hero-design-width, 1920));
    /* Explicit height so admin px params shrink/grow the box (not image-intrinsic). */
    --page-hero-box-height: max(var(--page-hero-height), var(--page-hero-bg-height));
    height: var(--page-hero-box-height);
    min-height: var(--page-hero-box-height);
    max-height: var(--page-hero-box-height);
    overflow: hidden;
}

/* Direct hero under main: full shell width (debug narrow shell stays inside shell, no bleed) */
.main-wrapper > .page-hero {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: stretch;
}

.page-hero-bg-layer {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    background-color: var(--page-hero-bg-color, #0f172a);
    background-image: var(--page-hero-bg-image, none);
    background-size: var(--page-hero-bg-fit, cover);
    background-position: var(--page-hero-bg-position, center center);
    background-repeat: no-repeat;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

.page-hero-bg-layer .page-hero-media-bg {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: var(--page-hero-bg-fit, cover);
    object-position: var(--page-hero-bg-position, center center);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/*
 * UNIFIED hero shell (cover / contain / fill / none):
 * Admin height box is always used — never collapse. Fit only changes object-fit.
 * News + every other page share this path so backgrounds cannot “disappear”.
 */
.page-hero.page-hero--has-bg {
    height: var(--page-hero-box-height) !important;
    min-height: var(--page-hero-box-height) !important;
    max-height: var(--page-hero-box-height) !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    aspect-ratio: auto !important;
}
.page-hero.page-hero--has-bg > .page-hero-bg-layer {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    overflow: hidden !important;
    z-index: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: var(--page-hero-bg-color, #0f172a);
    background-image: var(--page-hero-bg-image, none);
    background-size: var(--page-hero-bg-fit, cover);
    background-position: var(--page-hero-bg-position, center center);
    background-repeat: no-repeat;
}
.page-hero.page-hero--has-bg > .page-hero-bg-layer > .page-hero-media-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: var(--page-hero-bg-fit, cover) !important;
    object-position: var(--page-hero-bg-position, center center) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.page-hero.page-hero--has-bg > .page-hero-bg-layer > .page-hero-bg-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
}
.page-hero.page-hero--has-bg > .page-hero-slides {
    position: relative;
    z-index: 2;
    min-height: var(--page-hero-box-height);
    height: 100%;
}
.page-hero.page-hero--has-bg .page-hero-slide,
.page-hero.page-hero--has-bg .page-hero-inner {
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Explicit fit aliases (same shell; only object-fit differs) */
.page-hero--bg-fit-cover > .page-hero-bg-layer > .page-hero-media-bg,
.page-hero--bg-fit-cover .page-hero-media img.page-hero-media-bg { object-fit: cover !important; }
.page-hero--bg-fit-contain > .page-hero-bg-layer > .page-hero-media-bg,
.page-hero--bg-fit-contain .page-hero-media img.page-hero-media-bg { object-fit: contain !important; }
.page-hero--bg-fit-fill > .page-hero-bg-layer > .page-hero-media-bg,
.page-hero--bg-fit-fill .page-hero-media img.page-hero-media-bg { object-fit: fill !important; }
.page-hero--bg-fit-none > .page-hero-bg-layer > .page-hero-media-bg,
.page-hero--bg-fit-none .page-hero-media img.page-hero-media-bg { object-fit: none !important; }

.page-hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--page-hero-overlay, rgba(15, 23, 42, 0.45));
}

/* Slide-only contain (no shared bg layer): still use admin box */
.page-hero--fit-contain {
    height: var(--page-hero-box-height);
    min-height: var(--page-hero-box-height);
    max-height: var(--page-hero-box-height);
}
.page-hero--fit-contain > .page-hero-slides,
.page-hero--fit-contain .page-hero-slide,
.page-hero--fit-contain .page-hero-inner {
    min-height: 100%;
    height: 100%;
}

/* Device preview shells: scale by shell width, not full viewport */
html.debug-device-mobile .page-hero,
html.debug-device-tablet .page-hero,
html.debug-device-desktop .page-hero,
html.is-debug-framed .page-hero {
    --page-hero-height: calc(var(--cms-device-w, 1600px) * var(--page-hero-height-num) / var(--page-hero-design-width, 1920));
    --page-hero-bg-height: calc(var(--cms-device-w, 1600px) * var(--page-hero-bg-height-num) / var(--page-hero-design-width, 1920));
    --page-hero-box-height: max(var(--page-hero-height), var(--page-hero-bg-height));
    height: var(--page-hero-box-height);
    min-height: var(--page-hero-box-height);
    max-height: var(--page-hero-box-height);
}
/* Device preview keeps the same fixed box for all bg fits (no contain collapse). */
html.debug-device-mobile .page-hero.page-hero--has-bg,
html.debug-device-tablet .page-hero.page-hero--has-bg,
html.debug-device-desktop .page-hero.page-hero--has-bg,
html.is-debug-framed .page-hero.page-hero--has-bg {
    height: var(--page-hero-box-height) !important;
    min-height: var(--page-hero-box-height) !important;
    max-height: var(--page-hero-box-height) !important;
}

.page-hero-slides {
    position: relative;
    z-index: 2;
    min-height: var(--page-hero-height);
}

.page-hero--has-bg .page-hero-slide,
.page-hero--image-overlay .page-hero-slide,
.page-hero--image-float .page-hero-slide {
    background: transparent;
}

.page-hero--has-bg .page-hero-slide::after,
.page-hero--image-overlay .page-hero-slide::after,
.page-hero--image-float .page-hero-slide::after {
    /* Overlay on bg/media layer only; avoid double darkening */
    display: none;
}

.page-hero-slide {
    position: relative;
    padding: 0;
    min-height: var(--page-hero-height);
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--page-hero-anim-ms, 600ms) ease, transform var(--page-hero-anim-ms, 600ms) ease;
    background: var(--page-hero-slide-color, #0f172a);
    z-index: 0;
}

.page-hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--page-hero-slide-overlay, var(--page-hero-overlay, rgba(15, 23, 42, 0.45)));
    z-index: 0;
    pointer-events: none;
}

.page-hero-slide.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Animation variants */
.page-hero--effect-fade .page-hero-slides {
    position: relative;
}
.page-hero--effect-fade .page-hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    transition: opacity var(--page-hero-anim-ms, 600ms) ease;
}
.page-hero--effect-fade .page-hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.page-hero--effect-slide-up .page-hero-slide {
    transform: translateY(28px);
}
.page-hero--effect-slide-up .page-hero-slide.is-active {
    transform: translateY(0);
}

.page-hero--effect-zoom .page-hero-slide {
    transform: scale(1.06);
}
.page-hero--effect-zoom .page-hero-slide.is-active {
    transform: scale(1);
}

.page-hero--effect-none .page-hero-slide {
    transition: none;
    transform: none;
}
.page-hero--effect-none .page-hero-slide.is-active {
    transform: none;
}

.page-hero--effect-slide-left .page-hero-slide {
    transform: translateX(12%);
    opacity: 0;
}
.page-hero--effect-slide-left .page-hero-slide.is-active {
    transform: translateX(0);
    opacity: 1;
}

.page-hero--effect-slide-right .page-hero-slide {
    transform: translateX(-12%);
    opacity: 0;
}
.page-hero--effect-slide-right .page-hero-slide.is-active {
    transform: translateX(0);
    opacity: 1;
}

.page-hero--effect-wipe .page-hero-slide {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
    visibility: visible;
}
.page-hero--effect-wipe .page-hero-slide.is-active {
    clip-path: inset(0 0 0 0);
    z-index: 2;
    animation: hero-wipe-in var(--page-hero-anim-ms, 600ms) ease both;
}

.page-hero--effect-flip .page-hero-slides {
    perspective: 1400px;
}
.page-hero--effect-flip .page-hero-slide {
    transform: rotateY(78deg);
    opacity: 0;
    transform-origin: center center;
}
.page-hero--effect-flip .page-hero-slide.is-active {
    transform: rotateY(0deg);
    opacity: 1;
}

.page-hero--effect-blinds .page-hero-slide,
.page-hero--effect-blinds-v .page-hero-slide {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.page-hero--effect-blinds .page-hero-slide.is-active,
.page-hero--effect-blinds-v .page-hero-slide.is-active {
    z-index: 2;
}
.page-hero--effect-blinds .page-hero-slide.is-active {
    animation: hero-blinds-h var(--page-hero-anim-ms, 600ms) ease both;
}
.page-hero--effect-blinds-v .page-hero-slide.is-active {
    animation: hero-blinds-v var(--page-hero-anim-ms, 600ms) ease both;
}

@keyframes hero-wipe-in {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes hero-blinds-h {
    from {
        clip-path: polygon(
            0% 6.25%, 100% 6.25%, 100% 6.25%, 0% 6.25%,
            0% 18.75%, 100% 18.75%, 100% 18.75%, 0% 18.75%,
            0% 31.25%, 100% 31.25%, 100% 31.25%, 0% 31.25%,
            0% 43.75%, 100% 43.75%, 100% 43.75%, 0% 43.75%,
            0% 56.25%, 100% 56.25%, 100% 56.25%, 0% 56.25%,
            0% 68.75%, 100% 68.75%, 100% 68.75%, 0% 68.75%,
            0% 81.25%, 100% 81.25%, 100% 81.25%, 0% 81.25%,
            0% 93.75%, 100% 93.75%, 100% 93.75%, 0% 93.75%
        );
    }
    to {
        clip-path: polygon(
            0% 0%, 100% 0%, 100% 12.5%, 0% 12.5%,
            0% 12.5%, 100% 12.5%, 100% 25%, 0% 25%,
            0% 25%, 100% 25%, 100% 37.5%, 0% 37.5%,
            0% 37.5%, 100% 37.5%, 100% 50%, 0% 50%,
            0% 50%, 100% 50%, 100% 62.5%, 0% 62.5%,
            0% 62.5%, 100% 62.5%, 100% 75%, 0% 75%,
            0% 75%, 100% 75%, 100% 87.5%, 0% 87.5%,
            0% 87.5%, 100% 87.5%, 100% 100%, 0% 100%
        );
    }
}

@keyframes hero-blinds-v {
    from {
        clip-path: polygon(
            6.25% 0%, 6.25% 0%, 6.25% 100%, 6.25% 100%,
            18.75% 0%, 18.75% 0%, 18.75% 100%, 18.75% 100%,
            31.25% 0%, 31.25% 0%, 31.25% 100%, 31.25% 100%,
            43.75% 0%, 43.75% 0%, 43.75% 100%, 43.75% 100%,
            56.25% 0%, 56.25% 0%, 56.25% 100%, 56.25% 100%,
            68.75% 0%, 68.75% 0%, 68.75% 100%, 68.75% 100%,
            81.25% 0%, 81.25% 0%, 81.25% 100%, 81.25% 100%,
            93.75% 0%, 93.75% 0%, 93.75% 100%, 93.75% 100%
        );
    }
    to {
        clip-path: polygon(
            0% 0%, 12.5% 0%, 12.5% 100%, 0% 100%,
            12.5% 0%, 25% 0%, 25% 100%, 12.5% 100%,
            25% 0%, 37.5% 0%, 37.5% 100%, 25% 100%,
            37.5% 0%, 50% 0%, 50% 100%, 37.5% 100%,
            50% 0%, 62.5% 0%, 62.5% 100%, 50% 100%,
            62.5% 0%, 75% 0%, 75% 100%, 62.5% 100%,
            75% 0%, 87.5% 0%, 87.5% 100%, 75% 100%,
            87.5% 0%, 100% 0%, 100% 100%, 87.5% 100%
        );
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero--effect-blinds .page-hero-slide.is-active,
    .page-hero--effect-blinds-v .page-hero-slide.is-active,
    .page-hero--effect-wipe .page-hero-slide.is-active {
        animation: none;
        clip-path: none;
    }
    .page-hero--effect-slide-left .page-hero-slide,
    .page-hero--effect-slide-right .page-hero-slide,
    .page-hero--effect-flip .page-hero-slide {
        transform: none;
    }
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    min-height: var(--page-hero-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--page-hero-pad-y, 2rem) var(--page-hero-pad-x, 2.5rem);
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.page-hero--align-left .page-hero-inner { justify-content: flex-start; }
.page-hero--align-center .page-hero-inner { justify-content: center; }
.page-hero--align-right .page-hero-inner { justify-content: flex-end; }
.page-hero--valign-top .page-hero-inner { align-items: flex-start; }
.page-hero--valign-center .page-hero-inner { align-items: center; }
.page-hero--valign-bottom .page-hero-inner { align-items: flex-end; }

.page-hero--align-left .page-hero-content { text-align: left; align-items: flex-start; }
.page-hero--align-center .page-hero-content { text-align: center; align-items: center; }
.page-hero--align-right .page-hero-content { text-align: right; align-items: flex-end; }

.page-hero-inner > .page-hero-content {
    flex: 0 1 auto;
    width: 100%;
    max-width: var(--page-hero-content-max, 760px);
}

.page-hero-content {
    max-width: var(--page-hero-content-max, 760px);
    width: 100%;
    color: inherit;
    text-align: left;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0;
    position: relative;
    z-index: 3;
}

.page-hero-align-left { align-self: flex-start !important; text-align: left !important; }
.page-hero-align-center { align-self: center !important; text-align: center !important; }
.page-hero-align-right { align-self: flex-end !important; text-align: right !important; }
.page-hero-actions.page-hero-align-left { justify-content: flex-start; width: 100%; }
.page-hero-actions.page-hero-align-center { justify-content: center; width: 100%; }
.page-hero-actions.page-hero-align-right { justify-content: flex-end; width: 100%; }

/* Default: slide image as full-bleed overlay so text align works */
.page-hero--image-overlay .page-hero-inner,
.page-hero--image-float .page-hero-inner {
    flex-direction: column;
    background: transparent;
}
.page-hero--image-overlay .page-hero-slide,
.page-hero--image-float .page-hero-slide {
    overflow: hidden;
    width: 100%;
}

/*
 * Stacked effects: inactive slides must not sit in document flow (they would
 * double the hero height). Keep only the active slide in flow.
 */
.page-hero--effect-stack.page-hero--image-overlay .page-hero-slide,
.page-hero--effect-stack.page-hero--image-float .page-hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    min-height: 0;
    height: 100%;
}
.page-hero--effect-stack.page-hero--image-overlay .page-hero-slide.is-active,
.page-hero--effect-stack.page-hero--image-float .page-hero-slide.is-active {
    position: relative;
    height: auto;
    min-height: var(--page-hero-height);
}
/* Full-bleed bg on slide, full hero width; not limited by inner max-width */
.page-hero--image-overlay .page-hero-media--fullbleed,
.page-hero--image-float .page-hero-media--fullbleed,
.page-hero--image-overlay .page-hero-media,
.page-hero--image-float .page-hero-media {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    min-width: 0 !important;
    z-index: 1;
}
.page-hero--image-overlay .page-hero-media img.page-hero-media-foreground,
.page-hero--image-float .page-hero-media img.page-hero-media-foreground {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: var(--page-hero-slide-fit, cover);
    object-position: var(--page-hero-slide-position, center center);
}
/* Full-bleed overlay must respect fit-*; hard-coded cover breaks contain mode */
.page-hero--fit-contain.page-hero--image-overlay .page-hero-media,
.page-hero--fit-contain.page-hero--image-float .page-hero-media,
.page-hero--bg-fit-contain.page-hero--image-overlay .page-hero-media,
.page-hero--bg-fit-contain.page-hero--image-float .page-hero-media {
    background-color: var(--page-hero-slide-color, var(--page-hero-bg-color, #0b1220));
}
.page-hero--fit-contain.page-hero--image-overlay .page-hero-media img.page-hero-media-foreground,
.page-hero--fit-contain.page-hero--image-float .page-hero-media img.page-hero-media-foreground,
.page-hero--bg-fit-contain.page-hero--image-overlay .page-hero-media img.page-hero-media-foreground,
.page-hero--bg-fit-contain.page-hero--image-float .page-hero-media img.page-hero-media-foreground {
    object-fit: contain !important;
    object-position: var(--page-hero-slide-position, center center) !important;
}
.page-hero--image-overlay .page-hero-media::after,
.page-hero--image-float .page-hero-media::after {
    display: block;
}
.page-hero--image-side .page-hero-media::after,
.page-hero--image-side-rev .page-hero-media::after {
    display: block;
}
.page-hero--image-overlay .page-hero-slides,
.page-hero--image-float .page-hero-slides {
    position: relative;
    width: 100%;
    min-height: var(--page-hero-box-height, var(--page-hero-height));
    height: 100%;
}

/* Text floats over slides */
.page-hero--image-float .page-hero-inner.is-float {
    position: relative;
}
.page-hero--image-float .page-hero-content--float {
    position: absolute;
    inset: 0;
    z-index: 3;
    max-width: none !important;
    width: 100% !important;
    height: 100%;
    margin: 0;
    pointer-events: none;
}
.page-hero--image-float .page-hero-content--float > * {
    position: absolute;
    margin: 0;
    pointer-events: auto;
    max-width: min(90%, var(--page-hero-content-max, 760px));
}
.page-hero .page-hero-subtitle.is-pos,
.page-hero .page-hero-title.is-pos,
.page-hero .page-hero-description.is-pos,
.page-hero .page-hero-actions.is-pos {
    position: absolute;
    margin: 0;
    max-width: min(90%, var(--page-hero-content-max, 760px));
}
.page-hero-content:has(> .is-pos) {
    position: relative;
    min-height: inherit;
    width: 100%;
}
.page-hero--image-side-rev .page-hero-inner.has-foreground {
    flex-direction: row-reverse;
}

.page-hero-bg-layer .page-hero-media-bg,
.page-hero-media img.page-hero-media-bg {
    z-index: 1;
    object-fit: var(--page-hero-bg-fit, cover);
    object-position: var(--page-hero-bg-position, center center);
    background-color: var(--page-hero-bg-color, #0f172a);
}
.page-hero--bg-fit-cover .page-hero-bg-layer .page-hero-media-bg,
.page-hero--bg-fit-cover .page-hero-media img.page-hero-media-bg { object-fit: cover; }
.page-hero--bg-fit-contain .page-hero-bg-layer .page-hero-media-bg,
.page-hero--bg-fit-contain .page-hero-media img.page-hero-media-bg { object-fit: contain; }
.page-hero--bg-fit-fill .page-hero-bg-layer .page-hero-media-bg,
.page-hero--bg-fit-fill .page-hero-media img.page-hero-media-bg { object-fit: fill; }
.page-hero--bg-fit-none .page-hero-bg-layer .page-hero-media-bg,
.page-hero--bg-fit-none .page-hero-media img.page-hero-media-bg { object-fit: none; }

.page-hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-hero-title {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.page-hero-description {
    font-size: clamp(1rem, 2.1vw, 1.3rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}
.page-hero-description p,
.page-hero-description ul,
.page-hero-description ol {
    margin: 0 0 0.45em;
}
.page-hero-description p:last-child,
.page-hero-description ul:last-child,
.page-hero-description ol:last-child {
    margin-bottom: 0;
}
.page-hero-description a {
    color: #fde68a;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-hero-content {
        gap: 1rem;
        padding: 0;
    }
    
    .page-hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }
    
    .page-hero-description {
        font-size: clamp(0.95rem, 2.5vw, 1.15rem);
        line-height: 1.75;
        margin-bottom: 1.25rem;
    }
    
    .page-hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-hero-content {
        gap: 0.875rem;
    }
    
    .page-hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3;
    }
    
    .page-hero-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
        line-height: 1.7;
    }
}

.page-hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    background: #ffba08;
    color: #0f172a;
    border-radius: 999px;
    font-weight: 400;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.page-hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -18px rgba(255, 186, 8, 0.9);
}

.page-hero-media {
    position: absolute;
    inset: 0;
    z-index: 1; 
    overflow: hidden;
    background-color: var(--page-hero-slide-color, #0f172a);
    background-repeat: var(--page-hero-slide-repeat, no-repeat);
    background-position: var(--page-hero-slide-position, center center);
}

.page-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--page-hero-slide-overlay, rgba(15, 23, 42, 0.45));
    pointer-events: none;
    z-index: 2; 
}
/* Prefer explicit overlay node when present (avoids double darkening) */
.page-hero-media:has(> .page-hero-slide-overlay)::after {
    display: none !important;
}

.page-hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: var(--page-hero-slide-overlay, rgba(15, 23, 42, 0.45));
}

.page-hero-media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: var(--page-hero-slide-fit, cover);
    object-position: var(--page-hero-slide-position, center center);
}

.page-hero--fit-cover .page-hero-media img,
.page-hero--fit-cover .page-hero-inner.has-foreground .page-hero-media img.page-hero-media-foreground {
    object-fit: cover;
    object-position: var(--page-hero-slide-position, center center);
    background: transparent;
}

.page-hero--fit-contain .page-hero-media,
.page-hero--fit-contain .page-hero-inner.has-foreground .page-hero-media {
    background: var(--page-hero-slide-color, #0b1220);
}

.page-hero--fit-contain .page-hero-media img,
.page-hero--fit-contain .page-hero-inner.has-foreground .page-hero-media img.page-hero-media-foreground {
    object-fit: contain;
    object-position: var(--page-hero-slide-position, center center);
}

.page-hero--fit-fill .page-hero-media img,
.page-hero--fit-fill .page-hero-inner.has-foreground .page-hero-media img.page-hero-media-foreground {
    object-fit: fill;
    object-position: var(--page-hero-slide-position, center center);
}

.page-hero--fit-none .page-hero-media,
.page-hero--fit-none .page-hero-inner.has-foreground .page-hero-media {
    background: var(--page-hero-slide-color, #0b1220);
}

.page-hero--fit-none .page-hero-media img,
.page-hero--fit-none .page-hero-inner.has-foreground .page-hero-media img.page-hero-media-foreground {
    object-fit: none;
    object-position: var(--page-hero-slide-position, center center);
}

.page-hero-media img.page-hero-media-bg {
    z-index: 1;
}

.page-hero-media img.page-hero-media-foreground {
    z-index: 1;
    transform: none;
    transition: none;
}
/* Mild zoom only for cover, so contain/fill/position stay accurate */
.page-hero--fit-cover .page-hero-media img.page-hero-media-foreground {
    transform: scale(1.02);
    transition: transform 12s ease;
}

.page-hero-slide.is-active .page-hero-media img.page-hero-media-foreground {
    transform: scale(1);
}

.page-hero-controls {
    position: absolute;
    inset: 50% auto auto 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    padding: 0 1.5rem;
    pointer-events: none;
    z-index: 3;
}

.page-hero-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    pointer-events: all;
}

.page-hero-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.page-hero-dots {
    position: absolute;
    left: 50%;
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 3;
}

.page-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
    color: transparent;
    font-size: 0;
    line-height: 1;
    padding: 0;
}

.page-hero-dot.is-active {
    width: 32px;
    background: #ffba08;
}

.page-hero--dots-circle .page-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.page-hero--dots-circle .page-hero-dot.is-active {
    width: 10px;
    height: 10px;
    background: #ffba08;
    box-shadow: 0 0 0 3px rgba(255, 186, 8, 0.35);
}

.page-hero--dots-pill .page-hero-dot.is-active {
    width: 32px;
}

.page-hero--dots-line .page-hero-dot {
    width: 22px;
    height: 3px;
    border-radius: 2px;
}
.page-hero--dots-line .page-hero-dot.is-active {
    width: 36px;
    height: 3px;
    background: #ffba08;
}

.page-hero--dots-number .page-hero-dots {
    gap: 0.4rem;
}
.page-hero--dots-number .page-hero-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.35);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.page-hero--dots-number .page-hero-dot.is-active {
    width: 26px;
    background: #ffba08;
    color: #0f172a;
}

@media (max-width: 768px) {
    .nav-menu-rapoo.active {
        max-height: calc(100vh - 56px);
    }
}

body.touchscreen-theme .page-hero {
    margin-top: 0;
    box-shadow: none;
}

/* ============================================
    Banner + Tabs
   ============================================ */

.page-header {
    position: relative;
    width: 100%;
    min-height: 360px;
    padding: clamp(4rem, 8vw, 6rem) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: #1f2937;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 118, 110, 0.55) 45%, rgba(59, 130, 246, 0.55) 100%);
    mix-blend-mode: multiply;
    z-index: 0;
}

.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.2), transparent 55%),
                radial-gradient(circle at 80% 75%, rgba(59, 130, 246, 0.25), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    max-width: 860px;
}

.page-header-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.75;
}

.page-header h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}

.page-header-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    max-width: 640px;
    margin: 0;
    opacity: 0.85;
}

.page-header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-header-actions .btn {
    min-width: 160px;
}

.page-header-tags {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.page-header-tabs {
    position: relative;
    margin-top: clamp(-3.5rem, -6vw, -2.5rem);
    z-index: 2;
}

.page-header-tabs .container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 999px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    padding: 0.85rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.page-tab-list {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.page-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.page-tab-icon {
    font-size: 1rem;
    opacity: 0.7;
    display: inline-flex;
}

.page-tab.is-active,
.page-tab[aria-current="true"] {
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.2));
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.page-tab::after {
    content: "";
    position: absolute;
    bottom: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.85), rgba(59, 130, 246, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-tab.is-active::after,
.page-tab[aria-current="true"]::after {
    opacity: 1;
}

.page-tab:hover {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.1);
}

.page-tabs-extra {
    margin-left: 1rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.page-tabs-extra .btn {
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
}

@media (max-width: 1024px) {
    .page-header-tabs .container {
        border-radius: 24px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem;
        gap: 0.75rem;
    }

    .page-tab-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-tab {
        min-width: auto;
        padding: 0.65rem 1.25rem;
    }
}

@media (max-width: 640px) {
    .page-header {
        min-height: 320px;
        padding: 4.5rem 0 5rem;
    }

    .page-header-tabs {
        margin-top: -2.5rem;
    }

    .page-tab::after {
        display: none;
    }
}

.btn-hero {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1rem;
}

.btn-hero-primary {
    background: white;
    color: #667eea;
}

.btn-hero-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ============================================
   Rapoo
   ============================================ */

/* Hero - Rapoo */
.hero-section-rapoo {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider-rapoo {
    position: relative;
    width: 100%;
}

.hero-slide-rapoo {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-size: cover;
    background-position: center;
}

.hero-slide-rapoo.active {
    display: flex;
}

.hero-content-rapoo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title-rapoo {
    font-size: 3.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle-rapoo {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons-rapoo {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-rapoo {
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-hero-primary-rapoo {
    background: #333;
    color: #fff;
}

.btn-hero-primary-rapoo:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-hero-secondary-rapoo {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #333;
}

.btn-hero-secondary-rapoo:hover {
    background: #333;
    color: #fff;
}

/*  - Rapoo */
.products-section-rapoo {
    padding: 0 0 80px 0;
    background: #fff;
}

/* TAB */
.products-tabs-rapoo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-radius: 0;
    padding: 0;
    overflow: visible;
}

.products-tabs-rapoo::-webkit-scrollbar {
    display: none;
}

.products-tab-rapoo {
    background: transparent;
    border: none;
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
}

.products-tab-rapoo:last-child {
    border-right: none;
}

.products-tab-rapoo:hover {
    color: #1d4ed8;
    background: #ffffff;
}

.products-tab-rapoo.active {
    color: #1d4ed8;
    background: #ffffff;
    position: relative;
}

.products-tab-rapoo.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1d4ed8;
    border-radius: 3px 3px 0 0;
}

.tab-icon-rapoo {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tab-text-rapoo {
    display: inline-block;
}

/* TAB */
.products-tab-content-rapoo {
    display: none;
    background: #ffffff;
    padding: 40px 0 40px 0;
    margin-top: 0;
}

.products-tab-content-rapoo.active {
    display: block;
}

/*  - TAB */
.products-bottom-buttons-rapoo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-radius: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.products-bottom-buttons-rapoo::-webkit-scrollbar {
    display: none;
}

.products-current-tab-btn-rapoo {
    background: transparent;
    border: none;
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.products-current-tab-btn-rapoo:hover {
    color: #ffffff;
    background: #1e3a8a;
}

.products-all-btn-rapoo {
    background: transparent;
    border: none;
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.products-all-btn-rapoo:hover {
    color: #ffffff;
    background: #1e3a8a;
}

@media (max-width: 768px) {
    .products-bottom-buttons-rapoo {
        margin: 0;
        border-radius: 0;
        flex-direction: column;
        align-items: stretch;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .products-current-tab-btn-rapoo,
    .products-all-btn-rapoo {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 14px 16px;
        font-size: 0.9rem;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .products-bottom-buttons-rapoo > :last-child {
        border-bottom: none;
    }
}

.section-header-rapoo {
    text-align: left;
    margin-bottom: 20px;
}

.section-title-rapoo {
    font-size: 2.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-subtitle-rapoo {
    font-size: 1.125rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid-rapoo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .products-grid-rapoo {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .products-grid-rapoo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .products-grid-rapoo {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.product-item-rapoo {
    position: relative;
    background: #ffffff;
    border-left: 1px solid #d9d9d9;
    border-right: none;
    border-top: none;
    border-bottom: none;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.product-item-rapoo:last-child {
    border-right: 1px solid #e5e7eb;
}

.products-grid-rapoo {
    border-top: none;
    border-bottom: none;
}

.product-item-rapoo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.05) 0%, rgba(37, 99, 235, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-item-rapoo:hover {
    transform: translateY(-8px);
    box-shadow: none;
    z-index: 10;
}

.product-item-rapoo:hover::after {
    opacity: 1;
}

.product-item-rapoo::before {
    display: none;
}

.product-link-rapoo {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.product-image-rapoo:not(.product-video-media-rapoo) {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: #f0f0f0;
    isolation: isolate;
}

.product-image-rapoo:not(.product-video-media-rapoo) img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 2;
    background: transparent;
    mix-blend-mode: darken;
}

.product-item-rapoo:hover .product-image-rapoo:not(.product-video-media-rapoo) img,
.product-image-rapoo:not(.product-video-media-rapoo):hover img {
    transform: scale(1.06);
}

.product-card-zlan-image,
.related-product-card-image,
.search-card-image,
.tag-search-product-image {
    position: relative;
}
.pd-img-actions {
    position: absolute;
    top: auto;
    bottom: 8px;
    left: 8px;
    z-index: 6;
    display: block;
    width: auto;
    height: auto;
    background: none;
    opacity: 1;
    pointer-events: auto;
}
.pd-img-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.16);
    cursor: pointer;
}
.pd-img-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}
.pd-img-btn:hover {
    background: #1d4ed8;
    color: #fff;
}
.pd-img-btn-txt {
    display: none;
}
.product-thumbnails .pd-img-actions,
.thumbnail-item .pd-img-actions,
.product-media-host .pd-img-actions {
    display: none !important;
}
#pd-img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
}
#pd-img-lightbox .pd-img-lightbox-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 92vw;
    max-height: 90vh;
    cursor: default;
}
#pd-img-lightbox img {
    max-width: 92vw;
    max-height: calc(90vh - 36px);
    object-fit: contain;
    display: block;
}
#pd-img-lightbox .pd-img-lightbox-count {
    flex: 0 0 auto;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    pointer-events: none;
    user-select: none;
}
.pd-img-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-img-lightbox-prev {
    left: 18px;
}
.pd-img-lightbox-next {
    right: 18px;
}
.pd-img-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.32);
}
.pd-img-lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

video::-internal-media-controls-download-button,
video::-webkit-media-controls-download-button {
    display: none !important;
}

.cms-video-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10060;
}
.cms-video-popup.is-open {
    display: block;
}
.cms-video-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.cms-video-popup-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50vw;
    height: 50vh;
    min-width: 320px;
    min-height: 180px;
    max-width: 92vw;
    max-height: 92vh;
    transform: translate(-50%, -50%);
    background: #0b0f19;
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.cms-video-popup-bar {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 6px;
    background: #111827;
    cursor: move;
    user-select: none;
}
.cms-video-popup-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #e5e7eb;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.cms-video-popup-close:hover {
    background: rgba(255, 255, 255, 0.12);
}
.cms-video-popup-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: #000;
}
.cms-video-popup-body video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}
.cms-video-popup-handle {
    position: absolute;
    z-index: 3;
    background: transparent;
}
.cms-video-popup-handle[data-resize="n"],
.cms-video-popup-handle[data-resize="s"] {
    left: 12px;
    right: 12px;
    height: 8px;
    cursor: ns-resize;
}
.cms-video-popup-handle[data-resize="e"],
.cms-video-popup-handle[data-resize="w"] {
    top: 12px;
    bottom: 12px;
    width: 8px;
    cursor: ew-resize;
}
.cms-video-popup-handle[data-resize="n"] { top: 0; }
.cms-video-popup-handle[data-resize="s"] { bottom: 0; }
.cms-video-popup-handle[data-resize="e"] { right: 0; }
.cms-video-popup-handle[data-resize="w"] { left: 0; }
.cms-video-popup-handle[data-resize="ne"],
.cms-video-popup-handle[data-resize="nw"],
.cms-video-popup-handle[data-resize="se"],
.cms-video-popup-handle[data-resize="sw"] {
    width: 16px;
    height: 16px;
}
.cms-video-popup-handle[data-resize="ne"] { top: 0; right: 0; cursor: nesw-resize; }
.cms-video-popup-handle[data-resize="nw"] { top: 0; left: 0; cursor: nwse-resize; }
.cms-video-popup-handle[data-resize="se"] { bottom: 0; right: 0; cursor: nwse-resize; }
.cms-video-popup-handle[data-resize="sw"] { bottom: 0; left: 0; cursor: nesw-resize; }
.cms-video-popup-grip {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 14px;
    height: 14px;
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent 50%, rgba(255,255,255,.45) 50%) 0 10px / 6px 4px no-repeat,
        linear-gradient(135deg, transparent 50%, rgba(255,255,255,.45) 50%) 4px 6px / 6px 4px no-repeat,
        linear-gradient(135deg, transparent 50%, rgba(255,255,255,.7) 50%) 8px 2px / 6px 4px no-repeat;
}

.product-placeholder-rapoo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.95rem;
}

.product-info-rapoo {
    padding: 18px 22px 22px;
    background: #ffffff;
    border-top: none;
}

.product-name-rapoo {
    font-size: 1.15rem;
    font-weight: 500;
    color: #374151;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.product-item-rapoo:hover .product-name-rapoo {
    color: #4b5563;
}

.product-desc-rapoo {
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.65;
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.product-item-rapoo:hover .product-desc-rapoo {
    color: #4b5563;
}

.product-desc-rapoo--summary {
    margin-bottom: 0;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.product-videos-section-rapoo {
    padding-top: 0;
}

.product-videos-section-rapoo .product-video-media-rapoo {
    overflow: hidden;
    background: #ffffff;
}

.product-videos-section-rapoo .product-video-el-rapoo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    z-index: 2;
    display: block;
}

.product-videos-section-rapoo .product-video-info-link-rapoo {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-videos-section-rapoo .product-video-item-rapoo .product-info-rapoo {
    padding-top: 18px;
}

/* Side layouts: video left/right of content; grid columns forced in scoped CSS (2 → 1) */
.product-videos-layout--left .product-video-item-rapoo,
.product-videos-layout--right .product-video-item-rapoo {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    min-width: 0;
}

.product-videos-layout--left .product-video-item-rapoo {
    flex-direction: row;
}

.product-videos-layout--right .product-video-item-rapoo {
    flex-direction: row-reverse;
}

.product-videos-layout--left .product-video-media-rapoo,
.product-videos-layout--right .product-video-media-rapoo {
    flex: 0 0 var(--pv-media-ratio, 46%);
    width: var(--pv-media-ratio, 46%);
    max-width: var(--pv-media-ratio, 46%);
    height: auto;
    min-height: 140px;
    aspect-ratio: 16 / 10;
    align-self: stretch;
}

.product-videos-layout--left .product-video-info-link-rapoo,
.product-videos-layout--right .product-video-info-link-rapoo {
    flex: 1 1 var(--pv-content-ratio, 54%);
    min-width: 0;
    max-width: var(--pv-content-ratio, 54%);
    display: flex;
    align-items: center;
}

.product-videos-layout--left .product-video-item-rapoo .product-info-rapoo,
.product-videos-layout--right .product-video-item-rapoo .product-info-rapoo {
    padding-top: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Tablet and below: video above, copy below (no side-by-side squeeze) */
@media (max-width: 960px) {
    .product-videos-layout--left .product-video-item-rapoo,
    .product-videos-layout--right .product-video-item-rapoo {
        flex-direction: column !important;
    }
    .product-videos-layout--left .product-video-media-rapoo,
    .product-videos-layout--right .product-video-media-rapoo {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9;
    }
    .product-videos-layout--left .product-video-info-link-rapoo,
    .product-videos-layout--right .product-video-info-link-rapoo {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.product-view-more-rapoo {
    font-size: 0.9rem;
    color: #1d4ed8;
    font-weight: 400;
    margin-top: 24px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
}

.product-videos-section-rapoo .product-view-more-rapoo {
    margin-top: 16px;
    text-align: inherit;
}

.product-item-rapoo:hover .product-view-more-rapoo {
    color: #2563eb;
    transform: translateX(4px);
}

.section-footer-rapoo {
    text-align: center;
    margin-top: 40px;
}

.btn-more-rapoo {
    display: inline-block;
    padding: 12px 32px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-more-rapoo:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.empty-state-rapoo {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/*  - Rapoo */
.applications-section-rapoo {
    padding: 40px 0 80px 0;
    background: #f8f9fa;
}

.applications-grid-rapoo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
}

@media (max-width: 1400px) {
    .applications-grid-rapoo {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .applications-grid-rapoo {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .applications-grid-rapoo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .applications-grid-rapoo {
        grid-template-columns: 1fr;
    }
}

.application-item-rapoo {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.application-item-rapoo:hover {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
    transform: translateY(-4px);
}

.application-icon-rapoo {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}
.application-icon-rapoo img,
.application-icon-rapoo .is-icon-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    display: block;
}

.application-title-rapoo {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.application-desc-rapoo {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

/*  - Rapoo */
.news-section-rapoo {
    padding: 0 0 80px 0;
    background: #fff;
}

/* 4 / 2 / 1 */
.news-section.news-page-section .news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .news-section.news-page-section .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-section.news-page-section .news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* TAB */
.news-tabs-rapoo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin: 0 0 50px 0;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.news-tab-rapoo {
    background: transparent;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.news-tab-icon-rapoo {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.news-tab-rapoo:hover .news-tab-icon-rapoo {
    transform: translateY(-2px);
}

.news-tab-rapoo:hover {
    color: #1d4ed8;
}

.news-tab-rapoo.active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

.news-count-rapoo {
    background: #e0e7ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.news-tab-rapoo.active .news-count-rapoo {
    background: #1d4ed8;
    color: #fff;
}

/* TAB */
.news-tab-content-rapoo {
    display: none;
    animation: fadeIn 0.4s ease;
}

.news-tab-content-rapoo.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-grid-rapoo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .news-grid-rapoo {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.news-item-rapoo {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-width: 0;
    max-width: 100%;
}

.news-item-rapoo:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    transform: translateY(-6px);
    border-color: #d0d0d0;
}

.news-link-rapoo {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-image-rapoo {
    position: relative;
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.news-image-rapoo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.news-item-rapoo:hover .news-image-rapoo img {
    transform: scale(1.08);
}

.news-placeholder-rapoo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.news-category-badge-rapoo {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 400;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-content-rapoo {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title-rapoo {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.news-summary-rapoo {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    /* Indent from Homepage Builder; do not hard-code here */
    text-indent: 0;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
}

.news-meta-rapoo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.news-date-rapoo {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date-rapoo::before {
    content: '📅';
    font-size: 0.9rem;
}

.news-views-rapoo {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-views-rapoo::before {
    content: '👁';
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .news-grid-rapoo {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .news-tabs-rapoo {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 30px 0 40px 0;
    }
    
    .news-tab-rapoo {
        padding: 12px 24px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 140px;
    }
    
    .news-grid-rapoo {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-image-rapoo {
        height: 180px;
    }
    
    .news-content-rapoo {
        padding: 20px;
    }
    
    .news-title-rapoo {
        font-size: 1.125rem;
    }
}

/*  - Rapoo */
.applications-section-rapoo,
.applications-section-rapoo * {
    box-sizing: border-box;
}

.applications-grid-rapoo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
}

@media (max-width: 1024px) {
    .applications-grid-rapoo {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .applications-grid-rapoo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .applications-grid-rapoo {
        grid-template-columns: 1fr;
    }
}

.application-item-rapoo,
.application-item-rapoo:visited {
    background: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
    display: block;
    color: inherit;
    text-decoration: none;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.application-item-rapoo:hover {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
    transform: translateY(-4px);
    text-decoration: none;
}

.application-icon-rapoo {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.application-title-rapoo {
    font-size: 1.1rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.application-desc-rapoo {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.features-section-rapoo {
    padding: 40px 0 80px 0;
    background: #fff;
}
.features-section-rapoo,
.features-section-rapoo * {
    box-sizing: border-box;
}

.features-grid-rapoo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
}

@media (max-width: 1400px) {
    .features-grid-rapoo {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .features-grid-rapoo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

.feature-item-rapoo {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-item-rapoo:hover {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
    transform: translateY(-4px);
}

.feature-icon-rapoo {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}
.feature-icon-rapoo img,
.feature-icon-rapoo .is-icon-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    display: block;
}

.feature-title-rapoo {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.feature-desc-rapoo {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    .hero-title-rapoo {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-rapoo {
        font-size: 1.125rem;
    }
    
    .hero-content-rapoo {
        padding: 28px 16px;
    }
    
    .products-tabs-rapoo {
        margin: 30px 0 0 0;
        border-radius: 8px 8px 0 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }
    
    .products-tab-rapoo {
        padding: 14px 16px;
        font-size: 0.9rem;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .tab-icon-rapoo {
        font-size: 1rem;
    }
    
    .section-title-rapoo {
        font-size: 2rem;
    }
    
    .products-grid-rapoo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    
    .product-image-rapoo:not(.product-video-media-rapoo) {
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 0;
    }
    
    .applications-grid-rapoo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    
    .features-grid-rapoo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    
    .products-section-rapoo {
        /* Mobile/tablet: flush to hero top; avoid gap between hero and tabs */
        padding: 0 0 40px 0;
    }

    .applications-section-rapoo,
    .features-section-rapoo {
        padding: 40px 0;
    }

    .products-tabs-rapoo {
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .hero-title-rapoo {
        font-size: 2rem;
    }
    
    .products-grid-rapoo {
        grid-template-columns: 1fr;
    }
    
    .product-image-rapoo:not(.product-video-media-rapoo) {
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 0;
    }
    
    .hero-buttons-rapoo {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-rapoo {
        width: 100%;
        text-align: center;
    }
}

.applications-section {
    padding: 0 0 5rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.application-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-align: center;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.application-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.application-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.application-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.products-showcase {
    padding: 5rem 0;
    background: var(--bg-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem; 
    margin-top: 3rem;
}

.products-grid-zlan {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 1rem;
    background: #e5e5e5;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    border-left: 1px solid #d9d9d9;
    border-right: 1px solid #d9d9d9;
    overflow: hidden;
    justify-items: stretch;
    align-items: stretch;
    padding: 0;
    row-gap: 1px;
    column-gap: 1px;
    position: relative;
    background-image: none;
}

.products-grid-zlan::before {
    content: none;
}

.product-card-zlan {
    margin-right: 0;
}

.product-card-zlan:nth-child(4n) {
    margin-right: 0;
}

.products-content {
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .products-grid-zlan {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .products-grid-zlan {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid-zlan {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.product-card-zlan {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    padding: 1.5rem 1rem;
    gap: 0.75rem;
    width: 100%;
    max-width: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    box-sizing: border-box;
    margin: 0;
}

.product-card-zlan-image {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    transition: transform 0.3s ease;
    background: #f0f0f0;
    isolation: isolate;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: none; 
}

.product-card-zlan-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    mix-blend-mode: darken;
}

.product-card-zlan-placeholder {
    font-size: 0.9rem;
    color: #94a3b8;
}

.product-card-zlan-body {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* hover */
.product-card-zlan:hover .product-card-zlan-image {
    transform: translateY(-6px);
}

.product-card-zlan:hover .product-card-zlan-body {
    transform: translateY(-6px);
}

.product-card-zlan-body h3 {
    font-size: 15px;
    font-weight: 400;
    color: #1f2937;
    line-height: 1.4;
    white-space: normal;
    width: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-category-title-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-width: 0;
    font: inherit;
    color: inherit;
}

.products-category-title-label > span {
    min-width: 0;
}

.products-category-title-icon {
    width: 1em;
    height: 1em;
    font-size: 1em;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.product-card-zlan-link {
    display: none; 
}

.product-card-zlan-link::after {
    content: '›';
    font-size: 1rem;
}

.product-card-zlan-body p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.product-card-zlan-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

.products-pagination,
.cms-list-pagination,
.news-pagination.cms-list-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.pagination-link,
.pagination-current,
.pagination-ellipsis {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    font-size: 0.95rem;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}

.pagination-ellipsis {
    border-color: transparent;
    min-width: 1.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    color: #94a3b8;
}

.pagination-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
    transform: none;
}

.pagination-current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

@media (max-width: 1024px) {
    /* Column track + padding owned by list template */
    .products-content {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .products-grid-zlan {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-sidebar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 16px;
        background: #ffffff;
        overflow: hidden;
        box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.5);
    }

    .products-sidebar-row-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
        font-weight: 400;
        font-size: 1rem;
        cursor: pointer;
        position: relative;
    }

    .products-sidebar-row-title::after {
        content: "＋";
        font-size: 1.25rem;
        color: #1d4ed8;
        transition: transform 0.2s ease;
    }

    .products-sidebar-row-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 1.25rem;
    }

    .products-sidebar.is-open .products-sidebar-row-menu {
        max-height: 520px;
        padding-bottom: 1rem;
    }

    .products-sidebar.is-open .products-sidebar-row-title::after {
        content: "－";
    }
}

@media (max-width: 480px) {
    .products-grid-zlan {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

.products-hero {
    background: linear-gradient(90deg, #f1f5ff 0%, #ffffff 100%);
    padding: clamp(3rem, 8vw, 5rem) 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.6);
}

.products-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.products-page-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1f2937;
}

.products-page-subtitle {
    font-size: 1.05rem;
    max-width: 880px;
    margin: 0 auto;
    color: #64748b;
    line-height: 1.7;
}

.products-main-section {
    background: #ffffff;
    padding: 0;
}

.products-layout {
    --products-sidebar-base: 300px;
    --products-sidebar-width: 300px;
    display: grid;
    /* Use 1fr (not calc(100% - sidebar)) so column-gap does not create horizontal overflow */
    grid-template-columns: var(--products-sidebar-width) minmax(0, 1fr);
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    min-height: calc(100vh - 70px);
    column-gap: 2rem;
    row-gap: 0;
    /* Do not set overflow-x here — it breaks position:sticky on the sidebar */
    box-sizing: border-box;
}

.product-detail .products-main-section {
    background: #ffffff;
}

/* Product intro summary: up to 2 lines inside the info column, do not stretch the page */
body.product-detail .products-content,
body.product-detail .product-main-grid,
body.product-detail .product-main-grid > div,
body.product-detail .product-info-column,
body.product-detail .product-keyword-wrap,
body.product-detail .product-keyword-text {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
body.product-detail .product-keyword-wrap {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    height: auto !important;
}
body.product-detail .product-keyword-text,
body.product-detail .product-keyword-chip {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    width: 100% !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.5 !important;
}

/* Products shell: page LR inset from body.products .container; lines flush inside sidebar */
.products-main-section > .container {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.products-sidebar {
    grid-column: 1;
    justify-self: start;
    width: var(--products-sidebar-width);
    min-width: var(--products-sidebar-width);
    max-width: var(--products-sidebar-width);
    margin-left: 0;
    margin-right: 0;
    background: transparent;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-left: none;
    border-top: none;
    padding: 2.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    text-align: left;
    position: sticky;
    top: var(--lt-side-sticky-top, 70px);
    align-self: start;
    max-height: none;
    overflow: visible;
    overflow-x: visible;
    overflow-y: visible;
    box-shadow: none;
    z-index: 5;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.products-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.products-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.products-sidebar-section-divider {
    border-top: none;
    margin: 0;
}

.products-sidebar-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 400;
    color: #1f2937;
    border-bottom: 1px solid #d9d9d9;
    padding: 0 1.5rem 0.75rem;
}

.products-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.products-sidebar-nav-list,
.products-sidebar-nav-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.products-sidebar-nav-sublist {
    padding-left: 1rem;
    gap: 0.55rem;
}

.products-sidebar-nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    border-bottom: 1px solid #d9d9d9;
    transition: background 0.2s ease;
    cursor: pointer;
}

.products-sidebar-nav-item:last-child {
    border-bottom: 1px solid #d9d9d9;
}

.products-sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    letter-spacing: 0.04em;
    border-radius: 0;
    text-decoration: none;
    color: #000000; 
    background: transparent;
    transition: color 0.2s ease, background 0.2s ease;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    white-space: nowrap;
}

.products-sidebar-nav-link:hover {
    color: #1d4ed8;
    background: transparent; 
}

.products-sidebar-nav-item.is-active {
    background: rgba(37, 99, 235, 0.12); 
}

.products-sidebar-nav-item.is-active > .products-sidebar-nav-link {
    color: #1d4ed8;
    font-weight: 400;
    background: transparent; 
}

.products-sidebar-nav-prefix {
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
    min-width: 16px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 0;
    background: none;
    line-height: 1;
    flex-shrink: 0;
}

.products-sidebar-nav-link:hover .products-sidebar-nav-prefix,
.products-sidebar-nav-item.is-active .products-sidebar-nav-prefix {
    color: #1d4ed8;
}

.products-sidebar-nav-text {
    flex: 1;
    text-align: left;
    color: #20222c; /* #20222c */
    line-height: 1.5;
    font-weight: 400;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif; /* Arial */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px; /* 16px */
}

.products-sidebar-empty {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.products-sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-search-field {
    display: flex;
    gap: 0.6rem;
}

.sidebar-search-field input {
    flex: 1;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-search-field input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    outline: none;
}

.sidebar-search-field button {
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-search-field button:hover {
    background: #1b43bf;
    transform: translateY(-1px);
}

.products-sidebar-reset {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.products-sidebar-reset:hover {
    color: #1d4ed8;
}

.products-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.products-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    transition: background 0.2s ease, color 0.2s ease;
}

.products-category-link:hover {
    background: rgba(148, 163, 184, 0.16);
    color: #1d4ed8;
}

.products-category-link.active {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-weight: 400;
}

.category-arrow {
    font-size: 0.9rem;
    opacity: 0.6;
}

.products-content {
    grid-column: 2;
    grid-row: 1;
    flex: 1;
    /* Prefer list-template --lt-main-pad-*; keep soft fallbacks only */
    padding: var(--lt-main-pad-t, 2rem) var(--lt-main-pad-r, 1.5rem) var(--lt-main-pad-b, 2rem) var(--lt-main-pad-l, 1.5rem);
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Product detail uses the same products_layout gap as the list (style + products_list template). */

.products-page .products-content,
.products-list-page .products-content {
    margin-left: 0;
}

@media (max-width: 1366px) {
    .products-layout,
    .product-detail .products-layout {
        grid-template-columns: var(--products-sidebar-width) minmax(0, 1fr);
    }
    .products-page .products-content,
    .products-list-page .products-content {
        margin: 0;
    }
}

/* Narrow stack / sidebar hide: owned by list template stackBelow — do not
   force single-column here or content will drop under a still-visible menu. */
@media (max-width: 1024px) {
    .products-page .products-content,
    .products-list-page .products-content {
        margin: 0;
        min-width: 0;
    }
}

.products-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.products-content-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.products-content-title {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 2.25rem;
    font-weight: 400;
    margin: 0;
}

.products-content-title-icon {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    display: block;
}

.products-action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-info-column {
    container-type: inline-size;
    container-name: product-info;
}

@container product-info (max-width: 520px) {
    .products-action-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .products-action-button {
        min-width: 0;
        width: 100%;
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}

@media (max-width: 1024px) {
    .products-action-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .products-action-button {
        min-width: 0;
        width: 100%;
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}

html.debug-device-tablet .products-action-buttons,
html.debug-device-mobile .products-action-buttons,
body.debug-mode-on.debug-device-tablet .products-action-buttons,
body.debug-mode-on.debug-device-mobile .products-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

html.debug-device-tablet .products-action-button,
html.debug-device-mobile .products-action-button,
body.debug-mode-on.debug-device-tablet .products-action-button,
body.debug-mode-on.debug-device-mobile .products-action-button {
    min-width: 0;
    width: 100%;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}

.products-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    min-width: 160px;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 400;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    text-decoration: none;
    background: #1d4ed8;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.products-action-button:hover:not(.is-disabled) {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.products-action-button:active:not(.is-disabled) {
    transform: translateY(0);
}

.products-action-button svg {
    width: 1.2rem;
    height: 1.2rem;
}

.products-action-button.action-consult {
    background: #2563eb;
}

.products-action-button.action-download {
    background: #1d4ed8;
}

.products-action-button.action-favorite {
    background: #dc2626;
}

.products-action-button.is-disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

.products-list-section {
    padding: 3rem 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.products-filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.products-filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.products-search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.products-search-input:focus {
    outline: none;
    border-color: #667eea;
}

.products-category-select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    min-width: 180px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.products-category-select:focus {
    outline: none;
    border-color: #667eea;
}

.products-search-btn,
.products-clear-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.products-search-btn {
    background: #667eea;
    color: white;
}

.products-search-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.products-clear-btn {
    background: #6c757d;
    color: white;
}

.products-clear-btn:hover {
    background: #5a6268;
}

.products-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    font-size: 1.125rem;
}

.products-grid-ld {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-item-ld {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-item-ld:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.product-link-ld {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image-wrapper-ld {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-image-ld {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-item-ld:hover .product-image-ld {
    transform: scale(1.08);
}

.product-image-placeholder-ld {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.product-info-ld {
    padding: 1.5rem;
}

.product-title-ld {
    font-size: 1.25rem;
    font-weight: 400;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    
    line-clamp: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-intro-ld {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    
    line-clamp: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-summary-ld {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    
    line-clamp: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-sidebar-section-divider {
    border-top: none;
    margin: 0;
}

.products-sidebar-row {
    width: 100%;
    display: flex;
    box-sizing: border-box;
}

.products-sidebar-row-icon {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Match menu text optical center (left-padded links look left-heavy) */
    padding: 0 2.5rem 1rem 0.5rem;
    box-sizing: border-box;
}

.products-sidebar-row-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.products-sidebar-row-title {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 2.5rem 1.5rem 0.5rem;
    font-size: 1.35rem;
    font-weight: 400;
    color: #000000;
    text-align: center;
    letter-spacing: 0.02em;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.products-sidebar-row-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-top: 1px solid #d9d9d9;
    font-size: 1.1rem;
}

.products-sidebar-row-tags {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.5rem;
    padding: 1.5rem 0.75rem 3rem;
    border-top: none;
    width: 100%;
    box-sizing: border-box;
}

.products-tags-header {
    margin-bottom: 0.75rem;
    width: 100%;
}

.products-tags-title {
    font-size: 0.875rem;
    font-weight: 400;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Waterfall (multi-column masonry) for product tags */
.products-tags-list {
    display: block;
    width: 100%;
    column-count: 2;
    column-gap: 0.5rem;
    column-fill: balance;
}

.products-tag-item {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.5rem;
    padding: 0.4rem 0.45rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    vertical-align: top;
}

.products-tag-item:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #334155;
}

.tag-search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1400px) {
    .tag-search-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .tag-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tag-search-grid {
        grid-template-columns: 1fr;
    }
}

.tag-search-product-card {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 10px 0 rgba(15, 23, 42, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tag-search-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 20px 0 rgba(15, 23, 42, 0.4);
}

.tag-search-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tag-search-product-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.tag-search-product-card:hover .tag-search-product-image {
    transform: scale(1.02);
}

.tag-search-product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.tag-search-product-card:hover .tag-search-product-image img {
    transform: scale(1.05);
}

.tag-search-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.875rem;
    background: #f8fafc;
}

.tag-search-product-info {
    padding: 1.25rem;
    background: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tag-search-product-title {
    font-size: 1.125rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.2em;
}

.tag-search-product-description {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.tag-search-results-container {
    margin-top: 2rem;
    padding: 2rem 0;
}

.tag-search-layout {
    display: flex;
    justify-content: center;
    width: 100%;
}

.tag-search-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.tag-search-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tag-search-title {
    font-size: 2rem;
    font-weight: 400;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.tag-search-back-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 8px;
    cursor: pointer;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.tag-search-back-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.tag-search-back-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.tag-search-back-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tag-search-back-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

@media (max-width: 1400px) {
    .tag-search-content {
        max-width: 100%;
        padding: 0 1rem;
    }
}

.tag-search-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #d9d9d9;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag-pagination-info {
    color: #64748b;
    font-size: 0.875rem;
}

.tag-pagination-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.tag-pagination-btn {
    padding: 0.5rem 0.875rem;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.tag-pagination-btn:hover:not(.disabled):not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.tag-pagination-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    cursor: default;
}

.tag-pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tag-pagination-ellipsis {
    padding: 0 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .tag-search-pagination {
        flex-direction: column;
        align-items: center;
    }
    
    .tag-pagination-info {
        order: 2;
        margin-top: 0.5rem;
    }
    
    .tag-pagination-buttons {
        order: 1;
        justify-content: center;
    }
}

.products-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.contact-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin: 2rem auto 0 auto;
    max-width: 1200px;
}

.contact-hero-media {
    display: block;
    line-height: 0;
}

.contact-hero-media img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.85) 0%, rgba(37, 99, 235, 0.55) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
}

.contact-hero-content {
    color: #ffffff;
    max-width: 600px;
    padding: 0 2rem;
}

.contact-hero-content h1 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-hero-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.contact-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.contact-hero-meta a {
    color: #bfdbfe;
    text-decoration: none;
}

.contact-page {
    padding-top: 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
}

.contact-summary {
    margin-bottom: 4rem;
}

.contact-summary-header {
    max-width: 740px;
    text-align: center;
    margin: 0 auto 2.5rem auto;
}

.contact-summary-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.contact-summary-header p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
}

.contact-summary-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-summary-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 20px 45px -25px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.22);
    height: 100%;
}

.contact-summary-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(59, 130, 246, 0.12));
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.contact-summary-icon svg {
    width: 28px;
    height: 28px;
}

.contact-summary-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.contact-summary-card p {
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
}

.contact-summary-card a {
    color: #2563eb;
    text-decoration: none;
}

.contact-sales {
    margin-bottom: 4rem;
}

.contact-sales > .container > h2 {
    text-align: center;
    font-size: 2.25rem;
    color: #0f172a;
    margin-bottom: 2.5rem;
}

.contact-sales-table-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 60px -30px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.18);
    overflow-x: auto;
}

.contact-sales-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.contact-sales-table th,
.contact-sales-table td {
    padding: 1.1rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    color: #1f2937;
    font-size: 0.98rem;
}

.contact-sales-table th {
    font-weight: 400;
    font-size: 1.05rem;
    text-transform: none;
    color: #0f172a;
    background: rgba(241, 245, 249, 0.6);
}

.contact-sales-table td a {
    color: #2563eb;
    text-decoration: none;
}

.contact-sales-image {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background: rgba(226, 232, 240, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.contact-sales-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.contact-gallery {
    margin-bottom: 4rem;
}

.contact-gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-gallery-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.45);
}

.contact-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-form-wrapper {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.08));
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: start;
}

.contact-form-section {
    margin-bottom: 2rem;
}

.contact-form-header h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.contact-form-header p {
    color: #475569;
    line-height: 1.7;
    font-size: 1.05rem;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px -35px rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.contact-form-card .alert {
    margin-bottom: 1.25rem;
}

.contact-form-card .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.contact-form-card .form-actions {
    margin-top: 1.5rem;
}

@media (max-width: 1024px) {
    .contact-hero {
        border-radius: 20px;
    }

    .contact-hero-media img {
        height: 360px;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        border-radius: 16px;
        margin-top: 1.5rem;
    }

    .contact-hero-media img {
        height: 280px;
    }

    .contact-hero-overlay {
        align-items: center;
        padding: 2.5rem 0;
    }

    .contact-hero-content {
        padding: 0 1.5rem;
    }

    .contact-hero-content h1 {
        font-size: 2.25rem;
    }

    .contact-hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-summary-grid {
        grid-template-columns: 1fr;
    }

    .contact-summary-card {
        padding: 1.75rem;
    }

    .contact-sales-table {
        min-width: 620px;
    }

    .contact-form-wrapper {
        grid-template-columns: 1fr;
        padding: 2.25rem;
    }

    .contact-form-card {
        padding: 1.75rem;
    }
}

/* Services full-width mega: no margin-top; align with product panel top */
.nav-menu-rapoo .services-dropdown .dropdown-menu.grid-layout.services-menu-content {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: var(--nav-dd-pad-top, 2.5rem) calc((100vw - min(var(--nav-dd-size, 1600px), 100vw - 40px)) / 2) var(--nav-dd-pad-bottom, 2.5rem) !important;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

@media (max-width: 1024px) {
     /* products-layout columns owned by list template — do not set flex-direction */
     .products-grid-zlan {
         grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
         gap: 1.25rem;
     }
 }
 
 @media (max-width: 768px) {
     .products-content-header {
         flex-direction: column;
     }

     .products-sidebar {
         padding: 1.5rem 1.25rem;
         display: flex;
         flex-direction: column;
         align-items: center;
         text-align: center;
     }
 
     .products-grid-zlan {
         grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
         gap: 1.25rem;
     }
 }
 
 @media (max-width: 480px) {
     .products-grid-zlan {
         grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
         gap: 1rem;
     }
 }

.products-grid-wrapper {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 18px 40px -25px rgba(15, 23, 42, 0.3);
}

.page-hero-inner.has-foreground {
    flex-direction: row;
    justify-content: space-between;
    padding: var(--page-hero-pad-y, 2rem) var(--page-hero-pad-x, 2.5rem);
    gap: 2rem;
}

.page-hero-inner.has-foreground.is-side-rev {
    flex-direction: row-reverse;
}

.page-hero-inner.has-foreground .page-hero-content {
    max-width: 600px;
}

.page-hero-inner.has-foreground .page-hero-media {
    position: relative;
    flex: 1;
    min-width: 0;
    align-self: stretch;
    min-height: var(--page-hero-height);
    overflow: hidden;
}

.page-hero-inner.has-foreground .page-hero-media img.page-hero-media-foreground {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: var(--page-hero-slide-fit, cover);
    object-position: var(--page-hero-slide-position, center center);
}

.page-hero--fit-contain .page-hero-inner.has-foreground .page-hero-media img.page-hero-media-foreground {
    object-fit: contain !important;
    object-position: var(--page-hero-slide-position, center center) !important;
}
.page-hero--fit-fill .page-hero-inner.has-foreground .page-hero-media img.page-hero-media-foreground {
    object-fit: fill !important;
    object-position: var(--page-hero-slide-position, center center) !important;
}
.page-hero--fit-none .page-hero-inner.has-foreground .page-hero-media img.page-hero-media-foreground {
    object-fit: none !important;
    object-position: var(--page-hero-slide-position, center center) !important;
}
.page-hero--fit-cover .page-hero-inner.has-foreground .page-hero-media img.page-hero-media-foreground {
    object-fit: cover !important;
    object-position: var(--page-hero-slide-position, center center) !important;
}

.page-hero-inner.has-foreground .page-hero-media img.page-hero-media-bg {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

.page-hero-inner.has-foreground .page-hero-media::after {
    display: block;
    background: var(--page-hero-slide-overlay, rgba(15, 23, 42, 0.45));
}
.page-hero-inner.has-foreground .page-hero-media:has(> .page-hero-slide-overlay)::after {
    display: none !important;
}

/* Cases page */
.cases-page .cases-section {
    padding: 4rem 0;
    background: #ffffff;
}

.cases-page .cases-section + .cases-section {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.cases-page .cases-section-header {
    margin-bottom: 2.5rem;
}

.cases-page .cases-section-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.cases-page .cases-section-header p {
    color: var(--text-light);
    max-width: 720px;
    font-size: 1rem;
    line-height: 1.7;
}

.cases-page .cases-grid {
    display: grid;
    gap: 1.5rem;
}

.cases-page .solutions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cases-page .success-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cases-page .case-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cases-page .case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -25px rgba(37, 99, 235, 0.3);
}

.cases-page .case-card .card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}

.cases-page .success-card .card-thumb {
    aspect-ratio: 3 / 2;
}

.cases-page .case-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cases-page .case-card h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 400;
    line-height: 1.4;
}

.cases-page .case-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

@media (max-width: 1200px) {
    .cases-page .solutions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .cases-page .success-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .cases-page .cases-section {
        padding: 3rem 0;
    }
    .cases-page .solutions-grid,
    .cases-page .success-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Services page */
.services-main-section {
    padding: 0 0 4rem 0;
    background: linear-gradient(120deg, rgba(243, 244, 246, 0.7) 0%, rgba(229, 231, 235, 0.6) 100%);
}

.services-hub-card {
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.8);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 2.5rem 3rem;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/*  - news-grid, solutions-grid, services-hub-card */
.content-section-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.services-tab-bar {
    width: 100%;
    margin: 0 0 1.5rem;
    background: #f8fafc;
    border-radius: 0;
    padding: 0.75rem 0;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    position: sticky;
    top: calc(var(--lt-chrome-header-bottom, var(--chrome-sticky-offset, var(--navbar-height, 70px))) + var(--lt-tabs-sticky-top, 0px));
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid #d9d9d9;
}

.services-tab-bar .services-tabs {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
}

.services-tabs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    position: relative;
}

.service-tab {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.9rem 1rem;
    line-height: 1.2;
    width: 100%;
    border: 1px solid transparent;
    background: #e2e8f0;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    position: relative;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.service-tab[data-tab="about"],
.services-card-tabs .service-tab:nth-child(1) {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.service-tab[data-tab="download"],
.services-card-tabs .service-tab:nth-child(2) {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.service-tab[data-tab="faq"],
.services-card-tabs .service-tab:nth-child(3) {
    background: #ffedd5;
    border-color: #fdba74;
    color: #9a3412;
}

.service-tab[data-tab="shipping"],
.services-card-tabs .service-tab:nth-child(4) {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #075985;
}

@media (hover: hover) and (pointer: fine) {
    .service-tab:hover {
        filter: brightness(0.97);
    }
}

.service-tab.active {
    box-shadow: inset 0 -3px 0 currentColor;
    font-weight: 600;
}

.service-tab[data-tab="about"].active,
.services-card-tabs .service-tab:nth-child(1).active {
    background: #bfdbfe;
    color: #1e3a8a;
}

.service-tab[data-tab="download"].active,
.services-card-tabs .service-tab:nth-child(2).active {
    background: #a7f3d0;
    color: #064e3b;
}

.service-tab[data-tab="faq"].active,
.services-card-tabs .service-tab:nth-child(3).active {
    background: #fed7aa;
    color: #7c2d12;
}

.service-tab[data-tab="shipping"].active,
.services-card-tabs .service-tab:nth-child(4).active {
    background: #bae6fd;
    color: #0c4a6e;
}

.service-content-wrapper {
    position: relative;
}

.service-content {
    display: none;
    animation: fadeInTab 0.35s ease;
}

.service-content.active {
    display: block;
}

.service-content-inner {
    display: block;
    color: #1f2937;
}

.service-content-inner > *:not(:last-child) {
    margin-bottom: 1.5rem;
}

.service-content-inner h2,
.service-content-inner h3 {
    color: #0f172a;
    letter-spacing: 0.02em;
}

.service-content-inner ul {
    margin: 0;
    padding-left: 1.25rem;
}

.service-content-inner ul li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.service-bullet-list {
    list-style: disc;
}

.download-list {
    display: grid;
    gap: 1.25rem;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.55) 0%, rgba(241, 245, 249, 0.75) 100%);
    border: 1px solid rgba(191, 219, 254, 0.6);
}

.download-info h4 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.download-info p {
    margin: 0;
    color: #475569;
}

.download-btn {
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #f8fafc;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(29, 78, 216, 0.28);
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid rgba(191, 219, 254, 0.6);
    background: #ffffff;
}

.faq-question {
    padding: 1.1rem 1.25rem;
    font-weight: 400;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.7) 0%, rgba(239, 246, 255, 0.4) 100%);
    color: #1d4ed8;
    position: relative;
}

.faq-item.active .faq-question {
    color: #0f172a;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(191, 219, 254, 0.25) 100%);
}

.faq-answer {
    padding: 1.1rem 1.25rem;
    display: none;
    color: #334155;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

.shipping-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.shipping-card-list {
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(229, 231, 235, 0.9) 100%);
}

.shipping-card-list h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.shipping-card-list ul {
    margin: 0;
    padding-left: 1.15rem;
    color: #374151;
}

.shipping-note-list {
    margin-top: 1.5rem;
    padding-left: 1.15rem;
    color: #4b5563;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .services-hub-card {
        padding: 2rem 1.5rem;
    }

    .services-tab-bar .services-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
        gap: 0.6rem;
    }

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

@media (max-width: 640px) {
    .services-tab-bar .services-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .download-btn {
        width: 100%;
        text-align: center;
    }
}

.footer .container {
    max-width: 100%;
}

.newsletter-banner {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%) !important;
    border-top: 0.25px solid #4B0F0F !important;
    color: #ffffff;
    padding: 2.5rem 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    isolation: isolate !important;
    contain: layout style paint !important;
}

.newsletter-banner-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

.newsletter-logo img {
    width: 240px;
    height: auto;
    display: block;
}

.newsletter-content-wrapper {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.newsletter-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
}

.newsletter-subtitle::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: #ef4444;
}

.newsletter-title {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 400;
    color: #111827;
}

.newsletter-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    max-width: 600px;
    --newsletter-ctrl-h: 48px;
}

.newsletter-input {
    box-sizing: border-box;
    padding: 0 1.25rem;
    flex: 2 1 auto;
    min-width: 0;
    width: auto;
    text-align: left;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.25;
    height: var(--newsletter-ctrl-h);
    min-height: var(--newsletter-ctrl-h);
    max-height: var(--newsletter-ctrl-h);
    margin: 0;
    background-color: #ffffff !important;
    color: #111827 !important;
    -webkit-appearance: none;
    appearance: none;
}

.newsletter-input-full {
    max-width: 100%;
    width: 100%;
}

.newsletter-form .btn,
.newsletter-form button,
.newsletter-banner #newsletterSubmit {
    box-sizing: border-box;
    flex: 0 0 auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0 1.25rem;
    min-width: auto;
    font-size: 0.9rem;
    line-height: 1.25;
    height: var(--newsletter-ctrl-h);
    min-height: var(--newsletter-ctrl-h);
    max-height: var(--newsletter-ctrl-h);
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Override Button Animation Inline Style，Make sure the input box is the same height as the button */
.newsletter-banner .newsletter-form {
    --newsletter-ctrl-h: 48px;
    align-items: stretch !important;
}
.newsletter-banner .newsletter-input {
    box-sizing: border-box !important;
    height: var(--newsletter-ctrl-h) !important;
    min-height: var(--newsletter-ctrl-h) !important;
    max-height: var(--newsletter-ctrl-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.25 !important;
    min-width: 0 !important;
}
.newsletter-banner .newsletter-form .btn,
.newsletter-banner .newsletter-form button,
.newsletter-banner #newsletterSubmit {
    box-sizing: border-box !important;
    height: var(--newsletter-ctrl-h) !important;
    min-height: var(--newsletter-ctrl-h) !important;
    max-height: var(--newsletter-ctrl-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.25 !important;
}
@media (max-width: 1024px) {
    .newsletter-banner .newsletter-form {
        --newsletter-ctrl-h: 44px;
    }
}

.newsletter-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.45) !important;
    background-color: #ffffff !important;
}

.newsletter-input::-webkit-input-placeholder {
    color: #9ca3af !important;
}

.newsletter-input::-moz-placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.newsletter-input:-ms-input-placeholder {
    color: #9ca3af !important;
}

.newsletter-input::placeholder {
    color: #9ca3af !important;
}

.newsletter-status {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    background: rgba(17, 24, 39, 0.9);
    color: #f8fafc;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    white-space: normal;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-start;
    z-index: 20;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.4;
}

.newsletter-status.success {
    background: rgba(34, 197, 94, 0.92);
}

.newsletter-status.error {
    background: rgba(239, 68, 68, 0.92);
}

/* Phone / tablet / narrow: email full width, Subscribe on next row */
@media (max-width: 1024px) {
    .newsletter-banner-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center;
        gap: 1.25rem !important;
    }
    .newsletter-logo {
        display: flex;
        justify-content: center;
    }
    .newsletter-logo img {
        width: 200px;
    }
    .newsletter-content-wrapper {
        justify-content: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }
    .newsletter-content {
        text-align: center;
        align-items: stretch;
        margin-left: 0;
        width: 100% !important;
        max-width: 100% !important;
    }
    .newsletter-form,
    .newsletter-banner .newsletter-form {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: stretch;
        align-items: stretch !important;
        max-width: 100% !important;
        width: 100% !important;
        gap: 0.65rem !important;
        --newsletter-ctrl-h: 44px;
    }
    .newsletter-input,
    .newsletter-banner .newsletter-input {
        text-align: left;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 1rem !important;
        font-size: 0.95rem;
        height: var(--newsletter-ctrl-h) !important;
        min-height: var(--newsletter-ctrl-h) !important;
        max-height: var(--newsletter-ctrl-h) !important;
        box-sizing: border-box !important;
    }
    .newsletter-form .btn,
    .newsletter-form button,
    .newsletter-banner .newsletter-form .btn,
    .newsletter-banner .newsletter-form button,
    .newsletter-banner #newsletterSubmit {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        font-size: 0.85rem;
        height: var(--newsletter-ctrl-h) !important;
        min-height: var(--newsletter-ctrl-h) !important;
        max-height: var(--newsletter-ctrl-h) !important;
        box-sizing: border-box !important;
    }
    .newsletter-status {
        right: 50%;
        transform: translateX(50%);
    }
}

/* Debug device classes (legacy same-page preview) */
html.debug-device-mobile .newsletter-banner-inner,
html.debug-device-tablet .newsletter-banner-inner,
body.debug-device-mobile .newsletter-banner-inner,
body.debug-device-tablet .newsletter-banner-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
}
html.debug-device-mobile .newsletter-content-wrapper,
html.debug-device-tablet .newsletter-content-wrapper,
html.debug-device-mobile .newsletter-content,
html.debug-device-tablet .newsletter-content,
body.debug-device-mobile .newsletter-content-wrapper,
body.debug-device-tablet .newsletter-content-wrapper,
body.debug-device-mobile .newsletter-content,
body.debug-device-tablet .newsletter-content {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: stretch !important;
    align-items: stretch !important;
}
html.debug-device-mobile .newsletter-form,
html.debug-device-tablet .newsletter-form,
html.debug-device-mobile .newsletter-banner .newsletter-form,
html.debug-device-tablet .newsletter-banner .newsletter-form,
body.debug-device-mobile .newsletter-form,
body.debug-device-tablet .newsletter-form,
body.debug-device-mobile .newsletter-banner .newsletter-form,
body.debug-device-tablet .newsletter-banner .newsletter-form {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.65rem !important;
    --newsletter-ctrl-h: 44px;
}
html.debug-device-mobile .newsletter-input,
html.debug-device-tablet .newsletter-input,
html.debug-device-mobile .newsletter-banner .newsletter-input,
html.debug-device-tablet .newsletter-banner .newsletter-input,
html.debug-device-mobile .newsletter-form .btn,
html.debug-device-tablet .newsletter-form .btn,
html.debug-device-mobile .newsletter-form button,
html.debug-device-tablet .newsletter-form button,
html.debug-device-mobile .newsletter-banner #newsletterSubmit,
html.debug-device-tablet .newsletter-banner #newsletterSubmit,
body.debug-device-mobile .newsletter-input,
body.debug-device-tablet .newsletter-input,
body.debug-device-mobile .newsletter-banner .newsletter-input,
body.debug-device-tablet .newsletter-banner .newsletter-input,
body.debug-device-mobile .newsletter-form .btn,
body.debug-device-tablet .newsletter-form .btn,
body.debug-device-mobile .newsletter-form button,
body.debug-device-tablet .newsletter-form button,
body.debug-device-mobile .newsletter-banner #newsletterSubmit,
body.debug-device-tablet .newsletter-banner #newsletterSubmit {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.footer-menu-bar {
    background: #000000;
    padding: 1.5rem 1rem;
}

.footer-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-menu-inner a {
    color: #9ca3af;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu-inner a:hover {
    color: #f3f4f6;
}

.footer-template-menu {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0;
}

.footer-template-menu__link {
    position: relative;
    color: #ff8c00;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    padding: 0.35rem 1.35rem;
    line-height: 1.4;
    transition: color 0.2s ease, text-decoration-color 0.2s ease, text-underline-offset 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.footer-template-menu__link:hover,
.footer-template-menu__link:focus,
.footer-template-menu__link:active {
    color: #39ff14;
    text-decoration: underline;
    text-decoration-color: #39ff14;
    text-underline-offset: 10px;
}

.footer-template-menu__link.is-active {
    color: #ff2b2b;
    text-decoration: underline;
    text-decoration-color: #ff2b2b;
    text-underline-offset: 10px;
}

.footer-template-menu__separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2px;
    height: 24px;
    background-color: #666666;
    margin: 0 0.75rem;
}

.footer-menu-inner a.is-active {
    color: #ff2b2b;
    text-decoration: underline;
    text-decoration-color: #ff2b2b;
    text-decoration-thickness: 2px;
    text-underline-offset: 10px;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    margin: 0;
    padding: 0;
}

body > a.back-to-top {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    left: auto !important;
    top: auto !important;
    z-index: 10000 !important;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(37, 99, 235, 0.9);
}

.nav-menu-rapoo .dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 18px 45px -22px rgba(15, 23, 42, 0.35);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .nav-menu-rapoo .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        padding: 1rem 0;
        margin: 0;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        transform: none;
        left: auto;
        gap: 1rem;
        justify-content: flex-start;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        --dropdown-columns: 1;
    }

    .nav-menu-rapoo .dropdown-menu::before {
        background-image: none;
    }
}

.products-page .products-content,
.products-list-page .products-content {
    margin: 0;
}

.products-category-section {
    margin-bottom: 3rem;
}

.products-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.products-category-section:first-of-type {
    margin-top: -2.5rem;
}

.products-section-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--dark-color);
    margin: 0;
    text-align: left;
}

.products-section-viewmore {
    font-size: 0.875rem;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease;
}

.products-section-viewmore::after {
    content: '›';
    font-size: 1rem;
    line-height: 1;
}

.products-section-viewmore:hover {
    color: #2563eb;
}

.products-grid-zlan {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 1rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    overflow: hidden;
    justify-items: stretch;
    align-items: stretch;
}

.product-card-zlan {
    border-right: 1px solid #d9d9d9;
}

.product-card-zlan:nth-child(4n),
.product-card-zlan:last-child {
    border-right: none;
}

@media (max-width: 1200px) {
    .products-grid-zlan {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-card-zlan:nth-child(4n) {
        border-right: 1px solid #e5e7eb;
    }

    .product-card-zlan:nth-child(3n),
    .product-card-zlan:last-child {
        border-right: none;
    }
}

@media (max-width: 992px) {
    .products-grid-zlan {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card-zlan:nth-child(3n) {
        border-right: 1px solid #e5e7eb;
    }

    .product-card-zlan:nth-child(2n),
    .product-card-zlan:last-child {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .products-grid-zlan {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .product-card-zlan,
    .product-card-zlan:nth-child(4n),
    .product-card-zlan:nth-child(3n),
    .product-card-zlan:nth-child(2n),
    .product-card-zlan:last-child {
        border-right: none;
    }
}

.news-section {
    padding: 4rem 0;
    background: #f8fafc;
    margin-top: 0;
}

.news-section.news-page-section {
    padding-top: 0;
    margin-top: 0;
}

body.news-page .page-hero,
body.news .page-hero {
    margin-bottom: 0;
}

.news-section.news-page-section,
.news-section {
    overflow-x: clip;
}

.news-filter-bar {
    width: auto;
    max-width: none;
    margin-left: calc(-1 * var(--lt-page-pad-l, 0px));
    margin-right: calc(-1 * var(--lt-page-pad-r, 0px));
    margin-top: 0;
    margin-bottom: 0;
    background: #f8fafc;
    border-radius: 0;
    padding: 0.75rem 0;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    position: sticky;
    top: calc(var(--lt-chrome-header-bottom, var(--chrome-sticky-offset, var(--navbar-height, 70px))) + var(--lt-tabs-sticky-top, 0px));
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.2s ease;
    border-bottom: 1px solid #d9d9d9;
    box-sizing: border-box;
}

/* Match fixed chrome: full-width bar + same-width content shell */
.news-filter-bar.is-lt-fixed {
    position: fixed !important;
    left: 0;
    right: 0;
    width: 100% !important;
    top: var(--lt-chrome-sticky-live, calc(var(--lt-chrome-header-bottom, var(--chrome-sticky-offset, var(--navbar-height, 70px))) + var(--lt-tabs-sticky-top, 0px))) !important;
    margin: 0 !important;
    background: #f8fafc;
    padding: 0.75rem 0;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid #d9d9d9;
}

.news-filter-bar-sentinel {
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Tab outer shell matches news content-wrapper sizing */
.news-filter-bar > .content-wrapper-container {
    max-width: min(1600px, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--layout-page-padding-x, 20px);
    padding-right: var(--layout-page-padding-x, 20px);
    box-sizing: border-box;
}

.news-filter-bar-inner {
    width: var(--lt-tabs-bar-width, 100%);
    max-width: 100%;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem 1rem;
    margin-left: var(--lt-tabs-bar-ml, auto);
    margin-right: var(--lt-tabs-bar-mr, auto);
}

.news-filter-btn {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.9rem 1rem;
    line-height: 1.2;
    width: 100%;
    border: 1px solid transparent;
    background: #e2e8f0;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    position: relative;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.news-filter-btn[data-category="industry"],
.news-filter-bar-inner .news-filter-btn:nth-child(1) {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.news-filter-btn[data-category="company"],
.news-filter-bar-inner .news-filter-btn:nth-child(2) {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

@media (hover: hover) and (pointer: fine) {
    .news-filter-btn:hover {
        filter: brightness(0.97);
    }
}

.news-filter-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.news-filter-btn.is-active {
    box-shadow: inset 0 -3px 0 currentColor;
    font-weight: 600;
}

.news-filter-btn[data-category="industry"].is-active,
.news-filter-bar-inner .news-filter-btn:nth-child(1).is-active {
    background: #bfdbfe;
    color: #1e3a8a;
}

.news-filter-btn[data-category="company"].is-active,
.news-filter-bar-inner .news-filter-btn:nth-child(2).is-active {
    background: #a7f3d0;
    color: #064e3b;
}

/* Services subpages: same top menu / bottom content as news */
.services-section.services-page-section {
    padding-top: 0;
}

.services-filter-bar {
    width: 100%;
    margin: 0 0 1.5rem;
    background: #f8fafc;
    border-radius: 0;
    padding: 0.75rem 0;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    position: sticky;
    top: calc(var(--lt-chrome-header-bottom, var(--chrome-sticky-offset, var(--navbar-height, 70px))) + var(--lt-tabs-sticky-top, 0px));
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid #d9d9d9;
}

.services-filter-bar.is-lt-fixed {
    position: fixed !important;
    left: 0;
    right: 0;
    width: 100% !important;
    top: var(--lt-chrome-sticky-live, calc(var(--lt-chrome-header-bottom, var(--chrome-sticky-offset, var(--navbar-height, 70px))) + var(--lt-tabs-sticky-top, 0px))) !important;
    margin: 0 !important;
    z-index: 1000;
}

.services-filter-bar-inner {
    width: 100%;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(var(--svc-nav-cols, 4), minmax(0, 1fr));
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.services-filter-btn {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.9rem 1rem;
    line-height: 1.2;
    width: 100%;
    border: 1px solid transparent;
    background: #e2e8f0;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    position: relative;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
    .services-filter-btn:hover {
        filter: brightness(0.97);
    }
}

.services-filter-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.services-filter-btn.is-active {
    box-shadow: inset 0 -3px 0 currentColor;
    font-weight: 600;
    background: #bfdbfe;
    color: #1e3a8a;
}

.services-filter-btn.is-active:hover {
    filter: none;
}

.services-content-header {
    margin-bottom: 0.25rem;
}

.news-filter-btn.is-active:hover {
    filter: none;
}

.news-layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 1.5rem 1.75rem;
    align-items: start;
}

.news-ranking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    z-index: 1;
    align-self: start;
}

/* Card shell aligned with article detail aside cards */
.news-ranking-box {
    padding: 1.85rem;
    margin-bottom: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-ranking-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-color, #e5e7eb);
    transition: height 0.3s ease;
}

.news-ranking-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.news-ranking-box:hover::before {
    height: 5px;
}

.news-ranking-box-left {
    /* inset accent keeps border-radius intact (uneven border-left breaks radius in some engines) */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 1px 0 0 0 #3b82f6;
    background: #ffffff;
}

.news-ranking-box-left:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), inset 1px 0 0 0 #2563eb;
}

.news-ranking-box-right {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset -1px 0 0 0 #10b981;
    background: #ffffff;
}

.news-ranking-box-right:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), inset -1px 0 0 0 #059669;
}

.news-ranking-title {
    font-size: 1.15rem;
    font-weight: 400;
    color: #f59e0b;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
}

.news-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.news-ranking-item {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.news-ranking-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    color: #1d4ed8;
    transition: color 0.2s ease;
    min-width: 0;
    max-width: 100%;
    background: transparent;
}

.news-ranking-link:hover {
    background: transparent;
    color: #0f172a;
}

.news-ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.news-ranking-text {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    font-size: inherit;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
    color: inherit;
}

.news-ranking-empty {
    padding: 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Tags — same chip style as article detail sidebar */
.news-ranking-tags-box {
    margin-top: 0;
}

.news-ranking-tags-box .news-ranking-title {
    color: #ec4899;
    border-bottom: 2px solid rgba(236, 72, 153, 0.15);
    font-weight: 400;
}

.news-tags-list,
.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.news-tag-item,
.article-tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.3;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-tag-item:hover,
.article-tag-item:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* ========== News category page: content left, timeline + tags right ========== */
.news-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 1.75rem;
    align-items: start;
}

.news-category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: calc(var(--navbar-height, 70px) + 16px);
    max-height: none;
    overflow: visible;
}

.news-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.1rem;
    position: relative;
}

.news-timeline::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    background: #3b82f6;
}

.news-timeline-item {
    position: relative;
    padding: 0 0 1.1rem 0.85rem;
}

.news-timeline-item:last-child {
    padding-bottom: 0;
}

.news-timeline-marker {
    position: absolute;
    left: -1.1rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #3b82f6;
    z-index: 1;
}

.news-timeline-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.news-timeline-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #3b82f6;
    line-height: 1.2;
}

.news-timeline-link {
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #1e293b;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-timeline-link:hover {
    color: #2563eb;
}

.news-timeline-empty {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.news-category-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.news-category-card {
    display: flex;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-category-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.news-category-card-image {
    width: 240px;
    min-width: 240px;
    height: 160px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-category-card-body {
    flex: 1;
    min-width: 0;
    padding: 1.15rem 1.25rem 1.15rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.news-category-card-body h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
    color: #0f172a;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-category-card-date {
    font-size: 0.85rem;
    color: #64748b;
}

.news-category-card-body p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-category-card-more {
    margin-top: auto;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .news-category-layout {
        grid-template-columns: 1fr;
    }

    .news-category-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .news-category-sidebar {
        grid-template-columns: 1fr;
    }

    .news-category-card {
        flex-direction: column;
    }

    .news-category-card-image {
        width: 100%;
        min-width: 0;
        height: 200px;
    }

    .news-category-card-body {
        padding: 0.85rem 1rem 1.1rem;
    }
}


.news-content-main {
    min-width: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: var(--lt-img-w, 300px) minmax(0, 1fr);
    gap: var(--lt-card-gap, 1rem);
    column-gap: var(--lt-card-gap, 1rem);
    align-items: stretch;
    width: 100%;
    min-width: 0;
    padding-left: var(--lt-img-left, 0px);
    box-sizing: border-box;
}

.news-card-image {
    display: block;
    position: relative;
    width: var(--lt-img-w, 300px);
    min-width: 0;
    max-width: min(var(--lt-img-w, 300px), 100%);
    aspect-ratio: 300 / 210;
    height: auto;
    margin: 0;
    flex-shrink: 0;
    background: #f8fafc;
    overflow: hidden;
    border-radius: 8px;
    box-sizing: border-box;
    justify-self: start;
}

.news-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8fafc;
    display: block;
    margin: 0;
}

.news-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    padding: 1.5rem;
}

.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    min-height: 200px;
    box-sizing: border-box;
    justify-content: space-between;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.news-card-category {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-weight: 400;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.news-card-title a {
    display: block;
    color: #0f172a;
    text-decoration: none;
    transition: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
}

.news-card-title a:hover {
    color: #0f172a;
}

.news-card-summary {
    color: #475569;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.news-card-link {
    align-self: flex-end;
    margin-left: auto;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 400;
    color: #2563eb;
    text-decoration: none;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.news-card-link::after {
    content: '›';
    font-size: 1rem;
}

.news-pagination {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-pagination .pagination-link {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
}

.news-pagination .pagination-link:hover {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.news-pagination .pagination-current {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.news-pagination .pagination-info {
    color: #64748b;
}

.news-empty {
    padding: 4rem 0;
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
}

.news-detail-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 4rem 0;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
}

.news-detail-meta .meta-category {
    background: rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 400;
    color: #ffffff;
}

.news-detail-meta .meta-divider {
    opacity: 0.6;
}

.news-detail-title {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    font-weight: 500;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.news-detail-summary {
    max-width: 780px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

/* Rich text insert attachment download link */
a.cms-download-file {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    margin: 0.35rem 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-all;
}
a.cms-download-file:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}
a.cms-download-file .cms-download-icon {
    flex-shrink: 0;
}

/* Rich text: image + text layouts (flex; not float — survives article sanitize CSS) */
.cms-imgtext {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    align-items: stretch;
    margin: 1.75rem 0;
    max-width: 100%;
    box-sizing: border-box;
    clear: both;
}
/* Legacy wrapper from earlier inserts — children join parent flex */
.cms-imgtext__media {
    display: contents;
}
.cms-imgtext__body {
    flex: 1 1 16em;
    min-width: min(100%, 16em);
    max-width: 100% !important;
    box-sizing: border-box;
    position: static !important;
    float: none !important;
}
.cms-imgtext--left .cms-imgtext__img,
.cms-imgtext--left .cms-imgtext__media img { order: 1; }
.cms-imgtext--left .cms-imgtext__body { order: 2; }
.cms-imgtext--right .cms-imgtext__img,
.cms-imgtext--right .cms-imgtext__media img { order: 2; }
.cms-imgtext--right .cms-imgtext__body { order: 1; }
.cms-imgtext--top {
    flex-direction: column;
}
/* Image is a flex item: inline width (% or px) controls size; drag-resize persists */
.cms-imgtext__img,
.cms-imgtext__media img,
.article-detail-body .cms-imgtext__img,
.article-detail-body .cms-imgtext__media img {
    flex: 1 1 200px;
    max-width: 100% !important;
    height: auto !important; /* override TinyMCE leftover height:300px */
    display: block !important;
    margin: 0 !important;
    object-fit: contain;
    align-self: center;
    position: static !important;
    float: none !important;
}
/* Old auto-uploaded placeholder SVGs — hide gray "Image" box on front if still in content */
.article-detail-body img.cms-imgtext__img[src*="blobid"][src$=".svg"],
.article-detail-body .cms-imgtext__media img[src*="blobid"][src$=".svg"] {
    outline: 1px dashed #f59e0b;
    outline-offset: 2px;
}
.cms-imgtext__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
.cms-imgtext__body > *:first-child {
    margin-top: 0 !important;
}
.cms-imgtext__body h2,
.cms-imgtext__body h3,
.cms-imgtext__body h4 {
    margin-top: 0 !important;
    margin-bottom: 0.65rem;
}
.cms-imgtext__body p {
    margin-bottom: 0.75rem;
}
.cms-imgtext__body p:last-child {
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .cms-imgtext,
    .cms-imgtext--left,
    .cms-imgtext--right {
        flex-direction: column !important;
    }
    .cms-imgtext--left .cms-imgtext__media,
    .cms-imgtext--left .cms-imgtext__body,
    .cms-imgtext--left .cms-imgtext__img,
    .cms-imgtext--right .cms-imgtext__media,
    .cms-imgtext--right .cms-imgtext__body,
    .cms-imgtext--right .cms-imgtext__img {
        order: 0 !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* All front-end rich text (product tabs, news, services, contact).
   container-type tracks the CONTENT column, not the viewport — product
   pages keep a sidebar so @media on the window never sees a "small" width. */
.cms-rt-html,
body.product-detail .detail-tab-content {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    writing-mode: horizontal-tb;
    container-type: inline-size;
    container-name: cms-rt;
}
.cms-rt-html,
.cms-rt-html *,
body.product-detail .detail-tab-content,
body.product-detail .detail-tab-content * {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    max-width: 100%;
    box-sizing: border-box;
}
.cms-rt-html *,
body.product-detail .detail-tab-content * {
    min-width: 0 !important;
}
.cms-rt-html img,
.cms-rt-html video,
body.product-detail .detail-tab-content img,
body.product-detail .detail-tab-content video {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}
.cms-rt-html iframe,
body.product-detail .detail-tab-content iframe {
    max-width: 100% !important;
}
.cms-rt-html table,
body.product-detail .detail-tab-content table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse;
}
.cms-rt-html td,
.cms-rt-html th,
body.product-detail .detail-tab-content td,
body.product-detail .detail-tab-content th {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    writing-mode: horizontal-tb !important;
    min-width: 0 !important;
    max-width: 100% !important;
    vertical-align: top;
}
.cms-rt-html [style*="display: flex"],
.cms-rt-html [style*="display:flex"],
body.product-detail .detail-tab-content [style*="display: flex"],
body.product-detail .detail-tab-content [style*="display:flex"] {
    flex-wrap: wrap !important;
    max-width: 100% !important;
}
.cms-rt-html [style*="display: flex"] > *,
.cms-rt-html [style*="display:flex"] > *,
body.product-detail .detail-tab-content [style*="display: flex"] > *,
body.product-detail .detail-tab-content [style*="display:flex"] > * {
    min-width: 0 !important;
    max-width: 100% !important;
}

@container cms-rt (max-width: 1080px) {
    .cms-rt-html table,
    .cms-rt-html thead,
    .cms-rt-html tbody,
    .cms-rt-html tfoot,
    .cms-rt-html tr,
    body.product-detail .detail-tab-content table,
    body.product-detail .detail-tab-content thead,
    body.product-detail .detail-tab-content tbody,
    body.product-detail .detail-tab-content tfoot,
    body.product-detail .detail-tab-content tr {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        table-layout: auto !important;
        float: none !important;
    }
    .cms-rt-html colgroup,
    .cms-rt-html col,
    body.product-detail .detail-tab-content colgroup,
    body.product-detail .detail-tab-content col {
        display: none !important;
    }
    .cms-rt-html td,
    .cms-rt-html th,
    body.product-detail .detail-tab-content td,
    body.product-detail .detail-tab-content th {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }
    .cms-rt-html td:empty,
    body.product-detail .detail-tab-content td:empty {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .cms-rt-html td img,
    .cms-rt-html th img,
    body.product-detail .detail-tab-content td img,
    body.product-detail .detail-tab-content th img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .cms-rt-html [style*="display: flex"],
    .cms-rt-html [style*="display:flex"],
    body.product-detail .detail-tab-content [style*="display: flex"],
    body.product-detail .detail-tab-content [style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
    .cms-rt-html [style*="display: flex"] > *,
    .cms-rt-html [style*="display:flex"] > *,
    body.product-detail .detail-tab-content [style*="display: flex"] > *,
    body.product-detail .detail-tab-content [style*="display:flex"] > * {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .cms-rt-html [style*="display: grid"],
    .cms-rt-html [style*="display:grid"],
    body.product-detail .detail-tab-content [style*="display: grid"],
    body.product-detail .detail-tab-content [style*="display:grid"] {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
    }
    .cms-rt-html [style*="display: table"],
    .cms-rt-html [style*="display:table"],
    .cms-rt-html [style*="table-cell"],
    body.product-detail .detail-tab-content [style*="display: table"],
    body.product-detail .detail-tab-content [style*="display:table"],
    body.product-detail .detail-tab-content [style*="table-cell"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Viewport fallback (older browsers / full-width pages) */
@media (max-width: 1400px) {
    .cms-rt-html table,
    .cms-rt-html thead,
    .cms-rt-html tbody,
    .cms-rt-html tfoot,
    .cms-rt-html tr,
    body.product-detail .detail-tab-content table,
    body.product-detail .detail-tab-content thead,
    body.product-detail .detail-tab-content tbody,
    body.product-detail .detail-tab-content tfoot,
    body.product-detail .detail-tab-content tr {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        table-layout: auto !important;
        float: none !important;
    }
    .cms-rt-html colgroup,
    .cms-rt-html col,
    body.product-detail .detail-tab-content colgroup,
    body.product-detail .detail-tab-content col {
        display: none !important;
    }
    .cms-rt-html td,
    .cms-rt-html th,
    body.product-detail .detail-tab-content td,
    body.product-detail .detail-tab-content th {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }
    .cms-rt-html td:empty,
    body.product-detail .detail-tab-content td:empty {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .cms-rt-html td img,
    .cms-rt-html th img,
    body.product-detail .detail-tab-content td img,
    body.product-detail .detail-tab-content th img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .cms-rt-html [style*="display: flex"] > *,
    .cms-rt-html [style*="display:flex"] > *,
    body.product-detail .detail-tab-content [style*="display: flex"] > *,
    body.product-detail .detail-tab-content [style*="display:flex"] > * {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .cms-rt-html [style*="display: grid"],
    .cms-rt-html [style*="display:grid"],
    body.product-detail .detail-tab-content [style*="display: grid"],
    body.product-detail .detail-tab-content [style*="display:grid"] {
        grid-template-columns: 1fr !important;
    }
}

html.debug-device-tablet .cms-rt-html table,
html.debug-device-mobile .cms-rt-html table,
html.debug-device-tablet body.product-detail .detail-tab-content table,
html.debug-device-mobile body.product-detail .detail-tab-content table,
html.debug-device-tablet .cms-rt-html thead,
html.debug-device-mobile .cms-rt-html thead,
html.debug-device-tablet .cms-rt-html tbody,
html.debug-device-mobile .cms-rt-html tbody,
html.debug-device-tablet .cms-rt-html tfoot,
html.debug-device-mobile .cms-rt-html tfoot,
html.debug-device-tablet .cms-rt-html tr,
html.debug-device-mobile .cms-rt-html tr,
html.debug-device-tablet .cms-rt-html td,
html.debug-device-mobile .cms-rt-html td,
html.debug-device-tablet .cms-rt-html th,
html.debug-device-mobile .cms-rt-html th,
html.debug-device-tablet body.product-detail .detail-tab-content thead,
html.debug-device-mobile body.product-detail .detail-tab-content thead,
html.debug-device-tablet body.product-detail .detail-tab-content tbody,
html.debug-device-mobile body.product-detail .detail-tab-content tbody,
html.debug-device-tablet body.product-detail .detail-tab-content tfoot,
html.debug-device-mobile body.product-detail .detail-tab-content tfoot,
html.debug-device-tablet body.product-detail .detail-tab-content tr,
html.debug-device-mobile body.product-detail .detail-tab-content tr,
html.debug-device-tablet body.product-detail .detail-tab-content td,
html.debug-device-mobile body.product-detail .detail-tab-content td,
html.debug-device-tablet body.product-detail .detail-tab-content th,
html.debug-device-mobile body.product-detail .detail-tab-content th {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}
@media (max-width: 768px) {
    .cms-rt-html ol,
    .cms-rt-html ul,
    body.product-detail .detail-tab-content ol,
    body.product-detail .detail-tab-content ul {
        padding-left: 1.15rem !important;
        margin-left: 0 !important;
    }
}

/* Narrow / wrapped product pages: kill stacked LR inset (card + pasted padding) */
@media (max-width: 1024px) {
    body.product-detail .products-main-section > .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    body.product-detail .products-content,
    body.product-detail .products-content > .card,
    body.product-detail .product-detail-tabs,
    body.product-detail .detail-tabs-content,
    body.product-detail .detail-tab-content,
    body.product-detail .cms-rt-html {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.product-detail .products-content > .card {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    body.product-detail .cms-rt-html div,
    body.product-detail .cms-rt-html section,
    body.product-detail .cms-rt-html article,
    body.product-detail .cms-rt-html table,
    body.product-detail .cms-rt-html td,
    body.product-detail .cms-rt-html th,
    body.product-detail .cms-rt-html p {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    body.product-detail .cms-rt-html ol,
    body.product-detail .cms-rt-html ul {
        padding-left: 1.15rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
body.product-detail .products-layout.is-attr-wrapped .products-content,
body.product-detail .products-layout.is-attr-wrapped .products-content > .card,
body.product-detail .products-layout.is-attr-wrapped .product-detail-tabs,
body.product-detail .products-layout.is-attr-wrapped .detail-tabs-content,
body.product-detail .products-layout.is-attr-wrapped .detail-tab-content,
body.product-detail .products-layout.is-attr-wrapped .cms-rt-html {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.product-detail .products-layout.is-attr-wrapped .products-content > .card {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
body.product-detail .products-layout.is-attr-wrapped .cms-rt-html div,
body.product-detail .products-layout.is-attr-wrapped .cms-rt-html section,
body.product-detail .products-layout.is-attr-wrapped .cms-rt-html article,
body.product-detail .products-layout.is-attr-wrapped .cms-rt-html table,
body.product-detail .products-layout.is-attr-wrapped .cms-rt-html td,
body.product-detail .products-layout.is-attr-wrapped .cms-rt-html th,
body.product-detail .products-layout.is-attr-wrapped .cms-rt-html p {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}
body.product-detail .products-layout.is-attr-wrapped .cms-rt-html ol,
body.product-detail .products-layout.is-attr-wrapped .cms-rt-html ul {
    padding-left: 1.15rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
@container cms-rt (max-width: 1080px) {
    .cms-rt-html,
    .cms-rt-html > div,
    .cms-rt-html div,
    .cms-rt-html section,
    .cms-rt-html article,
    .cms-rt-html table,
    .cms-rt-html td,
    .cms-rt-html th,
    .cms-rt-html p,
    body.product-detail .detail-tab-content,
    body.product-detail .detail-tab-content > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    .cms-rt-html ol,
    .cms-rt-html ul,
    body.product-detail .detail-tab-content ol,
    body.product-detail .detail-tab-content ul {
        padding-left: 1.15rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.news-detail-content {
    padding: 4rem 0;
    background: #f8fafc;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 3rem;
}

.news-detail-article {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.news-detail-cover img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.news-detail-body {
    padding: 2.6rem;
    font-size: 1.02rem;
    line-height: 1.9;
    color: #1e293b;
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.news-detail-body p {
    margin-bottom: 1.35rem;
}

.news-detail-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    margin: 1.5rem 0;
    object-fit: contain;
}

.news-detail-sidebar {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.9rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.news-detail-sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    color: #0f172a;
}

.news-detail-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-detail-sidebar li a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

.news-detail-sidebar li time {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.news-detail-back {
    padding: 0 0 4rem 0;
    text-align: center;
    background: #f8fafc;
}

.news-detail-back .btn {
    padding: 0.75rem 2.6rem;
    border-radius: 999px;
    font-weight: 400;
}

.menu-node {
    cursor: grab;
}

.menu-node.dragging {
    opacity: 0.45;
    cursor: grabbing;
}

.menu-node.drop-target {
    outline: 2px dashed rgba(59, 130, 246, 0.45);
}

.admin-resizable-panels {
    display: flex;
    align-items: stretch;
}

.menu-children .menu-node {
    margin: 0.5rem 0 0;
}

.menu-tree-body,
.menu-children {
    position: relative;
}

@media (max-width: 1024px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 3rem 0;
    }

    .news-filter-bar-inner {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        max-width: 100%;
    }

    .services-filter-bar-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 0.75rem;
        max-width: 100%;
    }

    .news-filter-btn,
    .services-filter-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.95rem;
    }

    .news-detail-body {
        padding: 1.9rem;
    }
}

@media (max-width: 1024px) {
    .news-ranking-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    /* Same breakpoint as hamburger: image above, text below */
    .news-content-main .news-card,
    .news-section.news-page-section .news-card,
    .news-card {
        grid-template-columns: 1fr !important;
    }

    .news-content-main .news-card-image,
    .news-section.news-page-section .news-card-image,
    .news-card-image {
        width: min(var(--lt-img-w, 300px), 86%) !important;
        max-width: min(var(--lt-img-w, 300px), 86%) !important;
        margin: 0.85rem auto 0.25rem !important;
        justify-self: center !important;
    }

    .news-card-body,
    .news-card-text,
    .news-card-title,
    .news-card-title a,
    .news-card-summary {
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
}

/* Fluid text + link placement (works at any width as the window shrinks) */
.news-card-body,
.news-card-text,
.news-card-summary,
.news-card-title,
.news-card-title a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.news-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    margin-top: auto;
}

.news-card-link {
    display: block;
    align-self: flex-end;
    margin: 0 0 0 auto;
    width: fit-content;
    max-width: 100%;
    text-align: right;
    white-space: normal;
}

@container news-main (min-width: 560px) {
    .news-card-image {
        width: 300px;
        max-width: 300px;
        margin: 0;
        border-radius: 0;
        justify-self: start;
    }

    .news-card-body {
        padding: 1rem 1.2rem 1rem 0.2rem;
    }
}

@media (max-width: 768px) {
    .news-filter-bar,
    .services-tab-bar {
        top: 60px;
    }
    
    .news-ranking-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .news-filter-bar-inner {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .news-filter-btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.7rem 0.35rem;
    }

    .news-card-body {
        padding: 0.85rem 1rem 1.1rem;
    }
}

.menu-node {
    cursor: grab;
}

.article-detail-section {
    padding: 4rem 0 5rem;
    background: #f8fafc;
}

.article-detail-header {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.2rem;
    color: #64748b;
    font-size: 0.95rem;
}

.article-detail-meta .meta-category {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-weight: 400;
}

.article-detail-meta .meta-divider {
    color: rgba(100, 116, 139, 0.5);
}

.article-detail-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: #0f172a;
    margin: 0 0 1rem;
    line-height: 1.25;
}

.article-detail-summary {
    max-width: 860px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin: 0;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 1.5rem 2rem;
}

.article-detail-main,
.article-detail-sidebar {
    background: transparent;
}

.article-detail-main {
    /* height:auto grows with content; overflow:hidden keeps border-radius clipping */
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
}

.article-detail-cover {
    overflow: hidden;
    border-radius: inherit;
}

.article-detail-cover img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 420px;
}

.article-detail-body {
    padding: 2.5rem;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #1f2937;
    /* Alignment comes from rich text; only force wrap within the column */
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.article-detail-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.3;
    font-weight: 500;
    margin: 0 0 2rem;
    color: #0f172a;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4 {
    margin-top: 2.25rem;
    margin-bottom: 1.1rem;
    color: #0f172a;
}

.article-detail-body p {
    margin-bottom: 1.4rem;
}

.article-detail-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.75rem 0;
    object-fit: contain;
}

/* width100% */
.article-detail-body img[width] {
    max-width: 100% !important;
    height: auto !important;
}

/* widthheight */
.article-detail-body img[width][height] {
    max-width: 100% !important;
    height: auto !important;
}

/* f_centerwidthheight */
.f_center img {
    max-width: 100%;
    height: auto;
}

/* f_centerwidth */
.f_center img[width] {
    max-width: 100%;
    height: auto !important;
}

/* f_centerheight */
.f_center img[height] {
    height: auto;
}

/* f_centerwidthheight */
.f_center img {
    max-width: 100%;
    height: auto;
}

/* f_centerwidth */
.f_center img[width] {
    max-width: 100%;
    height: auto !important;
}

/* f_centerheight */
.f_center img[height] {
    height: auto;
}

.article-detail-sidebar {
    padding: 0;
    min-width: 0;
    max-width: 300px;
    width: 100%;
}

.article-detail-sidebar h2 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.article-detail-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.article-detail-sidebar li a {
    color: #1d4ed8;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-detail-sidebar li a:hover {
    color: #1e293b;
}

.article-detail-sidebar li time {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.article-detail-empty {
    color: #94a3b8;
    font-size: 0.95rem;
}

.article-detail-back {
    margin-top: 3rem;
    text-align: center;
}

.article-detail-back .btn {
    padding: 0.75rem 2.6rem;
    border-radius: 999px;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .article-detail-layout {
        grid-template-columns: 1fr;
    }

    .article-detail-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        max-width: none;
    }

    .article-detail-sidebar .article-aside-card {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .article-detail-sidebar {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .article-detail-section {
        padding: 3rem 0 4rem;
    }

    .article-detail-header {
        padding: 2rem 1.75rem;
    }

    .article-detail-body {
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 480px) {
    .article-detail-header {
        padding: 1.75rem 1.5rem;
    }

    .article-detail-body {
        padding: 1.75rem 1.5rem;
    }
}

.article-hero {
    position: relative;
    padding: 6.5rem 0 4.5rem;
    color: #ffffff;
    background-color: #0f172a;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--article-hero-background, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    opacity: 0.75;
    z-index: 0;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(15, 23, 42, 0.92) 0%, rgba(29, 78, 216, 0.75) 100%);
    z-index: 1;
}

.article-hero .container {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.article-hero-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: #ffffff;
}

.article-breadcrumb span {
    display: inline-flex;
    align-items: center;
}

.article-hero-category {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 auto 1rem;
}

.article-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.2;
    font-weight: 500;
    margin: 0 0 1.25rem;
    text-align: center;
}

.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.article-hero-summary {
    max-width: 100%;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto;
    text-align: center;
}

/* Detail body: no top band under page-hero (use ~ — <style>/preview nodes may sit between) */
.main-wrapper > .page-hero {
    margin-bottom: 0 !important;
}
.main-wrapper > .page-hero ~ .article-main,
.main-wrapper > .page-hero ~ section.article-main,
.main-wrapper > .page-hero + .article-main,
.main-wrapper > .page-hero + section.article-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* News list: section glued under hero */
.main-wrapper > .page-hero ~ .news-section,
.main-wrapper > .page-hero ~ .news-page-section,
.main-wrapper > .page-hero + .news-section,
.main-wrapper > .page-hero + .news-page-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.article-main {
    padding: 0 0 5rem;
    background: #f8fafc;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.article-main .content-wrapper-container {
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    overflow: visible !important;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 1.5rem 2rem;
    align-items: start;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.article-detail-main {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
    /* Grow with content; overflow:hidden keeps rounded corners */
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    overflow: hidden;
}

.article-detail-cover {
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.article-detail-cover img {
    width: 100%;
    display: block;
    max-height: 460px;
    object-fit: cover;
}

.article-detail-body {
    padding: 2.75rem;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #1f2937;
    /* Do not force text-align; rich text controls left/center/right */
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    overflow: visible !important;
    position: relative;
}

/* Neutralize pasted Word/web layout that overlaps or clips */
.article-detail-body * {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Fixed heights from pasted HTML clip long articles — force auto */
.article-detail-body div,
.article-detail-body section,
.article-detail-body article,
.article-detail-body aside,
.article-detail-body header,
.article-detail-body footer,
.article-detail-body main,
.article-detail-body p,
.article-detail-body ul,
.article-detail-body ol,
.article-detail-body li,
.article-detail-body table,
.article-detail-body tbody,
.article-detail-body thead,
.article-detail-body tr,
.article-detail-body td,
.article-detail-body th,
.article-detail-body span,
.article-detail-body font {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
}

.article-detail-body *[style*="position"],
.article-detail-body [style*="position:absolute"],
.article-detail-body [style*="position: absolute"],
.article-detail-body [style*="position:fixed"],
.article-detail-body [style*="position: fixed"],
.article-detail-body [style*="position:sticky"],
.article-detail-body [style*="position: sticky"] {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    z-index: auto !important;
    transform: none !important;
}

.article-detail-body [style*="float"],
.article-detail-body *[align] {
    float: none !important;
}

.article-detail-body > *:first-child {
    margin-top: 0;
}

.article-detail-body .article-source-type {
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    line-height: 1.4;
    text-align: center;
}

.article-detail-body .article-detail-title {
    margin-top: 0;
    text-align: center;
}

.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4,
.article-detail-body p,
.article-detail-body li,
.article-detail-body td,
.article-detail-body th,
.article-detail-body div,
.article-detail-body span {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    position: static !important;
    float: none !important;
}

.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4 {
    margin-top: 2.4rem;
    margin-bottom: 1.2rem;
    color: #0f172a;
}

.article-detail-body h2 {
    font-size: 1.8rem;
}

.article-detail-body h3 {
    font-size: 1.5rem;
}

.article-detail-body h4 {
    font-size: 1.3rem;
}

.article-detail-body p {
    margin-bottom: 1.4rem;
}

.article-detail-body ul,
.article-detail-body ol {
    margin: 1.4rem 0;
    padding-left: 1.5rem;
    list-style-position: outside;
    max-width: 100%;
}

.article-detail-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid rgba(29, 78, 216, 0.35);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 0 16px 16px 0;
    color: #1e293b;
    font-style: italic;
    max-width: 100%;
    box-sizing: border-box;
}

.article-detail-body img,
.article-detail-body video,
.article-detail-body iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.75rem 0;
    object-fit: contain;
}

.article-detail-body table {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
}

.article-detail-body pre,
.article-detail-body code {
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    text-align: left;
}

/* width100% */
.article-detail-body img[width] {
    max-width: 100% !important;
    height: auto !important;
}

/* widthheight */
.article-detail-body img[width][height] {
    max-width: 100% !important;
    height: auto !important;
}

/* f_centerwidthheight */
.f_center img {
    max-width: 100%;
    height: auto;
}

/* f_centerwidth */
.f_center img[width] {
    max-width: 100%;
    height: auto !important;
}

/* f_centerheight */
.f_center img[height] {
    height: auto;
}

/* f_centerwidthheight */
.f_center img {
    max-width: 100%;
    height: auto;
}

/* f_centerwidth */
.f_center img[width] {
    max-width: 100%;
    height: auto !important;
}

/* f_centerheight */
.f_center img[height] {
    height: auto;
}

.article-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-aside-card {
    padding: 1.85rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-aside-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-color);
    transition: height 0.3s ease;
}

.article-aside-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.article-aside-card:hover::before {
    height: 5px;
}

.article-aside-card:last-child {
    margin-bottom: 0;
}

.article-aside-card-left {
    /* inset accent keeps border-radius intact (uneven border-left breaks radius in some engines) */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 1px 0 0 0 #3b82f6;
    background: #ffffff;
}

.article-aside-card-left:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), inset 1px 0 0 0 #2563eb;
}

.article-aside-card-right {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset -1px 0 0 0 #10b981;
    background: #ffffff;
}

.article-aside-card-right:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), inset -1px 0 0 0 #059669;
}

/* Article Overview -  */
.article-aside-card-overview::before {
    display: none;
}

.article-aside-card-overview h2 {
    color: #3b82f6;
    border-bottom: 2px solid rgba(59, 130, 246, 0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Summary -  */
.article-aside-card-summary::before {
    display: none;
}

.article-aside-card-summary h2 {
    color: #10b981;
    border-bottom: 2px solid rgba(16, 185, 129, 0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Share Article -  */
.article-aside-card-share::before {
    display: none;
}

.article-aside-card-share h2 {
    color: #8b5cf6;
    border-bottom: 2px solid rgba(139, 92, 246, 0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Latest Recommendations -  */
.article-aside-card-recommendations::before {
    display: none;
}

.article-aside-card-recommendations h2 {
    color: #f59e0b;
    border-bottom: 2px solid rgba(245, 158, 11, 0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Tags -  */
.article-aside-card-tags::before {
    display: none;
}

.article-aside-card-tags h2 {
    color: #ec4899;
    border-bottom: 2px solid rgba(236, 72, 153, 0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.article-aside-card h2 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.article-aside-card p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.article-aside-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.article-aside-meta li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.65rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    transition: all 0.2s ease;
    margin-bottom: 0;
    color: #334155;
    min-width: 0;
}

.article-aside-meta li:last-child {
    margin-bottom: 0;
}

.article-aside-meta li:hover {
    background: transparent;
    transform: none;
}

.article-aside-meta li span:first-child {
    color: #2563eb;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-aside-meta li span:last-child {
    font-weight: 500;
    color: #1e293b;
    text-align: right;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-share-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.article-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 72px;
    aspect-ratio: 1 / 1;
    padding: 0.55rem 0.35rem;
    border-radius: 8px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.article-share-btn .share-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: block;
}

.article-share-btn .share-label,
.article-share-btn > span:not(.share-icon) {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-share-btn.article-share-whatsapp {
    background: #25D366;
}

.article-share-btn.article-share-whatsapp:hover {
    background: #20BA5A;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.25);
}

.article-share-btn.article-share-facebook {
    background: #1877F2;
}

.article-share-btn.article-share-facebook:hover {
    background: #166FE5;
    box-shadow: 0 12px 28px rgba(24, 119, 242, 0.25);
}

.article-share-btn.article-share-twitter {
    background: #1DA1F2;
}

.article-share-btn.article-share-twitter:hover {
    background: #1A91DA;
    box-shadow: 0 12px 28px rgba(29, 161, 242, 0.25);
}

.article-share-btn.article-share-wechat {
    background: #07C160;
}

.article-share-btn.article-share-wechat:hover {
    background: #06AD56;
    box-shadow: 0 12px 28px rgba(7, 193, 96, 0.25);
}

.article-share-btn.article-share-weibo {
    background: #E6162D;
}

.article-share-btn.article-share-weibo:hover {
    background: #D01429;
    box-shadow: 0 12px 28px rgba(230, 22, 45, 0.25);
}

.article-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.25);
}

.article-share-btn.is-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.article-share-btn.is-secondary:hover {
    background: #cbd5e1;
    box-shadow: 0 12px 28px rgba(203, 213, 225, 0.25);
}

.article-share-btn.copied {
    background: #34d399;
    color: #064e3b;
}

.article-share-tip {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.article-prev-next {
    margin: 3.5rem 0 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.article-prev,
.article-next {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.article-prev:hover,
.article-next:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.article-prev.is-placeholder,
.article-next.is-placeholder {
    background: #f1f5f9;
    color: #94a3b8;
    box-shadow: none;
    cursor: default;
}

.article-prev-next .label {
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-prev-next .title {
    font-size: 1.05rem;
    line-height: 1.5;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.article-related {
    margin-top: 4rem;
}

.article-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.article-related-header h2 {
    font-size: 1.6rem;
    margin: 0;
    color: #0f172a;
}

.article-related-link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
}

.article-related-link:hover {
    text-decoration: underline;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .article-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .article-related-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.article-related-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.article-related-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0;
    text-decoration: none;
    color: #0f172a;
    overflow: hidden;
}

.article-related-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}

.article-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-related-card:hover .article-related-image img {
    transform: scale(1.05);
}

.article-related-body h3,
.article-related-card-title {
    padding: 1rem 1.5rem 0.5rem;
    margin: 0;
}

.article-related-body time,
.article-related-card-date {
    padding: 0 1.5rem 1.5rem;
}

.article-related-body h3,
.article-related-card-title {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.5;
}

.article-related-card-summary {
    margin: 0;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
}

.article-related-body time,
.article-related-card-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.article-detail-back {
    margin-top: 3rem;
    text-align: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem;
    border-radius: 999px;
    border: 1px solid #1d4ed8;
    color: #1d4ed8;
    background: transparent;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline:hover {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.2);
}

.meta-divider {
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .article-detail-layout {
        grid-template-columns: 1fr;
    }

    .article-detail-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        max-width: none;
    }

    .article-detail-sidebar .article-aside-card {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .article-detail-sidebar {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 5rem 0 3.5rem;
    }

    .article-main {
        padding: 3rem 0 4rem;
    }

    .article-detail-body {
        padding: 2.25rem 1.85rem;
    }

    .article-share-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .article-detail-body {
        padding: 1.75rem 1.5rem;
    }

    .article-hero-title {
        font-size: 2.2rem;
    }

    .article-detail-main,
    .article-aside-card,
    .article-prev,
    .article-next,
    .article-related-card {
        border-radius: 18px;
    }
}

.article-aside-meta li span:first-child {
    color: #2563eb;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.article-latest-list li,
.article-latest-item {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.article-latest-link,
.article-latest-list li a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.35;
    min-width: 0;
    max-width: 100%;
}

.article-latest-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
}

.article-latest-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-latest-link:hover,
.article-latest-list li a:hover {
    color: #2563eb;
}

.article-latest-list li time,
.article-latest-item time {
    display: none;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    padding-left: calc(22px + 0.65rem);
}

.service-richtext {
    display: grid;
    gap: 1.25rem;
    color: #1f2937;
    line-height: 1.75;
}

.service-richtext p {
    margin: 0;
}

.service-richtext ul,
.service-richtext ol {
    padding-left: 1.25rem;
    margin: 0;
}

.service-richtext li {
    margin-bottom: 0.5rem;
}

.download-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    background: rgba(248, 250, 252, 0.65);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 12px;
}

.download-btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.75rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.01em;
    cursor: not-allowed;
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section-heading h2 {
    font-size: 2.25rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.section-heading p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-hero {
    padding: 4.5rem 0 3.5rem;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 45%);
}

.contact-hero-inner {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.contact-hero-content {
    flex: 1 1 0;
}

.contact-hero-eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-weight: 400;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.contact-hero h1 {
    font-size: 2.85rem;
    margin: 1.25rem 0 1rem;
    line-height: 1.2;
    color: #0f172a;
}

.contact-hero p {
    font-size: 1.08rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.contact-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.contact-hero-bullets li {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.98rem;
    color: #1f2937;
}

.contact-hero-bullets li::before {
    content: '✔';
    color: #2563eb;
    font-weight: 400;
}

.contact-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.08);
    font-weight: 400;
    transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.6);
}

.contact-hero-media {
    position: relative;
    flex: 1 1 0;
    max-width: 520px;
}

.contact-hero-media img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 40px 60px -40px rgba(15, 23, 42, 0.35);
    object-fit: cover;
}

.contact-hero-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: #0f172a;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 18px;
    box-shadow: 0 25px 40px -30px rgba(15, 23, 42, 0.65);
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-hero-badge span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
}

.contact-hero-badge strong {
    font-size: 1.1rem;
}

.contact-metrics {
    padding: 3.5rem 0;
}

.contact-metrics-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.contact-metric-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 30px 55px -45px rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
}

.contact-metric-card h3 {
    font-size: 2.4rem;
    font-weight: 500;
    color: #1d4ed8;
    margin: 0 0 0.5rem;
}

.contact-metric-card .metric-label {
    font-weight: 400;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.contact-metric-card .metric-description {
    color: #475569;
    line-height: 1.65;
    font-size: 0.95rem;
}

.contact-channel-section {
    padding: 3.5rem 0;
}

.contact-channel-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-channel-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.8rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 40px -32px rgba(15, 23, 42, 0.35);
}

.contact-channel-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.1);
    flex: 0 0 auto;
}

.contact-channel-icon::before {
    content: '\260E';
}

.contact-channel-icon--tools::before {
    content: '\2699';
}

.contact-channel-icon--handshake::before {
    content: '\1F91D';
}

.contact-channel-body h3 {
    font-size: 1.25rem;
    margin: 0 0 0.65rem;
    color: #0f172a;
}

.contact-channel-body p {
    margin: 0 0 0.85rem;
    color: #475569;
    line-height: 1.65;
}

.contact-channel-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.contact-channel-links a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.contact-sales-section {
    padding: 3.5rem 0;
}

.contact-sales-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-sales-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 35px 55px -35px rgba(15, 23, 42, 0.65);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-sales-card-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 400;
}

.contact-sales-region {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.contact-sales-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-sales-list span {
    display: inline-block;
    min-width: 56px;
    color: rgba(255, 255, 255, 0.65);
}

.contact-sales-list a {
    color: #60a5fa;
    text-decoration: none;
}

.contact-sales-qrs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-sales-qrs div {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 16px;
    padding: 0.75rem;
    text-align: center;
}

.contact-sales-qrs span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-sales-qrs img {
    width: 100%;
    max-width: 110px;
    height: auto;
    border-radius: 12px;
}

.contact-offices-section {
    padding: 3.5rem 0;
}

.contact-offices-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-office-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 28px 45px -40px rgba(15, 23, 42, 0.4);
}

.contact-office-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
}

.contact-office-header span {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #475569;
}

.contact-office-address {
    margin: 1rem 0;
    color: #1f2937;
    line-height: 1.6;
}

.contact-office-phone {
    color: #2563eb;
    font-weight: 400;
    text-decoration: none;
}

.contact-map-section {
    padding: 3.5rem 0;
}

.contact-map-wrapper {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: stretch;
}

.contact-map-embed iframe {
    width: 100%;
    min-height: 360px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 30px 55px -45px rgba(15, 23, 42, 0.55);
}

.contact-map-info {
    background: #0f172a;
    color: #ffffff;
    border-radius: 20px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-map-info h2 {
    margin: 0;
    font-size: 1.75rem;
}

.contact-map-info p {
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.7;
}

.contact-map-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.contact-map-info li::before {
    content: '•';
    margin-right: 0.5rem;
    color: #60a5fa;
}

.contact-showcase {
    padding: 3.5rem 0;
}

.contact-gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-gallery-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 26px 45px -38px rgba(15, 23, 42, 0.45);
}

.contact-gallery-card img {
    width: 100%;
    display: block;
    height: 220px;
    object-fit: cover;
}

.contact-gallery-card figcaption {
    padding: 0.85rem 1.1rem;
    color: #475569;
    font-size: 0.9rem;
}

.contact-faq-section {
    padding: 3.5rem 0;
}

.contact-faq-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-faq-accordion details {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 45px -40px rgba(15, 23, 42, 0.32);
}

.contact-faq-accordion summary {
    font-weight: 400;
    font-size: 1.05rem;
    color: #0f172a;
    cursor: pointer;
}

.contact-faq-accordion p {
    margin: 0.75rem 0 0;
    color: #475569;
    line-height: 1.7;
}

.contact-form-section {
    padding: 3.5rem 0 4.5rem;
}

.contact-form-wrapper {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.08));
    border-radius: 28px;
    padding: 3rem;
    align-items: stretch;
}

.contact-form-intro {
    background: #0f172a;
    color: #ffffff;
    border-radius: 24px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 35px 60px -35px rgba(15, 23, 42, 0.6);
}

.contact-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.contact-form-intro h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.contact-form-intro p {
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.7;
}

.contact-form-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.contact-form-highlights li::before {
    content: '•';
    margin-right: 0.45rem;
    color: #60a5fa;
}

.contact-form-direct {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.85);
}

.contact-form-direct a {
    color: #60a5fa;
    text-decoration: none;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 55px -40px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.contact-form-card .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form-card .form-actions {
    margin-top: 1.75rem;
}

.btn-wide {
    padding-left: 3rem;
    padding-right: 3rem;
}

.form-footnote {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 1200px) {
    .contact-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-hero-actions {
        justify-content: center;
    }

    .contact-hero-media {
        max-width: 100%;
    }

    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-map-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-map-info {
        padding: 1.75rem;
    }

    .contact-form-card .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-sales-qrs {
        grid-template-columns: 1fr 1fr;
    }

    .section-heading h2 {
        font-size: 2rem;
    }
}

@media (max-width: 520px) {
    .contact-sales-qrs {
        grid-template-columns: 1fr;
    }

    .contact-channel-card {
        flex-direction: column;
    }

    .contact-channel-icon {
        width: 52px;
        height: 52px;
    }
}

.products-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.products-group-block {
    padding: 0 0 2rem 0;
}

.products-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.products-group-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--dark-color);
    letter-spacing: 0.02em;
}

.products-group-link {
    font-size: 0.9rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.products-group-link::after {
    content: '›';
    font-size: 1rem;
    line-height: 1;
}

.products-group-link:hover {
    color: #1d4ed8;
}

.products-group-block .products-grid-zlan {
    margin-top: 0;
    border-radius: 12px;
}

.products-group-block + .products-group-block {
    /* border-top: 1px solid rgba(226, 232, 240, 0.9); */
}

@media (max-width: 768px) {
    .products-group-block {
        padding: 0 0 1.5rem 0;
    }

    .products-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
}

.product-detail .svc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.product-detail .svc-faq-item {
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    padding: 0.35rem 1rem;
}

.product-detail .svc-faq-q {
    cursor: pointer;
    font-weight: 600;
    padding: 0.65rem 0;
    list-style: none;
}

.product-detail .svc-faq-q::-webkit-details-marker {
    display: none;
}

.product-detail .svc-faq-a {
    padding: 0 0 0.85rem;
    color: #475569;
    line-height: 1.7;
}

@keyframes vw-ah-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
@keyframes vw-ah-shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.vw-ah--fade-up .vw-ah-text {
    animation: vw-ah-fade-up .7s ease both;
}
.vw-ah--underline .vw-ah-text {
    display: inline-block;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 3px;
    animation: vw-ah-fade-up .5s ease both;
    padding-bottom: .15em;
}
.vw-ah--underline.is-in,
.vw-ah--underline .vw-ah-text {
    background-size: 100% 3px;
    transition: background-size .8s ease;
}
.vw-ah--gradient .vw-ah-text {
    background: linear-gradient(90deg, #0f766e, #2563eb, #0f766e);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: vw-ah-shine 3s linear infinite;
}
.vw-ah--typewriter .vw-ah-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid currentColor;
    width: 0;
    animation: vw-ah-type 2.4s steps(28, end) forwards;
}
@keyframes vw-ah-type {
    to { width: 100%; }
}

.vw-flip-box {
    perspective: 1000px;
}
.vw-flip-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform .55s ease;
}
.vw-flip-box:hover .vw-flip-inner {
    transform: rotateY(180deg);
}
.vw-flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
    border-radius: 12px;
    box-sizing: border-box;
}
.vw-flip-back { transform: rotateY(180deg); }
.vw-flip-title { font-weight: 700; font-size: 1.2rem; margin-bottom: .4rem; }
.vw-flip-text { font-size: .95rem; line-height: 1.55; opacity: .92; }

.vw-checklist-ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vw-checklist-ul li {
    position: relative;
    padding: .4rem 0 .4rem 1.7rem;
    line-height: 1.5;
}
.vw-checklist-ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0f766e;
    font-weight: 700;
}

@media (max-width: 768px) {
    .vw-testimonials-grid,
    .vw-ah--typewriter .vw-ah-text {
        grid-template-columns: 1fr;
        white-space: normal;
        width: auto;
        border-right: none;
        animation: vw-ah-fade-up .7s ease both;
    }
}

/* Homepage authenticity: full-bleed band, inner row uses container width */
.vw-widget.vw-authenticity {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    background: transparent;
}
.vw-auth-band {
    width: 100%;
    box-sizing: border-box;
    background:
        radial-gradient(1200px 280px at 8% 0%, rgba(45, 212, 191, 0.18), transparent 55%),
        linear-gradient(115deg, #0f172a 0%, #134e4a 48%, #0f766e 100%);
    color: #f8fafc;
}
.vw-auth-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem 3rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 2.25rem clamp(1.25rem, 5vw, 4.5rem);
}
.vw-auth-copy {
    flex: 1 1 42%;
    min-width: 0;
}
.vw-auth-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.25;
}
.vw-auth-text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 40rem;
}
.vw-auth-form {
    flex: 1 1 52%;
    min-width: 0;
    width: 100%;
}
.vw-auth-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
}
.vw-auth-field {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.vw-auth-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #99f6e4;
}
.vw-auth-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    height: 3.1rem;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    font-size: 1rem;
    outline: none;
}
.vw-auth-field input[type="text"]::placeholder {
    color: #94a3b8;
}
.vw-auth-field input[type="text"]:focus {
    border-color: #5eead4;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.28);
}
.vw-auth-submit,
.vw-auth-form button[type="submit"] {
    flex: 0 0 auto;
    align-self: flex-end;
    height: 3.1rem;
    padding: 0 1.35rem;
    border: 0;
    border-radius: 10px;
    background: #5eead4;
    color: #042f2e;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}
.vw-auth-submit:hover,
.vw-auth-form button[type="submit"]:hover {
    background: #99f6e4;
}
.vw-auth-result {
    min-height: 0;
    margin-top: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}
.vw-auth-result.is-on {
    margin-top: 0.7rem;
}
@media (max-width: 800px) {
    .vw-auth-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.75rem 1.25rem;
    }
    .vw-auth-row {
        flex-direction: column;
    }
    .vw-auth-submit,
    .vw-auth-form button[type="submit"] {
        align-self: stretch;
        width: 100%;
    }
}

