/* ── Reset + base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Light theme (default) */
  --bg-primary: #fff;
  --bg-secondary: #f8f9ff;
  --bg-tertiary: #f3f4f6;
  --bg-card: #fff;
  --bg-input: #fff;
  --bg-footer: #111827;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-inverse: #f9fafb;
  --border-color: #e5e7eb;
  --border-input: #d1d5db;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-card-hover:
    0 8px 28px rgba(99, 102, 241, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-sidebar:
    0 1px 4px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
  --accent: #6366f1;
  --accent-light: rgba(99, 102, 241, 0.1);
  --purple-accent: #7c3aed;
  --purple-light: rgba(124, 58, 237, 0.08);
  --badge-bg: #f1f5f9;
  --share-bg: #f3f4f6;
  --share-hover: #e5e7eb;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-input: #1e293b;
  --bg-footer: #020617;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;
  --border-color: #334155;
  --border-input: #475569;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-card-hover:
    0 8px 28px rgba(99, 102, 241, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-sidebar: 0 1px 4px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
  --accent: #818cf8;
  --accent-light: rgba(129, 140, 248, 0.15);
  --purple-accent: #a78bfa;
  --purple-light: rgba(167, 139, 250, 0.12);
  --badge-bg: #334155;
  --share-bg: #334155;
  --share-hover: #475569;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* ── Layout wrapper ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  position: relative;
}
.navbar__logo {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 0;
}
.navbar__logo img {
  width: 130px;
  height: auto;
}
.navbar__logo--dark {
  display: none;
}
[data-theme="dark"] .navbar__logo--dark {
  display: block;
}
[data-theme="dark"] .navbar__logo--light {
  display: none;
}
.theme-toggle {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  margin-top: 4px;
}
.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--accent);
}
.theme-toggle svg {
  width: 22px;
  height: 22px;
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
.navbar__links {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 4px;
  padding-bottom: 2px;
  padding-top: 4px;
}
.navbar__link {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.15s;
}
.navbar__link:hover,
.navbar__link--active {
  background: var(--bg-tertiary);
  color: var(--accent);
}

@media (min-width: 600px) {
  .navbar {
    height: 56px;
  }
  .navbar__inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 32px;
  }
  .navbar__logo {
    grid-column: auto;
    grid-row: auto;
    padding: 0;
  }
  .theme-toggle {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    margin-left: auto;
  }
  .navbar__links {
    grid-column: auto;
    grid-row: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: flex-start;
    gap: 4px;
    padding-bottom: 0;
  }
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-footer);
  color: var(--text-tertiary);
  padding: 48px 0 24px;
  transition: background 0.25s ease;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 600px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer__logo {
  width: 120px;
  margin-bottom: 8px;
}
.footer__logo--dark {
  display: none;
}
[data-theme="dark"] .footer__logo--dark {
  display: block;
}
[data-theme="dark"] .footer__logo--light {
  display: none;
}
.footer__tagline {
  font-size: 0.825rem;
  line-height: 1.6;
  margin-top: 8px;
  color: var(--text-secondary);
}
.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-tertiary);
  transition: color 0.15s;
}
.footer__social-link:hover {
  color: var(--text-inverse);
}
.footer__social-link svg {
  width: 18px;
  height: 18px;
}
.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-inverse);
  margin-bottom: 12px;
}
[data-theme="dark"] .footer__heading {
  color: var(--text-primary);
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__nav a {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}
.footer__nav a:hover {
  color: var(--text-inverse);
}
.footer__divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.footer__copy {
  text-align: center;
  font-size: 0.8rem;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 64px 16px 48px;
  text-align: center;
}
.hero__badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}
[data-theme="dark"] .hero__badge {
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
}
.hero__headline {
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero__accent {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 28px;
}
[data-theme="dark"] .hero__sub {
  color: var(--text-secondary);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Stats strip ─────────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  overflow: hidden;
  margin: 0 16px 40px;
}
@media (min-width: 600px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 48px;
  }
}
.stats-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 8px;
  background: var(--bg-secondary);
}
.stats-strip__value {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stats-strip__label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 2px;
}
[data-theme="dark"] .stats-strip__label {
  color: var(--text-tertiary);
}

/* ── Section ────────────────────────────────────────────────── */
.section {
  padding: 40px 0;
}
.section--alt {
  background: var(--bg-secondary);
  padding: 48px 0;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6366f1;
  margin-bottom: 4px;
}
[data-theme="dark"] .section__eyebrow {
  color: #818cf8;
}
.section__title {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__more {
  font-size: 0.875rem;
  color: #6366f1;
}
[data-theme="dark"] .section__more {
  color: #818cf8;
}
.section__more:hover {
  text-decoration: underline;
}

/* ── Card grid ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Card ────────────────────────────────────────────────────── */
.card {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.25s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card__img-wrap {
  position: relative;
}
.card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card__img-fallback {
  aspect-ratio: 16/9;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-tertiary);
}
.card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  color: #fff;
}
.badge--green {
  background: #16a34a;
}
.badge--red {
  background: #dc2626;
}
.badge--purple {
  background: #7c3aed;
}
.badge--blue {
  background: #6366f1;
}
.card__body {
  flex: 1;
  padding: 12px 14px 6px;
}
.card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.card__cat-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}
[data-theme="dark"] .card__cat-tag {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
}
.card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__company {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
}
[data-theme="dark"] .card__company {
  color: var(--text-secondary);
}
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 12px;
  gap: 6px;
}
.card__date {
  font-size: 0.75rem;
  color: #9ca3af;
  flex: 1;
}
[data-theme="dark"] .card__date {
  color: var(--text-tertiary);
}
.card__arrow {
  color: #6366f1;
  font-size: 1rem;
}
[data-theme="dark"] .card__arrow {
  color: #818cf8;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn--primary {
  background: #6366f1;
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: #7c3aed;
  border: 2px solid #7c3aed;
}
.btn--white {
  background: #fff;
  color: #5b21b6;
}
.btn--green {
  background: #16a34a;
  color: #fff;
}
.btn--flat {
  background: transparent;
  color: #6366f1;
  padding: 6px 12px;
}
.btn--flat:hover {
  background: #f3f4f6;
}

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  padding: 40px 0 8px;
}
.page-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7c3aed;
  margin-bottom: 4px;
}
[data-theme="dark"] .page-header__eyebrow {
  color: #a78bfa;
}
.page-header__title {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.page-header__sub {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 24px;
}
[data-theme="dark"] .page-header__sub {
  color: var(--text-secondary);
}

/* ── Controls (search + filters) ───────────────────────────── */
.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .controls {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}
.search-input {
  padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--border-input);
  border-radius: 99px;
  font-size: 0.9rem;
  width: 100%;
  background: var(--bg-input);
  outline: none;
  color: var(--text-primary);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
@media (min-width: 640px) {
  .search-input {
    width: 300px;
  }
}
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}
[data-theme="dark"] .search-icon {
  color: var(--text-tertiary);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border-input);
  background: var(--bg-input);
  color: var(--text-primary);
  transition: all 0.15s;
}
.chip:hover,
.chip--active {
  background: var(--purple-accent);
  color: #fff;
  border-color: var(--purple-accent);
}
.chip--blue:hover,
.chip--blue.chip--active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.pagination__btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-input);
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.pagination__btn:hover {
  background: var(--bg-tertiary);
}
.pagination__btn--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pagination__btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Result count ────────────────────────────────────────────── */
.result-count {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 20px;
}
[data-theme="dark"] .result-count {
  color: var(--text-tertiary);
}
.result-count strong {
  font-weight: 600;
  color: #374151;
}
[data-theme="dark"] .result-count strong {
  color: var(--text-primary);
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  border-radius: 24px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 56px 24px;
  text-align: center;
  margin: 48px 0;
}
.cta-banner__title {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner__sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0;
  color: #9ca3af;
  font-size: 0.9rem;
  gap: 10px;
  text-align: center;
}
[data-theme="dark"] .empty-state {
  color: var(--text-tertiary);
}
.empty-state__icon {
  font-size: 3rem;
}

/* ── Course / Job post layout ───────────────────────────────── */
.post-page {
  padding-bottom: 48px;
}
.post-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.back-link {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}
.back-link:hover {
  color: var(--accent);
}
.hero-img {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.hero-img__fallback {
  background: #f1f5f9;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #9ca3af;
}
[data-theme="dark"] .hero-img__fallback {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}

/* post 2-col layout */
.post-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .post-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .post-main {
    flex: 1;
    min-width: 0;
  }
  .post-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 72px;
  }
}
.post-sidebar-card {
  border-radius: 20px;
  padding: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sidebar);
  transition: background 0.25s ease;
}

/* post title + meta */
.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
[data-theme="dark"] .post-cat-chip {
  background: #a78bfa;
}
.post-cat-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: #7c3aed;
  color: #fff;
}
.post-title {
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 0.875rem;
}
[data-theme="dark"] .post-meta {
  color: var(--text-secondary);
}
.post-meta__item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* sections inside post */
.post-section {
  margin-bottom: 24px;
}
.post-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.info-box {
  border-radius: 16px;
  padding: 20px;
}
.info-box--green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
[data-theme="dark"] .info-box--green {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.3);
}
.info-box--purple {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
}
[data-theme="dark"] .info-box--purple {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
}
.info-box--amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
}
[data-theme="dark"] .info-box--amber {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
}
.learn-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.learn-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* video embed */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* rich content */
.rich-content {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-primary);
}
.rich-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 28px 0 12px;
}
.rich-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 10px;
}
.rich-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 8px;
}
.rich-content p {
  margin: 0 0 14px;
}
.rich-content ul,
.rich-content ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.rich-content li {
  margin-bottom: 6px;
}
.rich-content strong {
  font-weight: 600;
}
.rich-content a {
  color: var(--purple-accent);
  text-decoration: underline;
}
.rich-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}
.rich-content blockquote {
  border-left: 3px solid var(--purple-accent);
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--purple-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* sidebar price / coupon */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.price-free {
  font-size: 1.6rem;
  font-weight: 800;
  color: #16a34a;
}
.price-orig {
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: line-through;
}
.coupon-box {
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  background: #f0fdf4;
  border: 1px dashed #86efac;
}
[data-theme="dark"] .coupon-box {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.3);
}
.coupon-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 6px;
}
[data-theme="dark"] .coupon-label {
  color: var(--text-tertiary);
}
.coupon-code {
  font-size: 1rem;
  font-weight: 700;
  color: #15803d;
  font-family: monospace;
  word-break: break-all;
}
[data-theme="dark"] .coupon-code {
  color: #4ade80;
}
.coupon-status {
  margin-top: 8px;
}
.badge-valid {
  background: #16a34a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
}
.badge-expired {
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
}

.includes-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 12px;
}
[data-theme="dark"] .includes-title {
  color: var(--text-tertiary);
}
.includes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.includes-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

/* info list (sidebar) */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.info-key {
  font-size: 0.7rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
[data-theme="dark"] .info-key {
  color: var(--text-tertiary);
}
.info-val {
  font-size: 0.875rem;
  font-weight: 600;
}

/* share row */
.share-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-right: 4px;
}
[data-theme="dark"] .share-label {
  color: var(--text-tertiary);
}
.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: var(--share-bg);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s;
}
.share-btn:hover {
  background: var(--share-hover);
}

/* job overview */
.overview-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 16px;
}
[data-theme="dark"] .overview-title {
  color: var(--text-tertiary);
}
.overview-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.overview-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.overview-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.overview-key {
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
[data-theme="dark"] .overview-key {
  color: var(--text-tertiary);
}
.overview-val {
  font-size: 0.875rem;
  font-weight: 600;
}

/* job meta chips */
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}
.meta-chip--primary {
  background: #6366f1;
  color: #fff;
}
.meta-chip--gray {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* ── Toast notification ──────────────────────────────────────── */
.toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* success (green) */
.toast--success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
}
/* error (red) */
.toast--error {
  background: linear-gradient(135deg, #dc2626, #f87171);
  color: #fff;
}

/* ── Code block copy button ──────────────────────────────── */
.code-block-wrapper {
  position: relative;
  margin: 14px 0;
}
.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  opacity: 0;
  z-index: 2;
}
[data-theme="dark"] .code-copy-btn {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}
.code-block-wrapper:hover .code-copy-btn {
  opacity: 1;
}
.code-copy-btn:hover {
  background: rgba(107, 114, 128, 0.3);
  color: var(--text-primary);
}
[data-theme="dark"] .code-copy-btn:hover {
  background: rgba(156, 163, 175, 0.35);
}
