/* ==========================================================================
   NEXUS THEME — Main Stylesheet
   assets/css/style.min.css
   ========================================================================== */

/* ── 1. Modern CSS Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: var(--line-height-normal); -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
#root, #__next { isolation: isolate; }
ul, ol { list-style: none; padding: 0; }

/* ── 2. Base Styles ──────────────────────────────────────────────────────── */
html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--duration-base) var(--ease-in-out),
              color var(--duration-base) var(--ease-in-out);
}

/* Accessible focus styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--color-primary-dark); text-decoration: none; }

/* ── Smooth Theme Transitions ────────────────────────────────────────────── */
.site-header,
.site-footer,
.post-card,
.service-card,
.testimonial-card,
.widget,
.search-field,
.sub-menu,
.mega-menu__inner,
.newsletter-section__inner,
.contact-info-card,
.breadcrumbs__item,
.pagination .page-numbers li a,
.pagination .page-numbers li span {
  transition: background-color var(--duration-base) var(--ease-in-out),
              border-color var(--duration-base) var(--ease-in-out),
              color var(--duration-base) var(--ease-in-out),
              box-shadow var(--duration-base) var(--ease-in-out);
}

/* ── View Transitions (Dark Mode Ripple) ─────────────────────────────────── */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 9999;
}
::view-transition-new(root) {
  z-index: 1;
}
[data-theme="dark"]::view-transition-old(root) {
  z-index: 1;
}
[data-theme="dark"]::view-transition-new(root) {
  z-index: 9999;
}

/* ── 3. Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, var(--font-sans));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text);
}
h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: var(--font-weight-semibold); }
em, i { font-style: italic; }
small { font-size: var(--font-size-sm); }

blockquote {
  border-inline-start: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-surface);
  border-radius: 0 var(--radius-base) var(--radius-base) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
blockquote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  font-style: normal;
  color: var(--color-text-subtle);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-surface);
  padding: 0.125em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-secondary);
}
pre {
  background: hsl(220, 20%, 12%);
  color: hsl(220, 15%, 90%);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-6) 0;
}
pre code { background: none; padding: 0; color: inherit; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ── 4. Layout & Container ───────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.section { padding-block: clamp(3rem, 6vw, 5rem); }

.content-area {
  display: grid;
  gap: var(--space-12);
}
.content-area.has-sidebar.sidebar-right {
  grid-template-columns: 1fr var(--sidebar-width);
}
.content-area.has-sidebar.sidebar-left {
  grid-template-columns: var(--sidebar-width) 1fr;
}
.content-area.has-sidebar.sidebar-left .site-main { order: 2; }
.content-area.has-sidebar.sidebar-left .sidebar    { order: 1; }

/* ── 5. Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-bounce),
              box-shadow var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-inverse);
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.35);
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: var(--color-text-inverse); }
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn--light {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn--light:hover { background: rgba(255,255,255,0.9); color: var(--color-primary); }
.btn--sm { padding: 0.4rem 1rem; font-size: var(--font-size-sm); }
.btn--lg { padding: 0.875rem 2rem; font-size: var(--font-size-lg); }
.btn--block { width: 100%; justify-content: center; }

/* Button shape variants */
body.btn-shape--sharp .btn { border-radius: 0; }
body.btn-shape--rounded .btn { border-radius: var(--radius-base); }
body.btn-shape--pill .btn { border-radius: var(--radius-full); }

/* ── 6. Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: var(--z-sticky);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--duration-base) var(--ease-in-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.site-header.header--sticky {
  position: sticky;
  top: 0;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-height);
}
.site-logo { flex-shrink: 0; }
.site-logo img, .custom-logo {
  max-width: 160px;
  max-height: calc(var(--header-height) - 16px);
  width: auto;
  height: auto;
  display: block;
}
.site-title-link {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}
.site-title-link:hover { color: var(--color-primary); }

/* Header -- transparent overlay */
.header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  border-bottom: none !important;
}
.header--overlay.is-scrolled {
  position: fixed;
  background: var(--color-bg) !important;
  box-shadow: var(--shadow-md);
}
.header--overlay .site-title-link,
.header--overlay .nav-link,
.header--overlay .header-action-btn { color: #fff; }
.header--overlay.is-scrolled .site-title-link,
.header--overlay.is-scrolled .nav-link,
.header--overlay.is-scrolled .header-action-btn { color: var(--color-text); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
}
.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius-base);
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.header-action-btn:hover { background: var(--color-surface); color: var(--color-primary); }
.header-action-btn--light { color: rgba(255,255,255,0.9); }
.header-action-btn--light:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Dark mode toggle */
.dark-mode-toggle {
  transition: transform var(--duration-base) var(--ease-bounce);
}
.dark-mode-toggle:hover {
  transform: rotate(15deg) scale(1.1);
}
.dark-mode-toggle:active {
  transform: scale(0.9);
}
.dark-mode-toggle .icon-sun { display: none; }
[data-theme="dark"] .dark-mode-toggle .icon-sun { display: flex; }
[data-theme="dark"] .dark-mode-toggle .icon-moon { display: none; }

/* Header Social */
.header-social { display: flex; gap: var(--space-1); }
.header-social__link {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast);
}
.header-social__link:hover { color: var(--color-primary); }

/* Mobile toggle — hidden on desktop */
.mobile-toggle { display: none; }

/* ── 7. Top Bar ──────────────────────────────────────────────────────────── */
.site-topbar {
  background: var(--nexus-topbar-bg, hsl(220, 25%, 12%));
  color: var(--nexus-topbar-text, #cbd5e1);
  font-size: var(--font-size-sm);
}
.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 40px;
}
.site-topbar__left { display: flex; align-items: center; gap: var(--space-4); }
.site-topbar__right { display: flex; align-items: center; gap: var(--space-4); }
.topbar-item { display: flex; align-items: center; gap: var(--space-1); color: inherit; text-decoration: none; }
.topbar-item:hover { color: #fff; }
.topbar-menu .menu { display: flex; gap: var(--space-4); margin: 0; padding: 0; }
.topbar-menu .menu-item a { color: inherit; text-decoration: none; font-size: var(--font-size-sm); }
.topbar-menu .menu-item a:hover { color: #fff; }
.topbar-social { display: flex; gap: var(--space-2); }
.topbar-social__link { color: inherit; display: flex; align-items: center; }
.topbar-social__link:hover { color: #fff; }

/* ── 8. Primary Navigation ───────────────────────────────────────────────── */
.primary-nav { flex: 1; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.nav-menu .menu-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-base);
  transition: color var(--duration-fast), background-color var(--duration-fast);
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--ease-out);
}
.nav-link:hover::after,
.menu-item:hover > .nav-link::after {
  transform: scaleX(1);
  transform-origin: left;
}
.menu-item.current-menu-item > .nav-link { color: var(--color-primary); }
.nav-dropdown-arrow { transition: transform var(--duration-fast); }
.menu-item:hover .nav-dropdown-arrow { transform: rotate(90deg); }
.nav-menu--light .nav-link { color: rgba(255,255,255,0.9); }
.nav-menu--light .nav-link::after { background-color: #fff; }
.nav-menu--light .nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Dropdowns */
.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  min-width: 220px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  z-index: var(--z-dropdown);
  animation: dropdownIn var(--duration-base) var(--ease-out);
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.menu-item:hover > .sub-menu,
.menu-item:focus-within > .sub-menu { display: block; }
.sub-menu .nav-link {
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  padding: var(--space-2) var(--space-3);
}
.sub-menu .sub-menu { top: 0; left: 100%; margin-top: 0; }

/* Centered nav */
.nav-menu--centered { justify-content: center; }
.primary-nav--centered { flex: 0 0 100%; }

/* Mega menu */
.mega-menu__inner {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  z-index: var(--z-dropdown);
  display: none;
}
.menu-item.mega-menu:hover .mega-menu__inner { display: block; }
.mega-menu__widgets { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }

/* ── 9. Mobile Nav ───────────────────────────────────────────────────────── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
  backdrop-filter: blur(4px);
}
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed;
  inset-block: 0;
  inset-inline-start: -100%;
  width: min(360px, 90vw);
  background: var(--color-bg);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-2xl);
  transition: inset-inline-start var(--duration-slow) var(--ease-in-out);
  overflow-y: auto;
}
.mobile-nav.is-open { inset-inline-start: 0; }
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  color: var(--color-text);
}
.mobile-nav__close:hover { background: var(--color-surface-2); }
.mobile-nav__search { padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--color-border); }
.mobile-nav__menu { flex: 1; padding: var(--space-4) var(--space-6); }
.mobile-menu-list { display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-base);
  transition: background-color var(--duration-fast);
}
.mobile-nav-link:hover { background: var(--color-surface); color: var(--color-primary); }
.mobile-sub-menu { padding-inline-start: var(--space-4); margin-top: var(--space-1); }
.mobile-submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: transform var(--duration-fast), color var(--duration-fast);
}
.mobile-submenu-toggle.is-open { transform: rotate(90deg); color: var(--color-primary); }
.mobile-nav__footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.mobile-nav__social { display: flex; gap: var(--space-3); }
.mobile-social-link { color: var(--color-text-muted); display: flex; align-items: center; }
.mobile-social-link:hover { color: var(--color-primary); }
.mobile-nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark-mode-toggle-mobile {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  width: 100%;
  justify-content: center;
}
.toggle-track {
  display: inline-flex;
  width: 40px;
  height: 22px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  padding: 2px;
  align-items: center;
  transition: background-color var(--duration-fast);
}
[data-theme="dark"] .toggle-track { background: var(--color-primary); }
.toggle-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--duration-fast);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .toggle-thumb { transform: translateX(18px); }

/* ── 10. Hero Sections ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(220, 25%, 12%) 0%, hsl(260, 30%, 15%) 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero--small     { min-height: 50vh; }
.hero--medium    { min-height: 65vh; }
.hero--large     { min-height: 80vh; }
.hero--fullscreen{ min-height: 100vh; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 100%);
}
.hero__container {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}
.hero__content { max-width: 680px; }
.hero__heading {
  font-size: var(--font-size-6xl);
  color: #fff;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__subheading {
  font-size: var(--font-size-xl);
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
  max-width: 560px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  animation: blobFloat 6s ease-in-out infinite;
}
.hero__blob--1 {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  top: -100px;
  right: 100px;
}
.hero__blob--2 {
  width: 200px;
  height: 200px;
  background: var(--color-secondary);
  bottom: -50px;
  right: 300px;
  animation-delay: 2s;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}

/* Hero Slider */
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slider__slide {
  display: none;
  background-size: cover;
  background-position: center;
  min-height: inherit;
  align-items: center;
}
.hero-slider__slide.is-active { display: flex; }
.hero-slider__controls {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 2;
}
.hero-slider__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color var(--duration-fast);
}
.hero-slider__btn:hover { background: rgba(255,255,255,0.35); }
.hero-slider__dots { display: flex; gap: var(--space-2); }
.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background-color var(--duration-fast), transform var(--duration-fast);
}
.hero-slider__dot.is-active { background: #fff; transform: scale(1.4); }

/* Video Hero */
.hero--video .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.play-icon { display: inline-flex; align-items: center; }

/* ── 11. Section Headers ─────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.section-header--centered {
  flex-direction: column;
  text-align: center;
  justify-content: center;
  margin-bottom: var(--space-12);
}
.section-label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--letter-spacing-tight);
}
.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-top: var(--space-4);
}
.section-viewall {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: gap var(--duration-fast);
}
.section-viewall:hover { gap: var(--space-3); color: var(--color-primary); }

/* ── 12. Post Cards ──────────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  gap: var(--space-8);
}
.post-grid--2-col { grid-template-columns: repeat(2, 1fr); }
.post-grid--3-col { grid-template-columns: repeat(3, 1fr); }
.post-grid--4-col { grid-template-columns: repeat(4, 1fr); }

.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-slow) var(--ease-bounce),
              box-shadow var(--duration-slow) var(--ease-out),
              border-color var(--duration-base) var(--ease-in-out);
}
.post-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-2xl), 0 12px 30px rgba(var(--color-primary-rgb), 0.08);
}
.post-card__thumbnail { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out);
}
.post-card:hover .post-card__img { transform: scale(1.08); }
.post-card__thumbnail-link { display: block; }
.post-card__category {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}
.post-card__content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.post-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}
.post-card__title a { color: var(--color-text); text-decoration: none; }
.post-card__title a:hover { color: var(--color-primary); }
.post-card__excerpt { color: var(--color-text-muted); font-size: var(--font-size-sm); flex: 1; }
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.post-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--duration-fast);
}
.post-card__readmore:hover { gap: var(--space-2); color: var(--color-primary); }

/* List card */
.post-card--list {
  flex-direction: row;
  align-items: center;
}
.post-card-list__thumbnail { flex-shrink: 0; width: 200px; aspect-ratio: 4/3; overflow: hidden; }
.post-card-list__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.post-card--list:hover .post-card-list__img { transform: scale(1.05); }
.post-card-list__content { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.post-card-list__meta-top { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.post-card-list__title { font-size: var(--font-size-2xl); }
.post-card-list__title a { color: var(--color-text); text-decoration: none; }
.post-card-list__title a:hover { color: var(--color-primary); }
.post-card-list__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

/* Compact card */
.post-card--compact {
  flex-direction: row;
  border-radius: var(--radius-base);
  padding: var(--space-3);
  gap: var(--space-3);
}
.post-card-compact__img-link { flex-shrink: 0; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; }
.post-card-compact__img { width: 100%; height: 100%; object-fit: cover; }
.post-card-compact__content { flex: 1; }
.post-card-compact__title { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); line-height: var(--line-height-snug); }
.post-card-compact__title a { color: var(--color-text); text-decoration: none; }
.post-card-compact__title a:hover { color: var(--color-primary); }
.post-card-compact__meta { font-size: var(--font-size-xs); color: var(--color-text-subtle); margin-top: var(--space-1); }

/* Category badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  text-decoration: none;
  background: var(--cat-color, var(--color-primary));
  color: #fff;
  transition: opacity var(--duration-fast);
}
.category-badge:hover { opacity: 0.85; color: #fff; }

/* Post meta */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.post-meta__item a { color: inherit; text-decoration: none; }
.post-meta__item a:hover { color: var(--color-primary); }

/* ── 13. Post Carousel ───────────────────────────────────────────────────── */
.post-carousel { overflow: hidden; }
.post-carousel__track {
  display: flex;
  gap: var(--space-6);
  transition: transform var(--duration-slow) var(--ease-in-out);
}
.post-carousel__item {
  flex: 0 0 calc(33.333% - var(--space-4));
  min-width: 0;
}
.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--color-text);
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.carousel-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.carousel-controls { display: flex; gap: var(--space-2); }

/* ── 14. Featured Posts ──────────────────────────────────────────────────── */
.featured-posts-section { background: var(--color-surface); }
.featured-posts__layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-6);
  align-items: start;
}
.featured-post-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
}
.featured-post-main__image { display: block; aspect-ratio: 16/9; overflow: hidden; }
.featured-post-main__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.featured-post-main:hover .featured-post-main__img { transform: scale(1.03); }
.featured-post-main__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}
.featured-post-main__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8);
  color: #fff;
}
.featured-post-main__title {
  font-size: var(--font-size-3xl);
  color: #fff;
  margin-block: var(--space-3);
}
.featured-post-main__title a { color: inherit; text-decoration: none; }
.featured-post-main__title a:hover { text-decoration: underline; }
.featured-post-main__excerpt { color: rgba(255,255,255,0.8); font-size: var(--font-size-base); margin-bottom: var(--space-4); }
.featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.75em;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--space-2);
}
.featured-posts-secondary {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.featured-post-secondary {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--duration-base);
}
.featured-post-secondary:hover { box-shadow: var(--shadow-md); }
.featured-post-secondary__image { flex-shrink: 0; width: 100px; height: 75px; border-radius: var(--radius-base); overflow: hidden; }
.featured-post-secondary__image img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-secondary__content { flex: 1; min-width: 0; }
.featured-post-secondary__title { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); line-height: var(--line-height-snug); margin-top: var(--space-2); }
.featured-post-secondary__title a { color: var(--color-text); text-decoration: none; }
.featured-post-secondary__title a:hover { color: var(--color-primary); }

/* ── 15. Category Tabs ───────────────────────────────────────────────────── */
.category-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-1);
}
.category-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border: none;
  background: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  border-radius: var(--radius-base) var(--radius-base) 0 0;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}
.category-tab:hover { color: var(--color-text); }
.category-tab.is-active {
  color: var(--cat-color, var(--color-primary));
  border-bottom-color: var(--cat-color, var(--color-primary));
}
.category-tab__count {
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 0.1em 0.5em;
  font-size: var(--font-size-xs);
}
.category-panel { animation: fadeIn var(--duration-base) var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.category-panel__footer { margin-top: var(--space-8); text-align: center; }
.category-panel__loader { display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-16); color: var(--color-text-muted); }
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 16. About Section ───────────────────────────────────────────────────── */
.about-section__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-section__image { position: relative; }
.about-section__img { border-radius: var(--radius-2xl); width: 100%; box-shadow: var(--shadow-2xl); }
.about-section__image-decoration {
  position: absolute;
  inset: -16px;
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-2xl);
  z-index: -1;
  opacity: 0.3;
  transform: rotate(3deg);
}
.about-section__content { display: flex; flex-direction: column; gap: var(--space-6); }
.about-section__text { color: var(--color-text-muted); line-height: var(--line-height-relaxed); }

/* ── 17. Services ────────────────────────────────────────────────────────── */
.services-section { background: var(--color-surface); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: transform var(--duration-slow) var(--ease-bounce),
              box-shadow var(--duration-slow) var(--ease-out),
              border-color var(--duration-base) var(--ease-in-out);
}
.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-xl), 0 12px 30px rgba(var(--color-primary-rgb), 0.08);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-xl);
  color: #fff;
  font-size: 1.5rem;
  margin: 0 auto var(--space-5);
}
.service-card__icon .nexus-icon { color: #fff; width: 28px; height: 28px; }
.service-card__icon .nexus-icon svg { width: 28px; height: 28px; }
.service-card__title { font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); margin-bottom: var(--space-3); }
.service-card__desc { color: var(--color-text-muted); font-size: var(--font-size-sm); line-height: var(--line-height-relaxed); }

/* ── 18. Stats ───────────────────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding-block: clamp(3rem, 6vw, 5rem);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}
.stat-item__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-item__label { font-size: var(--font-size-base); opacity: 0.85; }

/* ── 19. Testimonials ────────────────────────────────────────────────────── */
.testimonials-carousel__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: transform var(--duration-slow) var(--ease-bounce),
              box-shadow var(--duration-slow) var(--ease-out),
              border-color var(--duration-base) var(--ease-in-out);
}
.testimonial-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-xl), 0 12px 30px rgba(var(--color-primary-rgb), 0.08);
}
.testimonial-card__quote-icon {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: var(--color-primary);
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--color-warning);
}
.testimonial-card__quote {
  font-size: var(--font-size-base);
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
}
.testimonial-card__author { display: flex; align-items: center; gap: var(--space-4); }
.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}
.testimonial-card__name { font-weight: var(--font-weight-semibold); display: block; }
.testimonial-card__title { font-size: var(--font-size-sm); color: var(--color-text-muted); }

/* ── 20. CTA Section ─────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.cta-section__heading {
  font-size: var(--font-size-4xl);
  color: #fff;
  margin-bottom: var(--space-3);
}
.cta-section__subtext { color: rgba(255,255,255,0.85); font-size: var(--font-size-lg); }
.cta-section__blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.cta-section__blob--1 { width: 400px; height: 400px; top: -200px; right: -100px; }
.cta-section__blob--2 { width: 250px; height: 250px; bottom: -100px; left: 100px; }

/* ── 21. Newsletter Section ──────────────────────────────────────────────── */
.newsletter-section { background: var(--color-surface); }
.newsletter-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
}
.newsletter-section__text { display: flex; flex-direction: column; gap: var(--space-4); }
.newsletter-section__text .nexus-icon { color: var(--color-primary); width: 40px; height: 40px; }
.newsletter-section__heading { font-size: var(--font-size-3xl); }
.newsletter-section__subtext { color: var(--color-text-muted); }
.newsletter-form__group { display: flex; gap: var(--space-3); }
.newsletter-form__input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-base);
  outline: none;
  transition: border-color var(--duration-fast);
}
.newsletter-form__input:focus { border-color: var(--color-primary); }
.newsletter-form__note { font-size: var(--font-size-xs); color: var(--color-text-subtle); margin-top: var(--space-2); }

/* ── 22. Single Post ─────────────────────────────────────────────────────── */
.single-post { max-width: 800px; margin: 0 auto; }
.single-post__hero { margin-bottom: var(--space-10); border-radius: var(--radius-xl); overflow: hidden; }
.single-post__hero-img { width: 100%; height: auto; max-height: 60vh; object-fit: cover; }
.single-post__wrap { padding-block: var(--space-8) var(--space-12); }
.single-post__categories { margin-bottom: var(--space-4); }
.single-post__title {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}
.single-post__meta { margin-bottom: var(--space-6); }
.single-post__content {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}
.single-post__content h2 { margin-top: var(--space-10); margin-bottom: var(--space-4); }
.single-post__content h3 { margin-top: var(--space-8); margin-bottom: var(--space-3); }
.single-post__content p + p { margin-top: var(--space-4); }
.single-post__content img { border-radius: var(--radius-md); margin: var(--space-6) 0; }
.single-post__content ul, .single-post__content ol {
  padding-inline-start: 1.5em;
  list-style: revert;
  margin-bottom: var(--space-4);
}
.single-post__content li { margin-bottom: var(--space-2); }
.single-post__footer { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.single-post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.post-tag {
  display: inline-flex;
  padding: 0.3em 0.75em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.post-tag:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.single-post__share-bottom { margin-top: var(--space-6); }

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-surface);
  z-index: calc(var(--z-sticky) - 1);
}
.reading-progress__bar {
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  width: 0%;
  transition: width 100ms linear;
}

/* Social share */
.social-share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.social-share__label { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-muted); }
.social-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-base);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.social-share__btn:hover { color: #fff; }
.social-share__btn--twitter:hover  { background: #000; border-color: #000; }
.social-share__btn--facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-share__btn--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.social-share__btn--whatsapp:hover { background: #25d366; border-color: #25d366; }

/* Author bio */
.author-bio {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  margin: var(--space-10) 0;
}
.author-bio__avatar { flex-shrink: 0; }
.author-bio__img { width: 80px; height: 80px; border-radius: var(--radius-full); object-fit: cover; }
.author-bio__label { font-size: var(--font-size-xs); letter-spacing: var(--letter-spacing-widest); text-transform: uppercase; color: var(--color-primary); font-weight: var(--font-weight-bold); margin-bottom: var(--space-1); }
.author-bio__name { font-size: var(--font-size-xl); margin-bottom: var(--space-3); }
.author-bio__name a { color: var(--color-text); text-decoration: none; }
.author-bio__name a:hover { color: var(--color-primary); }
.author-bio__text { color: var(--color-text-muted); font-size: var(--font-size-sm); line-height: var(--line-height-relaxed); }

/* Related posts */
.related-posts { margin-top: var(--space-12); }
.related-posts__title { font-size: var(--font-size-3xl); margin-bottom: var(--space-8); }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-10) 0;
}
.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.post-navigation a:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.nav-subtitle { font-size: var(--font-size-xs); color: var(--color-text-muted); font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: var(--letter-spacing-wider); display: flex; align-items: center; gap: var(--space-1); }
.nav-title { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
.post-navigation .nav-next { text-align: end; }

/* ── 23. Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: hsl(220, 25%, 10%);
  color: hsl(215, 20%, 65%);
}
.footer-widgets {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer-widgets__grid {
  display: grid;
  gap: var(--space-10);
}
.footer-widgets--1-col .footer-widgets__grid { grid-template-columns: 1fr; }
.footer-widgets--2-col .footer-widgets__grid { grid-template-columns: repeat(2, 1fr); }
.footer-widgets--3-col .footer-widgets__grid { grid-template-columns: repeat(3, 1fr); }
.footer-widgets--4-col .footer-widgets__grid { grid-template-columns: repeat(4, 1fr); }

.site-footer .widget-title {
  color: hsl(215, 25%, 92%);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-widest);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid hsl(215, 20%, 20%);
}
.site-footer .widget a { color: hsl(215, 20%, 65%); text-decoration: none; }
.site-footer .widget a:hover { color: #fff; }
.site-footer .widget ul { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer .widget ul li { padding-block: var(--space-1); border-bottom: 1px solid hsl(215, 20%, 16%); }

/* Footer copyright bar */
.footer-copyright {
  background: hsl(220, 25%, 6%);
  padding-block: var(--space-5);
  border-top: 1px solid hsl(215, 20%, 16%);
}
.footer-copyright__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-copyright__text { font-size: var(--font-size-sm); color: hsl(215, 15%, 50%); }
.footer-legal-list { display: flex; gap: var(--space-6); }
.footer-legal-list a { font-size: var(--font-size-sm); color: hsl(215, 15%, 50%); text-decoration: none; }
.footer-legal-list a:hover { color: #fff; }

/* Minimal footer */
.footer--minimal .footer-minimal__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-block: var(--space-8);
}
.footer-menu-minimal .footer-nav-list { display: flex; gap: var(--space-6); }
.footer-menu-minimal .footer-nav-list a { font-size: var(--font-size-sm); color: hsl(215, 20%, 65%); text-decoration: none; }
.footer-menu-minimal .footer-nav-list a:hover { color: #fff; }
.footer-minimal__social { display: flex; gap: var(--space-3); }
.footer-social-link { color: hsl(215, 20%, 50%); display: flex; align-items: center; }
.footer-social-link:hover { color: #fff; }

/* Magazine footer newsletter strip */
.footer-newsletter-strip {
  background: hsl(220, 25%, 13%);
  padding-block: var(--space-8);
  border-bottom: 1px solid hsl(215, 20%, 18%);
}
.footer-newsletter-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.footer-newsletter-strip__text h3 { color: #fff; font-size: var(--font-size-xl); margin-bottom: var(--space-1); }
.footer-newsletter-strip__text p { color: hsl(215, 20%, 65%); font-size: var(--font-size-sm); }
.footer-newsletter-strip__form { flex-shrink: 0; }

/* ── 24. Back to Top ─────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-raised);
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: background-color var(--duration-fast), transform var(--duration-fast), opacity var(--duration-fast);
  opacity: 0;
}
.back-to-top:not([hidden]) { opacity: 1; }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

/* ── 25. Sidebar & Widgets ───────────────────────────────────────────────── */
.sidebar .widget {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.sidebar .widget-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary);
}
.sidebar .widget ul { display: flex; flex-direction: column; gap: var(--space-2); }
.sidebar .widget ul li { border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-2); }
.sidebar .widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar .widget a { color: var(--color-text); text-decoration: none; font-size: var(--font-size-sm); }
.sidebar .widget a:hover { color: var(--color-primary); }

/* ── 26. Search ──────────────────────────────────────────────────────────── */
.search-form { display: flex; gap: var(--space-3); }
.search-field {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-base);
  outline: none;
  transition: border-color var(--duration-fast);
}
.search-field:focus { border-color: var(--color-primary); background: var(--color-bg); }
.search-submit {
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  transition: background-color var(--duration-fast);
}
.search-submit:hover { background: var(--color-primary-dark); }

/* Header search overlay */
.header-search {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-4);
  animation: slideDown var(--duration-base) var(--ease-out);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.header-search .container { display: flex; align-items: center; gap: var(--space-4); }
.header-search__close { background: none; border: none; cursor: pointer; color: var(--color-text-muted); display: flex; align-items: center; }
.header-search__close:hover { color: var(--color-text); }

/* Search page */
.search-header { margin-bottom: var(--space-10); }
.search-title { font-size: var(--font-size-4xl); margin-bottom: var(--space-3); }
.search-query { color: var(--color-primary); }
.search-count { color: var(--color-text-muted); margin-bottom: var(--space-6); }
.search-form-wrap { max-width: 600px; }
.search-results { display: flex; flex-direction: column; gap: var(--space-6); }
.search-result {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration-base);
}
.search-result:hover { box-shadow: var(--shadow-md); }
.search-result__content { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.search-result__meta { display: flex; align-items: center; gap: var(--space-3); }
.search-result__type { font-size: var(--font-size-xs); color: var(--color-text-subtle); font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: var(--letter-spacing-wider); }
.search-result__title { font-size: var(--font-size-2xl); }
.search-result__title a { color: var(--color-text); text-decoration: none; }
.search-result__title a:hover { color: var(--color-primary); }
.search-result__excerpt { color: var(--color-text-muted); font-size: var(--font-size-sm); }
.search-result__thumbnail { flex-shrink: 0; width: 150px; height: 100px; border-radius: var(--radius-md); overflow: hidden; }
.search-result__thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* ── 27. Archive & Category ──────────────────────────────────────────────── */
.archive-header {
  padding-block: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
.archive-title { font-size: var(--font-size-4xl); margin-bottom: var(--space-3); }
.archive-description { color: var(--color-text-muted); max-width: 60ch; }
.category-hero {
  background: linear-gradient(135deg, var(--cat-color, var(--color-primary)), color-mix(in srgb, var(--cat-color, var(--color-primary)) 60%, #000));
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
  margin-bottom: var(--space-10);
}
.category-hero__inner { max-width: 640px; }
.category-hero__label { font-size: var(--font-size-xs); letter-spacing: var(--letter-spacing-widest); text-transform: uppercase; opacity: 0.8; margin-bottom: var(--space-2); }
.category-hero__title { font-size: var(--font-size-5xl); color: #fff; margin-bottom: var(--space-4); }
.category-hero__desc { opacity: 0.9; font-size: var(--font-size-lg); margin-bottom: var(--space-4); }
.category-hero__meta { font-size: var(--font-size-sm); opacity: 0.75; }

/* ── 28. Author ──────────────────────────────────────────────────────────── */
.author-hero {
  background: linear-gradient(135deg, hsl(220, 20%, 10%), hsl(260, 25%, 14%));
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
  margin-bottom: var(--space-10);
}
.author-hero__inner { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.author-hero__img { width: 120px; height: 120px; border-radius: var(--radius-full); border: 4px solid rgba(255,255,255,0.3); object-fit: cover; }
.author-hero__label { font-size: var(--font-size-xs); letter-spacing: var(--letter-spacing-widest); text-transform: uppercase; opacity: 0.7; margin-bottom: var(--space-2); }
.author-hero__name { font-size: var(--font-size-4xl); color: #fff; margin-bottom: var(--space-4); }
.author-hero__bio { color: rgba(255,255,255,0.8); font-size: var(--font-size-base); max-width: 50ch; margin-bottom: var(--space-4); }
.author-hero__social { display: flex; gap: var(--space-3); }
.author-social-link { color: rgba(255,255,255,0.7); display: flex; align-items: center; }
.author-social-link:hover { color: #fff; }

/* ── 29. 404 Page ────────────────────────────────────────────────────────── */
.error-404-page { padding-block: clamp(4rem, 10vw, 8rem); }
.error-404 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-8); max-width: 600px; margin: 0 auto; }
.error-404__visual { position: relative; }
.error-404__number {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-404__dot {
  position: absolute;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.2;
  animation: blobFloat 4s ease-in-out infinite;
}
.error-404__dot--1 { width: 80px; height: 80px; top: -20px; right: -30px; }
.error-404__dot--2 { width: 50px; height: 50px; bottom: 0; left: -20px; animation-delay: 1s; }
.error-404__dot--3 { width: 30px; height: 30px; top: 50%; right: -50px; animation-delay: 2s; }
.error-404__title { font-size: var(--font-size-4xl); }
.error-404__message { color: var(--color-text-muted); font-size: var(--font-size-lg); }
.error-404__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }
.error-404__search { width: 100%; }

/* ── 30. Comments ────────────────────────────────────────────────────────── */
.comments-area { margin-top: var(--space-12); padding-top: var(--space-10); border-top: 1px solid var(--color-border); }
.comments-title { font-size: var(--font-size-3xl); margin-bottom: var(--space-8); }
.comment-list { display: flex; flex-direction: column; gap: var(--space-6); }
.nexus-comment { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); background: var(--color-bg); }
.nexus-comment .children { margin-top: var(--space-4); padding-inline-start: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); list-style: none; }
.comment-header { display: flex; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-4); }
.comment-avatar img { width: 48px; height: 48px; border-radius: var(--radius-full); }
.comment-meta { flex: 1; }
.comment-author-name { font-weight: var(--font-weight-semibold); font-size: var(--font-size-base); }
.comment-author-badge { display: inline-block; margin-inline-start: var(--space-2); padding: 0.15em 0.5em; background: var(--color-primary); color: #fff; border-radius: var(--radius-sm); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); }
.comment-date { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.comment-date a { color: inherit; text-decoration: none; }
.comment-content { font-size: var(--font-size-base); line-height: var(--line-height-relaxed); }
.comment-actions { margin-inline-start: auto; }
.comment-reply-link { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-primary); text-decoration: none; }
.nexus-comment-form { margin-top: var(--space-12); padding-top: var(--space-10); border-top: 1px solid var(--color-border); }
.comment-form-row { margin-bottom: var(--space-5); }
.comment-form-row label { display: block; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-2); }
.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-family: inherit;
  outline: none;
  transition: border-color var(--duration-fast);
}
.form-control:focus { border-color: var(--color-primary); background: var(--color-bg); }
.comment-submit { margin-top: var(--space-6); }
.comment-awaiting-moderation { font-size: var(--font-size-sm); color: var(--color-warning); background: hsl(38, 100%, 95%); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); margin-bottom: var(--space-3); }

/* ── 31. Breadcrumbs ─────────────────────────────────────────────────────── */
.breadcrumbs { margin-bottom: var(--space-8); }
.breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.breadcrumbs__item a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs__item a:hover { color: var(--color-primary); }
.breadcrumbs__item [aria-current="page"] { color: var(--color-text); font-weight: var(--font-weight-medium); }
.breadcrumbs__sep { color: var(--color-border); display: flex; align-items: center; }

/* ── 32. Pagination ──────────────────────────────────────────────────────── */
.pagination { margin-top: var(--space-10); }
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}
.pagination .page-numbers li a,
.pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  color: var(--color-text);
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.pagination .page-numbers li a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .page-numbers li .current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .page-numbers li .dots { border: none; background: none; }

/* ── 33. WooCommerce ─────────────────────────────────────────────────────── */
.woocommerce-main { padding-block: var(--space-10); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); list-style: none; }
.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-base), box-shadow var(--duration-base);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.woocommerce-loop-product__link { text-decoration: none; color: var(--color-text); display: flex; flex-direction: column; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card .woocommerce-loop-product__title { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); padding: var(--space-4); }
.product-card .price { display: block; padding: 0 var(--space-4) var(--space-4); color: var(--color-primary); font-weight: var(--font-weight-bold); }
.add_to_cart_button {
  display: block;
  margin: 0 var(--space-4) var(--space-4);
  padding: var(--space-3);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--duration-fast);
}
.add_to_cart_button:hover { background: var(--color-primary-dark); color: #fff; }
.woocommerce-breadcrumb { font-size: var(--font-size-sm); color: var(--color-text-muted); margin-bottom: var(--space-8); }

/* ── 34. Scroll Animations ───────────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}
[data-animate="fade-up"]    { transform: translateY(24px); }
[data-animate="fade-down"]  { transform: translateY(-24px); }
[data-animate="fade-left"]  { transform: translateX(24px); }
[data-animate="fade-right"] { transform: translateX(-24px); }
[data-animate="fade-in"]    { transform: none; }
[data-animate].is-visible   { opacity: 1; transform: none; }

/* ── 35. Utility Classes ─────────────────────────────────────────────────── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--color-bg);
  clip: auto !important;
  clip-path: none;
  color: var(--color-text);
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  height: auto;
  left: var(--space-4);
  line-height: normal;
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  top: var(--space-4);
  width: auto;
  z-index: 999;
}
.no-results { text-align: center; padding: var(--space-16) var(--space-8); }
.no-results__icon { display: flex; justify-content: center; margin-bottom: var(--space-6); color: var(--color-border); }
.no-results__icon .nexus-icon { width: 64px; height: 64px; }
.no-results__title { font-size: var(--font-size-3xl); margin-bottom: var(--space-4); }
.no-results__message { color: var(--color-text-muted); margin-bottom: var(--space-8); }

/* Nexus icons */
.nexus-icon { display: inline-flex; align-items: center; }
.nexus-icon svg { fill: currentColor; }

/* ── 36. Entry Content (Post Body) ───────────────────────────────────────── */
.entry-content figure { margin: var(--space-8) 0; }
.entry-content figure img { border-radius: var(--radius-md); }
.entry-content figcaption { text-align: center; font-size: var(--font-size-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
.entry-content table { width: 100%; border-collapse: collapse; margin: var(--space-6) 0; }
.entry-content th, .entry-content td { border: 1px solid var(--color-border); padding: var(--space-3) var(--space-4); }
.entry-content th { background: var(--color-surface); font-weight: var(--font-weight-semibold); }
.page-links { margin-top: var(--space-8); font-size: var(--font-size-sm); color: var(--color-text-muted); }
.page-links a { color: var(--color-primary); }

/* ── 37. Responsive — Tablet ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .post-grid--3-col { grid-template-columns: repeat(2, 1fr); }
  .post-grid--4-col { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-carousel__track { grid-template-columns: repeat(2, 1fr); }
  .featured-posts__layout { grid-template-columns: 1fr; }
  .featured-posts-secondary { flex-direction: row; flex-wrap: wrap; }
  .featured-post-secondary { flex: 1 1 calc(50% - var(--space-2)); }
  .newsletter-section__inner { grid-template-columns: 1fr; }
  .about-section__layout { grid-template-columns: 1fr; }
  .about-section__image { display: none; }
  .footer-widgets--4-col .footer-widgets__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets--3-col .footer-widgets__grid { grid-template-columns: repeat(2, 1fr); }
  .content-area.has-sidebar { display: block; }
  .sidebar { margin-top: var(--space-10); }
  .post-carousel__item { flex: 0 0 calc(50% - var(--space-3)); }
  .cta-section__inner { flex-direction: column; text-align: center; }
}

/* ── 38. Responsive — Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-height: var(--header-height-sm); }

  h1 { font-size: clamp(2rem, 6vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

  .primary-nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-social { display: none; }

  .post-grid--2-col,
  .post-grid--3-col,
  .post-grid--4-col { grid-template-columns: 1fr; }

  .post-card--list { flex-direction: column; }
  .post-card-list__thumbnail { width: 100%; aspect-ratio: 16/9; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-carousel__track { grid-template-columns: 1fr; }

  .hero__container { grid-template-columns: 1fr; }
  .hero__heading { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__ctas { flex-direction: column; align-items: flex-start; }

  .footer-widgets--2-col .footer-widgets__grid,
  .footer-widgets--3-col .footer-widgets__grid,
  .footer-widgets--4-col .footer-widgets__grid { grid-template-columns: 1fr; }
  .footer-copyright__inner { flex-direction: column; text-align: center; }
  .footer-minimal__inner { flex-direction: column; text-align: center; }

  .post-navigation { grid-template-columns: 1fr; }
  .author-bio { flex-direction: column; }
  .site-topbar__inner { height: auto; flex-direction: column; padding-block: var(--space-2); }
  .back-to-top { bottom: var(--space-5); right: var(--space-5); }
  .header-search .search-form { flex-direction: column; }
  .search-result { flex-direction: column; }
  .search-result__thumbnail { width: 100%; height: 200px; }
  .newsletter-form__group { flex-direction: column; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .post-carousel__item { flex: 0 0 calc(100% - var(--space-3)); }

  .header-centered__top-inner {
    flex-direction: row;
    justify-content: space-between;
    height: var(--header-height);
    padding-block: 0;
  }
  .site-logo--centered { order: 0; }
  .header-centered__nav { display: none; }
  .header-cta-btn { display: none; }
  .site-logo img, .custom-logo { max-width: 120px; }
}

/* ── 39. Contact Page ────────────────────────────────────────────────────── */
.contact-page__header { text-align: center; margin-bottom: var(--space-12); }
.contact-page__layout { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-10); align-items: start; }
.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.contact-info-card h3 { margin-bottom: var(--space-6); }
.contact-info-item { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); font-size: var(--font-size-base); }
.contact-info-item a { color: var(--color-text); text-decoration: none; }
.contact-info-item a:hover { color: var(--color-primary); }
@media (max-width: 768px) { .contact-page__layout { grid-template-columns: 1fr; } }

/* ── 40. Dark Mode Overrides ─────────────────────────────────────────────── */
[data-theme="dark"] .post-card { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .service-card { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .testimonial-card { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .featured-post-secondary { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .newsletter-section__inner { background: var(--color-surface); }
[data-theme="dark"] .sidebar .widget { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .contact-info-card { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .sub-menu { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .mega-menu__inner { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] code { background: var(--color-surface-2); }
[data-theme="dark"] .search-result { background: var(--color-surface); }
[data-theme="dark"] .nexus-comment { background: var(--color-surface); }

/* ── 41. Print Styles ────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .sidebar, .back-to-top, .social-share, .related-posts, .post-navigation { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  h1, h2, h3 { page-break-after: avoid; }
  img { max-width: 100% !important; }
}

/* ── Performance Containment ─────────────────────────────────────────────── */
.testimonials-section,
.newsletter-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}
