/* =============================================
   NEWSPOLY.NET — Main Stylesheet
   Professional news/blog design for Polymarket
   ============================================= */

/* ---- DESIGN TOKENS ---- */
:root {
  --clr-primary:     #6366f1;
  --clr-primary-d:   #4f46e5;
  --clr-primary-lt:  #eef2ff;
  --clr-accent:      #10b981;
  --clr-bg:          #ffffff;
  --clr-bg-2:        #f8fafc;
  --clr-bg-3:        #f1f5f9;
  --clr-border:      #e2e8f0;
  --clr-text:        #0f172a;
  --clr-text-2:      #475569;
  --clr-text-3:      #94a3b8;
  --clr-heading:     #0f172a;
  --clr-link:        #4f46e5;
  --clr-link-hover:  #6366f1;

  --ff-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --ff-serif:  'Merriweather', Georgia, serif;

  --radius:    0.75rem;
  --radius-sm: 0.375rem;
  --radius-lg: 1.25rem;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.1);

  --header-h: 96px;
  --container: 1280px;
  --container-narrow: 720px;

  --transition: 0.18s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-link-hover); }

/* ---- SCROLLBAR ---- */
html { scrollbar-width: thin; scrollbar-color: var(--clr-primary) #cbd5e1; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary-d); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 999;
  padding: .5rem 1rem; background: var(--clr-primary); color: #fff;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---- CONTAINER ---- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 1.5rem;
}
.container--narrow { max-width: var(--container-narrow); }
.container--with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
  padding-block: 3rem;
}
@media (max-width: 1024px) {
  .container--with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: 2; position: static; }
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-sans);
  font-weight: 700;
  color: var(--clr-heading);
  line-height: 1.25;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: .375rem;
  background: var(--clr-primary); color: #fff !important;
  padding: .625rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9375rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--clr-primary-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.4);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: .375rem;
  background: var(--clr-bg-3); color: var(--clr-text) !important;
  padding: .625rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9375rem; border: 1px solid var(--clr-border);
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--clr-border); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .625rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; border: 2px solid var(--clr-primary); color: var(--clr-primary) !important;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--clr-primary); color: #fff !important; }
.btn-outline.btn-block { width: 100%; }
.btn-lg  { padding: .75rem 1.625rem; font-size: 1rem; }
.btn-sm  { padding: .375rem .875rem; font-size: .8125rem; gap: .25rem; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm);
  color: var(--clr-text-2);
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--clr-bg-3); color: var(--clr-text); }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

/* Top bar */
.header-topbar {
  background: #0d0d1a;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px;
}
.header-topbar__brand {
  font-size: .6875rem; font-weight: 500; letter-spacing: .04em;
  color: rgba(255,255,255,.4); text-transform: uppercase;
}
.header-topbar__links {
  display: flex; align-items: center; gap: 1.25rem;
}
.header-topbar__links a {
  font-size: .75rem; color: rgba(255,255,255,.45) !important;
  font-weight: 500; transition: color var(--transition);
  display: flex; align-items: center; gap: .3rem;
}
.header-topbar__links a:hover { color: rgba(255,255,255,.8) !important; }

/* Masthead */
.header-masthead { background: #fff; }
.header-masthead__inner {
  display: flex; align-items: center; gap: 1.5rem; height: 60px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: .625rem;
  color: var(--clr-text) !important; flex-shrink: 0;
}
.logo-mark { flex-shrink: 0; display: block; }
.logo-text { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.logo-name { font-size: 1.375rem; font-weight: 900; letter-spacing: -.045em; color: var(--clr-heading); line-height: 1; }
.logo-tld { font-size: .72em; font-weight: 800; color: var(--clr-primary); letter-spacing: -.02em; }
.logo-tagline { font-size: .6rem; color: var(--clr-primary); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

/* Category nav */
.cat-nav {
  display: flex; align-items: center; gap: .125rem;
  flex: 1; overflow: hidden; min-width: 0;
}
.cat-nav__all {
  padding: .3125rem .75rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  color: var(--clr-text-2) !important; white-space: nowrap;
  transition: all var(--transition);
}
.cat-nav__all:hover { background: var(--clr-bg-3); color: var(--clr-text) !important; }
.cat-nav__link {
  display: flex; align-items: center; gap: .375rem;
  padding: .3125rem .75rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--clr-text-2) !important; white-space: nowrap;
  transition: all var(--transition);
}
.cat-nav__link::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--dot, var(--clr-primary)); flex-shrink: 0;
}
.cat-nav__link:hover { background: var(--clr-bg-3); color: var(--clr-text) !important; }
.cat-nav__link.is-active { background: var(--clr-primary-lt); color: var(--clr-primary) !important; }

/* Header right */
.header-right { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }

/* Search toggle */
.search-toggle {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--clr-text-2);
  transition: all var(--transition);
}
.search-toggle:hover { background: var(--clr-bg-3); color: var(--clr-text); }

/* Hamburger */
.hamburger {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  color: var(--clr-text-2); transition: all var(--transition);
}
.hamburger:hover { background: var(--clr-bg-3); color: var(--clr-text); }

/* Search bar */
.header-search {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.header-search[hidden] { display: none; }
.header-search__form {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem 0; color: var(--clr-text-3);
}
.header-search__form input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 1rem; font-family: inherit; color: var(--clr-text);
}
.header-search__form input::placeholder { color: var(--clr-text-3); }
.search-close {
  font-size: 1rem; color: var(--clr-text-3); padding: .25rem .625rem;
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.search-close:hover { background: var(--clr-border); color: var(--clr-text); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; padding: 1.25rem 1.5rem;
  overflow-y: auto; border-top: 1px solid var(--clr-border);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav ul { display: flex; flex-direction: column; gap: .125rem; }
.mobile-menu nav a {
  display: flex; align-items: center; gap: .625rem;
  padding: .6875rem 1rem; border-radius: var(--radius-sm);
  color: var(--clr-text) !important; font-size: 1rem; font-weight: 500;
}
.mobile-menu nav a:hover { background: var(--clr-bg-3); }
.mobile-menu__section {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--clr-text-3); padding: 1rem 1rem .375rem;
}
.mobile-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }

@media (max-width: 960px) {
  .cat-nav { display: none; }
  .hamburger { display: flex; }
  .header-right { margin-left: auto; }
}
@media (max-width: 480px) {
  .header-topbar__brand { display: none; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  background: #0a0a14;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* animated mesh background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(99,102,241,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(139,92,246,.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 60% 90%, rgba(16,185,129,.10) 0%, transparent 50%);
  pointer-events: none;
}
/* subtle grid overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 780px; margin-inline: auto; text-align: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: #a5b4fc;
  padding: .4375rem 1rem; border-radius: 100px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6366f1; display: block; }

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.1;
  color: #fff; margin-bottom: 1.5rem;
}
.text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #67e8f9 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-desc {
  font-size: 1.125rem; color: rgba(255,255,255,.6);
  max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-desc a { color: rgba(255,255,255,.9) !important; font-weight: 600; }

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: .875rem; flex-wrap: wrap; margin-bottom: 3.5rem;
}

/* hero buttons */
.hero .btn-primary {
  background: var(--clr-primary); color: #fff !important;
  padding: .8125rem 1.75rem; font-size: 1rem; border-radius: var(--radius-sm);
  box-shadow: 0 0 0 4px rgba(99,102,241,.25);
}
.hero .btn-primary:hover { background: #818cf8; box-shadow: 0 0 0 6px rgba(99,102,241,.3); }
.hero .btn-secondary {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.85) !important;
}
.hero .btn-secondary:hover { background: rgba(255,255,255,.14); }

/* stats row */
.hero-stats {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,.04);
}
.stat {
  padding: 1rem 2rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat:last-child { border-right: none; }
.stat span {
  display: block; font-size: 1.875rem; font-weight: 800;
  color: #fff; letter-spacing: -.04em; line-height: 1;
  margin-bottom: .25rem;
}
.stat { font-size: .8125rem; color: rgba(255,255,255,.45); letter-spacing: .02em; text-transform: uppercase; }

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero-stats { flex-direction: column; width: 100%; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); width: 100%; }
  .stat:last-child { border-bottom: none; }
}

/* ---- HERO COMPACT ---- */
.hero-compact {
  background: linear-gradient(135deg, #0d0d1a 0%, #111827 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 2.75rem 0;
  position: relative; overflow: hidden;
}
.hero-compact::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(99,102,241,.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 80% at 100% 50%, rgba(139,92,246,.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-compact__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.hero-compact__text { max-width: 680px; }
.hero-compact__title {
  font-size: clamp(1.375rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em;
  color: #fff; line-height: 1.2; margin-bottom: .625rem;
}
.hero-compact__desc {
  font-size: 1rem; color: rgba(255,255,255,.55); line-height: 1.65;
}
.hero-compact__desc a { color: #a5b4fc !important; font-weight: 600; }
.hero-compact__desc a:hover { color: #c7d2fe !important; }
@media (max-width: 640px) {
  .hero-compact { padding: 2rem 0; }
  .hero-compact__inner { flex-direction: column; align-items: flex-start; }
}

/* ---- SECTIONS ---- */
.section { padding: 3rem 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--clr-border);
}
.section-header h2 {
  font-size: clamp(.9375rem, 1.5vw, 1.0625rem); font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--clr-text);
  display: flex; align-items: center; gap: .625rem;
}
.section-header h2::before {
  content: ''; display: inline-block; width: 3px; height: 1em;
  background: var(--clr-primary); border-radius: 2px; flex-shrink: 0;
}
.see-all {
  font-size: .8125rem; font-weight: 600; color: var(--clr-primary) !important;
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid color-mix(in srgb, var(--clr-primary) 30%, transparent);
  padding: .3rem .75rem; border-radius: 999px; background: var(--clr-primary-lt);
  transition: all var(--transition);
}
.see-all::after { content: '→'; display: inline-block; transition: transform var(--transition); }
.see-all:hover { background: var(--clr-primary); color: #fff !important; border-color: var(--clr-primary); }
.see-all:hover::after { transform: translateX(3px); }
.section-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 1.75rem; }
.section-featured { background: var(--clr-bg-2); border-block: 1px solid var(--clr-border); }
.section-categories { border-bottom: 1px solid var(--clr-border); }

/* ---- FEATURED GRID ---- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) { .featured-grid { grid-template-columns: 1fr; } }

/* Featured card — equal-size modern cards */
.post-card--featured .post-card__image { aspect-ratio: 16/9; }
.post-card--featured .post-card__body { padding: 1.25rem 1.375rem; gap: .5rem; }
.post-card--featured .post-card__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.post-card--featured .post-card__excerpt {
  font-size: .875rem; color: var(--clr-text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 0 0 auto;
}
.post-card--featured .post-card__meta { margin-top: .375rem; }

/* ---- CATEGORIES GRID (compact pill strip) ---- */
.section-categories { padding: 1.25rem 0; }
.section-categories .section-header { margin-bottom: .75rem; }
.section-categories .section-header h2 { font-size: .875rem; font-weight: 600; color: var(--clr-text-2); letter-spacing: .04em; text-transform: uppercase; }
.categories-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.category-card {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3125rem .75rem; background: var(--clr-bg-2);
  border: 1px solid var(--clr-border); border-radius: 999px;
  transition: border-color var(--transition), background var(--transition);
  color: var(--clr-text) !important; text-decoration: none; white-space: nowrap;
}
.category-card:hover { border-color: var(--clr-primary); background: var(--clr-primary-lt); transform: none; box-shadow: none; }
.category-card__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.category-card__name { font-weight: 600; font-size: .8125rem; }
.category-card__count { font-size: .75rem; color: var(--clr-text-3); }
.category-card__arrow { display: none; }

/* ---- POST CARDS ---- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.posts-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .posts-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts-grid, .posts-grid--3 { grid-template-columns: 1fr; } }

.post-card {
  background: var(--clr-bg); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.post-card__image {
  display: block; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, var(--clr-primary-lt) 0%, #ede9fe 100%);
}
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__image--placeholder {
  display: flex; align-items: center; justify-content: center;
}
.post-card__image--placeholder::after {
  content: '◆'; font-size: 2.5rem; color: var(--clr-primary); opacity: .35;
}

.post-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .625rem; }
.post-card--large .post-card__body { padding: 1.5rem; }

.post-card__title { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.post-card--large .post-card__title { font-size: 1.25rem; }
.post-card__title a { color: var(--clr-heading) !important; }
.post-card__title a:hover { color: var(--clr-primary) !important; }

.post-card__excerpt { font-size: .875rem; color: var(--clr-text-2); line-height: 1.55; flex: 1; }
.post-card--large .post-card__excerpt { flex: 0 0 auto; }
.post-card--large .post-card__meta { margin-top: 1rem; }
.post-card__meta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: var(--clr-text-3);
  flex-wrap: wrap; margin-top: auto;
}
.post-card__meta > * + *::before {
  content: '·'; margin-right: .125rem; color: var(--clr-border); font-weight: 700;
}
.post-card__author { color: var(--clr-text-2) !important; font-weight: 500; }
.post-card__author:hover { color: var(--clr-primary) !important; }
.reading-time { display: inline-flex; align-items: center; gap: .25rem; color: var(--clr-primary); font-weight: 500; }

/* ---- CAT BADGE ---- */
.cat-badge {
  display: inline-flex; align-items: center;
  padding: .25rem .625rem; border-radius: 100px;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  background: color-mix(in srgb, var(--cat-color, #6366f1) 12%, transparent);
  color: var(--cat-color, #6366f1) !important;
  text-decoration: none; transition: all var(--transition);
}
.cat-badge:hover { background: color-mix(in srgb, var(--cat-color, #6366f1) 20%, transparent); }
.cat-badge--lg { font-size: .875rem; padding: .375rem .875rem; }

/* ---- PAGE HEADER ---- */
.page-header {
  background: var(--clr-bg-2); border-bottom: 1px solid var(--clr-border);
  padding: 2.5rem 0;
}
.page-header h1 { margin-top: .75rem; }
.page-header p { color: var(--clr-text-2); margin-top: .5rem; font-size: 1.0625rem; max-width: 640px; }
.post-count { font-size: .9375rem; color: var(--clr-text-3); margin-top: .25rem; }
.cat-header-badge {
  display: inline-block; padding: .375rem .875rem; border-radius: 100px;
  font-size: .875rem; font-weight: 600; margin-bottom: .5rem;
}
.tag-header-badge {
  display: inline-block; padding: .375rem .875rem; border-radius: 100px;
  font-size: .875rem; font-weight: 700; background: var(--clr-bg-3); color: var(--clr-text-2);
  margin-bottom: .5rem;
}

/* ---- BREADCRUMBS ---- */
.breadcrumbs { margin-bottom: .75rem; }
.breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; font-size: .875rem; }
.breadcrumbs a { color: var(--clr-text-3) !important; }
.breadcrumbs a:hover { color: var(--clr-primary) !important; }
.breadcrumbs .sep { color: var(--clr-text-3); }
.breadcrumbs li[aria-current] { color: var(--clr-text-2); }

/* ---- SINGLE POST ---- */
.post-layout { gap: 3rem; }

.post-single { min-width: 0; }
.post-title { font-size: clamp(1.625rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; margin: .75rem 0 .5rem; line-height: 1.2; }
.post-excerpt { font-size: 1.125rem; color: var(--clr-text-2); line-height: 1.6; border-left: 3px solid var(--clr-primary); padding-left: 1rem; margin-bottom: 1.25rem; }

.post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  font-size: .875rem; color: var(--clr-text-3); margin-bottom: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--clr-border);
}
.post-author {
  display: flex; align-items: center; gap: .375rem;
  color: var(--clr-text-2) !important; font-weight: 500;
}
.post-author:hover { color: var(--clr-primary) !important; }
.author-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.meta-sep { color: var(--clr-border); }
.updated-date { font-style: italic; }

.post-hero-image {
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 2rem; aspect-ratio: 16/9;
}
.post-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-image figcaption {
  font-size: .8125rem; color: var(--clr-text-3); text-align: center;
  padding: .5rem .75rem; background: var(--clr-bg-2);
}

/* ---- TABLE OF CONTENTS ---- */
.toc-wrapper { margin-bottom: 2rem; }
.toc {
  background: var(--clr-bg-2); border: 1px solid var(--clr-border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.toc h4 { font-size: .9375rem; font-weight: 700; margin-bottom: .75rem; color: var(--clr-text-3); text-transform: uppercase; letter-spacing: .06em; }
.toc ol { counter-reset: toc; list-style: none; }
.toc li { counter-increment: toc; padding: .25rem 0; font-size: .9rem; }
.toc li::before { content: counter(toc) '. '; color: var(--clr-text-3); font-weight: 600; }
.toc-h3 { padding-left: 1.25rem; font-size: .875rem; }
.toc a { color: var(--clr-text-2) !important; }
.toc a:hover { color: var(--clr-primary) !important; }

/* ---- POST CONTENT ---- */
.post-content {
  font-family: var(--ff-serif);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--clr-text);
}

/* H2 — primary section break with accent border-bottom */
.post-content h2 {
  font-family: var(--ff-sans);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--clr-heading);
  letter-spacing: -.025em;
  margin: 3rem 0 1.125rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--clr-primary);
}

/* H3 — sub-section with lighter border */
.post-content h3 {
  font-family: var(--ff-sans);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--clr-heading);
  margin: 2.25rem 0 .875rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--clr-border);
}

/* H4 */
.post-content h4 {
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 1.75rem 0 .625rem;
}

.post-content p { margin-bottom: 1.625rem; }

/* Links — bold, no underline */
.post-content a {
  color: var(--clr-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition);
}
.post-content a:hover {
  color: var(--clr-primary-d);
}

/* Lists */
.post-content ul, .post-content ol { margin: 0 0 1.625rem 1.75rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .5rem; line-height: 1.75; }
.post-content li::marker { color: var(--clr-primary); }

.post-content strong { font-weight: 700; color: var(--clr-heading); }
.post-content em { font-style: italic; }

/* Blockquote */
.post-content blockquote {
  border-left: 4px solid var(--clr-primary);
  margin: 2.5rem 0;
  padding: 1.125rem 1.5rem 1.125rem 1.75rem;
  background: var(--clr-primary-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--clr-text-2);
  line-height: 1.75;
}
.post-content blockquote p:last-child { margin-bottom: 0; }

/* Code */
.post-content code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: .875em;
  background: var(--clr-bg-3);
  padding: .15rem .4rem;
  border-radius: .25rem;
  border: 1px solid var(--clr-border);
}
.post-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.75rem;
  font-size: .875rem;
  line-height: 1.75;
  box-shadow: var(--shadow);
}
.post-content pre code { background: none; padding: 0; border: none; color: inherit; }

/* Images */
.post-content img { border-radius: var(--radius); margin: 2rem 0; box-shadow: var(--shadow); }

/* HR — gradient fade */
.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--clr-primary) 0%, transparent 80%);
  margin: 3rem 0;
  opacity: .4;
}

/* Tables — responsive wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  /* Scroll hint gradient on right edge */
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), #fff 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.08), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.08), rgba(0,0,0,0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
.post-content table {
  width: 100%;
  min-width: 480px; /* prevents collapsing — forces scroll on narrow screens */
  border-collapse: collapse;
  margin-bottom: 0;
  font-family: var(--ff-sans);
  font-size: .9375rem;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.post-content th {
  background: var(--clr-primary);
  color: #fff !important;
  font-weight: 700;
  padding: .75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.post-content td {
  padding: .6875rem 1rem;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: top;
}
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:not([style]):nth-child(even) td { background: var(--clr-bg-2); }
.post-content tbody tr:not([style]):hover td { background: var(--clr-primary-lt); }

@media (max-width: 640px) {
  .post-content table { font-size: .8125rem; }
  .post-content th, .post-content td { padding: .5rem .75rem; }
}
@media (max-width: 480px) {
  .post-content table { font-size: .75rem; }
  .post-content th, .post-content td { padding: .4375rem .625rem; }
}

/* First paragraph after H2 — slight lead-in style */
.post-content h2 + p { font-size: 1.0625rem; color: var(--clr-text); }

/* Mobile content sizing */
@media (max-width: 640px) {
  .post-content { font-size: 1rem; line-height: 1.8; }
  .post-content h2 { margin-top: 2.25rem; }
  .post-content h3 { margin-top: 1.75rem; }
}

/* CTA Box in content */
.post-content .cta-box {
  background: linear-gradient(135deg, var(--clr-primary-lt), #ede9fe);
  border: 1px solid rgba(99,102,241,.2); border-radius: var(--radius-lg);
  padding: 2rem; margin: 2.5rem 0; font-family: var(--ff-sans);
}
.cta-box { /* same for standalone cta-box */
  background: linear-gradient(135deg, var(--clr-primary-lt), #ede9fe);
  border: 1px solid rgba(99,102,241,.2); border-radius: var(--radius-lg);
  padding: 2rem; margin: 2.5rem 0;
}
.cta-box h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.cta-box p { color: var(--clr-text-2); margin-bottom: 1.25rem; font-family: var(--ff-sans); font-size: 1rem; }
.cta-box .btn-cta {
  display: inline-flex; align-items: center;
  background: var(--clr-primary); color: #fff !important;
  padding: .7rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .9375rem; text-decoration: none !important;
  transition: all var(--transition);
}
.cta-box .btn-cta:hover { background: var(--clr-primary-d); transform: translateY(-1px); }

/* Editorial callout — neutral recommendation, not promotional */
.editorial-callout {
  border-left: 3px solid var(--clr-accent);
  background: #f0fdf8;
  padding: 1rem 1.25rem;
  margin: 2.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem;
  color: var(--clr-text-2);
  font-family: var(--ff-sans);
}
.editorial-callout p { margin: 0; line-height: 1.65; }
.editorial-callout strong { color: #065f46; }
.editorial-callout a { color: var(--clr-accent) !important; font-weight: 600; }

/* FAQ in content */
.post-content .faq-item {
  margin: 0 0 1rem;
  padding: 1.125rem 1.25rem;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  border-left: 3px solid var(--clr-primary);
}
.post-content .faq-item h3 {
  font-size: 1rem;
  font-family: var(--ff-sans);
  font-weight: 700;
  margin-bottom: .625rem;
  color: var(--clr-heading);
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}
.post-content .faq-item p { margin-bottom: 0; font-family: var(--ff-sans); font-size: .9375rem; line-height: 1.65; color: var(--clr-text-2); }

/* ---- POST META FOOTER ---- */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--clr-border); }
.tags-label { font-size: .875rem; color: var(--clr-text-3); font-weight: 600; }
.tag-pill {
  padding: .25rem .75rem; border-radius: 100px; font-size: .8125rem; font-weight: 500;
  background: var(--clr-bg-3); color: var(--clr-text-2) !important;
  border: 1px solid var(--clr-border); transition: all var(--transition);
}
.tag-pill:hover { background: var(--clr-primary-lt); color: var(--clr-primary) !important; border-color: var(--clr-primary); }

/* Social share */
.post-share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.share-label { font-size: .875rem; color: var(--clr-text-3); font-weight: 600; }
.share-btn {
  padding: .375rem .875rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600;
  border: 1px solid var(--clr-border); cursor: pointer; transition: all var(--transition);
  text-decoration: none; color: var(--clr-text) !important;
}
.share-twitter:hover { background: #000; color: #fff !important; border-color: #000; }
.share-linkedin:hover { background: #0077b5; color: #fff !important; border-color: #0077b5; }
.share-copy:hover { background: var(--clr-bg-3); }
.share-copy.copied { background: var(--clr-accent); color: #fff !important; border-color: var(--clr-accent); }

/* Author bio */
.author-bio {
  display: flex; gap: 1.25rem; padding: 1.5rem;
  background: var(--clr-bg-2); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); margin: 2rem 0;
}
.author-bio__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--clr-text-3); margin-bottom: .25rem; }
.author-bio__name { font-size: 1.0625rem; font-weight: 700; color: var(--clr-heading) !important; }
.author-bio__name:hover { color: var(--clr-primary) !important; }
.author-bio__text { font-size: .9rem; color: var(--clr-text-2); margin: .375rem 0; }
.author-bio__social { font-size: .875rem; color: var(--clr-primary) !important; font-weight: 500; }

/* ---- RELATED POSTS ---- */
.section-related { background: var(--clr-bg-2); border-top: 1px solid var(--clr-border); }

/* ---- SIDEBAR ---- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.sidebar-widget {
  background: var(--clr-bg); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .625rem; border-bottom: 2px solid var(--clr-primary); display: inline-block; }

/* Search widget */
.search-input-wrap { display: flex; gap: .5rem; }
.search-input-wrap input {
  flex: 1; padding: .5rem .875rem; border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .9375rem;
  outline: none; transition: border-color var(--transition);
}
.search-input-wrap input:focus { border-color: var(--clr-primary); }
.search-input-wrap button {
  padding: .5rem .875rem; background: var(--clr-primary); color: #fff;
  border-radius: var(--radius-sm); display: flex; align-items: center;
  transition: background var(--transition);
}
.search-input-wrap button:hover { background: var(--clr-primary-d); }

/* CTA widget */
.widget-cta { background: linear-gradient(135deg, var(--clr-primary-lt), #ede9fe) !important; border-color: rgba(99,102,241,.2) !important; }
.cta-widget-inner { text-align: center; }
.cta-widget-icon { font-size: 2.25rem; margin-bottom: .75rem; }
.cta-widget-inner h3 { font-size: 1rem; margin-bottom: .5rem; }
.cta-widget-inner p { font-size: .875rem; color: var(--clr-text-2); margin-bottom: 1rem; }
.cta-widget-inner .btn-primary { width: 100%; justify-content: center; }

/* Categories widget */
.widget-categories ul { display: flex; flex-direction: column; gap: .125rem; }
.cat-link { display: flex; align-items: center; gap: .625rem; padding: .4375rem .5rem; border-radius: var(--radius-sm); color: var(--clr-text) !important; font-size: .9375rem; transition: background var(--transition); }
.cat-link:hover { background: var(--clr-bg-3); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-count { margin-left: auto; font-size: .8125rem; color: var(--clr-text-3); background: var(--clr-bg-3); padding: .125rem .5rem; border-radius: 100px; }

/* Recent posts widget */
.widget-recent ul { display: flex; flex-direction: column; gap: .875rem; }
.recent-post-item { display: flex; gap: .75rem; align-items: flex-start; }
.recent-thumb { width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--clr-bg-3); }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-title { display: block; font-size: .875rem; font-weight: 600; color: var(--clr-heading) !important; line-height: 1.35; margin-bottom: .25rem; }
.recent-title:hover { color: var(--clr-primary) !important; }
.post-date { display: block; font-size: .775rem; color: var(--clr-text-3); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .375rem; }

/* Newsletter widget */
.widget-newsletter p { font-size: .875rem; color: var(--clr-text-2); margin-bottom: 1rem; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #8b5cf6 100%);
  padding: 3.5rem 0;
}
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-banner-text h2 { color: #fff; font-size: clamp(1.375rem, 3vw, 2rem); }
.cta-banner-text p { color: rgba(255,255,255,.85); margin-top: .5rem; font-size: 1.0625rem; }
.cta-banner-actions { display: flex; gap: .75rem; flex-shrink: 0; flex-wrap: wrap; }
.cta-banner .btn-primary { background: #fff; color: var(--clr-primary) !important; }
.cta-banner .btn-primary:hover { background: #f8fafc; }
.cta-banner .btn-secondary { background: rgba(255,255,255,.15); color: #fff !important; border-color: rgba(255,255,255,.3); }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,.25); }

/* ---- FOOTER ---- */
.site-footer { background: var(--clr-bg-2); border-top: 1px solid var(--clr-border); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--clr-border); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; color: var(--clr-text-2); max-width: 280px; line-height: 1.5; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a {
  width: 2rem; height: 2rem; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--clr-bg-3); color: var(--clr-text-2) !important;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--clr-primary); color: #fff !important; }

.footer-col h3 { font-size: .9375rem; font-weight: 700; margin-bottom: .875rem; }
.footer-col p { font-size: .875rem; color: var(--clr-text-2); margin-bottom: .875rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .375rem; }
.footer-col a { font-size: .9rem; color: var(--clr-text-2) !important; transition: color var(--transition); }
.footer-col a:hover { color: var(--clr-primary) !important; }

.footer-bottom { padding: 1.5rem 0; display: flex; flex-direction: column; gap: .25rem; }
.footer-bottom p { font-size: .8125rem; color: var(--clr-text-3); }
.footer-disclaimer { font-style: italic; }
.footer-address { font-size: .8125rem; color: var(--clr-text-3); margin-top: .125rem; }
.footer-address a { color: var(--clr-text-3) !important; }
.footer-address a:hover { color: var(--clr-primary) !important; }

/* ---- PAGINATION ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--clr-border); }
.page-btn {
  padding: .5rem 1.25rem; border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
  font-weight: 600; font-size: .875rem; color: var(--clr-text-2) !important;
  background: var(--clr-bg); transition: all var(--transition);
}
.page-btn:hover {
  border-color: var(--clr-primary); color: var(--clr-primary) !important;
  background: var(--clr-primary-lt); transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99,102,241,.18);
}
.page-info {
  font-size: .8125rem; color: var(--clr-text-3);
  padding: .5rem .875rem; background: var(--clr-bg-2);
  border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
}

/* ---- STATIC PAGES ---- */
.static-page {
  padding: 2.5rem 0;
  font-size: 1.0625rem; line-height: 1.8; color: var(--clr-text);
}
.static-page h2 { font-size: 1.5rem; margin: 2.25rem 0 .875rem; }
.static-page h3 { font-size: 1.1875rem; margin: 1.75rem 0 .625rem; }
.static-page p { margin-bottom: 1.25rem; }
.static-page ul { list-style: disc; margin: 0 0 1.25rem 1.5rem; }
.static-page li { margin-bottom: .375rem; }
.static-page a { color: var(--clr-link); font-weight: 500; }

/* Authors grid */
.authors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.author-card {
  display: flex; gap: .875rem; padding: 1.125rem;
  background: var(--clr-bg-2); border: 1px solid var(--clr-border); border-radius: var(--radius);
}
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card p { font-size: .875rem; color: var(--clr-text-2); margin: .25rem 0; line-height: 1.45; }
.author-twitter { font-size: .8125rem; color: var(--clr-primary) !important; }

/* Author profile */
.author-profile { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: .75rem; }
.author-profile__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-profile h1 { margin-top: .25rem; }
.author-profile p { color: var(--clr-text-2); font-size: 1.0625rem; margin-top: .5rem; }
.author-profile__meta { display: flex; gap: 1rem; align-items: center; margin-top: .625rem; font-size: .9rem; color: var(--clr-text-3); }
.author-profile__meta a { color: var(--clr-primary) !important; }

/* ---- CONTACT ---- */
.contact-hero {
  background: linear-gradient(135deg, #0d0d1a 0%, #111827 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 3rem 0 2.5rem;
  position: relative; overflow: hidden;
}
.contact-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(99,102,241,.14) 0%, transparent 60%);
  pointer-events: none;
}
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); margin: .5rem 0 .625rem; }
.contact-hero p { color: rgba(255,255,255,.55); font-size: 1.0625rem; max-width: 540px; }
.contact-hero .breadcrumbs a { color: rgba(255,255,255,.35) !important; }
.contact-hero .breadcrumbs li[aria-current] { color: rgba(255,255,255,.5); }
.contact-hero .breadcrumbs .sep { color: rgba(255,255,255,.2); }

.contact-layout { padding: 3rem 0 4rem; display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } .contact-cards { order: -1; } }

.contact-success { display: flex; align-items: flex-start; gap: .75rem; }
.contact-success svg { flex-shrink: 0; margin-top: .125rem; }
.contact-success { grid-column: 1 / -1; }

.contact-form-card {
  background: var(--clr-bg); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .contact-form-row { grid-template-columns: 1fr; } }
.contact-submit { display: flex; align-items: center; gap: .625rem; }

.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--clr-text-2); }
.form-group label span { color: #ef4444; }
.form-group input, .form-group select, .form-group textarea {
  padding: .6875rem 1rem; border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .9375rem;
  outline: none; transition: border-color var(--transition), box-shadow var(--transition); background: var(--clr-bg);
  color: var(--clr-text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--clr-primary); box-shadow: 0 0 0 3px var(--clr-primary-lt);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; background: var(--clr-bg);
  border: 1px solid var(--clr-border); border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-sm); }
.contact-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--clr-primary-lt); color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card h3 { font-size: .9375rem; font-weight: 700; margin-bottom: .25rem; }
.contact-card p { font-size: .875rem; color: var(--clr-text-2); margin: 0; }
.contact-card a { font-size: .9rem; color: var(--clr-primary) !important; font-weight: 500; }

/* Alert */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert--success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert--error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert ul { list-style: disc; margin: .5rem 0 0 1.25rem; }

/* ---- SEARCH ---- */
.search-form-large { margin-top: 1.25rem; }
.search-form-large .search-input-wrap input { font-size: 1.0625rem; padding: .75rem 1.125rem; }
.search-summary { margin-top: .75rem; color: var(--clr-text-2); }
.posts-list { display: flex; flex-direction: column; gap: 1.5rem; }
.post-list-item {
  display: flex; gap: 1.25rem; padding: 1.25rem;
  border: 1px solid var(--clr-border); border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.post-list-item:hover { box-shadow: var(--shadow-sm); }
.post-list-item__thumb { width: 120px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--clr-bg-3); }
.post-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-item__body h2 { font-size: 1.0625rem; margin: .375rem 0; }
.post-list-item__body p { font-size: .9rem; color: var(--clr-text-2); }
.no-results h2 { margin-bottom: .75rem; }
.no-results p { color: var(--clr-text-2); margin-bottom: 1.5rem; }

/* ---- 404 ---- */
.error-page { max-width: 620px; margin: 5rem auto; text-align: center; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--clr-border); line-height: 1; margin-bottom: .5rem; }
.error-page h1 { margin-bottom: .75rem; }
.error-page p { color: var(--clr-text-2); margin-bottom: 2rem; }
.error-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.error-page h2 { text-align: left; margin-bottom: 1.25rem; font-size: 1.25rem; }

/* ---- NO POSTS ---- */
.no-posts { color: var(--clr-text-2); font-size: 1.0625rem; padding: 2.5rem; text-align: center; background: var(--clr-bg-2); border-radius: var(--radius); border: 1px solid var(--clr-border); }

/* ---- UTILITY ---- */
.posts-area { min-width: 0; }

/* ============================================================
   SIDEBAR PCT BANNER
   ============================================================ */

.sb-pct {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 1.375rem 1.25rem 1.125rem;
  background: #030c0a;
  border: 1px solid rgba(16,185,129,.25);
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
}
.sb-pct:hover {
  border-color: rgba(16,185,129,.55);
  box-shadow: 0 0 32px rgba(16,185,129,.12), 0 4px 24px rgba(0,0,0,.5);
}

/* Background glow */
.sb-pct__bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, rgba(16,185,129,.18) 0%, transparent 70%),
              radial-gradient(ellipse 60% 60% at 90% 90%, rgba(5,150,105,.12) 0%, transparent 60%);
}

/* Subtle grid */
.sb-pct__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: linear-gradient(rgba(16,185,129,1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(16,185,129,1) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Badge */
.sb-pct__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .1em;
  color: #6ee7b7; position: relative;
}
.sb-pct__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: sb-pulse 2s ease-in-out infinite;
}
@keyframes sb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

/* Headline */
.sb-pct__headline { position: relative; }
.sb-pct__sub {
  display: block;
  font-size: .75rem; font-weight: 500;
  color: rgba(255,255,255,.45);
  margin-bottom: .25rem;
}
.sb-pct__title {
  display: block;
  font-size: 1.0625rem; font-weight: 800; line-height: 1.3;
  color: #fff;
}
.sb-pct__title em {
  font-style: normal;
  background: linear-gradient(90deg, #10b981, #34d399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats */
.sb-pct__stats {
  display: flex; align-items: center; gap: .75rem; position: relative;
  background: rgba(16,185,129,.07);
  border: 1px solid rgba(16,185,129,.15);
  border-radius: 8px; padding: .625rem .875rem;
}
.sb-pct__stat { display: flex; flex-direction: column; gap: .1rem; }
.sb-pct__stat-val {
  font-size: 1.125rem; font-weight: 800;
  color: #34d399;
}
.sb-pct__stat-lbl { font-size: .67rem; color: rgba(255,255,255,.45); font-weight: 500; }
.sb-pct__stat-div {
  width: 1px; height: 32px; background: rgba(16,185,129,.2); flex-shrink: 0; margin: 0 .25rem;
}

/* Feature list */
.sb-pct__features {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .45rem; position: relative;
}
.sb-pct__features li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.65); font-weight: 500;
}
.sb-pct__features svg { flex-shrink: 0; }

/* CTA */
.sb-pct__cta {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff; font-size: .875rem; font-weight: 700;
  padding: .7rem 1rem; border-radius: 8px;
  box-shadow: 0 0 20px rgba(16,185,129,.3);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.sb-pct:hover .sb-pct__cta {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(16,185,129,.5);
}

/* Footer note */
.sb-pct__note {
  margin: 0; text-align: center;
  font-size: .65rem; color: rgba(255,255,255,.2);
  font-weight: 500; letter-spacing: .05em; position: relative;
}

/* ============================================================
   PCT PROMO BANNER — v2 Spectacular
   ============================================================ */

/* ---- Base ---- */
.pct-banner {
  width: 100%;
  background: #060414;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  background-clip: padding-box;
  z-index: 900;
  display: block;
  text-decoration: none !important;
  cursor: pointer;
}

/* Animated bottom border glow */
.pct-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(99,102,241,0.8) 25%,
    rgba(16,185,129,0.9) 50%,
    rgba(99,102,241,0.8) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: pct-border-scroll 3s linear infinite;
}

@keyframes pct-border-scroll {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---- Background orbs ---- */
.pct-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.pct-orb--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, transparent 70%);
  top: -150px; left: -80px;
  animation: pct-orb-drift 8s ease-in-out infinite alternate;
}
.pct-orb--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(16,185,129,0.25) 0%, transparent 70%);
  top: -100px; right: 10%;
  animation: pct-orb-drift 10s ease-in-out infinite alternate-reverse;
}
.pct-orb--3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(244,114,182,0.18) 0%, transparent 70%);
  top: -80px; left: 50%;
  animation: pct-orb-drift 12s ease-in-out infinite alternate;
}

@keyframes pct-orb-drift {
  from { transform: translateY(0) translateX(0); }
  to   { transform: translateY(20px) translateX(15px); }
}

/* ---- Floating particles ---- */
.pct-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.pct-particles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: pct-float linear infinite;
}
.pct-particles span:nth-child(1)  { width:3px; height:3px; left:8%;   animation-duration:6s;  animation-delay:0s;   bottom:-10px; }
.pct-particles span:nth-child(2)  { width:2px; height:2px; left:18%;  animation-duration:8s;  animation-delay:1s;   bottom:-10px; }
.pct-particles span:nth-child(3)  { width:4px; height:4px; left:28%;  animation-duration:7s;  animation-delay:2s;   bottom:-10px; background: rgba(99,102,241,0.8); }
.pct-particles span:nth-child(4)  { width:2px; height:2px; left:40%;  animation-duration:9s;  animation-delay:.5s;  bottom:-10px; }
.pct-particles span:nth-child(5)  { width:3px; height:3px; left:52%;  animation-duration:6s;  animation-delay:3s;   bottom:-10px; background: rgba(16,185,129,0.8); }
.pct-particles span:nth-child(6)  { width:2px; height:2px; left:63%;  animation-duration:10s; animation-delay:1.5s; bottom:-10px; }
.pct-particles span:nth-child(7)  { width:4px; height:4px; left:72%;  animation-duration:7s;  animation-delay:4s;   bottom:-10px; background: rgba(244,114,182,0.7); }
.pct-particles span:nth-child(8)  { width:2px; height:2px; left:82%;  animation-duration:8s;  animation-delay:2s;   bottom:-10px; }
.pct-particles span:nth-child(9)  { width:3px; height:3px; left:90%;  animation-duration:6s;  animation-delay:.8s;  bottom:-10px; background: rgba(245,158,11,0.7); }
.pct-particles span:nth-child(10) { width:2px; height:2px; left:95%;  animation-duration:9s;  animation-delay:3.5s; bottom:-10px; }

@keyframes pct-float {
  0%   { transform: translateY(0)   rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .6; }
  100% { transform: translateY(-130px) rotate(360deg); opacity: 0; }
}

/* ---- Grid overlay ---- */
.pct-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ---- Main inner layout ---- */
.pct-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* ---- Left block ---- */
.pct-banner__left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.pct-banner__logo {
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(99,102,241,0.7));
  animation: pct-logo-pulse 3s ease-in-out infinite;
}

@keyframes pct-logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(99,102,241,0.6)); }
  50%       { filter: drop-shadow(0 0 20px rgba(16,185,129,0.8)); }
}

.pct-banner__text {
  min-width: 0;
}

.pct-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #10b981;
  text-transform: uppercase;
}

.pct-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16,185,129,0.9);
  animation: pct-live 1.4s ease-in-out infinite;
}

@keyframes pct-live {
  0%, 100% { transform: scale(1);   opacity: 1; box-shadow: 0 0 6px rgba(16,185,129,0.9); }
  50%       { transform: scale(1.5); opacity: .7; box-shadow: 0 0 12px rgba(16,185,129,1); }
}

.pct-banner__new {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: .1rem .4rem;
  border-radius: .25rem;
  line-height: 1.6;
}

.pct-banner__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 .3rem;
  white-space: nowrap;
}

.pct-gradient-text {
  background: linear-gradient(90deg, #818cf8 0%, #10b981 50%, #f472b6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pct-text-shine 4s linear infinite;
}

@keyframes pct-text-shine {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

.pct-banner__desc {
  font-size: .82rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Feature pills ---- */
.pct-banner__features {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex-shrink: 0;
}

.pct-pill {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2rem;
  padding: .28rem .75rem;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}

.pct-pill:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
}

/* ---- Right: CTA ---- */
.pct-banner__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.pct-banner__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.6rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0ea5e9 100%);
  background-size: 200% 200%;
  animation: pct-cta-bg 4s ease infinite;
  color: #fff !important;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .025em;
  white-space: nowrap;
  text-decoration: none !important;
  border-radius: .65rem;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 28px rgba(99,102,241,0.55), 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.pct-banner__cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 48px rgba(99,102,241,0.8), 0 8px 28px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  color: #fff !important;
  text-decoration: none !important;
}

/* Shimmer sweep */
.pct-banner__cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: pct-btn-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pct-btn-shine {
  0%   { left: -100%; }
  55%  { left: 160%; }
  100% { left: 160%; }
}

@keyframes pct-cta-bg {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pct-cta__chevron {
  opacity: .85;
  transition: transform .18s ease;
}

.pct-banner__cta:hover .pct-cta__chevron {
  transform: translateX(3px);
}

/* ---- Bottom ticker ---- */
.pct-banner__ticker {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.35);
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.pct-ticker__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 3;
  pointer-events: none;
}
.pct-ticker__fade--left  { left: 0;  background: linear-gradient(90deg, #060414, transparent); }
.pct-ticker__fade--right { right: 0; background: linear-gradient(-90deg, #060414, transparent); }

.pct-banner__ticker-track {
  display: flex;
  gap: 2.5rem;
  animation: pct-ticker 35s linear infinite;
  white-space: nowrap;
  padding-left: 100%;
}

.pct-banner__ticker-track span {
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pct-banner__ticker-track span:nth-child(odd)  { color: rgba(165,180,252,0.55); }
.pct-banner__ticker-track span:nth-child(3n)   { color: rgba(16,185,129,0.55); }
.pct-banner__ticker-track span:nth-child(5n)   { color: rgba(244,114,182,0.5); }

@keyframes pct-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .pct-banner__title { font-size: 1rem; }
  .pct-banner__desc  { display: none; }
}

@media (max-width: 900px) {
  .pct-banner__inner {
    grid-template-columns: 1fr auto;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .pct-banner__features { display: none; }
  .pct-banner__title { font-size: .95rem; white-space: normal; }
  .pct-banner__logo  { width: 34px; height: 34px; }
}

@media (max-width: 640px) {
  .pct-banner__inner { grid-template-columns: 1fr auto; gap: .75rem; padding: .875rem 1rem; }
  .pct-banner__logo  { display: none; }
  .pct-banner__eyebrow { display: none; }
  .pct-banner__title { font-size: .88rem; white-space: normal; }
  .pct-banner__cta { padding: .65rem 1.1rem; font-size: .82rem; }
  .pct-banner__ticker { display: none; }
}
