/* =====================================================
   Category Hub (top-level category) landing page styles
   Used by: custom-cable-assembly, custom-wire-harness ...
   Brand colour: #031d61
   Namespace: .hub-*  (independent from .m12-* product pages)
   ===================================================== */

.hub-page{
  --hub-navy:#031d61;
  --hub-navy2:#020f30;
  --hub-blue:#2a6fdb;
  --hub-cyan:#4a9bed;
  --hub-ink:#1f2937;
  --hub-muted:#5b6b7e;
  --hub-line:#e3e9f0;
  --hub-soft:#f5f8fc;

  font-family:"Segoe UI",Roboto,Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--hub-ink);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
.hub-page *{ box-sizing:border-box; }
.hub-wrap{ max-width:1200px; margin:0 auto; padding:0 24px; }

/* ---------- shared headings ---------- */
.hub-eyebrow{
  display:inline-block;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--hub-blue);
  font-size:1.2rem;
  font-weight:600;
  padding-left:10px;
  margin-bottom:10px;
  border-left:4px solid #4299e1;
}
.hub-h2{
  font-size:clamp(26px,3.4vw,38px);
  line-height:1.2;
  font-weight:800;
  margin:0 0 16px;
  color:var(--hub-navy);
}
.hub-lead{ font-size:18px; color:var(--hub-muted); max-width:820px; }
.hub-head{ margin-bottom:40px; }
.hub-head--center{ text-align:center; }
.hub-head--center .hub-lead{ margin-left:auto; margin-right:auto; }

/* ---------- sections ---------- */
.hub-section{ padding:78px 0; }
.hub-section--soft{ background:var(--hub-soft); }
.hub-section--dark{
  background:linear-gradient(135deg,var(--hub-navy),var(--hub-navy2));
  color:#e8f1fb;
}
.hub-section--dark .hub-h2{ color:#fff; }
.hub-section--dark .hub-lead{ color:#bcd2e8; }

/* =====================================================
   1 · HERO
   ===================================================== */
.hub-hero{
  position:relative;
  overflow:hidden;
  margin-top:10px;
  background:
    radial-gradient(1100px 600px at 78% 38%, rgba(74,155,237,.22), transparent 60%),
    linear-gradient(135deg,var(--hub-navy),var(--hub-navy2));
  color:#e8f1fb;
}
.hub-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(124,163,214,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(124,163,214,.10) 1px,transparent 1px);
  background-size:48px 48px;
  -webkit-mask-image:radial-gradient(circle at 70% 40%,#000,transparent 75%);
          mask-image:radial-gradient(circle at 70% 40%,#000,transparent 75%);
}
.hub-hero .hub-wrap{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:48px;
  align-items:center;
  padding:84px 24px 92px;
}
.hub-hero h1{
  font-size:clamp(34px,5vw,58px);
  line-height:1.08;
  font-weight:800;
  margin:0 0 18px;
  color:#fff;
}
.hub-hero p.hub-sub{
  font-size:19px;
  color:#bcd2e8;
  max-width:560px;
  margin:0 0 28px;
}
.hub-points{ list-style:none; margin:0 0 34px; padding:0; display:grid; gap:12px; }
.hub-points li{ display:flex; gap:12px; align-items:flex-start; font-size:16.5px; color:#e3eefb; }
.hub-points svg{ flex:0 0 22px; margin-top:3px; }

.hub-hero-media img{
  width:100%;
  height:auto;
  display:block;
  border-radius:18px;
  box-shadow:0 30px 60px rgba(0,0,0,.45);
  border:1px solid rgba(120,170,230,.25);
}

/* ---------- buttons ---------- */
.hub-cta-row{ display:flex; flex-wrap:wrap; gap:14px; }
.hub-btn{
  display:inline-flex; align-items:center; gap:9px;
  padding:14px 26px; border-radius:10px;
  font-size:16px; font-weight:700; text-decoration:none;
  transition:.2s;
}
.hub-btn--primary{ background:linear-gradient(135deg,var(--hub-cyan),var(--hub-blue)); color:#04223f; }
.hub-btn--primary:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(74,155,237,.35); }
.hub-btn--ghost{ background:transparent; color:#e8f1fb; border:1.5px solid rgba(180,210,240,.45); }
.hub-btn--ghost:hover{ border-color:#fff; background:rgba(255,255,255,.08); }

/* =====================================================
   2 · OVERVIEW
   ===================================================== */
.hub-overview{ display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }

/* =====================================================
   3 · SUB-CATEGORY CARDS  (core of a hub page)
   ===================================================== */
.hub-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
  margin-top:8px;
}
.hub-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--hub-line);
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  box-shadow:0 10px 26px rgba(3,29,97,.06);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hub-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 48px rgba(3,29,97,.16);
  border-color:rgba(74,155,237,.55);
}
/* image area */
.hub-card-media{
  position:relative;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background:#0a1a3d;
}
.hub-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}
.hub-card:hover .hub-card-media img{ transform:scale(1.07); }
/* subtle gradient veil so text-free art blends with the card */
.hub-card-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(3,29,97,.55), rgba(3,29,97,0) 62%);
}
/* index badge */
.hub-card-badge{
  position:absolute;
  top:14px; left:14px;
  z-index:2;
  min-width:34px; height:34px;
  padding:0 9px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:9px;
  background:linear-gradient(135deg,var(--hub-cyan),var(--hub-blue));
  color:#04223f;
  font-size:15px; font-weight:800;
  box-shadow:0 6px 16px rgba(3,29,97,.35);
}
/* body */
.hub-card-body{ padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.hub-card-body h3{
  margin:0 0 10px;
  font-size:19px;
  font-weight:800;
  color:var(--hub-navy);
  line-height:1.3;
}
.hub-card-body p{
  margin:0 0 16px;
  font-size:14.5px;
  color:var(--hub-muted);
}
.hub-card-more{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:14.5px;
  font-weight:700;
  color:var(--hub-blue);
}
.hub-card-more .hub-arrow{ transition:transform .22s ease; }
.hub-card:hover .hub-card-more .hub-arrow{ transform:translateX(5px); }

/* =====================================================
   4 · FEATURES (alternating)
   ===================================================== */
.hub-feature{ display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center; }
.hub-feature + .hub-feature{ margin-top:64px; }
.hub-feature--rev .hub-feature-media{ order:2; }
.hub-feature-media img{
  width:100%; height:auto; border-radius:16px;
  border:1px solid var(--hub-line);
  box-shadow:0 18px 40px rgba(3,29,97,.12);
}
.hub-feature h3{ font-size:24px; font-weight:800; margin:0 0 14px; color:var(--hub-navy); }
.hub-feature p{ color:var(--hub-muted); margin:0 0 16px; }
.hub-list{ margin:0; padding:0; list-style:none; display:grid; gap:9px; }
.hub-list li{ position:relative; padding-left:22px; color:var(--hub-ink); }
.hub-list li::before{
  content:""; position:absolute; left:0; top:9px;
  width:8px; height:8px; border-radius:50%;
  background:var(--hub-blue);
}
.hub-note{ font-size:14px; color:var(--hub-muted); margin-top:14px; }

/* =====================================================
   4b · CAPABILITY ICON CARDS
   ===================================================== */
.hub-feat-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin-top:8px;
}
.hub-feat-card{
  background:#fff;
  border:1px solid var(--hub-line);
  border-radius:16px;
  padding:28px 24px 26px;
  box-shadow:0 10px 26px rgba(3,29,97,.06);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hub-feat-card:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 44px rgba(3,29,97,.14);
  border-color:rgba(74,155,237,.5);
}
.hub-feat-icon{
  width:52px; height:52px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(74,155,237,.16), rgba(42,111,219,.10));
  border:1px solid rgba(74,155,237,.28);
  margin-bottom:16px;
}
.hub-feat-card h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:800;
  color:var(--hub-navy);
  line-height:1.3;
}
.hub-feat-card p{ margin:0; font-size:14.5px; color:var(--hub-muted); }

/* =====================================================
   5 · SPECIFICATION TABLE
   ===================================================== */
.hub-table{
  width:100%;
  border-collapse:collapse;
  margin-top:14px;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(3,29,97,.10);
  border:1px solid var(--hub-line);
}
.hub-table th,.hub-table td{
  text-align:left; padding:15px 20px;
  border-bottom:1px solid var(--hub-line);
  font-size:15.5px;
}
.hub-table thead th{
  background:var(--hub-navy);
  color:#fff;
  font-weight:700;
  letter-spacing:.02em;
}
.hub-table tbody tr:nth-child(odd){ background:#fafcff; }
.hub-table td:first-child{ font-weight:700; color:var(--hub-navy); width:34%; }
.hub-table tbody tr:last-child td{ border-bottom:none; }

/* =====================================================
   6 · PROCESS STEPS (with connecting arrows)
   ===================================================== */
.hub-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:40px; margin-top:18px; }
.hub-step{
  position:relative;
  background:#fff;
  border:1px solid var(--hub-line);
  border-radius:16px;
  padding:26px 22px;
  box-shadow:0 12px 30px rgba(3,29,97,.07);
  transition:.2s;
}
.hub-step:not(:last-child)::after{
  content:"";
  position:absolute;
  top:50%; right:-26px;
  transform:translateY(-50%);
  width:0; height:0;
  border-top:10px solid transparent;
  border-bottom:10px solid transparent;
  border-left:13px solid var(--hub-blue);
  filter:drop-shadow(0 1px 1px rgba(3,29,97,.25));
}
.hub-step .hub-step-no{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--hub-cyan),var(--hub-blue));
  color:#04223f;
  font-weight:800; font-size:18px;
  margin-bottom:14px;
}
.hub-step h4{ font-size:18px; font-weight:800; margin:0 0 8px; color:var(--hub-navy); }
.hub-step p{ font-size:14.5px; color:var(--hub-muted); margin:0; }

/* =====================================================
   7 · FINAL CTA
   ===================================================== */
.hub-final{ text-align:center; padding:84px 0; }
.hub-final .hub-h2{ margin-bottom:14px; }
.hub-final p{ color:#bcd2e8; font-size:18px; max-width:680px; margin:0 auto 30px; }
.hub-final .hub-cta-row{ justify-content:center; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width:1024px){
  .hub-cards{ grid-template-columns:repeat(2,1fr); gap:22px; }
  .hub-feat-grid{ grid-template-columns:repeat(2,1fr); gap:20px; }
}
@media (max-width:900px){
  .hub-hero .hub-wrap,
  .hub-overview,
  .hub-feature{ grid-template-columns:1fr; gap:34px; }
  .hub-feature--rev .hub-feature-media{ order:0; }
  .hub-steps{ grid-template-columns:repeat(2,1fr); gap:22px; }
  .hub-step::after{ display:none; }
  .hub-section{ padding:56px 0; }
}
@media (max-width:640px){
  .hub-cards{ grid-template-columns:1fr; }
  .hub-feat-grid{ grid-template-columns:1fr; }
  .hub-steps{ grid-template-columns:1fr; }
  .hub-hero .hub-wrap{ padding:60px 20px 64px; }
}
