:root {
  --ink: #0a0e1a;
  --muted: #6b7280;
  --paper: #fafafa;
  --white: #ffffff;
  --line: #e5e7eb;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --orange: #f97316;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -3px rgba(0, 0, 0, 0.04);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== SPACE BACKGROUND ===== */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 20% 30%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(168, 85, 247, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(49, 46, 129, 0.08) 0%,
      transparent 70%
    ),
    #111827;
}

.space-bg canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.space-page {
  background:
    radial-gradient(ellipse at 18% 10%, rgba(99, 102, 241, 0.16), transparent 42%),
    radial-gradient(ellipse at 85% 80%, rgba(56, 189, 248, 0.1), transparent 44%),
    #111827;
}

body.space-page .site-nav,
body.space-page .site-main,
body.space-page .site-footer {
  position: relative;
  z-index: 1;
}

body.space-page .site-nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  min-height: 64px;
  background: rgba(10, 14, 26, 0.96);
  box-shadow: 0 1px 0 rgba(129, 140, 248, 0.16);
}

@media (min-width: 992px) {
  body.space-page .site-nav .navbar-collapse {
    display: flex !important;
    visibility: visible;
  }

  body.space-page .site-nav .navbar-nav {
    align-items: center;
    text-align: right;
  }
}

/* Keep the starfield atmospheric, but never let it compete with homepage copy. */
body.space-page .site-main {
  isolation: isolate;
}

body.space-page .news-shell,
body.space-page .home-layout,
body.space-page .home-main,
body.space-page .home-sidebar {
  position: relative;
  z-index: 1;
}

body.space-page .news-hero {
  background: transparent;
  border-bottom-color: rgba(99, 102, 241, 0.15);
}

body.space-page .hero-content,
body.space-page .page-hero,
body.space-page .about-hero {
  text-align: right;
}

body.space-page .hero-content p,
body.space-page .page-hero p,
body.space-page .about-hero p {
  margin-left: auto;
}

body.space-page .hero-content .eyebrow,
body.space-page .page-hero .eyebrow,
body.space-page .about-hero .eyebrow {
  justify-content: flex-end;
}

body.space-page .hero-content h1,
body.space-page .page-hero h1,
body.space-page .about-hero h1 {
  color: #fff;
}

body.space-page .hero-content h1 em,
body.space-page .page-hero h1 em,
body.space-page .about-hero h1 em {
  color: var(--accent-light);
}

body.space-page .hero-content p,
body.space-page .page-hero p,
body.space-page .about-hero p {
  color: #94a3b8;
}

body.space-page .eyebrow {
  color: #94a3b8;
}

body.space-page .section-header {
  border-bottom-color: rgba(99, 102, 241, 0.15);
}

body.space-page .section-header h2 {
  color: #fff;
}

body.space-page .text-link {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

body.space-page .latest-section {
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

body.space-page .hero-main-card,
body.space-page .hero-side-card,
body.space-page .article-card,
body.space-page .job-card,
body.space-page .public-card,
body.space-page .stat-card,
body.space-page .feature-card {
  position: relative;
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 24px rgba(2, 6, 23, 0.22),
    0 28px 52px rgba(2, 6, 23, 0.16);
  transform: translateZ(0);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

body.space-page .hero-main-card:hover,
body.space-page .hero-side-card:hover,
body.space-page .article-card:hover,
body.space-page .job-card:hover,
body.space-page .public-card:hover,
body.space-page .stat-card:hover,
body.space-page .feature-card:hover {
  border-color: rgba(165, 180, 252, 0.9);
  transform: translateY(-7px) rotateX(1deg);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.95) inset,
    0 20px 30px rgba(2, 6, 23, 0.28),
    0 34px 64px rgba(2, 6, 23, 0.2);
}

body.space-page .hero-main-body h2,
body.space-page .hero-side-body h4,
body.space-page .article-card h3,
body.space-page .job-card h5,
body.space-page .job-card .card-title,
body.space-page .public-card h2,
body.space-page .public-card h3,
body.space-page .public-card h4,
body.space-page .stat-card h3,
body.space-page .feature-card h3 {
  color: #0f172a;
}

body.space-page .hero-main-body p,
body.space-page .article-card p,
body.space-page .job-card p {
  color: #475569;
}

body.space-page .job-card .card-body,
body.space-page .public-card .card-body,
body.space-page .stat-card,
body.space-page .feature-card {
  color: #0f172a;
}

body.space-page .jobs-page-shell {
  margin-top: 0 !important;
  padding-top: 8px;
  padding-bottom: 72px;
}

body.space-page .jobs-intro {
  display: block !important;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 118px;
  margin: 4px 0 22px;
  padding: 12px 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  text-align: right;
}

body.space-page .jobs-intro span,
body.space-page .jobs-intro h1,
body.space-page .jobs-intro p {
  visibility: visible !important;
  opacity: 1 !important;
}

body.space-page .jobs-intro .eyebrow {
  justify-content: flex-end;
}

body.space-page .jobs-intro h1 {
  margin: 14px 0 10px;
  color: #f8fafc;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 800;
}

body.space-page .jobs-intro h1 em {
  color: var(--accent-light);
  font-style: normal;
}

body.space-page .jobs-intro p {
  max-width: 680px;
  margin: 0 0 0 auto;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
}

body.space-page .jobs-toolbar {
  justify-content: flex-end !important;
}

body.space-page .jobs-toolbar > div:first-child {
  margin-left: auto;
}

body.space-page .jobs-toolbar .btn-group .btn {
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.space-page .home-sidebar {
  background: rgba(22, 32, 56, 0.96);
}

body.space-page .hero-main-card .category-label,
body.space-page .hero-side-card .category-label,
body.space-page .article-card .category-label {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

body.space-page .hero-side-card .category-label {
  width: fit-content;
}

body.space-page .hero-main-body,
body.space-page .hero-side-body,
body.space-page .article-card-body {
  position: relative;
  z-index: 2;
}

body.space-page .hero-grid,
body.space-page .latest-section {
  position: relative;
}

body.space-page .hero-grid::before,
body.space-page .latest-section::before {
  content: "";
  position: absolute;
  inset: 12px -12px 24px;
  z-index: -1;
  pointer-events: none;
  background: rgba(10, 14, 26, 0.2);
  border-radius: 24px;
}

/* ===== NAVBAR ===== */
.site-nav {
  height: 64px;
  background: var(--ink);
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}
.site-nav .container-fluid {
  max-width: 100%;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1rem;
  display: flex;
  align-items: center;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 8px;
}
.brand-orb {
  width: 36px;
  height: 36px;
  position: relative;
  display: inline-grid;
  place-items: center;
  perspective: 400px;
  margin-right: 10px;
}
.brand-orb .orb-core {
  width: 36px;
  height: 36px;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  display: grid;
  place-items: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.brand-orb .orb-ring {
  inset: 4px;
}
.brand-orb .orb-ring-two {
  inset: 1px 8px;
}
.site-nav .nav-link {
  color: #94a3b8 !important;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 22px;
  transition: color var(--transition);
}
.site-nav .nav-link:hover {
  color: var(--accent-light) !important;
}

/* ===== SHARED ===== */
.news-shell {
  width: 100%;
  margin: 0;
  padding: 0 24px;
}

.eyebrow,
.category-label {
  font:
    500 0.65rem "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow span {
  display: inline-block;
  background: var(--orange);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.category-label {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 600;
}

.text-link {
  color: var(--ink);
  font:
    500 0.72rem "DM Mono",
    monospace;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity var(--transition);
}
.text-link:hover {
  opacity: 0.6;
}

/* ===== HERO ===== */
.news-hero {
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--line);
}
.hero-content h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin: 16px 0 18px;
  font-weight: 800;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  /* max-width: 480px; */
  margin: 0;
}

/* ===== AI ORB ===== */
.ai-orb {
  width: 80px;
  height: 80px;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 500px;
}
.orb-core {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    #c7d2fe 0 7%,
    #818cf8 25%,
    #4f46e5 58%,
    #312e81 100%
  );
  box-shadow:
    0 0 20px #818cf8,
    0 0 48px rgba(99, 102, 241, 0.5);
  animation: orb-pulse 4s ease-in-out infinite;
}
.orb-ring {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(99, 102, 241, 0.6);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(15deg);
  animation: orb-spin 7s linear infinite;
}
.orb-ring-two {
  inset: 2px 15px;
  transform: rotateY(70deg) rotateZ(-20deg);
  border-color: rgba(249, 115, 22, 0.5);
  animation-duration: 5s;
  animation-direction: reverse;
}
@keyframes orb-spin {
  to {
    transform: rotateX(68deg) rotateZ(375deg);
  }
}
@keyframes orb-pulse {
  50% {
    transform: scale(1.08);
    filter: brightness(1.16);
  }
}

/* ===== HOME LAYOUT ===== */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}
.home-main {
  min-width: 0;
}
.home-sidebar {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 80px;
  /* Let the category digest continue below Must Read instead of hiding in an
     inner scrollbar. The page itself should handle vertical scrolling. */
  max-height: none;
  overflow: visible;
}

/* ===== HERO GRID ===== */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 20px;
  padding: 28px 0 0;
}

.hero-main-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.hero-main-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.hero-main-image {
  height: 280px;
  background: #1e293b center/cover;
  position: relative;
}
.hero-main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.25));
}
.hero-main-body {
  padding: 22px 24px 24px;
}
.hero-main-body h2 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 10px 0 10px;
  font-weight: 700;
}
.hero-main-body p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
  margin: 0 0 14px;
}

.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-side-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  gap: 14px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.hero-side-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.hero-side-image {
  width: 120px;
  min-height: 110px;
  flex-shrink: 0;
  background: #1e293b center/cover;
}
.hero-side-body {
  padding: 14px 16px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-side-body .category-label {
  align-self: flex-start;
}
.hero-side-body h4 {
  font-size: 0.92rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
  font-weight: 600;
}
.hero-side-meta {
  display: flex;
  gap: 12px;
  color: #94a3b8;
  font:
    400 0.58rem "DM Mono",
    monospace;
  align-items: center;
}
.hero-side-meta i {
  font-size: 0.62rem;
}

.featured-badge {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font:
    600 0.58rem "DM Mono",
    monospace;
  letter-spacing: 0.1em;
}
.featured-meta {
  display: flex;
  gap: 14px;
  color: #94a3b8;
  font:
    400 0.62rem "DM Mono",
    monospace;
  align-items: center;
}
.featured-meta i {
  font-size: 0.65rem;
}

/* ===== SIDEBAR ===== */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 4px;
}
.sidebar-header .eyebrow {
  color: #94a3b8;
}
.sidebar-header .text-link {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.sidebar-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 16px 0;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid #1e293b;
  transition: opacity var(--transition);
}
.sidebar-item:last-child {
  border-bottom: none;
}
.sidebar-item:hover {
  opacity: 0.8;
}
.sidebar-thumb {
  width: 80px;
  height: 64px;
  border-radius: 8px;
  background: #334155 center/cover;
}
.sidebar-info .category-label {
  background: rgba(129, 140, 248, 0.15);
  color: var(--accent-light);
  font-size: 0.55rem;
}
.sidebar-info h4 {
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 6px 0 4px;
  font-weight: 600;
}
.sidebar-info small {
  color: #64748b;
  font:
    400 0.58rem "DM Mono",
    monospace;
}

.category-sidebar-section {
  margin-top: 28px;
  padding-top: 4px;
  border-top: 1px solid #334155;
}

.category-sidebar-section .sidebar-header {
  margin-top: 18px;
}

.category-sidebar-item {
  display: block;
  padding: 14px 0;
  color: #f8fafc;
  text-decoration: none;
  border-bottom: 1px solid #334155;
  transition: opacity var(--transition), transform var(--transition);
}

.category-sidebar-item:hover {
  opacity: 0.82;
  transform: translateX(3px);
}

.category-sidebar-item .category-label {
  background: rgba(129, 140, 248, 0.16);
  color: #a5b4fc;
  font-size: 0.55rem;
}

.category-sidebar-item h4 {
  margin: 8px 0 5px;
  font-size: 0.86rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.category-sidebar-item small {
  color: #94a3b8;
  font: 400 0.58rem "DM Mono", monospace;
}

/* ===== LATEST SECTION ===== */
.latest-section {
  padding: 56px 0 80px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.05em;
  margin: 10px 0 0;
  font-weight: 800;
}

/* ===== ARTICLE GRID ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card-wrapper {
  position: relative;
}
.article-card-wrapper .article-card {
  display: block;
}
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(10, 14, 26, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
  backdrop-filter: blur(8px);
}
.copy-btn:hover {
  background: var(--accent);
  transform: scale(1.08);
}
.copy-btn.copied {
  background: #22c55e;
}
.copy-btn i {
  font-size: 0.85rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-thumb {
  height: 200px;
  background: #1e293b center/cover;
  position: relative;
}
.article-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.75));
}
.article-thumb-overlay {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.article-thumb-overlay .category-label {
  background: rgba(99, 102, 241, 0.85);
  color: #fff;
  font-size: 0.55rem;
  padding: 3px 8px;
}
.article-thumb-meta {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font:
    400 0.58rem "DM Mono",
    monospace;
  align-items: center;
}
.article-thumb-meta i {
  font-size: 0.62rem;
}
.article-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 10px 0 8px;
  font-weight: 700;
}
.article-card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.85rem;
  margin: 0 0 16px;
  flex: 1;
}
.article-meta {
  display: flex;
  gap: 14px;
  color: #94a3b8;
  font:
    400 0.62rem "DM Mono",
    monospace;
  align-items: center;
  flex-wrap: wrap;
}
.article-meta i {
  font-size: 0.65rem;
}
.article-meta span {
  white-space: nowrap;
}

/* ===== PAGE HERO (news index) ===== */
.page-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin: 14px 0 12px;
  font-weight: 800;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.page-hero p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

/* ===== CATEGORY NAV ===== */
.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 0 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.category-nav a {
  color: var(--muted);
  font:
    500 0.72rem "DM Mono",
    monospace;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all var(--transition);
}

body.space-page .category-nav {
  justify-content: flex-end;
  gap: 12px;
}

body.space-page .category-nav a {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 14px;
}

body.space-page .category-nav a:hover {
  background: rgba(129, 140, 248, 0.16);
  color: #e0e7ff;
}

body.space-page .category-nav a.active {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.28);
}
.category-nav a:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--accent);
}
.category-nav a.active {
  background: var(--ink);
  color: #fff;
}

.article-grid-wide {
  padding-bottom: 80px;
}

/* ===== GRADIENT FALLBACK COVERS ===== */
.article-thumb-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.article-thumb-gradient::after {
  background: none;
}
.article-thumb-gradient-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.article-thumb-gradient-title {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: block;
}

.hero-main-image-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.hero-main-image-gradient::after {
  background: none;
}
.hero-main-gradient-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-main-gradient-title {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  display: block;
}

.hero-side-image-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.hero-side-gradient-content {
  position: relative;
  z-index: 1;
}
.hero-side-gradient-content i {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-thumb-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.sidebar-thumb-gradient-content {
  position: relative;
  z-index: 1;
}
.sidebar-thumb-gradient-content i {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-sidebar {
    position: static;
    max-height: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .news-hero {
    padding: 36px 0 32px;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .hero-main-image {
    height: 220px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .latest-section {
    padding: 40px 0 60px;
  }
  .page-hero {
    padding: 36px 0 28px;
  }
  .site-nav .nav-link {
    margin-left: 0;
  }
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.about-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 16px 0 18px;
  font-weight: 800;
}
.about-hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.about-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

.about-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.about-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 28px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0 0 16px;
}

body.space-page .about-text {
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.2), 0 28px 52px rgba(2, 6, 23, 0.12);
}

body.space-page .about-text h2,
body.space-page .about-text p {
  color: #0f172a;
}

body.space-page .about-text p {
  color: #475569;
}

body.space-page .about-categories {
  background: rgba(248, 250, 252, 0.98);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.18);
}

body.space-page .about-cat {
  color: #334155;
  border-bottom-color: #e2e8f0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.stat-label {
  display: block;
  color: var(--muted);
  font:
    400 0.65rem "DM Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-icon i {
  font-size: 1.3rem;
  color: var(--accent);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.about-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  color: var(--ink);
}
.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.about-cta {
  padding: 64px 0;
  text-align: center;
}
.about-orb {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.about-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.05em;
  font-weight: 800;
  margin: 0 0 12px;
}
.about-cta p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 28px;
}
.about-cta-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font:
    600 0.8rem "DM Mono",
    monospace;
  letter-spacing: 0.05em;
  transition:
    background var(--transition),
    transform var(--transition);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font:
    600 0.8rem "DM Mono",
    monospace;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.btn-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .about-categories {
    grid-template-columns: 1fr;
  }
}
