/*
Theme Name: TheAIPulse
Theme URI: https://theaipulse.co.uk
Author: TheAIPulse
Description: Interactive tech news theme with Three.js 3D background and glassmorphism UI.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: theaipulse
*/

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --blue-1: #00B4D8;
  --blue-2: #0077B6;
  --blue-3: #023E8A;
  --blue-4: #03045E;
  --cyan:   #48CAE4;
  --pale:   #CAF0F8;
  --accent: #FF6B35;
  --white:  #FFFFFF;
  --glass-bg:     rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.15);
  --glass-hover:  rgba(255,255,255,0.13);
  --shadow-glow:  0 0 40px rgba(0,180,216,0.25);
  --shadow-card:  0 8px 32px rgba(0,0,0,0.35);
  --radius: 16px;
  --font:   'Inter', system-ui, sans-serif;
  --font-d: 'Sora', 'Inter', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--blue-4);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   THREE.JS CANVAS — FULL-SCREEN BACKGROUND
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   SITE WRAPPER — sits above canvas
   ============================================================ */
#site-wrapper {
  position: relative;
  z-index: 10;
}

/* ============================================================
   BREAKING TICKER
   ============================================================ */
.ticker {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,180,216,0.3);
  padding: 9px 0;
  overflow: hidden;
}
.ticker__inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 16px;
}
.ticker__tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 4px;
  flex-shrink: 0;
  animation: pulse-tag 2s ease-in-out infinite;
}
@keyframes pulse-tag {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(255,107,53,0); }
}
.ticker__scroll {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 45s linear infinite;
}
.ticker__scroll:hover { animation-play-state: paused; }
.ticker__item {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  padding: 0 48px 0 0;
}
.ticker__item::after { content: '◆'; margin-left: 48px; color: var(--blue-1); font-size: 0.5rem; vertical-align: middle; }
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: rgba(3,4,94,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 500;
}
.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue-1), var(--cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  animation: logo-glow 3s ease-in-out infinite;
}
@keyframes logo-glow {
  0%,100% { box-shadow: 0 0 16px rgba(0,180,216,0.5); }
  50%      { box-shadow: 0 0 32px rgba(0,180,216,1), 0 0 60px rgba(0,180,216,0.4); }
}
.logo__text {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}
.logo__sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Header right */
.header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.4);
  border-radius: 20px;
  padding: 5px 12px;
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.6); }
}
.header__date { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.site-hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 60px;
  position: relative;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,180,216,0.12);
  border: 1px solid rgba(0,180,216,0.35);
  border-radius: 24px;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fade-up 0.8s ease both;
}
.hero__title {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fade-up 0.8s 0.15s ease both;
}
.hero__title .gradient {
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--cyan) 40%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
  animation: fade-up 0.8s 0.3s ease both;
}
.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.8s 0.45s ease both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue-2), var(--blue-1));
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,119,182,0.5);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,180,216,0.6);
}
.btn--ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: var(--glass-hover);
  border-color: var(--blue-1);
  transform: translateY(-2px);
}
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-up 1s 1s ease both;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.site-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,180,216,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,180,216,0.45);
  box-shadow: var(--shadow-card), 0 0 40px rgba(0,180,216,0.15);
}
.glass-card:hover::before { opacity: 1; }

/* ── Hero card ── */
.card-hero { grid-column: 1; grid-row: 1 / 3; }
.card-hero .card__img { height: 420px; }

/* ── Day card story count badge ── */
.day-card__count {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan);
  z-index: 2;
}
.day-card__count span { font-weight: 500; color: rgba(255,255,255,0.6); font-size: 0.75rem; }

/* ── Card image ── */
.card__img {
  width: 100%; height: 220px;
  overflow: hidden;
  position: relative;
  background: #03045E;
}
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.glass-card:hover .card__img img { transform: scale(1.07); }
.card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #03045E 0%, #023E8A 60%, #0077B6 100%);
  border-bottom: 1px solid rgba(0,180,216,0.15);
}

/* Image overlay gradient */
.card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(3,4,94,0.7) 100%);
  pointer-events: none;
}

/* ── Card body ── */
.card__body { padding: 20px 24px 8px; }
.card__meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.card__cat {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(0,180,216,0.12);
  border: 1px solid rgba(0,180,216,0.3);
  padding: 3px 10px;
  border-radius: 4px;
}
.card__age {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}
.card__title {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.card-hero .card__title { font-size: 1.6rem; }
.glass-card:hover .card__title { color: var(--cyan); }
.card__excerpt {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Card footer ── */
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--glass-border);
  margin-top: 16px;
}
.card__byline { font-size: 0.75rem; color: rgba(255,255,255,0.4); display: flex; gap: 6px; align-items: center; }
.card__byline-dot { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg,var(--blue-1),var(--cyan)); display:flex;align-items:center;justify-content:center;font-size:0.6rem;font-weight:700; }
.card__more {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-1);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s, color 0.2s;
}
.card__more::after { content: '→'; }
.glass-card:hover .card__more { gap: 10px; color: var(--cyan); }

/* ============================================================
   FEATURED GRID
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  margin-bottom: 56px;
}
.section-hd {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.section-hd__label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.3);
  padding: 5px 14px;
  border-radius: 20px;
}
.section-hd__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,180,216,0.4), transparent);
}

/* ============================================================
   NEWS GRID + SIDEBAR
   ============================================================ */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {}
.widget {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.widget__hd {
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--glass-border);
  padding: 13px 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget__hd::before { content: '▎'; color: var(--blue-1); }
.widget__body { padding: 16px 20px; }

.trend-list { list-style: none; }
.trend-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trend-item:last-child { border-bottom: none; }
.trend-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(0,180,216,0.3);
  min-width: 28px;
  line-height: 1;
}
.trend-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.trend-title:hover { color: var(--cyan); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  background: rgba(0,180,216,0.07);
  border: 1px solid rgba(0,180,216,0.15);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.stat__val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue-1);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.post-hero {
  position: relative;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(3,4,94,0.9) 100%);
}
.post-hero__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px;
  z-index: 2;
}
.post-title {
  font-family: var(--font-d);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  margin-top: 12px;
}
.post-body {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px;
}
.post-content { font-size: 1.05rem; line-height: 1.85; color: rgba(255,255,255,0.82); }
.post-content h2 { font-family: var(--font-d); font-size: 1.5rem; font-weight: 800; color: #fff; margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--glass-border); }
.post-content h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 28px 0 10px; }
.post-content p  { margin-bottom: 18px; color: rgba(255,255,255,0.78); }
.post-content a  { color: var(--blue-1); border-bottom: 1px solid rgba(0,180,216,0.3); transition: border-color 0.2s; }
.post-content a:hover { border-color: var(--blue-1); }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; color: rgba(255,255,255,0.78); }
.post-content li { margin-bottom: 6px; }
.post-content blockquote { border-left: 3px solid var(--blue-1); background: rgba(0,180,216,0.07); padding: 18px 24px; margin: 24px 0; border-radius: 0 10px 10px 0; font-style: italic; color: rgba(255,255,255,0.85); }
.post-content code { font-family: 'JetBrains Mono',monospace; background: rgba(0,180,216,0.1); color: var(--cyan); padding: 2px 7px; border-radius: 4px; font-size: 0.9em; }
.post-content pre { background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); padding: 22px; border-radius: 12px; overflow-x: auto; margin: 22px 0; }
.post-content pre code { background: none; color: var(--pale); padding: 0; }

/* ============================================================
   READING PROGRESS
   ============================================================ */
.read-progress-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 9999;
}
.read-progress {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue-2), var(--blue-1), var(--cyan));
  transition: width 0.1s;
  box-shadow: 0 0 10px rgba(0,180,216,0.8);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 48px 0;
}
.pagination a, .pagination span {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: linear-gradient(135deg, var(--blue-2), var(--blue-1));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,119,182,0.5);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  margin-top: 80px;
  padding: 64px 0 0;
}
.footer__grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-top: 14px;
}
.footer__socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.social-btn:hover {
  background: var(--blue-2); border-color: var(--blue-2);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,119,182,0.5);
}
.footer__col h4 {
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 9px; }
.footer__col ul li a { font-size: 0.82rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer__col ul li a:hover { color: var(--cyan); }
.footer__bottom {
  border-top: 1px solid var(--glass-border);
  margin-top: 48px;
  padding: 20px 32px;
  max-width: 1400px; margin-left: auto; margin-right: auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.footer__bottom a { color: var(--blue-1); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-1));
  border: none; border-radius: 50%;
  color: #fff; font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,119,182,0.5);
  z-index: 999;
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,180,216,0.6); }

/* ============================================================
   TAGS
   ============================================================ */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--glass-border); }
.tag {
  font-size: 0.72rem; font-weight: 600;
  color: var(--blue-1);
  background: rgba(0,180,216,0.08);
  border: 1px solid rgba(0,180,216,0.25);
  padding: 5px 14px; border-radius: 20px;
  transition: all 0.2s;
}
.tag:hover { background: var(--blue-1); color: #fff; border-color: var(--blue-1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .featured-grid { grid-template-columns: 1fr; }
  .card-hero { grid-column: auto; grid-row: auto; }
  .news-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header__inner { padding: 0 20px; height: 60px; }
  .site-main { padding: 32px 20px; }
  .hero__title { font-size: 2.4rem; }
  .post-body { padding: 24px; }
  .post-title { font-size: 1.7rem; }
  .footer__grid { grid-template-columns: 1fr; padding: 0 20px; }
  .footer__bottom { flex-direction: column; gap: 8px; padding: 20px; text-align: center; }
}

/* ============================================================
   WORDPRESS COMPAT
   ============================================================ */
.alignleft  { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { margin: 0 auto 20px; display: block; }
.wp-caption-text { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-align: center; margin-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
