/*
Theme Name:  DubaiWheels
Theme URI:   https://dubaiwheels.ae
Author:      DubaiWheels Team
Description: Custom theme for DubaiWheels.ae — car listings, specs, and reviews
Version:     2.2.46
License:     Private
Text Domain: dubaiwheels
*/

/* ─── DESIGN TOKENS — exact from Figma brand guidelines ─────────────────── */
:root {
  --color-primary:     #0090D7;   /* brand blue — nav, links, active tabs */
  --color-primary-dk:  #0074ae;
  --color-secondary:   #DF1454;   /* brand crimson — "Sell my car" CTA */
  --color-secondary-dk:#b80f45;
  --color-accent:      #DF1454;   /* brand red — prices "From AED X" (no off-brand orange) */
  --color-bg:          #F8F9FA;
  --color-surface:     #FFFFFF;
  --color-text:        #111111;   /* exact from Figma */
  --color-text-muted:  #6B7280;
  --color-border:      #E5E7EB;
  --color-premium:     #F59E0B;   /* yellow — "Premium" badge */

  --font-sans:         'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-heading:      'Montserrat', 'Segoe UI', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.12);

  --container:  1280px;
  --gap:        24px;
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.section { padding: 56px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
/* Typography — exact from Figma: Montserrat, Semibold 600, letter-spacing -2% */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }
p  { margin-bottom: 1em; }
.text-muted { color: var(--color-text-muted); }
.text-sm    { font-size: 14px; }
.text-xs    { font-size: 12px; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: all .2s ease;
}
.btn-primary   { background: var(--color-primary);   color: #fff; }
.btn-primary:hover { background: var(--color-primary-dk); }
.btn-secondary { background: var(--color-secondary); color: #fff; } /* "Sell my car" */
.btn-secondary:hover { background: var(--color-secondary-dk); }
.btn-outline   { border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ─── CARDS ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body  { padding: 20px; }
.card-img   { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ─── BADGE ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-border);
  color: var(--color-text-muted);
}
.badge-primary { background: var(--color-primary); color: #fff; }
.badge-accent  { background: var(--color-accent); color: #fff; }
.badge-premium { background: var(--color-premium); color: #fff; font-size: 11px; }

/* ─── PRICE ──────────────────────────────────────────────────────────────── */
/* All AED prices use orange accent — matches Figma exactly */
.car-price, .price { color: var(--color-accent) !important; }

/* ─── STAR RATING ────────────────────────────────────────────────────────── */
.stars { color: var(--color-accent); font-size: 14px; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--color-accent); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 13px; font-weight: 700;
}

/* ─── STICKY PAGE TAB NAV (Model & Trim pages) ───────────────────────────── */
.page-tab-nav {
  position: sticky; top: 68px; z-index: 90;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.page-tab-nav .container { display: flex; gap: 0; overflow-x: auto; }
.page-tab-btn {
  padding: 14px 20px;
  font-weight: 600; font-size: 14px;
  color: var(--color-text-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.page-tab-btn:hover  { color: var(--color-primary); }
.page-tab-btn.active { color: var(--color-primary); border-color: var(--color-primary); }

/* ─── HORIZONTAL TRIM CARDS (Model page) ────────────────────────────────── */
.trim-cards-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.trim-cards-scroll::-webkit-scrollbar { height: 4px; }
.trim-cards-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
.trim-card-h {
  min-width: 220px; flex-shrink: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 16px;
}
.trim-card-h:hover { border-color: var(--color-primary); }
.trim-card-h img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 10px; }
.trim-card-h .tc-price { color: var(--color-accent); font-weight: 700; font-size: 16px; margin: 6px 0; }
.trim-card-h .tc-spec  { font-size: 12px; color: var(--color-text-muted); }

/* ─── SPEC ACCORDION (Trim page) ────────────────────────────────────────── */
.spec-accordion { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 12px; }
.spec-acc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; cursor: pointer; background: var(--color-bg);
  font-weight: 600; font-size: 15px;
}
.spec-acc-head:hover { background: #eef4fb; }
.spec-acc-body { display: none; padding: 0 20px 16px; }
.spec-accordion.open .spec-acc-body { display: block; }
.spec-acc-icon { transition: transform .2s; }
.spec-accordion.open .spec-acc-icon { transform: rotate(180deg); }

/* ─── EXTERIOR FEATURE GALLERY TABS ─────────────────────────────────────── */
.ext-tab-nav { display: flex; gap: 8px; border-bottom: 2px solid var(--color-border); margin-bottom: 16px; }
.ext-tab-btn {
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  color: var(--color-text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.ext-tab-btn.active { color: var(--color-primary); border-color: var(--color-primary); }
.ext-tab-pane { display: none; }
.ext-tab-pane.active { display: block; }

/* ─── VS COMPARE CARD ────────────────────────────────────────────────────── */
.compare-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 16px;
  display: flex; align-items: center; gap: 8px;
}
.compare-vs {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 0; }
/* wp_nav_menu() outputs ul>li>a — reset list styles and lay out horizontally */
.site-nav .primary-menu { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav .primary-menu li { list-style: none; position: relative; }
.site-nav .primary-menu li a,
.site-nav > a { font-weight: 500; font-size: 15px; transition: color .15s; color: inherit; text-decoration: none; }
.site-nav .primary-menu li a:hover,
.site-nav > a:hover { color: var(--color-primary); }
/* Sub-menu support (depth 2) */
.site-nav .primary-menu li ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 8px 0; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 200; list-style: none; margin: 0; }
.site-nav .primary-menu li:hover ul { display: block; }
.site-nav .primary-menu li ul li a { display: block; padding: 8px 16px; font-size: 14px; white-space: nowrap; }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-text);
  color: #cbd5e1;
  padding: 56px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 12px; font-size: 14px; opacity: .7; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; opacity: .75; transition: opacity .15s; }
.footer-col ul a:hover { opacity: 1; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: .6;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--color-text) 0%, #2d2d44 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero h1 { margin-bottom: 16px; }
.hero p   { font-size: 18px; opacity: .8; margin-bottom: 32px; }

/* ─── SEARCH BAR ────────────────────────────────────────────────────────── */
.search-bar {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}
.search-bar select, .search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ─── CAR CARD ───────────────────────────────────────────────────────────── */
.car-card .car-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}
.car-card .car-brand-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.car-specs-mini {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.car-specs-mini span {
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── SPECS TABLE ────────────────────────────────────────────────────────── */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  text-align: left;
}
.specs-table th { font-weight: 600; width: 40%; background: var(--color-bg); }
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }

/* ─── TABS ───────────────────────────────────────────────────────────────── */
.tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--color-border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.tab-btn.active { color: var(--color-primary); border-color: var(--color-primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── BREADCRUMB ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 16px 0;
}
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { opacity: .4; }

/* ─── FUEL CALCULATOR ────────────────────────────────────────────────────── */
.calc-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}
.calc-result {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}
.calc-result .amount { font-size: 48px; font-weight: 700; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
}

/* ─── GALLERY ────────────────────────────────────────────────────────────── */
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs img {
  width: 80px; height: 56px; object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: .65;
  transition: opacity .15s;
  flex-shrink: 0;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { opacity: 1; }

/* ─── COLOR SWATCHES ─────────────────────────────────────────────────────── */
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color .15s;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.swatch.active, .swatch:hover { border-color: var(--color-primary); }

/* ─── PROS/CONS ──────────────────────────────────────────────────────────── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pros h4 { color: #16a34a; }
.cons h4 { color: var(--color-primary); }
.pros li::before { content: '✓ '; color: #16a34a; font-weight: 700; }
.cons li::before { content: '✗ '; color: var(--color-primary); font-weight: 700; }
.pros li, .cons li { padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
}
.faq-a { padding-bottom: 18px; font-size: 14px; color: var(--color-text-muted); display: none; }
.faq-item.open .faq-a { display: block; }
.faq-icon { transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* ─── MOBILE NAV ─────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none; /* hidden by default on all screens */
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a,
.mobile-nav .mobile-menu li a {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  display: block;
  text-decoration: none;
}
.mobile-nav a:last-child,
.mobile-nav .mobile-menu li:last-child a { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav .mobile-menu li a:hover { color: var(--color-primary); }
/* wp_nav_menu list reset for mobile */
.mobile-nav .mobile-menu { list-style: none; margin: 0; padding: 0; width: 100%; }
.mobile-nav .mobile-menu li { list-style: none; }
.mobile-menu-toggle { display: none; color: var(--color-text); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   COMPARISON UI — State-of-the-art v23
   Classes prefixed .dwcmp-* to avoid collision with existing styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.dwcmp-hero {
    background: linear-gradient(135deg, #0a1628 0%, #0d2045 55%, #0a1628 100%);
    padding: 48px 0 44px;
    position: relative;
    overflow: hidden;
}
.dwcmp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,144,215,.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 50%, rgba(223,20,84,.12) 0%, transparent 55%);
    pointer-events: none;
}
.dwcmp-hero-eyebrow {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #0090D7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.dwcmp-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.dwcmp-car-hero-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .2s ease, box-shadow .2s ease;
}
.dwcmp-car-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.dwcmp-car-hero-img {
    width: 100%;
    max-width: 320px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto 16px;
}
.dwcmp-car-hero-img-placeholder {
    width: 100%;
    max-width: 320px;
    height: 180px;
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    margin: 0 auto 16px;
    color: rgba(255,255,255,.25);
}
.dwcmp-car-hero-brand {
    font-size: 11px;
    font-weight: 700;
    color: #0090D7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.dwcmp-car-hero-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
}
.dwcmp-car-hero-trim {
    display: inline-block;
    background: rgba(0,144,215,.2);
    border: 1px solid rgba(0,144,215,.4);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.dwcmp-car-hero-price {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.dwcmp-car-hero-price small {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.45);
    font-weight: 400;
    margin-bottom: 2px;
}
.dwcmp-car-hero-btn {
    display: inline-block;
    background: #0090D7;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background .2s, transform .1s;
}
.dwcmp-car-hero-btn:hover {
    background: #007bb8;
    transform: translateY(-1px);
}

/* VS divider */
.dwcmp-vs-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.dwcmp-vs-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #DF1454, #ff2d6b);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(223,20,84,.45);
    flex-shrink: 0;
    letter-spacing: -1px;
}

/* ── Sticky nav tabs ──────────────────────────────────────────────────────── */
.dwcmp-tabs-wrap {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 2px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.dwcmp-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dwcmp-tabs::-webkit-scrollbar { display: none; }
.dwcmp-tab {
    flex-shrink: 0;
    padding: 13px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
    font-family: Montserrat, sans-serif;
}
.dwcmp-tab:hover { color: #0090D7; }
.dwcmp-tab.active {
    color: #0090D7;
    border-bottom-color: #0090D7;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */
.dwcmp-body { padding: 0 0 72px; }

/* ── Section ──────────────────────────────────────────────────────────────── */
.dwcmp-section {
    margin-top: 48px;
    scroll-margin-top: 56px;
}
.dwcmp-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
.dwcmp-section-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0090D7, #007bb8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,144,215,.3);
}
.dwcmp-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
    line-height: 1.2;
}
.dwcmp-section-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}
.dwcmp-section-subtitle strong { color: #374151; }

/* ── Column headers row ───────────────────────────────────────────────────── */
.dwcmp-col-headers,
.dwcmp-feat-col-headers {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    padding: 10px 16px;
    background: #f1f5f9;
    border-radius: 12px 12px 0 0;
    border: 1px solid #e2e8f0;
    border-bottom: none;
}
.dwcmp-col-hdr {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #374151;
}
.dwcmp-car1-hdr { text-align: left; }
.dwcmp-car2-hdr { text-align: right; }
.dwcmp-spec-hdr {
    text-align: center;
    color: #9ca3af;
    font-size: 10px;
}

/* ── Spec table ───────────────────────────────────────────────────────────── */
.dwcmp-spec-table {
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
.dwcmp-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
}
.dwcmp-row:last-child { border-bottom: none; }
.dwcmp-row:nth-child(even) { background: #fafafa; }
.dwcmp-row:hover { background: #f0f9ff; }

.dwcmp-row-val {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    display: flex;
    align-items: center;
    border-right: 1px solid #f1f5f9;
}
.dwcmp-row-val-right {
    justify-content: flex-end;
    border-right: none;
    border-left: 1px solid #f1f5f9;
    text-align: right;
}
.dwcmp-row-label {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
}
.dwcmp-na-spec { color: #d1d5db; }

/* Winner / loser states */
.dwcmp-row-val.win {
    background: #f0fdf4 !important;
    color: #15803d;
    font-weight: 700;
}
.dwcmp-row-val.win::after { content: ' ▲'; font-size: 10px; opacity: .7; margin-left: 2px; }
.dwcmp-row-val.win-low::after { content: ' ▼'; font-size: 10px; opacity: .7; margin-left: 2px; }
.dwcmp-row-val.win-low {
    background: #f0fdf4 !important;
    color: #15803d;
    font-weight: 700;
}
.dwcmp-row-val.lose { color: #9ca3af; }

/* ── Feature table ────────────────────────────────────────────────────────── */
.dwcmp-feat-table {
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
.dwcmp-feat-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    border-bottom: 1px solid #f1f5f9;
    min-height: 50px;
    transition: background .12s;
}
.dwcmp-feat-row:last-child { border-bottom: none; }
.dwcmp-feat-row:nth-child(even) { background: #fafafa; }
.dwcmp-feat-row:hover { background: #f0f9ff; }
.dwcmp-feat-row.dwcmp-feat-adv1 { background: #f0fdf4 !important; }
.dwcmp-feat-row.dwcmp-feat-adv2 { background: #fff7ed !important; }

.dwcmp-feat-val {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    font-size: 14px;
    border-right: 1px solid #f1f5f9;
}
.dwcmp-feat-val-right {
    justify-content: flex-end;
    border-right: none;
    border-left: 1px solid #f1f5f9;
}
.dwcmp-feat-label {
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
}

/* Feature value icons */
.dwcmp-yes  { color: #16a34a; font-size: 20px; font-weight: 700; line-height: 1; }
.dwcmp-no   { color: #dc2626; font-size: 20px; font-weight: 700; line-height: 1; }
.dwcmp-na   { color: #d1d5db; font-size: 18px; }
.dwcmp-feat-text { color: #374151; font-size: 12px; font-weight: 500; }

/* ── Back CTA ─────────────────────────────────────────────────────────────── */
.dwcmp-back-cta {
    text-align: center;
    padding: 48px 0 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 56px;
}
.dwcmp-back-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}
.dwcmp-back-btn {
    display: inline-block;
    background: #0090D7;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 32px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background .2s, transform .1s;
}
.dwcmp-back-btn:hover { background: #007bb8; transform: translateY(-1px); }

/* ── List hero ────────────────────────────────────────────────────────────── */
.dwcmp-list-hero {
    background: linear-gradient(135deg, #0a1628 0%, #0d2045 55%, #0a1628 100%);
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}
.dwcmp-list-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(0,144,215,.2) 0%, transparent 60%);
    pointer-events: none;
}
.dwcmp-list-hero-text {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}
.dwcmp-list-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.15;
}
.dwcmp-list-desc {
    font-size: 15px;
    color: rgba(255,255,255,.65);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Selector widget ──────────────────────────────────────────────────────── */
.dwcmp-selector-wrap {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.dwcmp-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}
.dwcmp-selector-col {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 20px 20px 16px;
}
.dwcmp-selector-col-head {
    font-size: 12px;
    font-weight: 700;
    color: #0090D7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.dwcmp-selector-select {
    width: 100%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 36px 11px 14px;
    border-radius: 9px;
    margin-bottom: 10px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' opacity='.7' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    transition: border-color .2s, background .2s;
}
.dwcmp-selector-select:focus {
    outline: none;
    border-color: #0090D7;
    background-color: rgba(0,144,215,.12);
}
.dwcmp-selector-select option { background: #1a2744; color: #fff; }
.dwcmp-selector-select:disabled { opacity: .35; cursor: not-allowed; }
.dwcmp-selector-select:last-child { margin-bottom: 0; }

.dwcmp-selector-cta { text-align: center; }
.dwcmp-compare-btn {
    background: linear-gradient(135deg, #DF1454, #ff2d6b);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 52px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 24px rgba(223,20,84,.4);
    transition: opacity .2s, transform .1s;
}
.dwcmp-compare-btn:hover:not(:disabled) { opacity: .9; transform: translateY(-2px); }
.dwcmp-compare-btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.dwcmp-loading {
    margin-top: 12px;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}

/* ── List body ────────────────────────────────────────────────────────────── */
.dwcmp-list-body {
    padding: 56px 0 80px;
    background: #f8f9fa;
}
.dwcmp-list-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}

/* ── Filter pills ─────────────────────────────────────────────────────────── */
.dwcmp-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.dwcmp-filter-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none !important;
    transition: all .2s;
}
.dwcmp-filter-pill:hover { background: #e0f2fe; color: #0090D7; border-color: #bae6fd; }
.dwcmp-filter-pill.active { background: #0090D7; color: #fff !important; border-color: #0090D7; }

/* ── Comparison cards ─────────────────────────────────────────────────────── */
.dwcmp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.dwcmp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.dwcmp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.1); }
.dwcmp-card-featured { border: 2px solid #0090D7; }

.dwcmp-card-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
    position: relative;
    height: 110px;
}
.dwcmp-card-img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
    padding: 6px;
}
.dwcmp-card-img-placeholder {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: #e5e7eb;
    color: #9ca3af;
}
.dwcmp-card-vs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #DF1454;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border: 2px solid #fff;
    letter-spacing: -.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.dwcmp-card-body { padding: 16px; }
.dwcmp-card-names {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}
.dwcmp-card-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
}
.dwcmp-card-name-right { text-align: right; }
.dwcmp-card-price {
    font-size: 11px;
    font-weight: 600;
    color: #0090D7;
}
.dwcmp-card-sep {
    color: #DF1454;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
    padding-top: 2px;
}
.dwcmp-card-cta {
    display: block;
    text-align: center;
    background: #0090D7;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 9px;
    text-decoration: none !important;
    transition: background .2s;
}
.dwcmp-card-cta:hover { background: #007bb8; }

.dwcmp-no-results {
    text-align: center;
    padding: 48px;
    color: #6b7280;
    font-size: 15px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #d1d5db;
}

/* ── Variant switcher bar (single-car_comparison.php) ─────────────────────── */
.dwcmp-variant-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f0f7fd;
    border: 1px solid #C8E6F5;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.dwcmp-variant-col {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dwcmp-variant-col label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
}
.dwcmp-variant-col select {
    padding: 9px 14px;
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    background: #fff;
    font-family: Montserrat, sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%230090D7' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.dwcmp-variant-col select:focus { outline: none; border-color: #0090D7; }
.dwcmp-variant-vs {
    font-size: 11px;
    font-weight: 800;
    color: #DF1454;
    padding: 0 4px;
    flex-shrink: 0;
    margin-top: 18px;
}
.dwcmp-variant-update-btn {
    flex-shrink: 0;
    background: #0090D7;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    transition: background .15s, transform .1s;
    margin-top: 18px;
    white-space: nowrap;
}
.dwcmp-variant-update-btn:hover { background: #007bb8; transform: translateY(-1px); }
@media (max-width: 600px) {
    .dwcmp-variant-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .dwcmp-variant-vs { margin-top: 0; text-align: center; }
    .dwcmp-variant-update-btn { margin-top: 0; width: 100%; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .dwcmp-hero-inner { grid-template-columns: 1fr; gap: 16px; }
    .dwcmp-vs-col { order: -1; }
    .dwcmp-vs-badge { width: 48px; height: 48px; font-size: 16px; }
    .dwcmp-car-hero-img,
    .dwcmp-car-hero-img-placeholder { max-width: 100%; height: 160px; }
    .dwcmp-selector-grid { grid-template-columns: 1fr; }
    .dwcmp-list-title { font-size: 26px; }
}
@media (max-width: 640px) {
    .dwcmp-col-headers,
    .dwcmp-feat-col-headers { display: none; }
    .dwcmp-spec-table,
    .dwcmp-feat-table { border-radius: 12px; }
    .dwcmp-row {
        grid-template-columns: 1fr;
        border-bottom: 2px solid #e5e7eb;
        padding: 4px 0;
    }
    .dwcmp-row:last-child { border-bottom: none; }
    .dwcmp-row-val {
        border: none;
        padding: 8px 16px;
        font-size: 15px;
    }
    .dwcmp-row-val-right { justify-content: flex-start; border: none; text-align: left; }
    .dwcmp-row-label {
        justify-content: flex-start;
        background: #f1f5f9;
        font-size: 11px;
        padding: 6px 16px;
    }
    .dwcmp-feat-row { grid-template-columns: 1fr; border-bottom: 2px solid #e5e7eb; }
    .dwcmp-feat-val { border: none; font-size: 15px; }
    .dwcmp-feat-val-right { justify-content: flex-start; }
    .dwcmp-feat-label { justify-content: flex-start; background: #f1f5f9; font-size: 11px; padding: 6px 16px; }
    .dwcmp-cards-grid { grid-template-columns: 1fr; }
    .dwcmp-selector-wrap { padding: 20px 16px; }
    .dwcmp-compare-btn { padding: 13px 32px; }
    .dwcmp-tab { padding: 10px 12px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MEGA MENU
   ═══════════════════════════════════════════════════════════════════════════ */

/* Trigger */
.mega-trigger {
    background: none; border: none; cursor: pointer; padding: 0;
    font: inherit; font-weight: 500; font-size: 15px; color: inherit;
    display: inline-flex; align-items: center; gap: 4px;
    transition: color .15s;
}
.mega-trigger:hover, .mega-menu-wrap.mega-open .mega-trigger { color: var(--color-primary); }
.mega-chevron { transition: transform .22s ease; flex-shrink: 0; }
.mega-menu-wrap.mega-open .mega-chevron { transform: rotate(180deg); }

/* Positioning */
.mega-menu-wrap { position: static !important; }
.site-nav { position: static; }

/* Panel */
.mega-panel {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e8edf2;
    box-shadow: 0 16px 48px rgba(15,23,42,.1), 0 2px 8px rgba(15,23,42,.04);
    z-index: 300;
}
.mega-menu-wrap.mega-open .mega-panel { display: block; animation: megaIn .16s ease; }
@keyframes megaIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Panel: fixed-width, not full viewport */
.mega-panel {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 780px;
    border-radius: 0 0 14px 14px;
}

/* Grid: 2 columns */
.mega-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 24px 24px 20px;
    gap: 0;
}

/* Column dividers */
.mega-col { padding: 0 20px; }
.mega-col--models { padding-left: 4px; border-right: 1px solid #f0f2f5; }
.mega-col--brands { padding-right: 4px; }

/* Column label */
.mega-col-label {
    display: block;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: #b0bbc8; margin: 0 0 12px;
}

/* ── Col 1: Quick Links ── */
.mega-links-list { list-style: none; margin: 0; padding: 0; }
.mega-links-list li { margin-bottom: 1px; }
.mega-links-list a {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 9px; border-radius: 7px;
    font-size: 13.5px; font-weight: 500; color: #374151;
    text-decoration: none; transition: background .13s, color .13s;
    white-space: nowrap;
}
.mega-links-list a:hover { background: #f0f7fd; color: var(--color-primary); }
.mega-link-icon {
    color: #9ca3af; display: flex; align-items: center; flex-shrink: 0;
    transition: color .13s;
}
.mega-links-list a:hover .mega-link-icon { color: var(--color-primary); }

/* ── Col 2: Popular Models ── */
.mega-models-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.mega-model-card {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 9px;
    border: 1.5px solid #f0f2f5; background: #fafbfc;
    text-decoration: none; color: #374151;
    transition: background .13s, border-color .15s, box-shadow .15s;
    overflow: hidden;
}
.mega-model-card:hover {
    background: #fff; border-color: #bfdbfe;
    box-shadow: 0 2px 10px rgba(0,144,215,.1);
}
.mega-model-card img {
    width: 72px; height: 42px; object-fit: cover;
    border-radius: 5px; flex-shrink: 0;
    background: #f0f2f5;
}
.mega-model-noimg {
    width: 72px; height: 42px; flex-shrink: 0;
    border-radius: 5px; background: #f0f2f5;
}
.mega-model-info {
    display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.mega-model-brand {
    font-size: 10px; font-weight: 600; color: #9ca3af;
    text-transform: uppercase; letter-spacing: .04em;
}
.mega-model-name {
    font-size: 13px; font-weight: 700; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mega-model-price {
    font-size: 10.5px; font-weight: 600; color: var(--color-primary);
}

/* ── Col 3: Brands ── */
.mega-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.mega-brand-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 4px 7px;
    border-radius: 9px; border: 1.5px solid #f0f2f5;
    background: #fafbfc; text-decoration: none;
    transition: background .13s, border-color .15s, box-shadow .15s;
}
.mega-brand-card:hover {
    background: #fff; border-color: #bfdbfe;
    box-shadow: 0 2px 10px rgba(0,144,215,.1);
}
.mega-brand-card img {
    height: 24px; width: auto; max-width: 48px;
    object-fit: contain;
    filter: grayscale(15%) opacity(.88);
    transition: filter .15s;
}
.mega-brand-card:hover img { filter: none; }
.mega-brand-fallback {
    height: 24px; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: var(--color-primary);
}
.mega-brand-name {
    font-size: 10px; font-weight: 700; color: #4b5563;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%; text-align: center;
}
.mega-see-all {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; font-weight: 600; color: var(--color-primary);
    text-decoration: none;
    transition: gap .15s;
}
.mega-see-all:hover { gap: 8px; }



/* Hide on mobile */
@media (max-width: 900px) {
    .mega-panel { display: none !important; }
    .mega-chevron { display: none; }
}

/* ── Blog Mega Panel ─────────────────────────────────────────────────────── */
.mega-panel--blog {
    width: 640px;
}
.mega-inner--blog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px 20px 20px;
    gap: 6px;
}
.mega-blog-card {
    display: flex; align-items: flex-start; gap: 13px;
    padding: 11px 13px; border-radius: 9px;
    text-decoration: none; color: #1e293b;
    transition: background .13s;
}
.mega-blog-card:hover { background: #f8fafc; }
.mega-blog-card-icon {
    flex-shrink: 0; color: #64748b;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; border-radius: 8px;
    transition: background .13s, color .13s;
}
.mega-blog-card:hover .mega-blog-card-icon {
    background: #eff6ff; color: var(--color-primary);
}
.mega-blog-card-body { display: flex; flex-direction: column; gap: 2px; }
.mega-blog-card-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.mega-blog-card-desc  { font-size: 12px; color: #94a3b8; line-height: 1.4; }

/* ── Nav Badges ──────────────────────────────────────────────────────────── */
.nav-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 20px;
    line-height: 1.4; vertical-align: middle;
    margin-left: 5px; position: relative; top: -1px;
    letter-spacing: .02em;
}
.nav-badge--live {
    background: var(--color-primary);
    color: #fff;
}
.nav-badge--new {
    background: #DF1454;
    color: #fff;
}
/* WP menu class approach — badge pinned top-right corner of the label */
.nav-badge-live,
.nav-badge-new {
    overflow: visible;
}
.nav-badge-live > a,
.nav-badge-new > a {
    position: relative;
}
.nav-badge-live > a::after,
.nav-badge-new > a::after {
    position: absolute;
    top: -18px;
    right: -22px;
    display: inline-block;
    font-size: 9px; font-weight: 700; font-family: inherit;
    padding: 2px 7px; border-radius: 20px;
    line-height: 1.5; white-space: nowrap;
    letter-spacing: .05em;
    pointer-events: none;
}
.nav-badge-live > a::after {
    content: 'LIVE';
    background: var(--color-primary); color: #fff;
}
.nav-badge-new > a::after {
    content: 'NEW';
    background: #DF1454; color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════════════
   DW STATIC PAGES — About, Contact, Legal
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page Hero ──────────────────────────────────────────────────────────── */
.dw-page-hero {
    background: linear-gradient(135deg, #0a1929 0%, #0d2137 60%, #0a1929 100%);
    padding: 64px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.dw-page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,144,215,.18) 0%, transparent 70%);
    pointer-events: none;
}
.dw-page-hero__inner { position: relative; z-index: 1; }
.dw-page-hero__eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(0,144,215,.12);
    border: 1px solid rgba(0,144,215,.3);
    padding: 4px 14px; border-radius: 20px;
    margin-bottom: 16px;
}
.dw-page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800; color: #fff;
    margin: 0 0 14px; line-height: 1.15;
}
.dw-page-hero__sub {
    font-size: 1.0625rem; color: rgba(255,255,255,.65);
    margin: 0; max-width: 520px; margin: 0 auto;
}

/* ── About — Stats Bar ──────────────────────────────────────────────────── */
.dw-about-stats {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 32px 0;
}
.dw-about-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.dw-about-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 20px;
    border-right: 1px solid var(--color-border);
}
.dw-about-stat:last-child { border-right: none; }
.dw-about-stat__num {
    font-size: 1.875rem; font-weight: 800;
    color: var(--color-primary); line-height: 1;
    margin-bottom: 4px;
}
.dw-about-stat__label {
    font-size: 0.8125rem; color: var(--color-text-muted); font-weight: 500;
}

/* ── Shared Page Content wrapper ────────────────────────────────────────── */
.dw-page-content { padding: 64px 0 96px; }

.dw-content-wrap--centered { max-width: 780px; margin: 0 auto; }

/* ── Entry content base styles ──────────────────────────────────────────── */
.dw-entry-content { color: #374151; line-height: 1.8; font-size: 1rem; }
.dw-entry-content h1 { display: none; } /* hidden — hero already shows title */
.dw-entry-content h2 {
    font-size: 1.375rem; font-weight: 700; color: #0a1929;
    margin: 40px 0 12px; padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}
.dw-entry-content h3 {
    font-size: 1.0625rem; font-weight: 600; color: #1e293b;
    margin: 28px 0 8px;
}
.dw-entry-content p  { margin: 0 0 18px; }
.dw-entry-content ul,
.dw-entry-content ol { padding-left: 1.5em; margin: 0 0 18px; }
.dw-entry-content li { margin-bottom: 8px; }
.dw-entry-content a  { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.dw-entry-content a:hover { color: var(--color-primary-dk); }
.dw-entry-content strong { color: #1e293b; }
.dw-entry-content img { max-width: 100%; border-radius: 10px; margin: 8px 0 24px; }
.dw-entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 12px 20px; margin: 24px 0;
    background: #f0f9ff; border-radius: 0 8px 8px 0;
    font-style: italic; color: #374151;
}

/* ── Contact Page Layout ────────────────────────────────────────────────── */
.dw-contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 900px; margin: 0 auto;
}
.dw-contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.dw-contact-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px; padding: 20px;
    transition: box-shadow .2s;
}
.dw-contact-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.dw-contact-card__icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(0,144,215,.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}
.dw-contact-card__label {
    display: block; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--color-text-muted); margin-bottom: 4px;
}
.dw-contact-card__value {
    display: block; font-size: .9375rem; font-weight: 600;
    color: #1e293b; text-decoration: none;
}
a.dw-contact-card__value:hover { color: var(--color-primary); }

.dw-contact-form-box {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px; padding: 36px;
}
.dw-contact-form-box__title {
    font-size: 1.25rem; font-weight: 700; color: #0a1929;
    margin: 0 0 24px;
}
/* CF7 overrides */
.dw-contact-form-box .wpcf7-form p { margin-bottom: 16px; }
.dw-contact-form-box .wpcf7-form input[type="text"],
.dw-contact-form-box .wpcf7-form input[type="email"],
.dw-contact-form-box .wpcf7-form textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--color-border); border-radius: 8px;
    font-size: .9375rem; font-family: inherit;
    transition: border-color .15s;
}
.dw-contact-form-box .wpcf7-form input:focus,
.dw-contact-form-box .wpcf7-form textarea:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,144,215,.12);
}
.dw-contact-form-box .wpcf7-form input[type="submit"] {
    background: var(--color-primary); color: #fff;
    border: none; border-radius: 8px;
    padding: 11px 28px; font-weight: 700; font-size: .9375rem;
    cursor: pointer; transition: background .15s;
}
.dw-contact-form-box .wpcf7-form input[type="submit"]:hover {
    background: var(--color-primary-dk);
}
/* Hide Gutenberg-generated heading inside contact form box (shown in hero) */
.dw-contact-form-box .dw-entry-content h1,
.dw-contact-form-box .dw-entry-content h2:first-child { display: none; }

/* ── Legal Page Layout ──────────────────────────────────────────────────── */
.dw-legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1060px; margin: 0 auto;
}
.dw-legal-toc {
    position: sticky; top: 88px;
}
.dw-legal-toc__inner {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px; padding: 20px;
}
.dw-legal-toc__heading {
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--color-text-muted);
    margin: 0 0 12px;
}
.dw-toc-link {
    display: block; font-size: .8125rem; color: #374151;
    padding: 6px 0; text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 10px; margin-left: -10px;
    transition: color .15s, border-color .15s;
    line-height: 1.4;
}
.dw-toc-link:hover,
.dw-toc-link.active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}
.dw-legal-content { min-width: 0; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .dw-about-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .dw-about-stat { border-right: none; border-bottom: 1px solid var(--color-border); }
    .dw-about-stat:nth-child(odd) { border-right: 1px solid var(--color-border); }
    .dw-about-stat:last-child, .dw-about-stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }
    .dw-legal-layout { grid-template-columns: 1fr; }
    .dw-legal-toc { position: static; }
    .dw-contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .dw-page-hero { padding: 48px 0 40px; }
    .dw-about-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .dw-contact-form-box { padding: 24px 18px; }
}
