/* ── Ozone Limited Blog Design System ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

:root {
  --bg: #09090b;
  --bg-subtle: #0f1015;
  --surface: #121216;
  --surface-card: #16171d;
  --surface-hover: #1e1f27;
  --border: #23242c;
  --border-light: #2e303c;
  --border-focus: #38bdf8;

  --text-main: #f4f4f6;
  --text-secondary: #a0a2b0;
  --text-muted: #6b6e82;

  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-dark: #0284c7;
  --accent-glow: rgba(56, 189, 248, 0.16);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --max-w-page: 1200px;
  --max-w-article: 780px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 24px var(--accent-glow);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--max-w-page);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar (mirrors Next.js Navbar.jsx) ──────────────────── */
.oz-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  padding: 16px 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.oz-navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
}

.oz-navbar.nav-hidden {
  transform: translateY(-100%);
}

.oz-navbar.is-mega-open {
  background: #fff;
  padding: 8px 0;
}

.oz-navbar__container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .oz-navbar__container { padding: 0 40px; }
}
@media (min-width: 1024px) {
  .oz-navbar__container { padding: 0 64px; }
}
@media (min-width: 1280px) {
  .oz-navbar__container { padding: 0 96px; }
}

.oz-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.oz-navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.oz-navbar__logo-img {
  height: 35px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.5s ease;
}

@media (min-width: 640px) {
  .oz-navbar__logo-img { height: 45px; }
}
@media (min-width: 1024px) {
  .oz-navbar__logo-img { height: 50px; }
}

.oz-navbar.nav-scrolled .oz-navbar__logo-img,
.oz-navbar.is-mega-open .oz-navbar__logo-img {
  filter: brightness(0);
}

/* Desktop Nav Links */
.oz-navbar__nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .oz-navbar__nav { display: flex; }
}

.oz-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.oz-nav-link:hover { color: var(--accent); }
.oz-nav-link.is-active { color: var(--accent); }

.oz-navbar.nav-scrolled .oz-nav-link,
.oz-navbar.is-mega-open .oz-nav-link {
  color: #000;
}

.oz-navbar.nav-scrolled .oz-nav-link:hover,
.oz-navbar.is-mega-open .oz-nav-link:hover,
.oz-navbar.nav-scrolled .oz-nav-link.is-active,
.oz-navbar.is-mega-open .oz-nav-link.is-active {
  color: var(--accent);
}

.oz-nav-chevron {
  transition: transform 0.25s ease;
  width: 14px;
  height: 14px;
}

.oz-nav-dropdown:hover .oz-nav-chevron,
.oz-nav-dropdown.open .oz-nav-chevron {
  transform: rotate(180deg);
}

.oz-nav-dropdown:hover > .oz-nav-link,
.oz-nav-dropdown.open > .oz-nav-link {
  color: var(--accent);
}

/* CTA Button */
.oz-navbar__actions {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 1024px) {
  .oz-navbar__actions { display: flex; }
}

.oz-navbar__cta {
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 900;
  transition: all 0.3s ease;
  transform: scale(1);
  text-decoration: none;
  /* Default: transparent background on dark header */
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.oz-navbar__cta:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.oz-navbar.nav-scrolled .oz-navbar__cta,
.oz-navbar.is-mega-open .oz-navbar__cta {
  background: transparent;
  color: #000;
  border-color: rgba(0, 0, 0, 0.5);
}

.oz-navbar.nav-scrolled .oz-navbar__cta:hover,
.oz-navbar.is-mega-open .oz-navbar__cta:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Mobile Toggle */
.oz-navbar__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: color 0.25s ease;
}

@media (min-width: 1024px) {
  .oz-navbar__mobile-toggle { display: none; }
}

.oz-navbar.nav-scrolled .oz-navbar__mobile-toggle,
.oz-navbar.is-mega-open .oz-navbar__mobile-toggle {
  color: #000;
}

/* ── Mega Menu Panel ─────────────────────────────────────── */
.oz-mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
}

.oz-nav-dropdown { position: relative; }

.oz-mega-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15);
  border-top: 1px solid #f1f5f9;
  z-index: 50;
  animation: fadeInDown 0.4s cubic-bezier(0.2, 0, 0, 1) forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.oz-mega-panel__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  gap: 48px;
}

@media (min-width: 640px) {
  .oz-mega-panel__inner { padding: 48px 40px; }
}
@media (min-width: 1024px) {
  .oz-mega-panel__inner { padding: 64px 64px; gap: 48px; }
}
@media (min-width: 1280px) {
  .oz-mega-panel__inner { padding: 64px 96px; gap: 96px; }
}

.oz-mega-panel__intro {
  width: 260px;
  flex-shrink: 0;
}

@media (min-width: 1280px) {
  .oz-mega-panel__intro { width: 320px; }
}

.oz-mega-panel__intro-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.oz-mega-panel__intro-line {
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.oz-mega-panel__intro-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.oz-mega-panel__intro-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
  line-height: 1.2;
  font-family: var(--font-display);
}

@media (min-width: 1024px) {
  .oz-mega-panel__intro-title { font-size: 2.25rem; }
}

.oz-mega-panel__intro-desc {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.6;
  max-width: 280px;
}

.oz-mega-panel__grid {
  flex-grow: 1;
  display: grid;
  gap: 40px;
}

.oz-mega-panel__grid--3col {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1280px) {
  .oz-mega-panel__grid--3col { grid-template-columns: repeat(3, 1fr); }
}

.oz-mega-panel__grid--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
}

.oz-mega-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oz-mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oz-mega-col ul li a {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.oz-mega-col ul li a:hover {
  color: #000;
}

/* ── Mobile Full-Screen Menu ─────────────────────────────── */
.oz-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.5s ease;
}

.oz-mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

@media (min-width: 1024px) {
  .oz-mobile-menu { display: none !important; }
}

.oz-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.oz-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 384px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
  overflow-y: auto;
  padding: 32px;
}

.oz-mobile-menu.open .oz-mobile-menu__panel {
  transform: translateX(0);
}

.oz-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.oz-mobile-menu__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0);
}

.oz-mobile-menu__close {
  padding: 8px;
  border-radius: 12px;
  background: #f3f4f6;
  border: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.oz-mobile-menu__close:hover { background: #e5e7eb; }

.oz-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oz-mobile-link {
  display: block;
  padding: 16px;
  font-size: 20px;
  font-weight: 900;
  color: #000;
  text-decoration: none;
  border-radius: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.oz-mobile-link:hover { background: #f9fafb; }
.oz-mobile-link.is-active { color: var(--accent); }

/* Expandable sub-links in mobile */
.oz-mobile-expandable__row {
  display: flex;
  align-items: center;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.oz-mobile-expandable__row:hover { background: #f9fafb; }
.oz-mobile-expandable__row.is-active { background: rgba(56, 189, 248, 0.05); }

.oz-mobile-expandable__row .oz-mobile-link {
  flex-grow: 1;
}

.oz-mobile-expandable__toggle {
  padding: 16px 24px;
  border: none;
  background: transparent;
  border-left: 1px solid #f1f5f9;
  color: #000;
  opacity: 0.4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.oz-mobile-expandable__toggle:hover { opacity: 1; }

.oz-mobile-expandable__toggle svg {
  transition: transform 0.3s ease;
}

.oz-mobile-expandable.open .oz-mobile-expandable__toggle svg {
  transform: rotate(180deg);
}

.oz-mobile-expandable__content {
  display: none;
  padding: 8px 0 16px 24px;
}

.oz-mobile-expandable.open .oz-mobile-expandable__content {
  display: block;
}

.oz-mobile-section-label {
  padding: 4px 16px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #9ca3af;
  margin-top: 16px;
}

.oz-mobile-section-label:first-child { margin-top: 0; }

.oz-mobile-expandable__content a {
  display: block;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.oz-mobile-expandable__content a:hover { color: var(--accent); }

.oz-mobile-menu__footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #f1f5f9;
}

.oz-mobile-menu__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

.oz-mobile-menu__cta:hover { background: #1f2937; }

/* Spacer so content doesn't hide behind fixed navbar */
body { padding-top: 80px; }

/* ── Blog Hero Section ────────────────────────────────────── */
.blog-hero {
  padding: 32px 0 36px;
  position: relative;
  text-align: center;
}

.blog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.blog-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 22ch;
  margin: 0 auto 16px;
}

.blog-hero p {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Search & Filter Bar */
.blog-search-bar {
  max-width: 520px;
  margin: 0 auto 40px;
  position: relative;
}

.blog-search-bar input {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 14px 20px 14px 48px;
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.blog-search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.blog-search-bar svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* Category Filter Pills */
.category-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}

.category-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.category-pill:hover {
  background: var(--surface-hover);
  color: #fff;
  border-color: var(--border-light);
}

.category-pill.is-active {
  background: var(--accent);
  color: #09090b;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ── Featured Article Showcase ────────────────────────────── */
.featured-showcase {
  margin-bottom: 64px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.featured-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.featured-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #0f1015;
}

.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .featured-card__image img {
  transform: scale(1.04);
}

.featured-card__content {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.featured-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.featured-card:hover h2 {
  color: var(--accent-hover);
}

.featured-card p.excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Post Meta (Author, Date, Reading time) */
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.post-meta-row span.separator {
  color: var(--border-light);
}

.post-meta-row span.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-meta-row svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* Author Avatar in Post Cards */
.post-meta-author {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.post-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border-light);
}

.post-card-avatar--initial {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  border: none;
}

/* Featured card author uses slightly bigger avatar */
.featured-card .post-card-avatar {
  width: 28px;
  height: 28px;
}

.featured-card .post-card-avatar--initial {
  font-size: 12px;
}

/* ── Post Grid ────────────────────────────────────────────── */
.section-heading-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-heading-bar h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  margin-bottom: 64px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.post-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.post-card__image-box {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f1015;
  position: relative;
}

.post-card__image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card__image-box img {
  transform: scale(1.05);
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 6px 0 10px;
  transition: color 0.2s ease;
}

.post-card:hover h3 {
  color: var(--accent-hover);
}

.post-card p.excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Empty State */
.empty-state-box {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 64px;
}

.empty-state-box svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state-box h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

.empty-state-box p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 80px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.pagination-btn:hover {
  background: var(--surface-hover);
  color: #fff;
  border-color: var(--border-light);
}

.pagination-btn.is-active {
  background: var(--accent);
  color: #09090b;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 14px var(--accent-glow);
}

.pagination-btn.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST PAGE (Reading Experience)
   ═══════════════════════════════════════════════════════════════ */

.single-post-wrapper {
  padding: 24px 0 96px;
}

/* Breadcrumb */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.post-breadcrumb a:hover {
  color: #fff;
}

.post-breadcrumb span.separator {
  color: var(--border-light);
}

/* Single Post Header */
.single-post-header {
  max-width: var(--max-w-article);
  margin: 0 auto 36px;
  text-align: left;
}

.single-post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 14px 0 20px;
}

.single-post-header p.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Author Header Bar */
.post-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

img.author-avatar-img {
  background: none;
}

.author-meta-name {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}

.author-meta-details {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Single Post Hero Cover Image */
.single-post-cover {
  max-width: 1040px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.single-post-cover img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

/* Article Layout Grid (TOC Sidebar + Content Body) */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--max-w-article);
  margin: 0 auto;
  position: relative;
}

/* Table of Contents Box */
.article-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.article-toc__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 12px;
}

.article-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-toc a {
  font-size: 14px;
  color: var(--text-secondary);
}

.article-toc a:hover {
  color: var(--accent);
}

.article-toc li.toc-level-3 {
  margin-left: 18px;
  font-size: 13px;
}

/* Longform Content Typography */
.article-body {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.82;
  color: #e4e4e7;
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 2.2em 0 0.7em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin: 1.8em 0 0.6em;
}

.article-body ul, .article-body ol {
  padding-left: 28px;
  margin-bottom: 1.5em;
}

.article-body li {
  margin-bottom: 0.5em;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(56, 189, 248, 0.06);
  padding: 18px 26px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2em 0;
  font-style: italic;
  color: #f4f4f5;
}

.article-body pre {
  background: #14151a;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  line-height: 1.6;
  color: #f1f5f9;
  margin: 2em 0;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent-hover);
}

.article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--accent-hover);
}

.article-body figure {
  margin: 2.5em 0;
}

.article-body img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 0 auto;
}

.article-body figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  margin-top: 10px;
}

.article-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  margin: 2em 0;
}

/* Social Share Bar */
.post-share-section {
  max-width: var(--max-w-article);
  margin: 48px auto;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.post-share-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--surface-hover);
  color: #fff;
  border-color: var(--accent);
}

.share-btn svg {
  width: 14px;
  height: 14px;
}

/* Author Bio Card */
.post-author-card {
  max-width: var(--max-w-article);
  margin: 0 auto 56px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  transition: var(--transition);
}

.post-author-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.author-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--accent-glow);
}

.author-card__avatar--img {
  object-fit: cover;
  border: 3px solid var(--border-light);
  background: none;
}

.author-card__content h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.author-card__content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Related Posts Section */
.related-posts-section {
  max-width: var(--max-w-page);
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-posts-section h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}

/* Consultation CTA Banner */
.blog-cta-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(56, 189, 248, 0.05) 100%), var(--surface-card);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 72px auto 0;
  max-width: var(--max-w-article);
  box-shadow: 0 0 32px var(--accent-glow);
}

.blog-cta-banner h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.blog-cta-banner p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 48ch;
  margin: 0 auto 24px;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #09090b;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.btn-cta-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #060608;
  padding: 48px 0 36px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer__links a:hover {
  color: #fff;
}

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

.post-card {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }
.post-card:nth-child(7) { animation-delay: 0.35s; }
.post-card:nth-child(8) { animation-delay: 0.4s; }
.post-card:nth-child(9) { animation-delay: 0.45s; }

.featured-card {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.blog-hero {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Responsive Media Queries ─────────────────────────────── */
@media (max-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-card__content {
    padding: 32px;
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header__nav, .btn-header-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: grid;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .post-author-card {
    flex-direction: column;
    text-align: center;
  }
  .blog-cta-banner {
    padding: 32px 20px;
  }
  .post-meta-author {
    width: 100%;
  }
}

