* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.15), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.18), transparent 28%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
  color: #0f172a;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-blob {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.7;
  pointer-events: none;
}

.page-blob-a {
  width: 20rem;
  height: 20rem;
  top: -6rem;
  right: -6rem;
  background: rgba(34, 197, 94, 0.18);
}

.page-blob-b {
  width: 18rem;
  height: 18rem;
  bottom: 5rem;
  left: -5rem;
  background: rgba(14, 165, 233, 0.14);
}

.app-nav {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.16);
}

.nav-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-chip,
.status-pill,
.score-pill,
.skill-chip,
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-chip {
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.container,
.container-fluid {
  position: relative;
  z-index: 1;
}

.hero-section,
.dashboard-hero,
.result-hero,
.auth-layout {
  position: relative;
  z-index: 1;
}

.hero-section {
  padding: 1rem 0 0.5rem;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0ea5e9;
}

.hero-title,
.section-title {
  color: #0f172a;
  letter-spacing: -0.05em;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  line-height: 0.95;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-copy {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #475569;
  max-width: 58ch;
}

.hero-btn {
  min-width: 10rem;
}

.hero-btn-alt {
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-stat,
.mini-card,
.feature-panel,
.panel-card,
.stat-card,
.auth-panel,
.content-band,
.footer-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.hero-stat {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.hero-stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: #64748b;
}

.feature-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  padding: 1.4rem;
  color: #fff;
}

.feature-panel-header,
.panel-header,
.dashboard-hero,
.result-hero,
.footer-card,
.content-band {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.status-pill {
  padding: 0.45rem 0.75rem;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-size: 0.78rem;
}

.soft-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
}

.soft-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.6);
}

.btn-accent {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 25px rgba(14, 165, 233, 0.25);
}

.btn-accent:hover {
  color: #fff;
  transform: translateY(-1px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.mini-card,
.panel-card,
.auth-panel,
.stat-card,
.content-band,
.footer-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.mini-card {
  padding: 1.35rem;
}

.mini-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 1rem 0 0.5rem;
}

.mini-card p {
  margin-bottom: 0;
  color: #64748b;
  line-height: 1.65;
}

.mini-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #2563eb);
}

.section-title {
  font-size: clamp(1.7rem, 2vw, 2.35rem);
  line-height: 1.1;
  font-weight: 800;
}

.content-band {
  align-items: center;
  padding: 1.4rem;
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.domain-tags span,
.skill-chip {
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.domain-tags span {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.auth-panel {
  padding: 1.8rem;
}

.auth-panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  color: rgba(255, 255, 255, 0.88);
}

.auth-panel-copy .hero-title,
.auth-panel-copy .hero-copy,
.auth-panel-copy .eyebrow {
  color: #fff;
}

.auth-benefits {
  display: grid;
  gap: 0.65rem;
}

.auth-benefits div {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.auth-panel-form {
  background: rgba(255, 255, 255, 0.86);
}

.dashboard-hero,
.result-hero {
  align-items: center;
  margin-bottom: 1rem;
}

.stat-card {
  padding: 1.4rem;
}

.accent-a {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.14), rgba(255, 255, 255, 0.86));
}

.accent-b {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.14), rgba(255, 255, 255, 0.86));
}

.accent-c {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(255, 255, 255, 0.86));
}

.stat-label {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-note {
  color: #475569;
}

.stat-clamp {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.15;
}

.panel-card {
  padding: 1.4rem;
}

.table-modern {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(15, 23, 42, 0.02);
}

.table-modern thead th {
  color: #475569;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.table-modern tbody td {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 1rem;
  padding-bottom: 1rem;
  vertical-align: top;
}

.score-pill,
.score-badge {
  padding: 0.48rem 0.8rem;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 0.88rem;
}

.score-badge {
  font-size: 1rem;
}

.modern-progress {
  height: 0.95rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.progress-bar {
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  border-radius: 999px;
}

.metric-card[data-theme="light"] {
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.04);
  min-height: 100%;
}

.metric-card span [data-theme="light"] {
  display: block;
  color: #64748b;
  font-size: 0.84rem;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-card strong [data-theme="light"] {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.5;
}
.matric-card strong [data-theme="light"]{
  color: #f8fafc;
}

.guidance-box [data-theme="light"] {
  color: #334155;
  line-height: 1.8;
  white-space: normal;
}
.guidance-box [data-theme="dark"] {
  color: #f8fafc;
  line-height: 1.8;
  white-space: normal;
}


.skill-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-chip.success {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.skill-chip.warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.question-stack {
  display: grid;
  gap: 0.75rem;
}

.question-item [data-theme="light"] {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
  line-height: 1.6;
  text-align: justify;
}
.question-item [data-theme="dark"] {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
  color: #f8fafc;
  line-height: 1.6;
  text-align: justify;
}
[data-theme="light"] .back {
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    border-radius: 1rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border: 1px solid #090d16;
}
[data-theme="light"] .back:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}
[data-theme="dark"] .back {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.18);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}


[data-theme="dark"] .back:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.insight-list {
  display: grid;
  gap: 0.75rem;
}

.insight-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
}

.insight-item span {
  color: #64748b;
}

.insight-item strong {
  text-align: right;
  color: #0f172a;
}

.footer-card {
  align-items: center;
  padding: 1.1rem 1.25rem;
  margin-top: 1.5rem;
}

.footer-title {
  font-weight: 800;
  color: #0f172a;
}

.footer-subtitle,
.footer-meta {
  color: #64748b;
  font-size: 0.93rem;
}

@media (max-width: 991.98px) {

  .hero-stats,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .auth-panel {
    padding: 1.25rem;
  }

  .dashboard-hero,
  .result-hero,
  .content-band,
  .footer-card {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .nav-chip {
    font-size: 0.72rem;
  }
}

body {
  background: linear-gradient(180deg, #f6f8fc 0%, #eef3f9 100%);
  min-height: 100vh;
}

.app-nav {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.stat-card {
  border: 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.progress-bar {
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

/* Global Blog & High Contrast Overrides */
.blog-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0f172a;
}

.text-dark {
  color: #0f172a !important;
}

.text-secondary {
  color: #475569 !important;
}

.text-muted {
  color: #64748b !important;
}

.breadcrumb-item a {
  color: #475569 !important;
}

.breadcrumb-item.active {
  color: #0284c7 !important;
}

.form-control::placeholder {
  color: #64748b !important;
  opacity: 1;
}

.footer-card .btn-outline-dark {
  color: #0f172a !important;
  border-color: #0f172a !important;
}

.footer-card .btn-outline-dark:hover {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Dark / Light Theme Switcher Overrides
   ========================================================================== */
[data-theme="dark"] body {
  background: linear-gradient(180deg, #090d16 0%, #0f172a 100%) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .footer-title,
[data-theme="dark"] .panel-title,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #ffffff !important;
}

[data-theme="dark"] .hero-copy,
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .footer-subtitle,
[data-theme="dark"] .footer-meta,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .mini-card p {
  color: #94a3b8 !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .mini-card,
[data-theme="dark"] .panel-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .auth-panel-form,
[data-theme="dark"] .footer-card {
  background: #111827 !important;
  color: #f8fafc !important;
  border-color: #1f2937 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .soft-input {
  background-color: #1f2937 !important;
  color: #ffffff !important;
  border-color: #374151 !important;
}

[data-theme="dark"] .form-control::placeholder {
  color: #9ca3af !important;
}

[data-theme="dark"] .table-modern thead th {
  color: #94a3b8 !important;
  border-bottom-color: #374151 !important;
}

[data-theme="dark"] .table-modern tbody td {
  border-top-color: #1f2937 !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .footer-card .btn-outline-dark,
[data-theme="dark"] .btn-outline-dark {
  color: #f8fafc !important;
  border-color: #475569 !important;
}

[data-theme="dark"] .footer-card .btn-outline-dark:hover,
[data-theme="dark"] .btn-outline-dark:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Dashboard & Form Dark Mode Overrides */
[data-theme="dark"] .form-label {
  color: #f8fafc !important;
  font-weight: 600;
}

[data-theme="dark"] .insight-item {
  background: #1f2937 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .insight-item span {
  color: #94a3b8 !important;
}

[data-theme="dark"] .insight-item strong {
  color: #ffffff !important;
}

[data-theme="dark"] input[type="file"]::file-selector-button {
  background-color: #374151 !important;
  color: #ffffff !important;
  border-color: #4b5563 !important;
}

/* Explicit Light Mode Overrides */
[data-theme="light"] body {
  background: linear-gradient(180deg, #f6f8fc 0%, #eef3f9 100%) !important;
  color: #0f172a !important;
}

[data-theme="light"] .panel-card,

[data-theme="light"] .card,
[data-theme="light"] .mini-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .auth-panel-form,
[data-theme="light"] .footer-card {
  background: rgba(255, 255, 255, 0.85) !important;
  color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

[data-theme="light"] .panel-title,
[data-theme="light"] .section-title,
/* [data-theme="light"] .hero-title, */
[data-theme="light"] .footer-title,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #0f172a !important;
}

[data-theme="light"] .hero-title {
  color: #f8fafc
}

[data-theme="light"] .form-label {
  color: #0f172a !important;
  font-weight: 600;
}

[data-theme="light"] .form-control,
[data-theme="light"] .soft-input {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

[data-theme="light"] .form-control::placeholder {
  color: #64748b !important;
}

[data-theme="light"] input[type="file"]::file-selector-button {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .insight-item {
  background: rgba(15, 23, 42, 0.04) !important;
  color: #334155 !important;
}

[data-theme="light"] .insight-item span {
  color: #64748b !important;
}

[data-theme="light"] .insight-item strong {
  color: #0f172a !important;
}

/* ==========================================================================
   ALWAYS-DARK ELEMENTS — text must stay WHITE in BOTH light & dark mode
   These elements have a permanently dark/black background by design.
   The light-mode global h1-h6 override (#0f172a) was winning → camouflage.
   ========================================================================== */

/* --- feature-panel (dark gradient card on home page upload section) --- */
.feature-panel,
[data-theme="light"] .feature-panel,
[data-theme="dark"] .feature-panel {
  color: #fff !important;
}

[data-theme="light"] .feature-panel .panel-kicker,
[data-theme="light"] .feature-panel .panel-title,
[data-theme="light"] .feature-panel h1,
[data-theme="light"] .feature-panel h2,
[data-theme="light"] .feature-panel h3,
[data-theme="light"] .feature-panel h4,
[data-theme="light"] .feature-panel h5,
[data-theme="light"] .feature-panel h6,
[data-theme="light"] .feature-panel .form-label,
[data-theme="light"] .feature-panel .text-secondary,
[data-theme="light"] .feature-panel .section-title {
  color: #ffffff !important;
}

/* --- auth-panel-copy (dark gradient left panel on login / register) --- */
[data-theme="light"] .auth-panel-copy,
[data-theme="light"] .auth-panel-copy .hero-title,
[data-theme="light"] .auth-panel-copy h1,
[data-theme="light"] .auth-panel-copy h2,
[data-theme="light"] .auth-panel-copy h3,
[data-theme="light"] .auth-panel-copy h4,
[data-theme="light"] .auth-panel-copy h5,
[data-theme="light"] .auth-panel-copy h6 {
  color: #ffffff !important;
}

[data-theme="light"] .hero-title {
    color: #0f172a !important;
}
[data-theme="dark"] .hero-title {
    color: #f8fafc !important;
}

[data-theme="light"] .auth-panel-copy .hero-copy,
[data-theme="light"] .auth-panel-copy .eyebrow,
[data-theme="light"] .auth-panel-copy .text-secondary {
  color: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="light"] .auth-panel-copy .auth-benefits div {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* --- feature-panel form elements (file input / textarea labels) --- */
[data-theme="light"] .feature-panel .form-control,
[data-theme="light"] .feature-panel .soft-input {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="light"] .feature-panel .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="light"] .feature-panel input[type="file"]::file-selector-button {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* --- status-pill inside feature-panel is already light green, keep it --- */

/* --- auth-panel-copy in dark mode (already white, but re-confirm) --- */
[data-theme="dark"] .auth-panel-copy,
[data-theme="dark"] .auth-panel-copy .hero-title,
[data-theme="dark"] .auth-panel-copy h1,
[data-theme="dark"] .auth-panel-copy h2 {
  color: #ffffff !important;
}

[data-theme="dark"] .auth-panel-copy .hero-copy,
[data-theme="dark"] .auth-panel-copy .eyebrow {
  color: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="dark"] .auth-panel-copy .auth-benefits div {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* --- feature-panel dark mode form elements --- */
[data-theme="dark"] .feature-panel .form-control,
[data-theme="dark"] .feature-panel .soft-input {
  background-color: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
}

[data-theme="dark"] .feature-panel .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .feature-panel input[type="file"]::file-selector-button {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
}

/* ==========================================================================
   BLOG PAGES — Dark & Light Mode Contrast Fixes
   (blog/index.html + blog/post.html)
   ========================================================================== */

/* --- Blog cards: bg-white hardcoded → override in dark mode --- */
[data-theme="dark"] .card.bg-white,
[data-theme="dark"] .card[style*="bg-white"] {
  background-color: #111827 !important;
  border-color: #1f2937 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .card.bg-white .text-dark,
[data-theme="dark"] .card.bg-white h3,
[data-theme="dark"] .card.bg-white h4,
[data-theme="dark"] .card.bg-white a.text-dark {
  color: #f8fafc !important;
}

[data-theme="dark"] .card.bg-white .text-secondary,
[data-theme="dark"] .card.bg-white .text-muted,
[data-theme="dark"] .card.bg-white small {
  color: #94a3b8 !important;
}

[data-theme="dark"] .card.bg-white .border-top,
[data-theme="dark"] .card.bg-white .pt-3 {
  border-color: #374151 !important;
}

/* --- btn-outline-dark: dark border + dark text on dark bg → camouflage --- */
[data-theme="dark"] .btn-outline-dark {
  color: #f8fafc !important;
  border-color: #475569 !important;
  background: transparent !important;
}

[data-theme="dark"] .btn-outline-dark:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* btn-dark in dark mode should remain readable */
[data-theme="dark"] .btn-dark {
  background-color: #374151 !important;
  border-color: #4b5563 !important;
  color: #f8fafc !important;
}

/* --- Blog search input (bg-white text-dark hardcoded) --- */
[data-theme="dark"] input.bg-white,
[data-theme="dark"] .form-control.bg-white {
  background-color: #1f2937 !important;
  color: #f8fafc !important;
  border-color: #374151 !important;
}

[data-theme="dark"] input.bg-white::placeholder,
[data-theme="dark"] .form-control.bg-white::placeholder {
  color: #9ca3af !important;
}

/* --- CTA banner: bg-primary with h2 (light mode overrides were making h2 dark) --- */
.card.bg-primary h2,
.card.bg-primary h3,
[data-theme="light"] .card.bg-primary h2,
[data-theme="light"] .card.bg-primary h3,
[data-theme="dark"]  .card.bg-primary h2,
[data-theme="dark"]  .card.bg-primary h3 {
  color: #ffffff !important;
}

/* --- Blog featured card: bg-white border-0 text-dark --- */
[data-theme="dark"] .card.border-0.text-dark {
  background-color: #111827 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .card.border-0.text-dark h2,
[data-theme="dark"] .card.border-0.text-dark a.text-dark {
  color: #f8fafc !important;
}

[data-theme="dark"] .card.border-0.text-dark .text-secondary {
  color: #94a3b8 !important;
}

[data-theme="dark"] .card.border-0.text-dark .text-muted {
  color: #6b7280 !important;
}

/* --- "No articles found" empty state --- */
[data-theme="dark"] .text-center .text-dark {
  color: #f8fafc !important;
}

/* ==========================================================================
   BLOG POST (post.html) — Dark Mode for .blog-content inline styles
   The <style> block in post.html uses hardcoded light colors.
   These overrides win via [data-theme] specificity.
   ========================================================================== */

[data-theme="dark"] .blog-content {
  color: #d1d5db !important;
}

[data-theme="dark"] .blog-content h1,
[data-theme="dark"] .blog-content h2,
[data-theme="dark"] .blog-content h3,
[data-theme="dark"] .blog-content h4 {
  color: #f8fafc !important;
}

[data-theme="dark"] .blog-content p {
  color: #d1d5db !important;
}

[data-theme="dark"] .blog-content ul,
[data-theme="dark"] .blog-content ol,
[data-theme="dark"] .blog-content li {
  color: #d1d5db !important;
}

[data-theme="dark"] .blog-content blockquote {
  background: rgba(14, 165, 233, 0.10) !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .blog-content code {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #7dd3fc !important;
}

/* pre block is already always dark — pre code is already white ✅ */

[data-theme="dark"] .blog-content table {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

[data-theme="dark"] .blog-content th {
  background: #111827 !important;
  color: #f8fafc !important;
  border-color: #374151 !important;
}

[data-theme="dark"] .blog-content td {
  color: #d1d5db !important;
  border-color: #374151 !important;
}

/* --- Post CTA card: bg-white border-primary text-dark --- */
[data-theme="dark"] #cta-section.card {
  background-color: #111827 !important;
  border-color: #3b82f6 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] #cta-section h3,
[data-theme="dark"] #cta-section .text-dark {
  color: #f8fafc !important;
}

[data-theme="dark"] #cta-section .text-secondary {
  color: #94a3b8 !important;
}

/* --- Related articles cards (bg-white) --- */
[data-theme="dark"] .pt-4 .card.bg-white {
  background: #111827 !important;
  border-color: #1f2937 !important;
}

[data-theme="dark"] .pt-4 .card.bg-white a.text-dark {
  color: #f8fafc !important;
}

[data-theme="dark"] .pt-4 .card.bg-white .text-muted {
  color: #9ca3af !important;
}

/* --- Breadcrumb contrast --- */
[data-theme="dark"] .breadcrumb-item a {
  color: #94a3b8 !important;
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
  color: #6b7280 !important;
}

/* --- Author / date meta text in post header --- */
[data-theme="dark"] .blog-content + div .text-secondary,
[data-theme="dark"] .text-secondary.small {
  color: #94a3b8 !important;
}

[data-theme="dark"] strong.text-dark {
  color: #f8fafc !important;
}

/* ==========================================================================
   LIGHT MODE — Blog specific fixes
   ========================================================================== */

/* btn-outline-dark on light bg is fine, but confirm readable */
[data-theme="light"] .btn-outline-dark {
  color: #0f172a !important;
  border-color: #0f172a !important;
}

[data-theme="light"] .btn-outline-dark:hover {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

/* Blog content on light mode */
[data-theme="light"] .blog-content {
  color: #334155 !important;
}

[data-theme="light"] .blog-content h1,
[data-theme="light"] .blog-content h2,
[data-theme="light"] .blog-content h3,
[data-theme="light"] .blog-content h4 {
  color: #0f172a !important;
}

[data-theme="light"] .blog-content p,
[data-theme="light"] .blog-content ul,
[data-theme="light"] .blog-content ol,
[data-theme="light"] .blog-content li {
  color: #334155 !important;
}

[data-theme="light"] .blog-content table {
  background: #ffffff !important;
}

[data-theme="light"] .blog-content th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .blog-content td {
  color: #334155 !important;
}

/* =========================================================
   BLOG INDEX PAGE
   LIGHT + DARK MODE
========================================================= */


/* =========================================================
   COMMON
========================================================= */

.hero-title,
.blog-post-title,
.blog-hero-description,
.blog-summary,
.featured-summary,
.blog-muted,
.featured-meta,
.empty-blog-title,
.featured-label {
    transition:
        color 0.25s ease,
        background 0.25s ease;
}


/* =========================================================
   HERO TITLE
========================================================= */

[data-theme="light"] .hero-title {
    color: #0f172a !important;
}

[data-theme="dark"] .hero-title {
    color: #f8fafc !important;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

[data-theme="light"] .blog-hero-description {
    color: #475569 !important;
}

[data-theme="dark"] .blog-hero-description {
    color: #94a3b8 !important;
}


/* =========================================================
   SEARCH INPUT
========================================================= */

.blog-search {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* LIGHT */

[data-theme="light"] .blog-search {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .blog-search::placeholder {
    color: #64748b !important;
}


/* DARK */

[data-theme="dark"] .blog-search {
    background: #111827 !important;
    color: #f8fafc !important;
    border: 1px solid #374151 !important;
}

[data-theme="dark"] .blog-search::placeholder {
    color: #64748b !important;
}


/* INPUT FOCUS */

.blog-search:focus {
    border-color: #0ea5e9 !important;

    box-shadow:
        0 0 0 0.2rem rgba(14, 165, 233, 0.18) !important;
}


/* =========================================================
   CATEGORY BUTTONS
========================================================= */

.category-btn {
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}


/* LIGHT MODE */

[data-theme="light"] .category-btn {
    background: transparent !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

[data-theme="light"] .category-btn:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;

    transform: translateY(-2px);
}


/* DARK MODE */

[data-theme="dark"] .category-btn {
    background: transparent !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .category-btn:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #f8fafc !important;

    transform: translateY(-2px);
}


/* ACTIVE CATEGORY */

[data-theme="light"] .active-category {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

[data-theme="dark"] .active-category {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #f8fafc !important;
}


/* =========================================================
   FEATURED BLOG CARD
========================================================= */

.featured-blog-card {
    border-radius: 20px !important;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


/* LIGHT */

[data-theme="light"] .featured-blog-card {
    background: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}


/* DARK */

[data-theme="dark"] .featured-blog-card {
    background: #111827 !important;
    border: 1px solid #263244 !important;
}


/* FEATURED CARD HOVER */

.featured-blog-card:hover {
    transform: translateY(-3px);
}


[data-theme="light"] .featured-blog-card:hover {
    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.12) !important;
}


[data-theme="dark"] .featured-blog-card:hover {
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.45) !important;
}


/* =========================================================
   FEATURED TEXT
========================================================= */

[data-theme="light"] .featured-label {
    color: #475569 !important;
}

[data-theme="dark"] .featured-label {
    color: #94a3b8 !important;
}


[data-theme="light"] .featured-summary {
    color: #475569 !important;
}

[data-theme="dark"] .featured-summary {
    color: #94a3b8 !important;
}


[data-theme="light"] .featured-meta {
    color: #475569 !important;
}

[data-theme="dark"] .featured-meta {
    color: #94a3b8 !important;
}


[data-theme="light"] .featured-meta strong {
    color: #0f172a !important;
}

[data-theme="dark"] .featured-meta strong {
    color: #f8fafc !important;
}


/* =========================================================
   BLOG TITLE
========================================================= */

.blog-post-title {
    transition:
        color 0.2s ease;
}


/* LIGHT */

[data-theme="light"] .blog-post-title {
    color: #0f172a !important;
}

[data-theme="light"] .blog-post-title:hover {
    color: #0284c7 !important;
}


/* DARK */

[data-theme="dark"] .blog-post-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .blog-post-title:hover {
    color: #38bdf8 !important;
}


/* =========================================================
   BLOG POST CARDS
========================================================= */

.blog-card {
    border-radius: 16px !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


/* LIGHT */

[data-theme="light"] .blog-card {
    background: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}


/* DARK */

[data-theme="dark"] .blog-card {
    background: #111827 !important;
    border: 1px solid #263244 !important;
}


/* CARD HOVER */

.blog-card:hover {
    transform: translateY(-6px);
}


[data-theme="light"] .blog-card:hover {
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.12) !important;
}


[data-theme="dark"] .blog-card:hover {
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45) !important;
}


/* =========================================================
   BLOG SUMMARY
========================================================= */

[data-theme="light"] .blog-summary {
    color: #64748b !important;
}

[data-theme="dark"] .blog-summary {
    color: #94a3b8 !important;
}


/* =========================================================
   MUTED TEXT
========================================================= */

[data-theme="light"] .blog-muted {
    color: #64748b !important;
}

[data-theme="dark"] .blog-muted {
    color: #94a3b8 !important;
}


/* =========================================================
   BLOG CARD FOOTER
========================================================= */

.blog-card-footer {
    border-top: 1px solid;
}


[data-theme="light"] .blog-card-footer {
    border-color: #e2e8f0 !important;
}

[data-theme="dark"] .blog-card-footer {
    border-color: #263244 !important;
}


/* =========================================================
   READ MORE LINK
========================================================= */

.read-more-link {
    color: #0ea5e9 !important;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.read-more-link:hover {
    color: #0284c7 !important;

    transform: translateX(3px);
}


/* =========================================================
   EMPTY STATE
========================================================= */

[data-theme="light"] .empty-blog-title {
    color: #0f172a !important;
}

[data-theme="dark"] .empty-blog-title {
    color: #f8fafc !important;
}


/* =========================================================
   CTA BANNER
========================================================= */

.blog-cta {
    border-radius: 20px !important;

    background:
        linear-gradient(
            135deg,
            #0ea5e9,
            #2563eb
        ) !important;

    border: none !important;

    color: #ffffff !important;
}


/* CTA TEXT ALWAYS WHITE */

.blog-cta h1,
.blog-cta h2,
.blog-cta h3,
.blog-cta h4,
.blog-cta h5,
.blog-cta h6,
.blog-cta p {
    color: #ffffff !important;
}


/* CTA BUTTON */

.blog-cta .btn-light {
    color: #2563eb !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.blog-cta .btn-light:hover {
    background: #f8fafc !important;

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2) !important;
}


/* =========================================================
   PRIMARY BUTTON HOVER
========================================================= */

.btn-primary {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(14, 165, 233, 0.25);
}


/* =========================================================
   RESPONSIVE
========================================================= */
/* =========================================================
   BLOG DETAIL PAGE
   LIGHT + DARK MODE
========================================================= */


/* =========================================================
   BREADCRUMB
========================================================= */

.blog-breadcrumb-link {
    transition: color 0.2s ease;
}


/* LIGHT MODE */

[data-theme="light"] .blog-breadcrumb-link {
    color: #64748b !important;
}

[data-theme="light"] .blog-breadcrumb-link:hover {
    color: #0284c7 !important;
}


/* DARK MODE */

[data-theme="dark"] .blog-breadcrumb-link {
    color: #94a3b8 !important;
}

[data-theme="dark"] .blog-breadcrumb-link:hover {
    color: #38bdf8 !important;
}


/* ACTIVE BREADCRUMB */

.blog-breadcrumb-active {
    color: #0ea5e9 !important;
}


/* =========================================================
   BLOG HEADER
========================================================= */

.blog-detail-header {
    border-bottom: 1px solid;
}


/* LIGHT */

[data-theme="light"] .blog-detail-header {
    border-color: #e2e8f0 !important;
}


/* DARK */

[data-theme="dark"] .blog-detail-header {
    border-color: #263244 !important;
}


/* =========================================================
   BLOG DETAIL TITLE
========================================================= */

[data-theme="light"] .blog-detail-title {
    color: #0f172a !important;
}

[data-theme="dark"] .blog-detail-title {
    color: #f8fafc !important;
}


/* =========================================================
   BLOG DETAIL SUMMARY
========================================================= */

[data-theme="light"] .blog-detail-summary {
    color: #475569 !important;
}

[data-theme="dark"] .blog-detail-summary {
    color: #94a3b8 !important;
}


/* =========================================================
   AUTHOR + DATE
========================================================= */

[data-theme="light"] .blog-detail-meta {
    color: #64748b !important;
}

[data-theme="dark"] .blog-detail-meta {
    color: #94a3b8 !important;
}


/* AUTHOR */

[data-theme="light"] .blog-author {
    color: #0f172a !important;
}

[data-theme="dark"] .blog-author {
    color: #f8fafc !important;
}


/* =========================================================
   ARTICLE CONTENT
========================================================= */

.blog-content {
    line-height: 1.8;
}


/* ARTICLE TEXT */

[data-theme="light"] .blog-content {
    color: #334155 !important;
}

[data-theme="dark"] .blog-content {
    color: #cbd5e1 !important;
}


/* =========================================================
   ARTICLE HEADINGS
========================================================= */

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
}


[data-theme="light"] .blog-content h1,
[data-theme="light"] .blog-content h2,
[data-theme="light"] .blog-content h3,
[data-theme="light"] .blog-content h4,
[data-theme="light"] .blog-content h5,
[data-theme="light"] .blog-content h6 {
    color: #0f172a !important;
}


[data-theme="dark"] .blog-content h1,
[data-theme="dark"] .blog-content h2,
[data-theme="dark"] .blog-content h3,
[data-theme="dark"] .blog-content h4,
[data-theme="dark"] .blog-content h5,
[data-theme="dark"] .blog-content h6 {
    color: #f8fafc !important;
}


/* =========================================================
   PARAGRAPHS
========================================================= */

.blog-content p {
    margin-bottom: 1.4rem;
}


[data-theme="light"] .blog-content p {
    color: #334155 !important;
}


[data-theme="dark"] .blog-content p {
    color: #cbd5e1 !important;
}


/* =========================================================
   LISTS
========================================================= */

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}


.blog-content li {
    margin-bottom: 0.5rem;
}


[data-theme="light"] .blog-content ul,
[data-theme="light"] .blog-content ol,
[data-theme="light"] .blog-content li {
    color: #334155 !important;
}


[data-theme="dark"] .blog-content ul,
[data-theme="dark"] .blog-content ol,
[data-theme="dark"] .blog-content li {
    color: #cbd5e1 !important;
}


/* =========================================================
   BLOCKQUOTE
========================================================= */

.blog-content blockquote {
    border-left: 4px solid #0ea5e9;

    padding: 1rem 1.5rem;

    border-radius: 0 12px 12px 0;

    margin: 1.5rem 0;

    font-style: italic;
}


/* LIGHT */

[data-theme="light"] .blog-content blockquote {
    background: rgba(14, 165, 233, 0.06);
    color: #0f172a !important;
}


/* DARK */

[data-theme="dark"] .blog-content blockquote {
    background: rgba(14, 165, 233, 0.1);
    color: #e2e8f0 !important;
}


/* =========================================================
   INLINE CODE
========================================================= */

.blog-content code {
    padding: 0.2rem 0.4rem;

    border-radius: 4px;

    font-size: 0.9em;

    font-weight: 600;
}


/* LIGHT */

[data-theme="light"] .blog-content code {
    background: rgba(15, 23, 42, 0.08);
    color: #0284c7 !important;
}


/* DARK */

[data-theme="dark"] .blog-content code {
    background: #1e293b;
    color: #38bdf8 !important;
}


/* =========================================================
   CODE BLOCK
========================================================= */

.blog-content pre {
    background: #0f172a;

    padding: 1.25rem;

    border-radius: 12px;

    border: 1px solid #1e293b;

    overflow-x: auto;

    margin: 1.5rem 0;
}


.blog-content pre code {
    background: transparent !important;

    padding: 0;

    color: #f8fafc !important;

    font-weight: normal;
}


/* =========================================================
   TABLE
========================================================= */

.blog-content table {
    width: 100%;

    margin: 1.5rem 0;

    border-collapse: collapse;

    border-radius: 12px;

    overflow: hidden;
}


/* LIGHT MODE */

[data-theme="light"] .blog-content table {
    background: #ffffff;

    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05);
}


/* DARK MODE */

[data-theme="dark"] .blog-content table {
    background: #111827;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3);
}


/* TABLE CELLS */

.blog-content th,
.blog-content td {
    padding: 0.85rem 1rem;

    font-size: 0.95rem;
}


/* LIGHT */

[data-theme="light"] .blog-content th,
[data-theme="light"] .blog-content td {
    border: 1px solid #e2e8f0;
    color: #334155 !important;
}


[data-theme="light"] .blog-content th {
    background: #f1f5f9;
    color: #0f172a !important;
    font-weight: 700;
}


/* DARK */

[data-theme="dark"] .blog-content th,
[data-theme="dark"] .blog-content td {
    border: 1px solid #263244;
    color: #cbd5e1 !important;
}


[data-theme="dark"] .blog-content th {
    background: #1e293b;
    color: #f8fafc !important;
    font-weight: 700;
}


/* =========================================================
   CTA CARD
========================================================= */

.blog-detail-cta {
    border-radius: 20px;

    border: 2px solid;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* LIGHT */

[data-theme="light"] .blog-detail-cta {
    background: #ffffff;
    border-color: #0ea5e9;
}


/* DARK */

[data-theme="dark"] .blog-detail-cta {
    background: #111827;
    border-color: #0284c7;
}


/* HOVER */

.blog-detail-cta:hover {
    transform: translateY(-3px);
}


/* =========================================================
   CTA TITLE
========================================================= */

[data-theme="light"] .blog-cta-title {
    color: #0f172a !important;
}

[data-theme="dark"] .blog-cta-title {
    color: #f8fafc !important;
}


/* CTA DESCRIPTION */

[data-theme="light"] .blog-cta-description {
    color: #475569 !important;
}

[data-theme="dark"] .blog-cta-description {
    color: #94a3b8 !important;
}


/* =========================================================
   RELATED POSTS SECTION
========================================================= */

.related-posts-section {
    border-top: 1px solid;
}


[data-theme="light"] .related-posts-section {
    border-color: #e2e8f0;
}


[data-theme="dark"] .related-posts-section {
    border-color: #263244;
}


/* SECTION TITLE */

[data-theme="light"] .related-posts-title {
    color: #0f172a !important;
}


[data-theme="dark"] .related-posts-title {
    color: #f8fafc !important;
}


/* =========================================================
   RELATED POST CARD
========================================================= */

.related-post-card {
    border-radius: 12px;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* LIGHT */

[data-theme="light"] .related-post-card {
    background: #ffffff !important;

    border:
        1px solid rgba(148, 163, 184, 0.25) !important;
}


/* DARK */

[data-theme="dark"] .related-post-card {
    background: #111827 !important;

    border:
        1px solid #263244 !important;
}


/* RELATED CARD HOVER */

.related-post-card:hover {
    transform: translateY(-4px);
}


[data-theme="light"] .related-post-card:hover {
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.1) !important;
}


[data-theme="dark"] .related-post-card:hover {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.4) !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .blog-detail-title {
        font-size: 2rem;
    }

    .blog-detail-cta {
        border-radius: 16px;
    }

    .blog-content {
        font-size: 1rem !important;
    }

}
@media (max-width: 768px) {

    .featured-blog-card {
        border-radius: 16px !important;
    }

    .blog-card {
        border-radius: 14px !important;
    }

    .blog-cta {
        border-radius: 16px !important;
    }

    .featured-summary {
        font-size: 1rem !important;
    }

}