/* ─── Design Tokens ──────────────────────────────────────────────────── */
:root {
  --brand:          #1B2A4A;
  --brand-light:    #2a3f6f;
  --accent:         #F5A623;
  --accent-hover:   #e09410;
  --bg:             #FAF9F6;
  --card-border:    #EDECEA;
  --text:           #1A1A1A;
  --text-secondary: #6B7280;
  --neutral-100:    #f5f5f4;
  --neutral-200:    #e7e5e4;
  --neutral-300:    #d6d3d1;
  --neutral-400:    #a8a29e;
  --neutral-500:    #78716c;
  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --radius:         8px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 12px rgba(0,0,0,.10);
  --max-width:      1200px;
}

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

/* ─── Typography ─────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1.25rem; }

/* ─── Layout ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 3rem 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-header h2 { color: var(--brand); }
.view-all {
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent);
  transition: color .15s;
}
.view-all:hover { color: var(--accent-hover); }

/* ─── Header ─────────────────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.site-nav a:hover,
.site-nav a.active { background: var(--neutral-100); color: var(--brand); }
.site-nav .nav-deals {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: .4rem 1rem;
}
.site-nav .nav-deals:hover { background: var(--accent-hover); color: #fff; }

/* WP nav menu structure */
.site-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .nav-menu .menu-item { list-style: none; }
.site-nav .nav-menu .menu-item > a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
}
.site-nav .nav-menu .menu-item > a:hover,
.site-nav .nav-menu .current-menu-item > a { background: var(--neutral-100); color: var(--brand); }
.site-nav .nav-menu .nav-deals > a {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: .4rem 1rem;
}
.site-nav .nav-menu .nav-deals > a:hover { background: var(--accent-hover); color: #fff; }
/* Category dropdown */
.site-nav .menu-item-has-children { position: relative; }
.site-nav .menu-item-has-children > a::after { content: ' ▾'; font-size: .75rem; }
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  z-index: 200;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: .5rem 0 0;
}
.site-nav .menu-item-has-children:hover .sub-menu,
.site-nav .menu-item-has-children:focus-within .sub-menu { display: block; }
.site-nav .sub-menu .menu-item > a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  font-size: .875rem;
  border-radius: 0;
  background: none;
  color: var(--text);
}
.site-nav .sub-menu .menu-item > a:hover { background: var(--neutral-100); color: var(--brand); }

/* Search bar */
.header-search { position: relative; flex: 1; max-width: 360px; }
.header-search input {
  width: 100%;
  padding: .5rem 1rem .5rem 2.5rem;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: .875rem;
  background: var(--neutral-100);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.header-search input:focus { border-color: var(--brand); background: #fff; }
.header-search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  pointer-events: none;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand);
  padding: .5rem;
}

/* ─── Mobile Header ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav, .header-search { display: none; }
  .site-nav.open { display: block; }
  .site-nav.open .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .5rem 0;
  }
  .site-nav.open .nav-menu .menu-item { width: 100%; }
  .site-nav.open .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--neutral-200);
    margin-left: 1rem;
    min-width: unset;
  }
  .site-nav.open .menu-item-has-children > a::after { content: ''; }
  .mobile-menu-toggle { display: block; }
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .site-logo { color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.footer-col ul,
.footer-col .footer-nav-list { list-style: none; margin: 0; padding: 0; }
.footer-col ul li + li,
.footer-col .footer-nav-list .menu-item + .menu-item { margin-top: .5rem; }
.footer-col ul a,
.footer-col .footer-nav-list a { font-size: .875rem; transition: color .15s; color: rgba(255,255,255,.75); }
.footer-col ul a:hover,
.footer-col .footer-nav-list a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8125rem;
}
.footer-disclosure {
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: .8125rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Cards ──────────────────────────────────────────────────────────── */
.article-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--neutral-100);
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.article-card-cat {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .4rem;
}
.article-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.35;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-excerpt {
  font-size: .875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.article-card-meta {
  font-size: .75rem;
  color: var(--neutral-400);
  margin-top: .75rem;
}

/* ─── Deals Carousel ─────────────────────────────────────────────────── */
.deals-carousel-wrap {
  position: relative;
}
.deals-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.deals-carousel-track::-webkit-scrollbar { display: none; }
.deals-carousel-item {
  flex: none;
  width: calc(50% - 8px);
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  .deals-carousel-item { width: calc(33.333% - 11px); }
}
@media (min-width: 1024px) {
  .deals-carousel-item { width: calc(25% - 12px); }
}
.deals-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.deals-arrow:hover { background: var(--brand); color: #fff; }
.deals-arrow-prev { left: -20px; }
.deals-arrow-next { right: -20px; }
@media (min-width: 640px) { .deals-arrow { display: flex; } }

/* Deal card */
.deal-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.deal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.deal-card-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.deal-card-img img { max-height: 160px; object-fit: contain; }
.deal-card-body { padding: .875rem; flex: 1; display: flex; flex-direction: column; }
.deal-card-store {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--neutral-400);
  margin-bottom: .25rem;
}
.deal-card-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: .5rem;
}
.deal-card-prices { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.deal-price { font-size: 1.125rem; font-weight: 700; color: var(--brand); }
.deal-original { font-size: .875rem; color: var(--neutral-400); text-decoration: line-through; }
.deal-badge {
  font-size: .6875rem;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  padding: .15rem .5rem;
  border-radius: 20px;
}
.deal-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: .5rem;
  font-size: .875rem;
  font-weight: 600;
  transition: background .15s;
}
.deal-btn:hover { background: var(--accent-hover); color: #fff; }

/* ─── Filter pills ───────────────────────────────────────────────────── */
.filter-pill {
  padding: .35rem 1rem;
  border-radius: 20px;
  font-size: .875rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--card-border);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-pill--active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filter-pill:hover:not(.filter-pill--active) { border-color: var(--brand); color: var(--brand); }

/* ─── Grids ──────────────────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) {
  .deals-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .articles-grid { grid-template-columns: 1fr; }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Banner / Ad Zones ──────────────────────────────────────────────── */
.ad-slot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  overflow: hidden;
}
.ad-slot img { max-width: 100%; height: auto; }
.ad-placeholder {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--neutral-300);
  background: var(--neutral-100);
  border-radius: var(--radius);
  color: var(--neutral-400);
  font-family: monospace;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 1.5rem;
  margin: .75rem 0;
}
.ad-placeholder span { font-weight: 400; margin-top: .25rem; font-size: .625rem; }
/* Leaderboard 728×90 */
.ad-leaderboard { min-height: 90px; }
/* Medium rect 300×250 */
.ad-medrect { min-height: 250px; max-width: 300px; }
/* Half page 300×600 */
.ad-halfpage { min-height: 600px; max-width: 300px; }
/* Mobile banner 320×50 */
.ad-mobile { min-height: 50px; max-width: 320px; }

/* ─── Category Tiles ─────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .75rem;
}
.category-tile {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem .75rem;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.category-tile:hover { box-shadow: var(--shadow-md); border-color: var(--brand); }
.category-tile-icon { font-size: 2rem; margin-bottom: .5rem; display: block; }
.category-tile-label { font-size: .8125rem; font-weight: 600; color: var(--brand); line-height: 1.3; }
@media (max-width: 1024px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 400px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Hero Banner (homepage slider) ─────────────────────────────────── */
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius); }
.hero-slider-track { display: flex; transition: transform .5s ease; }
.hero-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-slide img { width: 100%; aspect-ratio: 970/250; object-fit: cover; }
.hero-slide-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27,42,74,.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 3rem;
  color: #fff;
}
.hero-slide-content h2 { font-size: clamp(1.25rem, 3vw, 2rem); color: #fff; margin-bottom: .5rem; }
.hero-slide-content p { font-size: .9375rem; opacity: .9; margin-bottom: 1rem; max-width: 420px; }
.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  padding: .6rem 1.5rem;
  border-radius: 6px;
  align-self: flex-start;
  transition: background .15s;
}
.hero-cta:hover { background: var(--accent-hover); }
.hero-dots {
  position: absolute;
  bottom: .75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.hero-dot.active { background: #fff; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.25rem;
  transition: background .15s;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-arrow-prev { left: .75rem; }
.hero-arrow-next { right: .75rem; }
/* Static hero image (no slides) */
.hero-static { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero-static img { width: 100%; aspect-ratio: 970/250; object-fit: cover; }
.hero-placeholder {
  width: 100%;
  aspect-ratio: 970/250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--neutral-100);
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius);
  color: var(--neutral-400);
  font-family: monospace;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ─── Article / Single post ──────────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 1024px) { .post-layout { grid-template-columns: 1fr; } }
.post-main { min-width: 0; }
.post-hero-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  background: var(--neutral-100);
}
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-cat-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: .75rem;
}
.post-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--brand);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.post-meta {
  font-size: .875rem;
  color: var(--neutral-400);
  margin-bottom: 1.5rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Article body prose */
.article-body { font-size: 1rem; line-height: 1.75; color: var(--text); }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.article-body h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul,
.article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .4rem; }
.article-body a { color: var(--brand); text-decoration: underline; }
.article-body .wp-block-button__link { text-decoration: none !important; }
.article-body a:hover { color: var(--accent); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: .75rem 1.25rem;
  background: var(--neutral-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
}
.article-body img, .article-body figure img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  max-width: 100%;
}
.article-body figcaption {
  font-size: .8125rem;
  color: var(--neutral-400);
  text-align: center;
  margin-top: -.75rem;
  margin-bottom: 1.5rem;
}
.article-body strong { font-weight: 600; }

/* ─── Sidebar ────────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-widget h3 {
  font-size: 1rem;
  color: var(--brand);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--card-border);
}
.sidebar-nav-list li + li { border-top: 1px solid var(--neutral-100); }
.sidebar-nav-list a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
  font-size: .875rem;
  color: var(--text);
  transition: color .15s;
}
.sidebar-nav-list a:hover { color: var(--brand); }

/* ─── Breadcrumb ─────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--neutral-400);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--neutral-400); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span.sep { font-size: .625rem; }

/* ─── Search page ────────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: .75rem;
  margin-bottom: 2rem;
}
.search-bar input {
  flex: 1;
  padding: .75rem 1.25rem;
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  transition: border-color .15s;
}
.search-bar input:focus { border-color: var(--brand); }
.search-bar button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .75rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.search-bar button:hover { background: var(--brand-light); }

/* ─── Pagination ─────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 .75rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--card-border);
  color: var(--text);
  background: #fff;
  transition: background .15s, border-color .15s;
}
.pagination a:hover { background: var(--neutral-100); border-color: var(--brand); color: var(--brand); }
.pagination span.current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ─── Mobile sticky banner ───────────────────────────────────────────── */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  z-index: 999;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}
@media (min-width: 640px) { .mobile-sticky-bar { display: none; } }
body { padding-bottom: 0; }
@media (max-width: 640px) { body { padding-bottom: 60px; } }

/* ─── Category archive header ────────────────────────────────────────── */
.archive-header { margin-bottom: 2rem; }

/* ─── Utility ────────────────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-brand { color: var(--brand); }
.text-muted { color: var(--text-secondary); }
.divider { border: none; border-top: 1px solid var(--card-border); margin: 2rem 0; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-secondary); }
.empty-state p:first-child { font-size: 1.125rem; margin-bottom: .5rem; }

/* ─── Editorial Hero (featured article, full-width) ─────────────────── */
.editorial-hero {
  position: relative;
  width: 100%;
  background: var(--brand);
  overflow: hidden;
  height: 520px;
  max-height: 70vh;
  margin-top: 1.5rem;
}
.editorial-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.editorial-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,27,50,.92) 0%, rgba(13,27,50,.65) 45%, transparent 75%);
}
.editorial-hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3.5rem;
}
.editorial-hero-inner { max-width: 560px; }
.editorial-hero-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .75rem;
  border-radius: 4px;
  margin-bottom: .875rem;
  transition: background .15s;
}
.editorial-hero-cat:hover { background: var(--accent-hover); }
.editorial-hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}
.editorial-hero-title a { color: #fff; }
.editorial-hero-title a:hover { color: rgba(255,255,255,.85); }
.editorial-hero-excerpt {
  font-size: .9375rem;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editorial-hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.editorial-hero-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  padding: .65rem 1.5rem;
  border-radius: 6px;
  transition: background .15s;
}
.editorial-hero-btn:hover { background: var(--accent-hover); color: #fff; }
.editorial-hero-date { font-size: .875rem; color: rgba(255,255,255,.55); }
@media (max-width: 600px) {
  .editorial-hero { height: 400px; }
  .editorial-hero-inner { max-width: 100%; }
}

/* ─── Gutenberg block editor alignment ──────────────────────────────── */
.wp-block { max-width: none; }

/* Hero banner sits flush — no block margins */
.wp-block-sdfm-hero-banner { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ── Product card blocks ─────────────────────────────────────────────────── */
.blog-product-card {
  border-radius: 20px;
  box-shadow: 0 0 60px 5px rgba(0,0,0,.2);
  overflow: clip;
}
.blog-product-card .wp-block-media-text__content {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}
/* Media column and figure: flush with card edges so image hits the rounded corners */
.blog-product-card .wp-block-media-text__media,
.blog-product-card .wp-block-media-text__media figure {
  padding: 0 !important;
  margin: 0 !important;
  align-self: flex-start !important;
  line-height: 0;
}
/* Image: full card width, natural aspect ratio, no cropping */
.blog-product-card .wp-block-media-text__media img {
  width: 100% !important;
  height: auto !important;
  object-fit: unset !important;
  display: block;
  margin: 0;
}
/* Override .article-body img margins inside column-based product cards (comparison/versus templates) */
.article-body .wp-block-column .wp-block-image img,
.article-body .wp-block-media-text__media img,
.article-body .blog-product-card .wp-block-media-text__media img {
  margin: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  height: auto !important;
  display: block;
}
/* comparison_versus column cards — shadow to match blog-product-card (border-radius + overflow set inline by template) */
.article-body .wp-block-columns .wp-block-column.has-background {
  box-shadow: 0 0 60px 5px rgba(0,0,0,.2);
}
