/* ============================================
   Covid Accelerator — Premium Editorial Stylesheet
   "How a pandemic rewrote the future"
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  --indigo: #3949AB;
  --indigo-dark: #2A3882;
  --indigo-light: #5C6BC0;
  --white: #FFFFFF;
  --amber: #FFB300;
  --amber-dark: #FF8F00;
  --amber-light: #FFD54F;
  --slate: #37474F;
  --slate-light: #546E7A;
  --slate-dark: #263238;
  --grey: #ECEFF1;
  --grey-dark: #CFD8DC;
  --grey-light: #F5F7FA;

  --font-display: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 760px;
  --max-width-wide: 1400px;

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

  --shadow-sm: 0 1px 3px rgba(55, 71, 79, 0.08);
  --shadow-md: 0 4px 20px rgba(55, 71, 79, 0.1);
  --shadow-lg: 0 8px 40px rgba(55, 71, 79, 0.12);
  --shadow-indigo: 0 8px 30px rgba(57, 73, 171, 0.2);

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-height: 68px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--amber-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: 64px 0;
}

.section-sm {
  padding: 40px 0;
}

.section-tight {
  padding: 32px 0;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--indigo);
  color: var(--white);
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-dark);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 24px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--slate-dark);
  letter-spacing: -0.03em;
}

.logo-tagline {
  font-size: 0.68rem;
  color: var(--slate-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-menu a:hover {
  background: var(--grey);
  color: var(--indigo);
}

.nav-menu a.active {
  color: var(--indigo);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--slate-dark);
  color: var(--white);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(38, 50, 56, 0.85) 0%, rgba(57, 73, 171, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--amber);
  color: var(--slate-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}

.btn-primary:hover {
  background: var(--indigo-dark);
  border-color: var(--indigo-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-indigo);
}

.btn-amber {
  background: var(--amber);
  color: var(--slate-dark);
  border-color: var(--amber);
}

.btn-amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}

.btn-outline-dark:hover {
  background: var(--indigo);
  color: var(--white);
}

/* ---------- Section Headers ---------- */
.section-header {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-header-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.section-header-left p {
  color: var(--slate-light);
  font-size: 0.95rem;
}

.section-header a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--indigo);
  white-space: nowrap;
}

.section-header a:hover {
  color: var(--amber-dark);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-dark);
  margin-bottom: 12px;
  display: block;
}

/* ---------- Featured Analysis ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}

.featured-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--grey);
}

.featured-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-main:hover img {
  transform: scale(1.03);
}

.featured-main-content {
  padding: 32px;
}

.category-tag {
  display: inline-block;
  background: var(--amber);
  color: var(--slate-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.category-tag.indigo {
  background: var(--indigo);
  color: var(--white);
}

.featured-main h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.featured-main h2 a {
  color: var(--slate-dark);
}

.featured-main h2 a:hover {
  color: var(--indigo);
}

.featured-main p {
  color: var(--slate-light);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--slate-light);
}

.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--grey-dark);
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-side-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--grey-light);
  transition: all var(--transition);
  cursor: pointer;
}

.featured-side-item:hover {
  background: var(--grey);
  transform: translateX(4px);
}

.featured-side-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.featured-side-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  line-height: 1.3;
}

.featured-side-item h3 a {
  color: var(--slate-dark);
}

.featured-side-item h3 a:hover {
  color: var(--indigo);
}

.featured-side-item .meta {
  font-size: 0.76rem;
  color: var(--slate-light);
}

/* ---------- Trend Tracker ---------- */
.trend-tracker {
  background: var(--slate-dark);
  color: var(--white);
}

.trend-tracker .eyebrow {
  color: var(--amber);
}

.trend-tracker h2 {
  color: var(--white);
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trend-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}

.trend-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--amber);
  transform: translateY(-3px);
}

.trend-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trend-value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.trend-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
}

.trend-change.down {
  color: #FF7043;
}

.trend-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
}

/* ---------- Topic Hubs ---------- */
.topic-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topic-hub-card {
  background: var(--white);
  border: 1px solid var(--grey-dark);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.topic-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--indigo);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.topic-hub-card:hover {
  border-color: var(--indigo-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.topic-hub-card:hover::before {
  transform: scaleY(1);
}

.topic-hub-card .topic-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.topic-hub-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.topic-hub-card p {
  font-size: 0.9rem;
  color: var(--slate-light);
  margin-bottom: 16px;
}

.topic-hub-card .count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--indigo);
}

/* ---------- Article Grid ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--grey-dark);
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.article-card-image {
  overflow: hidden;
  height: 200px;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 24px;
}

.article-card-body .category-tag {
  margin-bottom: 10px;
}

.article-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-card-body h3 a {
  color: var(--slate-dark);
}

.article-card-body h3 a:hover {
  color: var(--indigo);
}

.article-card-body p {
  font-size: 0.88rem;
  color: var(--slate-light);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* ---------- Data Spotlight ---------- */
.data-spotlight {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.data-spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 179, 0, 0.1);
}

.data-spotlight-content {
  position: relative;
  z-index: 1;
}

.data-spotlight .eyebrow {
  color: var(--amber);
}

.data-spotlight h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.data-spotlight p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
}

.data-spotlight-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.spotlight-stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-stat .number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.spotlight-stat .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Article Page ---------- */
.article-hero {
  background: var(--grey-light);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--grey-dark);
}

.article-hero .container-narrow {
  max-width: 760px;
}

.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 16px 0;
  line-height: 1.2;
}

.article-hero .article-meta {
  margin-top: 20px;
  font-size: 0.85rem;
}

.article-hero-image {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.article-hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: -20px;
}

.article-body {
  padding: 48px 0;
}

.article-body .container-narrow {
  max-width: 700px;
}

.article-body p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--slate);
  margin-bottom: 22px;
}

.article-body p.lead {
  font-size: 1.2rem;
  color: var(--slate-dark);
  font-weight: 500;
  border-left: 4px solid var(--amber);
  padding-left: 20px;
  margin-bottom: 32px;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--slate-dark);
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: var(--slate-dark);
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.article-body blockquote {
  border-left: 4px solid var(--indigo);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--grey-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--slate-dark);
}

.article-body a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-color: var(--indigo);
}

.article-body figure {
  margin: 32px 0;
}

.article-body figcaption {
  font-size: 0.82rem;
  color: var(--slate-light);
  text-align: center;
  margin-top: 8px;
}

.article-footer {
  border-top: 1px solid var(--grey-dark);
  padding: 32px 0;
  margin-top: 40px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.article-tags a {
  font-size: 0.8rem;
  padding: 6px 14px;
  background: var(--grey);
  color: var(--slate);
  border-radius: 50px;
  transition: all var(--transition);
}

.article-tags a:hover {
  background: var(--indigo);
  color: var(--white);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.article-nav-item {
  padding: 20px;
  border: 1px solid var(--grey-dark);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.article-nav-item:hover {
  border-color: var(--indigo);
  background: var(--grey-light);
}

.article-nav-item .nav-label {
  font-size: 0.76rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.article-nav-item h4 {
  font-size: 1rem;
  color: var(--slate-dark);
}

.article-nav-item.next {
  text-align: right;
}

/* ---------- Analysis Page ---------- */
.page-hero {
  background: var(--grey-light);
  padding: 56px 0;
  border-bottom: 1px solid var(--grey-dark);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--slate-light);
  max-width: 600px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 32px 0;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--grey-dark);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}

/* ---------- About Page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.about-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.about-hero p {
  font-size: 1.1rem;
  color: var(--slate-light);
  margin-bottom: 16px;
}

.about-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
}

.value-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--slate-light);
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding: 56px 0;
}

.contact-info h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--slate-light);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail .info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-detail .info p {
  font-size: 0.88rem;
  color: var(--slate-light);
  margin: 0;
}

.contact-form {
  background: var(--grey-light);
  padding: 40px;
  border-radius: var(--radius-lg);
}

.contact-form h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grey-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-top: 12px;
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-sm);
  color: #2E7D32;
  font-size: 0.9rem;
  margin-top: 16px;
}

.form-success.show {
  display: block;
}

/* ---------- Legal Pages ---------- */
.legal-content {
  padding: 56px 0;
}

.legal-content .container-narrow {
  max-width: 760px;
}

.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.legal-content .updated {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--slate);
}

.legal-content ul {
  margin: 0 0 16px 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* ---------- Sitemap Page ---------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 56px 0;
}

.sitemap-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--amber);
}

.sitemap-section ul {
  list-style: none;
}

.sitemap-section li {
  margin-bottom: 10px;
}

.sitemap-section a {
  font-size: 0.95rem;
  color: var(--slate);
}

.sitemap-section a:hover {
  color: var(--indigo);
}

/* ---------- 404 Page ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.error-page .error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--indigo), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.error-page p {
  font-size: 1.05rem;
  color: var(--slate-light);
  max-width: 480px;
  margin: 0 auto 32px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--grey-light);
  text-align: center;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.newsletter p {
  color: var(--slate-light);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--grey-dark);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--indigo);
}

.newsletter-form button {
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  background: var(--indigo);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-link {
  margin-bottom: 16px;
}

.footer-brand .logo-name {
  color: var(--white);
}

.footer-brand .logo-tagline {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .footer-links {
  display: flex;
  gap: 20px;
}

.footer-bottom .footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .footer-links a:hover {
  color: var(--amber);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .trend-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-spotlight {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--grey-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-200%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 48px 0;
  }

  .hero-content {
    padding: 56px 0;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .topic-hub-grid {
    grid-template-columns: 1fr;
  }

  .trend-grid {
    grid-template-columns: 1fr;
  }

  .data-spotlight-stats {
    grid-template-columns: 1fr;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .featured-main img {
    height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .featured-main-content {
    padding: 20px;
  }

  .featured-side-item {
    flex-direction: row;
  }

  .featured-side-item img {
    width: 70px;
    height: 70px;
  }

  .contact-form {
    padding: 24px;
  }

  .data-spotlight {
    padding: 32px 20px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .featured-main:hover img,
  .article-card:hover .article-card-image img {
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .newsletter,
  .hero-actions,
  .article-nav,
  .filter-bar {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .article-body {
    padding: 0;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--grey);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--amber);
  color: var(--slate-dark);
}
