/* ============================================================
   ReplyEO Blog — main.css
   Full design system matching replyeo.com
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --brand-50: #F0F7FF;
  --brand-100: #E0EFFF;
  --brand-200: #BAE0FF;
  --brand-300: #7CC4FA;
  --brand-400: #38A4F8;
  --brand-500: #0E85EC;
  --brand-600: #0068CA;
  --brand-700: #0052A3;
  --brand-800: #054687;
  --brand-900: #0A3B6F;
  --brand-950: #06254B;
  --fb-500: #1877F2;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --slate-950: #020617;
  --bg-body: #FAFBFD;
  --shadow-subtle: 0 2px 8px -2px rgba(0, 0, 0, .05), 0 1px 4px -1px rgba(0, 0, 0, .03);
  --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, .07), 0 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-glow: 0 0 40px -10px rgba(14, 133, 236, .25);
}

.dark-mode {
  --bg-body: #020617;
}

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

html {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

body {
  background: var(--bg-body);
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s, color .3s;
}

.dark-mode body {
  background: #020617;
  color: #F1F5F9;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1;
}

/* ── HEADER ── */
#masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 253, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, .6);
  transition: background .3s, border-color .3s;
}

.dark-mode #masthead {
  background: rgba(2, 6, 23, .85);
  border-bottom-color: rgba(30, 41, 59, .6);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.site-branding a {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  text-decoration: none;
  transition: transform .2s;
}

.site-branding a:hover {
  transform: scale(1.03);
}

.logo-img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter .3s;
}

.dark-mode .logo-img {
  filter: hue-rotate(344deg) saturate(1.1) brightness(1.15);
}

.logo-text {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: -.02em;
}

.logo-reply {
  color: #0F172A;
  transition: color .3s;
}

.logo-eo {
  color: #1877F2;
  transition: color .3s;
}

.dark-mode .logo-reply {
  color: #fff;
}

.dark-mode .logo-eo {
  color: #38BDF8;
}

/* ── NAVIGATION WITH DROPDOWNS ── */
.main-navigation {
  display: none;
}

@media(min-width:768px) {
  .main-navigation {
    display: flex;
    align-items: center;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item-dropdown {
  position: relative;
  padding: .5rem 0;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .875rem;
  font-weight: 500;
  color: #1E293B;
  transition: color .15s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.dark-mode .nav-dropdown-btn {
  color: #E2E8F0;
}

.nav-dropdown-btn:hover,
.nav-item-dropdown:hover .nav-dropdown-btn {
  color: var(--brand-600);
}

.dark-mode .nav-dropdown-btn:hover,
.dark-mode .nav-item-dropdown:hover .nav-dropdown-btn {
  color: var(--brand-400);
}

.nav-chevron {
  color: #94A3B8;
  transition: transform .2s ease;
}

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

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - .25rem);
  left: 0;
  background: #fff;
  border-radius: 1rem;
  padding: .75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
  border: 1px solid rgba(226, 232, 240, .9);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.dark-mode .nav-dropdown-menu {
  background: #0F172A;
  border-color: #1E293B;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-w-64 {
  width: 16rem;
}

.nav-dropdown-w-72 {
  width: 18rem;
}

.nav-dropdown-item {
  display: block;
  padding: .625rem .75rem;
  border-radius: .75rem;
  transition: background .15s;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: #F8FAFC;
}

.dark-mode .nav-dropdown-item:hover {
  background: rgba(30, 41, 59, .8);
}

.nav-dropdown-item.is-active-page {
  background: var(--brand-50);
}

.dark-mode .nav-dropdown-item.is-active-page {
  background: rgba(14, 133, 236, .12);
}

.nav-item-title {
  font-weight: 700;
  font-size: .75rem;
  color: #0F172A;
  line-height: 1.2;
}

.dark-mode .nav-item-title {
  color: #fff;
}

.nav-item-desc {
  font-size: .6875rem;
  color: #64748B;
  margin-top: .25rem;
  line-height: 1.3;
}

.dark-mode .nav-item-desc {
  color: #94A3B8;
}

.nav-plain-link {
  font-size: .875rem;
  font-weight: 500;
  color: #1E293B;
  text-decoration: none;
  transition: color .15s;
}

.dark-mode .nav-plain-link {
  color: #E2E8F0;
}

.nav-plain-link:hover {
  color: var(--brand-600);
}

.dark-mode .nav-plain-link:hover {
  color: var(--brand-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.btn-dark-mode {
  padding: .5rem;
  border-radius: 9999px;
  color: #334155;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
}

.btn-dark-mode:hover {
  background: rgba(255, 255, 255, .4);
  color: #0F172A;
}

.dark-mode .btn-dark-mode {
  color: #CBD5E1;
}

.dark-mode .btn-dark-mode:hover {
  background: rgba(30, 41, 59, .6);
  color: #fff;
}

.btn-login {
  font-size: .875rem;
  font-weight: 600;
  color: #1E293B;
  padding: .375rem .625rem;
  transition: color .15s;
  display: none;
}

.dark-mode .btn-login {
  color: #E2E8F0;
}

.btn-login:hover {
  color: #020617;
}

.dark-mode .btn-login:hover {
  color: #fff;
}

@media(min-width:640px) {
  .btn-login {
    display: inline-block;
  }
}

.btn-start-free {
  background: #18181B;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .625rem 1.25rem;
  border-radius: 9999px;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  white-space: nowrap;
}

.btn-start-free:hover {
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  transform: scale(1.02);
}

.btn-start-free:active {
  transform: scale(.98);
}

.dark-mode .btn-start-free {
  background: #fff;
  color: #0F172A;
}

.dark-mode .btn-start-free:hover {
  background: #F1F5F9;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  padding: .5rem;
  border-radius: .75rem;
  color: #1E293B;
  transition: background .15s;
}

.dark-mode .mobile-menu-toggle {
  color: #E2E8F0;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, .5);
}

@media(min-width:768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

#mobile-drawer {
  display: none;
  position: absolute;
  top: 80px;
  left: 1rem;
  right: 1rem;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .15);
  border: 1px solid #E2E8F0;
  z-index: 49;
  flex-direction: column;
  gap: .75rem;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideDown .2s ease;
}

.dark-mode #mobile-drawer {
  background: #0F172A;
  border-color: #1E293B;
}

#mobile-drawer.is-open {
  display: flex;
}

.mobile-section-label {
  font-size: .625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #94A3B8;
}

.mobile-drawer-link {
  font-size: .875rem;
  font-weight: 600;
  color: #1E293B;
  padding: .375rem 0;
  display: block;
}

.dark-mode .mobile-drawer-link {
  color: #E2E8F0;
}

.mobile-drawer-divider {
  border: none;
  border-top: 1px solid #F1F5F9;
  margin: .25rem 0;
}

.dark-mode .mobile-drawer-divider {
  border-top-color: #1E293B;
}

.mobile-cta-row {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: .75rem;
  border-top: 1px solid #F1F5F9;
}

.dark-mode .mobile-cta-row {
  border-top-color: #1E293B;
}

.mobile-btn-login {
  text-align: center;
  padding: .625rem;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 700;
  font-size: .75rem;
}

.dark-mode .mobile-btn-login {
  background: #1E293B;
  color: #fff;
}

.mobile-btn-start {
  text-align: center;
  padding: .625rem;
  border-radius: 9999px;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── BLOG HERO ── */
.blog-hero {
  background: radial-gradient(130% 100% at 50% 0%, #9bc2fd 0%, #b8d6fe 22%, #d7e8fe 50%, #eff6ff 78%, #fff 100%);
  position: relative;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  overflow: hidden;
}

.dark-mode .blog-hero {
  background: radial-gradient(130% 100% at 50% 0%, #1e3a8a 0%, #1e293b 40%, #0f172a 75%, #020617 100%);
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .45) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .45) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.dark-mode .blog-hero::before {
  background-image: linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  font-size: .6875rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.dark-mode .blog-hero-badge {
  background: rgba(30, 41, 59, .9);
  color: #E2E8F0;
  border-color: #334155;
}

.blog-hero-badge span {
  color: var(--brand-600);
  font-weight: 800;
}

.dark-mode .blog-hero-badge span {
  color: var(--brand-400);
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0F172A;
  letter-spacing: -.03em;
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.dark-mode .blog-hero h1 {
  color: #fff;
}

.blog-hero p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  color: #475569;
  position: relative;
  z-index: 1;
}

.dark-mode .blog-hero p {
  color: #94A3B8;
}

/* ── SINGLE POST HERO ── */
/* ── SINGLE POST HERO ── */
.single-hero {
  background: radial-gradient(130% 100% at 50% 0%, #9bc2fd 0%, #b8d6fe 22%, #d7e8fe 50%, #eff6ff 78%, #fff 100%);
  padding: 3rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.dark-mode .single-hero {
  background: radial-gradient(130% 100% at 50% 0%, #1e3a8a 0%, #1e293b 40%, #0f172a 75%, #020617 100%);
}

.single-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .45) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .45) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.dark-mode .single-hero::before {
  background-image: linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
}

.single-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #475569;
  padding: .375rem .875rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(226, 232, 240, .9);
  transition: all .15s ease;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.back-link:hover {
  color: var(--brand-600);
  border-color: var(--brand-200);
  background: #fff;
  transform: translateX(-3px);
}

.dark-mode .back-link {
  background: rgba(30, 41, 59, .8);
  border-color: #334155;
  color: #94A3B8;
}

.dark-mode .back-link:hover {
  color: var(--brand-400);
  border-color: rgba(56, 189, 248, .3);
  background: #1E293B;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  font-size: .75rem;
  color: #64748B;
  position: relative;
  z-index: 1;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  margin-left: .5rem;
  color: #94A3B8;
}

.breadcrumb-list a {
  color: #64748B;
  transition: color .15s;
}

.breadcrumb-list a:hover {
  color: var(--brand-600);
}

.dark-mode .breadcrumb-list a:hover {
  color: var(--brand-400);
}

/* ── MAIN LAYOUT ── */
.blog-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media(min-width:1024px) {
  .blog-main {
    grid-template-columns: 1fr 320px;
  }
}

.single-post-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media(min-width:1024px) {
  .single-post-layout {
    grid-template-columns: 1fr 300px;
  }
}

/* ── POST CARDS ── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media(min-width:640px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, .8);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.dark-mode .post-card {
  background: rgba(15, 23, 42, .9);
  border-color: rgba(30, 41, 59, .8);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
  border-color: rgba(14, 133, 236, .2);
}

.dark-mode .post-card:hover {
  border-color: rgba(56, 164, 248, .2);
}

.post-card-featured {
  grid-column: 1/-1;
}

@media(min-width:768px) {
  .post-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .post-card-featured .post-card-thumb,
  .post-card-featured .post-card-thumb-placeholder {
    aspect-ratio: auto;
    height: 100%;
  }
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--brand-50);
}

.dark-mode .post-card-thumb {
  background: #1E293B;
}

.post-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode .post-card-thumb-placeholder {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

.post-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.post-card-cat {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: .15rem .625rem;
  border-radius: 9999px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  transition: background .15s;
}

.dark-mode .post-card-cat {
  background: rgba(14, 133, 236, .12);
  color: var(--brand-400);
}

.post-card-cat:hover {
  background: var(--brand-100);
}

.post-card-date,
.post-card-read-time {
  font-size: .6875rem;
  color: #94A3B8;
}

.post-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: .5rem;
  text-decoration: none;
  display: block;
  transition: color .15s;
}

.dark-mode .post-card-title {
  color: #fff;
}

.post-card-title::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card:hover .post-card-title {
  color: var(--brand-600);
}

.dark-mode .post-card:hover .post-card-title {
  color: var(--brand-400);
}

.post-card-excerpt {
  font-size: .8125rem;
  color: #64748B;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark-mode .post-card-excerpt {
  color: #94A3B8;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
}

.post-card-author {
  position: relative;
  z-index: 2;
}

.dark-mode .post-card-footer {
  border-top-color: #1E293B;
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: #334155;
}

.dark-mode .post-card-author {
  color: #CBD5E1;
}

.post-card-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card-read-link {
  font-size: .75rem;
  font-weight: 700;
  color: var(--brand-600);
  display: flex;
  align-items: center;
  gap: .25rem;
  transition: gap .15s;
}

.dark-mode .post-card-read-link {
  color: var(--brand-400);
}

.post-card-read-link:hover {
  gap: .5rem;
}

/* ── SINGLE POST ARTICLE ── */
.post-article {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, .8);
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
}

.dark-mode .post-article {
  background: rgba(15, 23, 42, .9);
  border-color: rgba(30, 41, 59, .8);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8125rem;
  color: #64748B;
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: #334155;
}

.dark-mode .post-meta-author {
  color: #CBD5E1;
}

.post-meta-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.post-featured-image {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow-premium);
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  max-width: 72ch;
}

.dark-mode .post-content {
  color: #94A3B8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-weight: 700;
  color: #0F172A;
  margin-top: 2rem;
  margin-bottom: .75rem;
  line-height: 1.3;
}

.dark-mode .post-content h2,
.dark-mode .post-content h3,
.dark-mode .post-content h4 {
  color: #F1F5F9;
}

.post-content h2 {
  font-size: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
}

.post-content h4 {
  font-size: 1rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

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

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: .375rem;
}

.post-content a {
  color: var(--brand-600);
  text-decoration: underline;
  text-decoration-color: rgba(14, 133, 236, .3);
}

.dark-mode .post-content a {
  color: var(--brand-400);
}

.post-content blockquote {
  border-left: 3px solid var(--brand-400);
  padding: 1rem 1.5rem;
  background: var(--brand-50);
  border-radius: 0 .75rem .75rem 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #475569;
}

.dark-mode .post-content blockquote {
  background: rgba(14, 133, 236, .08);
  color: #94A3B8;
}

.post-content code {
  background: #F1F5F9;
  color: #0F172A;
  padding: .125rem .375rem;
  border-radius: .375rem;
  font-size: .875em;
}

.dark-mode .post-content code {
  background: #1E293B;
  color: #E2E8F0;
}

.post-content pre {
  background: #0F172A;
  color: #E2E8F0;
  padding: 1.5rem;
  border-radius: .75rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-content img {
  border-radius: .75rem;
  box-shadow: var(--shadow-premium);
  margin: 1.5rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .875rem;
}

.post-content th {
  background: #F8FAFC;
  color: #0F172A;
  font-weight: 700;
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 2px solid #E2E8F0;
}

.dark-mode .post-content th {
  background: #1E293B;
  color: #F1F5F9;
  border-bottom-color: #334155;
}

.post-content td {
  padding: .625rem 1rem;
  border-bottom: 1px solid #F1F5F9;
}

.dark-mode .post-content td {
  border-bottom-color: #1E293B;
}

/* ── POST NAVIGATION ── */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #F1F5F9;
}

.dark-mode .post-navigation {
  border-top-color: #1E293B;
}

.nav-previous,
.nav-next {
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  transition: all .2s;
  text-decoration: none;
  display: block;
}

.dark-mode .nav-previous,
.dark-mode .nav-next {
  background: #0F172A;
  border-color: #1E293B;
}

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  transform: translateY(-2px);
}

.dark-mode .nav-previous:hover,
.dark-mode .nav-next:hover {
  background: rgba(14, 133, 236, .06);
  border-color: rgba(14, 133, 236, .2);
}

.nav-label {
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94A3B8;
  margin-bottom: .25rem;
}

.nav-title {
  font-size: .8125rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}

.dark-mode .nav-title {
  color: #CBD5E1;
}

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

/* ── TOC (Table of Contents) ── */
#toc-nav a {
  display: block;
  font-size: .8125rem;
  color: #64748B;
  padding: .375rem 0;
  border-left: 2px solid transparent;
  padding-left: .75rem;
  transition: all .15s;
  text-decoration: none;
}

.dark-mode #toc-nav a {
  color: #94A3B8;
}

#toc-nav a:hover,
#toc-nav a.active {
  color: var(--brand-600);
  border-left-color: var(--brand-500);
}

.dark-mode #toc-nav a:hover,
.dark-mode #toc-nav a.active {
  color: var(--brand-400);
}

#toc-nav a.toc-h3 {
  padding-left: 1.5rem;
  font-size: .75rem;
}

/* ── SIDEBAR ── */
.sidebar-widget {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, .8);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 1.5rem;
}

.dark-mode .sidebar-widget {
  background: rgba(15, 23, 42, .9);
  border-color: rgba(30, 41, 59, .8);
}

.sidebar-widget-title {
  font-size: .8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #0F172A;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #F1F5F9;
}

.dark-mode .sidebar-widget-title {
  color: #F1F5F9;
  border-bottom-color: #1E293B;
}

.search-form {
  display: flex;
  gap: .5rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: .625rem 1rem;
  border-radius: .75rem;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-family: inherit;
  font-size: .875rem;
  color: #0F172A;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.dark-mode .search-form input[type="search"] {
  background: #1E293B;
  border-color: #334155;
  color: #F1F5F9;
}

.search-form input:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(14, 133, 236, .08);
}

.search-form button {
  padding: .625rem 1rem;
  border-radius: .75rem;
  background: #18181B;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  transition: background .15s;
  font-family: inherit;
  display: flex;
  align-items: center;
}

.search-form button:hover {
  background: #000;
}

.dark-mode .search-form button {
  background: #fff;
  color: #0F172A;
}

.recent-post-item {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #F8FAFC;
  text-decoration: none;
  transition: transform .15s;
}

.dark-mode .recent-post-item {
  border-bottom-color: #1E293B;
}

.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-item:hover {
  transform: translateX(3px);
}

.recent-post-thumb {
  width: 56px;
  height: 56px;
  border-radius: .5rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--brand-50);
}

.dark-mode .recent-post-thumb {
  background: #1E293B;
}

.recent-post-info {
  flex: 1;
  min-width: 0;
}

.recent-post-title {
  font-size: .8125rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .25rem;
}

.dark-mode .recent-post-title {
  color: #E2E8F0;
}

.recent-post-date {
  font-size: .6875rem;
  color: #94A3B8;
}

.cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid #F8FAFC;
}

.dark-mode .cat-list li {
  border-bottom-color: #1E293B;
}

.cat-list li:last-child {
  border-bottom: none;
}

.cat-list a {
  font-size: .8125rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: color .15s;
}

.dark-mode .cat-list a {
  color: #94A3B8;
}

.cat-list a:hover {
  color: var(--brand-600);
}

.dark-mode .cat-list a:hover {
  color: var(--brand-400);
}

.cat-count {
  font-size: .6875rem;
  font-weight: 700;
  padding: .125rem .5rem;
  border-radius: 9999px;
  background: var(--brand-50);
  color: var(--brand-600);
}

.dark-mode .cat-count {
  background: rgba(14, 133, 236, .12);
  color: var(--brand-400);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}

.tag-link {
  font-size: .6875rem;
  font-weight: 600;
  padding: .25rem .625rem;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #475569;
  text-decoration: none;
  transition: all .15s;
  border: 1px solid #E2E8F0;
}

.dark-mode .tag-link {
  background: #1E293B;
  color: #94A3B8;
  border-color: #334155;
}

.tag-link:hover {
  background: var(--brand-50);
  color: var(--brand-600);
  border-color: var(--brand-200);
}

.dark-mode .tag-link:hover {
  background: rgba(14, 133, 236, .1);
  color: var(--brand-400);
}

.cta-widget {
  background: linear-gradient(135deg, var(--brand-600) 0%, #1877F2 100%);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.cta-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}

.cta-widget-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
}

.cta-widget-desc {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.cta-widget-btn {
  display: inline-block;
  padding: .625rem 1.5rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--brand-700);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  position: relative;
  z-index: 1;
}

.cta-widget-btn:hover {
  background: #F0F7FF;
  transform: scale(1.02);
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 0;
}

.pagination ul {
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .625rem;
  font-size: .875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border: 1px solid #E2E8F0;
  background: #fff;
  transition: all .15s;
}

.dark-mode .page-numbers {
  background: #0F172A;
  border-color: #1E293B;
  color: #94A3B8;
}

.page-numbers:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
  background: var(--brand-50);
}

.dark-mode .page-numbers:hover {
  background: rgba(14, 133, 236, .08);
  color: var(--brand-400);
}

.page-numbers.current {
  background: #18181B;
  color: #fff;
  border-color: #18181B;
}

.dark-mode .page-numbers.current {
  background: #fff;
  color: #0F172A;
  border-color: #fff;
}

.page-numbers.dots {
  border: none;
  background: none;
  cursor: default;
}

/* ── FOOTER ── */
#colophon {
  position: relative;
  background: linear-gradient(to top, #E2EFFF, #F6FAFF, #fff);
  border-top: 1px solid rgba(226, 232, 240, .8);
  padding: 5rem 1.5rem 3rem;
  overflow: hidden;
}

.dark-mode #colophon {
  background: linear-gradient(to top, rgba(15, 23, 42, .7), #020617, #020617);
  border-top-color: #1E293B;
}

.footer-watermark {
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  user-select: none;
  opacity: .05;
}

.dark-mode .footer-watermark {
  opacity: .04;
}

.footer-watermark-text {
  font-size: clamp(80px, 15vw, 260px);
  font-weight: 900;
  letter-spacing: .15em;
  color: #0F172A;
  line-height: 1;
}

.dark-mode .footer-watermark-text {
  color: #fff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.footer-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.footer-heading h3 {
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #020617;
  letter-spacing: -.025em;
}

.dark-mode .footer-heading h3 {
  color: #fff;
}

.footer-heading p {
  font-size: .8125rem;
  color: #64748B;
  margin-top: .5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  margin-bottom: 5rem;
}

@media(min-width:640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(min-width:768px) {
  .footer-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.footer-col-title {
  font-size: .8125rem;
  font-weight: 800;
  color: #020617;
  margin-bottom: .875rem;
}

.dark-mode .footer-col-title {
  color: #fff;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.footer-col ul a {
  font-size: .8125rem;
  color: #64748B;
  text-decoration: none;
  transition: color .15s;
}

.footer-col ul a:hover {
  color: #020617;
}

.dark-mode .footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, .8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: .75rem;
  color: #64748B;
}

.dark-mode .footer-bottom {
  border-top-color: rgba(30, 41, 59, .8);
}

@media(min-width:640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-bottom-links a {
  color: #64748B;
  text-decoration: none;
  transition: color .15s;
}

.footer-bottom-links a:hover {
  color: #020617;
}

.dark-mode .footer-bottom-links a:hover {
  color: #fff;
}

.footer-bottom-links .sep {
  color: #CBD5E1;
}

.dark-mode .footer-bottom-links .sep {
  color: #334155;
}

/* ── ERROR 404 ── */
.error-404 {
  text-align: center;
  padding: 5rem 1.5rem;
}

.error-404 h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--brand-100);
  letter-spacing: -.05em;
  margin-bottom: 0;
}

.dark-mode .error-404 h1 {
  color: #1E293B;
}

.error-404 h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1rem;
}

.dark-mode .error-404 h2 {
  color: #fff;
}

.error-404 p {
  color: #64748B;
  margin-bottom: 2rem;
}

.no-posts {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #64748B;
}

.no-posts h2 {
  color: #0F172A;
  margin-bottom: .5rem;
}

.dark-mode .no-posts h2 {
  color: #fff;
}

/* ── UTILITIES ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── RESPONSIVE ── */
@media(max-width:767px) {

  .blog-main,
  .single-post-layout {
    padding: 2rem 1rem;
  }

  .post-article {
    padding: 1.5rem;
  }

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

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .nav-next {
    text-align: left;
  }
}

/* ── WORDPRESS DEFAULTS ── */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: .8125rem;
  color: #94A3B8;
  text-align: center;
  margin-top: .5rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}