/* Spacing scale (8px grid): section 48/40/32, title 24/24/16 — desktop/≤1024/≤900·600 */
/* ============================================================
     PRODUCT CATEGORY MODULE — Hover-reveal dropdown below header
     Step 1: Icon category tab bar (always visible)
     Step 2: Link content area (hidden by default, shows on hover)
     ============================================================ */
  .product-category-module {
    border-bottom: 1px solid var(--border-light);
    background: #fff;
    position: relative;
  }

  /* --- STEP 1: Category Icon Tab Bar --- */
  .cat-icon-bar {
    border-bottom: none;
    background: #fafbfc;
    position: relative;
    z-index: 10;
  }
  .cat-icon-bar-inner {
    max-width: 1320px; margin: 0 auto;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cat-icon-item {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    gap: 6px;
    padding: 14px 14px 10px;
    min-height: 76px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all .2s ease;
    flex-shrink: 0;
    position: relative;
  }
  .cat-icon-item:hover { background: var(--primary-lighter); }
  .cat-icon-item.active {
    border-bottom-color: var(--primary);
    background: linear-gradient(to bottom, transparent 55%, var(--primary-lighter) 100%);
  }
  .cii-icon {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  }
  .cii-icon svg {
    width: 26px; height: 26px;
    stroke: var(--text-secondary); fill: none; stroke-width: 1.4;
    transition: stroke .2s ease;
  }
  .cat-icon-item.active .cii-icon svg,
  .cat-icon-item:hover .cii-icon svg { stroke: var(--primary); }
  .cii-label {
    font-size: 11px; font-weight: 600; color: var(--text-secondary);
    text-align: center; line-height: 1.35;
    transition: color .2s ease;
    width: 88px;
    min-height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }
  /* 单行文字垂直居中（JS 检测后自动添加 .single-line class） */
  .cii-label.single-line {
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-line-clamp: unset;
  }
  .cat-icon-item.active .cii-label { color: var(--primary); font-weight: 700; }

  /* --- STEP 2: Content Area (hover-reveal dropdown) --- */
  .cat-content-area {
    max-width: 100%;
    max-height: 440px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
    border-top: 1px solid var(--border-light);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .28s ease, visibility .28s ease, transform .28s ease;
  }

  /* Hover reveal */
  .product-category-module:hover .cat-content-area,
  .cat-content-area:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .cat-content-warp{
    max-width: 1320px; margin: 0 auto; padding: 24px 40px 28px;
  }

  /* Content panels — only active one shows */
  .cat-content-panel { display: none; }
  .cat-content-panel.active { display: block; animation: fadeIn .25s ease; }

   @media (max-width:768px) {
/* removed-by-fix: .product-category-module{ display: none;} */
   }



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

  .cc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px 18px;
  }
  /* 2-3 column override when content is sparse */
  .cc-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  /* ---- Left: category list redesign ---- */
  .category-item {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border-subtle, #eaecef);
    border-radius: 10px;
    transition: all .2s ease;
  }
  .category-item:hover {
    border-color: var(--primary-light, #e8d5d5);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transform: translateY(-1px);
  }
  .cc-title a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px; font-weight: 700; color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -.08px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease, color .2s ease;
  }
  .cc-title a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
  }
  .cc-title a::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    opacity: .5;
    transition: opacity .2s ease, transform .2s ease;
  }
  .cc-title a:hover::after {
    opacity: 1;
    transform: rotate(-45deg) translateX(1px);
  }
  /* ---- More 链接（分类产品 >3 时显示，置于标题行右侧） ---- */
  .cc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .cc-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }
  .cc-more::after {
    content: '\2192';
    margin-left: 3px;
    font-weight: 700;
  }
  .cc-more:hover {
    text-decoration: underline;
  }
  .cc-product-links {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
  }
  .cc-link {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0 5px 4px;
    font-size: 13px; font-weight: 400; color: var(--text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all .18s ease;
  }
  .cc-link::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--border-subtle, #d0d4da);
    flex-shrink: 0;
    transition: background .18s ease;
  }
  .cc-link:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 10px;
    background: rgba(var(--primary-rgb, 180,40,40), .03);
    border-radius: 0 4px 4px 0;
  }
  .cc-link:hover::before {
    background: var(--primary);
  }

  /* ---- Subcategory group with product cards ---- */
  .cc-subcat-group {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle, #eaecef);
  }
  .cc-subcat-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .cc-subcat-heading {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 14px;
  }
  .cc-subcat-heading .cc-title { margin-bottom: 0; font-size: 15px; }
  .cc-subcat-heading .cc-link { font-size: 12.5px; font-weight: 500; }

  /* ---- Product card row (3 per subcategory) ---- */
  .cc-products-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .cc-product-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--border-subtle, #eaecef);
    border-radius: 10px; overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
    text-decoration: none; color: inherit;
  }
  .cc-product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
  }
  .cc-product-img {
    aspect-ratio: 4/3;
    background: #f7f8fa;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .cc-product-img img {
    max-width: 80%; max-height: 80%;
    object-fit: contain;
  }
  .cc-product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    opacity: .6;
  }
  .cc-product-body {
    padding: 10px 12px 12px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .cc-product-title {
    font-size: 13px; font-weight: 600; color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cc-product-model {
    font-size: 11.5px; color: var(--text-secondary);
    font-weight: 400;
  }
  .cc-no-products {
    font-size: 12.5px; color: var(--text-secondary);
    font-style: italic; padding: 4px 0;
  }

  /* External link style */
  .cc-link-ext {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 500; color: var(--primary);
    margin-top: 16px; padding-top: 10px;
    border-top: 1px solid var(--border-light);
  }
  .cc-link-ext svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

  /* Featured card in 4th column */
  .cc-highlight { }
  .cc-featured-card {
    background: linear-gradient(160deg, rgba(var(--primary-rgb,180,40,40),.04) 0%, #fff 50%);
    border: 1px solid var(--primary-light);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex; flex-direction: column; gap: 12px;
    position: relative;
    overflow: hidden;
  }
  .cc-featured-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 14px 14px 0 0;
  }
  .cc-feat-tag {
    font-size: 11px; font-weight: 700; color: var(--primary);
    text-transform: uppercase; letter-spacing: 1.5px;
  }
  .cc-feat-title { font-size: 16px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
  .cc-feat-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
  .cc-feat-cta {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    padding: 10px 22px; background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 600; border-radius: 8px;
    transition: all .2s ease; margin-top: 6px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb,180,40,40),.25);
  }
  .cc-feat-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb,180,40,40),.35);
  }
  .cc-feat-cta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

  /* ---- Panel layout: left links + right featured card ---- */
  .cat-panel-layout {
    display: flex;
    gap: 36px;
    align-items: flex-start;
  }
  .cat-panel-main {
    flex: 1 1 auto;
    min-width: 0;
  }
  .cat-panel-featured {
    width: 280px;
    flex-shrink: 0;
    align-self: center;
  }
  .cat-panel-featured .cc-featured-card {
    height: auto;
    max-height: none;
  }

  /* Pagination dots at bottom of module */
  .cat-pagination-dots {
    display: flex; justify-content: center; gap: 10px;
    padding: 16px 0 12px; align-items: center;
  }
  .cp-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border-color); cursor: pointer;
    transition: all .25s ease; flex-shrink: 0;
  }
  .cp-dot.active { background: var(--primary); transform: scale(1.35); }
  .cp-dot:hover { background: var(--text-muted); }


  /* ============================================================
     LEFT-SIDE MEGA DRAWER (for mobile / alternative use)
     ============================================================ */
  .mega-overlay {
    position:fixed; inset:0;
    background:rgba(26,31,54,.35); z-index:99;
    opacity:0; visibility:hidden;
    transition:opacity .3s ease, visibility .3s ease;
  }
  .mega-overlay.visible { opacity:1; visibility:visible; }

  .mega-panel-wrapper {
    position:fixed; inset:0;
    z-index:100; pointer-events:none;
    display:flex;
  }
  .mega-panel-wrapper.active { pointer-events:auto; }

  .mega-panel {
    position:relative;
    width:680px; max-width:85vw; height:100vh;
    background:#fff;
    margin-left:-680px;
    overflow-y:auto;
    display:flex; flex-direction:column;
    flex-shrink:0;
    box-shadow: 10px 0 50px rgba(0,0,0,.18);
    transition:margin-left .38s cubic-bezier(.4,0,.2,1);
    opacity:0;
  }
  .mega-panel.open { margin-left:0; opacity:1; }

  .cat-tabs {
    display:flex; padding:0 32px;
    border-bottom:1px solid var(--border-light);
    background:#fafbfc; flex-shrink:0;
  }
  .cat-tab {
    display:flex; flex-direction:column; align-items:center; gap:7px;
    padding:16px 22px 12px; cursor:pointer;
    border-bottom:3px solid transparent;
    transition:all .2s ease; white-space:nowrap; flex-shrink:0;
  }
  .cat-tab:hover { background:var(--primary-lighter); }
  .cat-tab.active {
    border-bottom-color: var(--primary);
    background: linear-gradient(to bottom, transparent 60%, var(--primary-lighter) 100%);
  }
  .cat-tab-icon { width:28px; height:28px; display:flex; align-items:center; justify-content:center; }
  .cat-tab-icon svg { width:24px; height:24px; stroke:var(--text-secondary); fill:none; stroke-width:1.5; }
  .cat-tab.active .cat-tab-icon svg { stroke:var(--primary); }
  .cat-tab-label { font-size:11.5px; font-weight:600; color:var(--text-secondary); text-align:center; max-width:72px; line-height:1.3; }
  .cat-tab.active .cat-tab-label { color:var(--primary); }

  .mega-content { flex:1; overflow-y:auto; padding:24px 32px 36px; }
  .mega-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .mega-col-title { font-size:13px; font-weight:700; color:var(--text-primary); margin-bottom:10px; letter-spacing:-.1px; }
  .mega-link { display:block; padding:6px 0; font-size:13.5px; font-weight:400; color:var(--text-secondary); transition:all .15s ease; }
  .mega-link:hover { color:var(--primary); padding-left:4px; }
  .mega-link-ext { display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:500; color:var(--primary); margin-top:14px; padding-top:8px; border-top:1px solid var(--border-light); }
  .mega-link-ext svg { width:13px; height:13px; stroke:currentColor; fill:none; }
  .mega-featured { background:linear-gradient(135deg, var(--primary-light) 0%, #fff 60%); border:1.5px solid var(--primary-light); border-radius:12px; padding:22px; display:flex; flex-direction:column; gap:12px; }
  .featured-label { font-size:10.5px; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:1.2px; }
  .featured-title { font-size:15px; font-weight:600; color:var(--text-primary); line-height:1.35; }
  .featured-desc { font-size:12.5px; color:var(--text-secondary); line-height:1.55; }
  .featured-cta { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; padding:8px 18px; background:var(--primary); color:#fff; font-size:13px; font-weight:600; border-radius:6px; transition:background .18s ease; margin-top:4px; }
  .featured-cta:hover { background:var(--primary-dark); }
  .featured-cta svg { width:14px; height:14px; fill:currentColor; }

  
  /* ============================================================
     HERO BANNER — Philips-style Full-width Carousel
     Full-viewport hero with image + text overlay, auto-play
     ============================================================ */
  .hero-banner {
    position: relative;
    width: 100%;
    height: 430px;
    min-height: auto;
    max-height: none;
    overflow: hidden;
    background: #0a0e1a;
  }

  /* --- 单张幻灯片视频背景（开启后替代该张背景图片） --- */
  .hero-slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  /* --- Slide container --- */
  .hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* --- Individual slide (absolute stacked) --- */
  .hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    /* No transition until JS marks .hero-slides as .is-ready. This prevents
       a black flash on first paint if the active image hasn't decoded yet. */
    transition: none;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
  }
  /* Transitions are enabled only after the carousel JS has initialised and the
     first slide image has finished loading. Match BOTH selector forms so the
     rule works whether .is-ready ends up on the wrapper or on the slide. */
  .hero-slides.is-ready .hero-slide,
  .hero-slide.is-ready {
    transition: opacity .8s ease, visibility .8s ease;
  }
  /* Pre-init / no-JS fallback: keep the FIRST slide visible so the hero never
     blacks out when .active is missing or JS hasn't run yet. Match both forms
     of the not-ready guard too. */
  .hero-slides:not(.is-ready) .hero-slide:first-child,
  .hero-slide:not(.is-ready):first-child {
    opacity: 1;
    visibility: visible;
    z-index: 1;
  }

  /* --- Slide background image area (left side) --- */
  .hero-slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
  }
  .hero-slide-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
  /* Dark overlay on image so text is readable */
  .hero-slide-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,14,26,.25), rgba(10,14,26,.55));
  }

  /* Fallback bg when no image — CSS gradient placeholder */
  .hero-slide-bg-fallback {
    width: 100%; height: 100%;
    /* Medical-themed gradient placeholder */
  }
  .hero-slide-bg-fallback.bg-grad-1 {
    background:
      linear-gradient(135deg, rgba(152,41,43,.15) 0%, transparent 50%),
      linear-gradient(225deg, #1a2a4a 0%, #0d1629 40%, #0a1020 100%);
  }
  .hero-slide-bg-fallback.bg-grad-2 {
    background:
      linear-gradient(160deg, rgba(59,130,246,.12) 0%, transparent 45%),
      linear-gradient(220deg, #162038 0%, #0c1324 45%, #090e1a 100%);
  }
  .hero-slide-bg-fallback.bg-grad-3 {
    background:
      linear-gradient(140deg, rgba(16,185,129,.1) 0%, transparent 50%),
      linear-gradient(230deg, #1a2838 0%, #0f1825 40%, #0a1018 100%);
  }
  .hero-slide-bg-fallback.bg-grad-4 {
    background:
      linear-gradient(150deg, rgba(245,158,11,.1) 0%, transparent 48%),
      linear-gradient(210deg, #1c2540 0%, #111b2e 45%, #0a1220 100%);
  }

  /* Decorative abstract shapes inside fallback bg */
  .bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
  }
  .bg-shape-1 { width: 400px; height: 400px; background: var(--primary); top: -80px; left: -100px; opacity: .18; }
  .bg-shape-2 { width: 300px; height: 300px; background: #2563eb; bottom: -60px; right: 20%; opacity: .12; }
  .bg-shape-3 { width: 250px; height: 250px; background: #10b981; top: 30%; right: -60px; opacity: .1; }
  .bg-shape-4 { width: 350px; height: 200px; background: var(--primary); bottom: 20%; left: 10%; opacity: .08; border-radius: 120px; }

  /* --- Text content area (right side) --- */
  .hero-content {
    position: relative;
    z-index: 3;
    margin-left: 52%;
    max-width: 600px;
    padding: 0 60px 0 40px;
  }

  /* --- Product / Phone Image (left side of hero) --- */
  .hero-product-image {
    position: absolute;
    left: 4%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: clamp(280px, 28vw, 420px);
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(10,14,26,.25));
    animation: hero-float-in 1s ease-out both;
  }
  .hero-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  @keyframes hero-float-in {
    from { opacity: 0; transform: translateY(-50%) translateX(-30px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
  }

  /* Eyebrow / tag label above headline */
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(152,41,43,.1);
    border-radius: 9999px;
    border: 1px solid rgba(152,41,43,.15);
  }
  .hero-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s infinite;
  }
  @keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
  }

  /* Main headline */
  .hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 18px;
  }
  .hero-title span {
    background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Subtitle / description */
  .hero-desc {
    font-size: 17px;
    line-height: 1.68;
    color: rgba(255,255,255,.65);
    margin-bottom: 36px;
    max-width: 480px;
    font-weight: 400;
  }

  /* CTA button group */
  .hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
  }
  .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s ease;
    letter-spacing: -.02px;
  }
  .hero-btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(152,41,43,.35), 0 0 0 0 rgba(152,41,43,0);
    transition: all .25s ease, box-shadow .3s ease;
  }
  .hero-btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(152,41,43,.45), 0 0 0 4px rgba(152,41,43,.12);
  }
  .hero-btn--secondary {
    background: rgba(255,255,255,.06);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
  }
  .hero-btn--secondary:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
    transform: translateY(-2px);
  }
  .hero-btn svg {
    width: 17px; height: 17px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .2s ease;
  }
  .hero-btn:hover svg { transform: translateX(3px); }

  /* --- Carousel Navigation Dots --- */
  .hero-nav-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,.08);
  }
  .hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    transition: all .3s ease;
    border: none;
    padding: 0;
    flex-shrink: 0;
  }
  .hero-dot:hover { background: rgba(255,255,255,.55); transform: scale(1.15); }
  .hero-dot.active {
    background: #fff;
    width: 32px;
    border-radius: 5px;
    transform: scale(1);
  }

  /* --- Arrow buttons (prev/next) --- */
  .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.1);
    cursor: pointer;
    transition: all .25s ease;
    opacity: 0;
  }
  .hero-banner:hover .hero-arrow { opacity: 1; }
  .hero-arrow:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.25);
    transform: translateY(-50%) scale(1.05);
  }
  .hero-arrow-prev { left: 24px; }
  .hero-arrow-next { right: 24px; }
  .hero-arrow svg {
    width: 20px; height: 20px;
    stroke: #fff; fill: none;
    stroke-width: 2; stroke-linecap:round; stroke-linejoin: round;
  }

  /* --- Progress bar at bottom --- */
  .hero-progress-bar {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: rgba(255,255,255,.08);
    z-index: 10;
  }
  .hero-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width .1s linear;
    border-radius: 0 2px 2px 0;
  }
  .hero-slide.active .hero-progress-fill,
  /* Also support the alternative DOM where .hero-progress-bar is a sibling
     placed immediately after each .hero-slide instead of inside it. */
  .hero-slide.active ~ .hero-progress-bar .hero-progress-fill {
    animation: progressFill 6.5s linear forwards;
  }
  @keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
  }

  /* --- Slide number indicator (optional) --- */
  .hero-counter {
    position: absolute;
    top: 28px; right: 32px;
    z-index: 10;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
  }
  .hero-counter .curr { color: #fff; font-size: 18px; }

  /* --- Pause/Play button --- */
  .hero-pause-btn {
    position: absolute;
    top: 28px; right: 90px;
    z-index: 10;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.1);
    cursor: pointer;
    transition: all .2s ease;
  }
  .hero-pause-btn:hover { background: rgba(255,255,255,.12); }
  .hero-pause-btn svg { width: 14px; height: 14px; stroke: rgba(255,255,255,.6); fill: none; stroke-width: 2; }

@media (max-width:1024px) {
    .hero-banner { height: 320px; }
    .hero-slide-bg { width: 100%; }
    .hero-content { margin-left:0; padding:0 40px; max-width:600px; }
    .hero-product-image { display: none; }
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 15.5px; margin-bottom: 28px; }
    .hero-ctas { flex-direction: column; align-items: flex-start; }
    .hero-btn { justify-content: center; padding: 11px 24px; font-size: 13.5px; }
    .hero-arrow { display: none; }
  }

@media (max-width:900px) {
    /* Hero: full-bg image, text overlays */
    .hero-banner { height: 420px; }
    .hero-slide { flex-direction: column; justify-content: center; }
    .hero-slide-bg {
      position: absolute; width: 100%; height: 100%;
      top: 0; left: 0;
    }
    /* 手机端：cover 裁剪点设在 20% 处，避免最左侧深色/空白区（slide0 心脏在 20% 左右） */
    .hero-slide-bg img { object-position: 20% center; }
    .hero-slide-bg::after {
      width: 100%; height: 100%;
      background: linear-gradient(to bottom, rgba(10,14,26,.2), rgba(10,14,26,.65));
    }
    .hero-content {
      margin-top: 0;
      padding: 60px 32px 80px;
      max-width: 100%;
      text-align: center;
    }
    .hero-title { font-size: 28px; margin-bottom: 12px; }
    .hero-desc {
      font-size: 14px;
      margin-bottom: 20px;
      max-width: 100%;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .hero-ctas { flex-direction: row; justify-content: center; align-items: stretch; flex-wrap: wrap; }
    .hero-btn--primary, .hero-btn--secondary { padding: 10px 20px; font-size: 13px; flex: 1 1 auto; justify-content: center; min-width: 140px; }
    .hero-eyebrow { font-size: 10.5px; margin-bottom: 14px; }
    .hero-nav-dots { bottom: 18px; padding: 8px 16px; gap: 8px; }
    .hero-counter { display: none; }
    .hero-pause-btn { display: none; }
    .mega-panel { width:90vw; max-width:400px; }
    .mega-grid { grid-template-columns: 1fr; gap:16px; }
    .cat-tabs { padding:0 12px; overflow-x:auto; -webkit-overflow-scrolling:touch; flex-wrap:nowrap; }
    .cat-tab { padding:12px 14px 10px; min-width:auto; flex-shrink:0; }
    .mega-content { padding:18px 20px 28px; }

    .cc-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
    .cc-grid.cols-2, .cc-grid.cols-3 { grid-template-columns: 1fr 1fr; }
    .cat-icon-bar-inner { padding: 0 8px; }
    .cat-icon-item { padding: 12px 10px 8px; }
    .cii-label { font-size: 10px; max-width: 72px; }
    .cat-content-area { padding: 24px 24px 28px; }
    .cat-panel-featured { display: none; }
    .cat-panel-layout { gap: 0; }
    .cc-products-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  }

@media (max-width:600px) {
/* Drawer panel full-width on small phones */
    .drawer-panel { width:100%; max-width:100%; left:-100%; }
    .drawer-head { padding:18px 20px; }
    .drawer-logo-text { font-size:14px; }
    .dp-nav-item { margin:0 12px; padding:12px 10px; font-size:14.5px; }
.cc-grid { grid-template-columns: 1fr; gap: 16px; }
    .cc-grid.cols-2, .cc-grid.cols-3 { grid-template-columns: 1fr; }
    .cc-products-row { grid-template-columns: 1fr; gap: 10px; }
/* Hero mobile */
    .hero-banner { height: 420px; }
    .hero-slide-bg { height: 100%; }
    .hero-content { margin-top:0; padding: 50px 24px 70px; }
    .hero-title { font-size: 22px; margin-bottom: 12px; letter-spacing: -.8px; }
    .hero-desc {
      font-size: 13.5px;
      margin-bottom: 16px;
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .hero-eyebrow { font-size: 10px; padding: 5px 12px; letter-spacing: 1.5px; margin-bottom: 12px; }
    .hero-btn--primary, .hero-btn--secondary {
      padding: 10px 18px; font-size: 12.5px;
      flex: 1 1 auto; font-size: 12px;
    }
    .hero-nav-dots { bottom: 14px; padding: 6px 12px; gap: 6px; }
    .hero-dot { width: 8px; height: 8px; }
    .hero-dot.active { width: 24px; }
  }
 

@media (max-width:420px) {
/* Hero further compressed */
    .hero-banner { height: 400px; }
    .hero-slide-bg { height:100%; }
    .hero-content { margin-top:0; padding: 45px 18px 65px; }
    .hero-title { font-size:19px; margin-bottom:10px; }
    .hero-desc { font-size:12.5px; margin-bottom:14px; -webkit-line-clamp: 3; }
    .hero-eyebrow { font-size:9px; padding:4px 10px; margin-bottom: 10px; }
  }
  

/* ============================================================
     CONTENT LAYERS — Main Body Sections (v14)
     Layer1: Dual Feature | Layer2: About+Video
     Layer3: Info Card Grid | Layer4: News & Events
     ============================================================ */

  /* ===== SHARED SECTION UTILITIES ===== */
  .content-section {
    padding: 48px 0;
    position: relative;
    overflow: hidden;
  }
  .content-section--light { background: #fff; }
  .content-section--offwhite { background: #fafbfc; }
  .content-section--warm { background: var(--primary-lighter); }

  /* Per-section background overrides (by id) */
  #contentLayer1 { background: var(--primary-lighter); }
  #contentLayer2 { background: #fff; }
  #contentLayer3 { background: #fafbfc; }
  .section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
  }
  .section-header {
    text-align: center;
    margin-bottom: 24px;
  }
  .section-header-label {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
  }
  .section-header-line {
    width: 60px;
    height: 1px;
    background: var(--border-color);
  }
  .section-header-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
  }
  .section-main-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1.2px;
    line-height: 1.15;
  }

  /* =============================================
     LAYER 1 — Dual Feature (AED Hero + Products)
     Two-column: left feature + right product intro
     ============================================= */
  .layer1-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  /* Feature block (left or right) */
  .feature-block { display: flex; flex-direction: column; gap: 20px; }
  .feature-block--reverse { text-align: left; }
  .feature-block--reverse .feature-body,
  .feature-block--reverse .feature-cta-group { align-items: flex-start; }

  .feature-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    padding: 6px 16px;
    background: rgba(152,41,43,.07);
    border-radius: 9999px;
    border: 1px solid rgba(152,41,43,.12);
    width: fit-content;
  }
  .feature-block--reverse .feature-eyebrow { margin-right: auto; margin-left: 0; }

  .feature-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -.8px;
  }

  .feature-body {
    font-size: 16px;
    line-height: 1.72;
    color: var(--text-secondary);
    max-width: 480px;
  }
  .feature-block--reverse .feature-body { margin-right: auto; margin-left: 0; }

  .feature-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.08);
    transition: transform .35s ease, box-shadow .35s ease;
  }
  .feature-image-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 56px rgba(0,0,0,.12);
  }
  .feature-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  /* Gradient overlay on image for text readability */
  .feature-image-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 28px 28px;
    background: linear-gradient(to top, rgba(10,14,26,.78) 0%, transparent 65%);
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
  }
  .feature-image-wrap:hover .feature-image-overlay { opacity: 1; }
  .feature-overlay-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    opacity: .85;
  }
  .feature-overlay-text {
    font-size: 14.5px;
    line-height: 1.55;
    opacity: .9;
  }

  .feature-product-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
  }
  .feature-product-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
  }
  .feature-product-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 8px;
    flex-shrink: 0;
  }
  .feature-block--reverse .feature-product-list li {
    justify-content: flex-start;
    text-align: left;
  }
  .feature-block--reverse .feature-product-list li::before {
    order: 0;
  }

  .feature-cta-group { display: flex; gap: 12px; flex-wrap: wrap; }
  .feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s ease;
  }
  .feature-btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(152,41,43,.25);
  }
  .feature-btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(152,41,43,.35);
  }
  .feature-btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
  }
  .feature-btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
  }
  .feature-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


  /* =============================================
     LAYER 2 — About / Partnership + Video
     Centered brand header, left text + right media
     ============================================= */
  .layer2-brand-bar {
    text-align: center;
    margin-bottom: 52px;
  }
  .layer2-brand-bar-inner {
    display: inline-flex;
    align-items: center;
    gap: 24px;
  }
  .layer2-brand-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color));
  }
  .layer2-brand-line:last-child {
    background: linear-gradient(to left, transparent, var(--border-color));
  }
  .layer2-brand-name {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--primary);
    text-transform: uppercase;
  }

  .layer2-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .about-text-area { display: flex; flex-direction: column; gap: 22px; }
  .about-subtitle {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
  }
  .about-heading {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.18;
    letter-spacing: -1px;
  }
  .about-desc {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
  }
  .about-highlight {
    color: var(--primary);
    font-weight: 600;
  }
  .about-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
  }
  .about-link {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color .18s ease;
  }
  .about-link:hover { color: var(--primary-dark); }
  .about-link-arrow {
    width: 18px; height: 18px;
    stroke: var(--primary); fill: none;
    stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .2s ease;
  }
  .about-link-row:hover .about-link-arrow { transform: translateX(4px); }

  .media-area { display: flex; flex-direction: column; gap: 24px; }
  .video-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    box-shadow: 0 12px 44px rgba(0,0,0,.12);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .video-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 56px rgba(0,0,0,.18);
  }
  .video-poster {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .75;
    transition: opacity .3s ease;
  }
  .video-card:hover .video-poster { opacity: .45; }
  .video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 68px; height: 68px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    transition: all .25s ease;
    z-index: 2;
    pointer-events: none;  /* let clicks pass through to .video-card */
  }
  .video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--primary);
    box-shadow: 0 12px 40px rgba(152,41,43,.35);
  }
  .video-play-btn:hover svg { stroke: #fff; }
  .video-play-btn svg {
    width: 26px; height: 26px;
    stroke: var(--primary); fill: none;
    stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round;
    margin-left: 3px;
  }

  .product-showcase-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 36px rgba(0,0,0,.09);
    transition: transform .35s ease;
    background: #f0eceb;
  }
  .product-showcase-img:hover { transform: translateY(-4px); }
  .product-showcase-img img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
  }


  /* =============================================
     LAYER 3 — Information Cards Grid
     Asymmetric: row1 = 2 large, row2 = 3 small
     Image cards with dark overlay + white labels
     ============================================= */
  .info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .info-card-large {
    grid-column: span 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
  }
  .info-card-large:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,.15);
  }
  .info-card-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
  }
  .info-card-large:hover .info-card-bg { transform: scale(1.06); }
  .info-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 28px 28px;
    background: linear-gradient(to top, rgba(10,14,26,.82) 0%, rgba(10,14,26,.3) 50%, transparent 100%);
    z-index: 2;
  }
  .info-card-label {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .info-card-label::after {
    content: '';
    width: 24px; height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width .25s ease;
  }
  .info-card-large:hover .info-card-label::after { width: 40px; }

  /* Row 2 — 3 smaller cards */
  .info-cards-small-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 4px;
  }
  .info-card-small {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 220px;
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
  }
  .info-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,.13);
  }
  .info-card-small .info-card-bg { object-position: center 30%; }
  .info-card-small:hover .info-card-bg { transform: scale(1.06); }
  .info-card-small .info-card-overlay {
    padding: 22px 20px 18px;
    background: linear-gradient(to top, rgba(10,14,26,.8) 0%, rgba(10,14,26,.25) 55%, transparent 100%);
  }
  .info-card-small .info-card-label {
    font-size: 17px;
  }
  .info-card-small .info-card-label::after { width: 18px; }
  .info-card-small:hover .info-card-label::after { width: 30px; }


  /* =============================================
     LAYER 4 — News & Events
     4-column card layout with MORE buttons
     ============================================= */
  .news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
  .news-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 32px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
  }
  .news-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
  }
  .news-card:hover {
    border-color: rgba(152,41,43,.2);
    box-shadow: 0 8px 32px rgba(0,0,0,.07);
    transform: translateY(-4px);
  }
  .news-card:hover::before { transform: scaleX(1); }

  .news-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.38;
    letter-spacing: -.2px;
    transition: color .2s ease;
  }
  .news-card:hover .news-card-title { color: var(--primary); }

  .news-card-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all .25s ease;
    align-self: flex-start;
    cursor: pointer;
    text-decoration: none;
    margin-top: auto;
  }
  .news-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(152,41,43,.3);
  }
  .news-more-btn svg {
    width: 13px; height: 13px;
    stroke: currentColor; fill: none;
    stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .2s ease;
  }
  .news-more-btn:hover svg { transform: translateX(2px); }


  /* ===== CONTENT SECTIONS RESPONSIVE ===== */
  @media (max-width:1024px) {
    .content-section { padding: 40px 0; }
    .section-container { padding: 0 28px; }
    .section-main-title { font-size: 34px; }

    .layer1-grid { gap: 56px; }
    .feature-title { font-size: 28px; }
    .layer2-layout { gap: 48px; }
    .about-heading { font-size: 30px; }

    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  }

  @media (max-width:900px) {
    .content-section { padding: 32px 0; }
    .section-header { margin-bottom: 24px; }
    .section-container { padding: 0 24px; }

    /* Layer 1 stack */
    .layer1-grid {
      grid-template-columns: 1fr;
      gap: 48px;
    }
    .feature-block--reverse { text-align: left; }
    .feature-block--reverse .feature-body,
    .feature-block--reverse .feature-product-list,
    .feature-block--reverse .feature-cta-group,
    .feature-block--reverse .feature-eyebrow { margin-left: 0; margin-right: auto; }
    .feature-block--reverse .feature-product-list li { justify-content: flex-start; text-align: left; }
    .feature-block--reverse .feature-product-list li::before { order: 0; }

    /* Layer 2 stack */
    .layer2-layout {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    .media-area { order: -1; } /* video first on mobile */

    /* Layer 3 */
    .info-cards-grid { grid-template-columns: 1fr; }
    .info-card-large { min-height: 260px; }
    .info-cards-small-row { grid-template-columns: 1fr 1fr; }
    .info-cards-small-row .info-card-small:last-child {
      grid-column: 1 / -1;
      max-width: 50%;
      margin: 0 auto;
      display: none;
    }

    .about-heading { font-size: 27px; }
  }

  @media (max-width:600px) {
    .content-section { padding: 32px 0; }
    .section-container { padding: 0 18px; }
    .section-header { margin-bottom: 16px; }
    .section-main-title { font-size: 28px; }

    .feature-title { font-size: 25px; }
    .feature-eyebrow { font-size: 10px; padding: 5px 12px; }
    .feature-body { font-size: 14.5px; }
    .feature-btn { padding: 11px 22px; font-size: 13.5px; }

    .layer2-brand-name { font-size: 18px; letter-spacing: 4px; }
    .layer2-brand-line { width: 50px; }
    .about-heading { font-size: 24px; letter-spacing: -.6px; }
    .about-desc { font-size: 14.5px; }
    .video-play-btn { width: 56px; height: 56px; }
    .video-play-btn svg { width: 22px; height: 22px; }

    .info-card-large { min-height: 200px; border-radius: 12px; }
    .info-card-label { font-size: 19px; }
    .info-card-small { min-height: 130px; border-radius: 10px; }
    .info-card-small .info-card-bg { object-position: center; }
    .info-card-small .info-card-label { font-size: 15px; }
    .info-card-small .info-card-overlay { padding: 16px 14px 12px; }
    .info-cards-small-row { grid-template-columns: 1fr; gap: 14px; }
    .info-cards-small-row .info-card-small:last-child { max-width: 100%;  }

    .news-grid { grid-template-columns: 1fr; gap: 18px; }
    .news-card { padding: 24px 20px 20px; }
    .news-card-title { font-size: 16px; }
    .news-more-btn { padding: 10px 24px; font-size: 12px; }
  }

/* ============================================
   Video Modal Lightbox
   ============================================ */
.video-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.video-modal-content {
  position: relative;
  width: 90vw; max-width: 960px;
  aspect-ratio: 16/9;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 64px rgba(0,0,0,.5);
  transform: scale(.94);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.video-modal.active .video-modal-content { transform: scale(1); }
.video-modal-content video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
}
/* Loading spinner shown while video buffers */
.video-modal-content .video-loading {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vmSpin .8s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.video-modal-content .video-loading.hidden { display: none; }
@keyframes vmSpin {
  to { transform: rotate(360deg); }
}
.video-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  transition: background .2s ease, transform .2s ease;
  z-index: 2;
}
.video-modal-close:hover {
  background: rgba(0,0,0,.75);
  transform: scale(1.08);
}
@media (max-width: 640px) {
  .video-modal-content { width: 96vw; }
  .video-modal-close { top: 8px; right: 8px; width: 36px; height: 36px; }
}

/* ============================================================
   MOBILE OVERFLOW SAFETY NET
   Prevents horizontal scrollbar on all mobile devices
   ============================================================ */
@media (max-width: 900px) {
  /* === FINAL OVERFLOW GUARD — must be first === */
  html { overflow-x: hidden !important; }
  body { overflow-x: hidden !important; max-width: 100% !important; }

  /* Core containers */
  .hero-banner,
  .content-section,
  .site-footer,
  .footer-hero,
  .footer-inner,
  .section-container,
  .home-sections {
    overflow-x: hidden;
  }

  /* Ensure all images and media scale properly */
  img, video, svg, canvas, iframe {
    max-width: 100%;
    height: auto;
  }

  /* Flex children safety */
  .header-inner,
  .fh-inner,
  .layer1-grid,
  .layer2-layout > *,
  .stats-grid,
  .news-grid,
  .info-cards-grid {
    min-width: 0;
  }

  /* Search input — allow shrinking on small screens */
  .search-wrapper {
    flex: 1 1 0;
    min-width: 0;
  }
  .search-input {
    width: 100%;
    max-width: 200px;
  }

  /* News grid single column */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Info cards */
  .info-cards-grid {
    grid-template-columns: 1fr;
  }
  .info-cards-small-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .search-input {
    max-width: 140px;
  }

  /* Extra safety for ultra-narrow screens */
  .hero-content {
    padding: 0 16px;
  }
  .section-container {
    padding: 0 16px;
  }
}

/* ============================================================
   PAGINATION — WordPress paginate_links( type='list' )
   Output: <ul class="page-numbers"><li><a class="page-numbers">
   Used on: template-blog.php, category.php, etc.
   ============================================================ */
.pl-pagination,
.site-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 20px 0;
}
ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none !important;
  margin: 0;
  padding: 0;
}
ul.page-numbers li {
  margin: 0;
}
ul.page-numbers a,
ul.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary, #4a5568);
  background: #fff;
  border: 1.5px solid #e2e6eb;
  text-decoration: none;
  transition: all .2s ease;
  line-height: 1;
  list-style: none !important;
}
ul.page-numbers a:hover {
  border-color: var(--primary, #98292b);
  color: var(--primary, #98292b);
  background: rgba(152,41,43,.04);
  transform: translateY(-1px);
}
ul.page-numbers .current {
  background: var(--primary, #98292b);
  color: #fff;
  border-color: var(--primary, #98292b);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(152,41,43,.25);
}
ul.page-numbers .dots {
  border: none;
  background: transparent;
  color: var(--text-muted, #8896ab);
  cursor: default;
  padding: 0 4px;
}
ul.page-numbers .prev svg,
ul.page-numbers .next svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .pl-pagination,
  .site-pagination {
    margin-top: 32px;
    gap: 4px;
  }
  ul.page-numbers a,
  ul.page-numbers span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 8px;
  }
}