/* ==========================================================================
   FUNGEP BLOGS STYLESHEET (css/blogs.css)
   Fully unified with fungep.app design system (index.html)
   Zero purple. Pure FUNGEP electric blue palette & glassmorphism.
   ========================================================================== */

:root {
  /* ==========================================================================
     COLOR PALETTE - EXTRACTED DIRECTLY FROM index.html
     ========================================================================== */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --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;

  /* Theme semantic mappings */
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-light: var(--blue-50);
  --primary-border: var(--blue-100);
  --accent: var(--blue-500);

  /* Shadows matching index.html */
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-btn: 0 14px 28px rgba(37, 99, 235, 0.25);
  --shadow-hover: 0 32px 80px rgba(15, 23, 42, 0.18);

  /* Typography & Radius */
  --font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --radius-pill: 999px;
  --radius-card: 28px;
}

/* ==========================================================================
   RESET & BASE (Matching index.html)
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  color: var(--slate-900);
  background: #e0f2fe;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body.menu-locked {
  overflow: hidden !important;
  touch-action: none;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

/* Scrollbar (from index.html) */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--blue-50); }
::-webkit-scrollbar-thumb { background: var(--blue-600); border-radius: 8px; border: 3px solid var(--blue-50); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-700); }

/* Utilities */
.shell {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.m-0 { margin: 0 !important; }

/* ==========================================================================
   PAGE BACKGROUND (Exact 1:1 replica from index.html)
   ========================================================================== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.64), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(191, 219, 254, 0.8), transparent 22rem),
    linear-gradient(135deg, #00adef 0%, #0076e5 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: auto -12rem -22rem auto;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   BUTTONS (Exact 1:1 replica from index.html)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 24px;
  font-weight: 900;
  color: white;
  background: var(--blue-600);
  box-shadow: var(--shadow-btn);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--blue-700);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.35);
}

.btn.secondary {
  color: var(--slate-900);
  background: white;
  border: 1px solid var(--slate-200);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.btn.secondary:hover {
  background: var(--slate-50);
  transform: translateY(-2px);
}

.btn-white,
.btn-cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white !important;
  color: var(--blue-700) !important;
  font-weight: 900 !important;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-white:hover,
.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================================
   TOP NAVIGATION (Exact from index.html)
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--blue-600);
  z-index: 1010;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.link-button {
  border: 0;
  background: transparent;
  color: var(--slate-500);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 800;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.link-button:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav-links a.active {
  color: var(--blue-600);
  background: var(--blue-50);
}

/* Nav Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: rgba(255, 255, 255, 0.98);
  min-width: 210px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--slate-100);
  z-index: 1020;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-content a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: var(--slate-500) !important;
  padding: 12px 16px !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  margin-bottom: 2px !important;
  justify-content: flex-start !important;
}

.dropdown-content a:hover {
  background-color: var(--blue-50) !important;
  color: var(--blue-600) !important;
}

/* Mobile Nav Modal */
.mobile-trigger { display: none !important; }
.mobile-overlay { display: none; }
.mobile-modal { display: none; }

@media (max-width: 860px) {
  .desktop-only-nav { display: none !important; }

  .mobile-trigger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 10006;
    border: none;
    background: transparent;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 8px;
    outline: none;
    margin-left: auto;
  }

  .mobile-trigger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--slate-900);
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .mobile-trigger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-trigger.is-active span:nth-child(2) { opacity: 0; }
  .mobile-trigger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 10001;
    pointer-events: none;
  }
  .mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-modal {
    display: flex;
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    left: 20px !important;
    right: 20px !important;
    background: #ffffff !important;
    border-radius: 28px !important;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15) !important;
    flex-direction: column;
    padding: 24px !important;
    z-index: 10005;
    max-height: calc(100dvh - env(safe-area-inset-top) - 40px);
    overflow-y: auto;
    transform: translateY(-20px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
  }
  .mobile-modal.is-active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-modal-header {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .close-modal-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
  }

  .mobile-modal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .modal-link {
    display: block !important;
    padding: 10px 12px !important;
    color: var(--slate-700) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    border-radius: 12px;
    text-decoration: none;
  }

  .modal-link.current-page {
    color: var(--blue-600) !important;
    background-color: var(--blue-50);
  }

  .modal-auth-btn {
    background: var(--blue-600) !important;
    color: white !important;
    border-radius: 16px !important;
    padding: 16px !important;
    text-align: center !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    margin-top: 12px !important;
    width: 100% !important;
    border: none;
  }
}

/* ==========================================================================
   AUTHENTIC FUNGEP HERO SECTION (Unique, refined, glassmorphic)
   ========================================================================== */
.blogs-hero-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 48px 36px;
  margin: 32px auto 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.blogs-hero-panel::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 240px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.blogs-hero-title {
  font-size: clamp(2.3rem, 4.8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--slate-900);
  margin: 0 0 14px;
  line-height: 1.15;
}

.blogs-hero-title span {
  background: linear-gradient(135deg, var(--blue-600) 0%, #00adef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blogs-hero-sub {
  font-size: 1.12rem;
  color: var(--slate-600);
  max-width: 650px;
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ==========================================================================
   SEARCH BAR
   ========================================================================== */
.blog-search-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.blog-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search-bar:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-50);
}

.blog-search-icon {
  width: 20px;
  height: 20px;
  color: var(--slate-400);
  flex-shrink: 0;
}

.blog-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--slate-900);
  background: transparent;
}

.blog-search-input::placeholder {
  color: var(--slate-400);
}

.blog-search-clear {
  border: none;
  background: transparent;
  color: var(--slate-400);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  display: none;
}
.blog-search-clear.visible {
  display: block;
}

.btn-search {
  background: var(--blue-600);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 26px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-search:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

/* Active filter banner */
.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.active-filter-badge button {
  background: none;
  border: none;
  color: var(--blue-600);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* ==========================================================================
   SECTION HEADINGS & DIVIDER (Over blue page-bg)
   ========================================================================== */
.section-heading-white {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  margin: 48px 0 24px;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 48px 0 36px;
}

/* ==========================================================================
   LATEST NEWS / FEATURED (60% / 40% Row)
   ========================================================================== */
.latest-news-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .latest-news-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FUNGEP GLASS BLOG CARDS
   ========================================================================== */
.blog-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--blue-50);
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-category {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--slate-900);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
  color: var(--blue-600);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tag Chips (FUNGEP Blue Pills) */
.tag-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  background-color: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tag-chip:hover {
  background-color: var(--blue-600);
  color: #ffffff;
  border-color: var(--blue-600);
  transform: translateY(-1px);
}

.featured-card-wide .blog-card-title {
  font-size: 1.45rem;
}

/* ==========================================================================
   BLOGS SECTION HEADER (Blogs + Sort dropdown)
   ========================================================================== */
.blogs-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.blogs-header-row h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
}

.blogs-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blogs-sort-wrap label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.blogs-sort-select {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.95);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-800);
  outline: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.blogs-sort-select:focus {
  border-color: var(--blue-600);
}

/* ==========================================================================
   BLOG GRID (Row 1: 1/3 + 2/3, Row 2+: 3 Columns)
   ========================================================================== */
.blogs-grid-row-1 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .blogs-grid-row-1 {
    grid-template-columns: 1fr;
  }
}

.blogs-grid-rest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .blogs-grid-rest {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blogs-grid-rest {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 48px 0;
}

.page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
  color: var(--slate-800);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: #ffffff;
  color: var(--blue-600);
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--blue-600);
  color: #ffffff;
  border-color: var(--blue-600);
  box-shadow: var(--shadow-btn);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-ellipsis {
  color: #ffffff;
  padding: 0 4px;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ==========================================================================
   SKELETON LOADERS & EMPTY STATE
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  height: 380px;
  display: flex;
  flex-direction: column;
}

.skeleton-media {
  width: 100%;
  height: 180px;
}

.skeleton-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-title { height: 26px; width: 85%; }
.skeleton-text { height: 16px; width: 100%; }
.skeleton-text-short { height: 16px; width: 65%; }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-card);
  border: 1px dashed var(--slate-300);
  margin: 32px 0;
  box-shadow: var(--shadow);
}

.empty-state-icon {
  width: 52px;
  height: 52px;
  color: var(--blue-600);
  margin: 0 auto 16px;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--slate-900);
}

.empty-state p {
  color: var(--slate-600);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* ==========================================================================
   SINGLE BLOG POST PAGE (blog.html) - FULL-PAGE WHITE CARD EXPERIENCE
   ========================================================================== */
.post-shell {
  width: min(1380px, calc(100% - 36px));
  margin: 24px auto 64px;
}

.post-glass-container {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  padding: 56px 64px;
  width: 100%;
  box-sizing: border-box;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--slate-500);
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--slate-600);
  font-weight: 600;
  transition: color 0.2s;
}

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

.breadcrumb-sep {
  color: var(--slate-400);
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: var(--blue-600);
  font-weight: 700;
}

/* Full-Width Article Header */
.post-header-full {
  margin-bottom: 40px;
}

.post-header-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-category-badge {
  display: inline-flex;
  align-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.18;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.post-excerpt {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--slate-600);
  max-width: 980px;
  margin: 0 0 28px;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

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

.author-avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue-100);
  flex-shrink: 0;
}

.post-author-name {
  display: block;
  font-weight: 800;
  color: var(--slate-900);
  font-size: 1rem;
  line-height: 1.2;
}

.post-author-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--slate-400);
  font-weight: 600;
  margin-top: 2px;
}

.post-meta-divider {
  width: 1px;
  height: 32px;
  background: var(--slate-200);
}

.post-meta-details {
  display: flex;
  align-items: center;
  gap: 20px;
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.94rem;
  color: var(--slate-500);
  font-weight: 700;
}

.post-meta-item svg {
  color: var(--blue-600);
  flex-shrink: 0;
}

/* Feature Cover Image: Full-width, crisp, fully adjusted without cropping */
.post-cover-wrapper {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
  margin: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-cover-img {
  width: 100%;
  height: auto;
  max-height: 560px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #ffffff;
  display: block;
}

/* Key Takeaway Callout Box */
.key-takeaway-box {
  border-left: 5px solid var(--blue-600);
  background: linear-gradient(to right, var(--blue-50), rgba(239, 246, 255, 0.35));
  border-radius: 0 20px 20px 0;
  padding: 24px 28px;
  margin: 0 0 40px;
  border-top: 1px solid var(--blue-100);
  border-right: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
}

.key-takeaway-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.key-takeaway-header svg {
  color: var(--blue-600);
}

.key-takeaway-box p {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--slate-800);
  line-height: 1.75;
  margin: 0;
}

/* Editorial Grid: Main Content + Sticky TOC Sidebar */
.post-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.post-main-column {
  min-width: 0;
}

.post-sidebar-column {
  position: sticky;
  top: 96px;
  align-self: start;
}

.sticky-toc-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-toc-inline {
  display: none;
  margin-bottom: 32px;
}

/* Table of Contents Card */
.toc-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.toc-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.toc-label {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-link {
  color: var(--slate-600);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.45;
  padding: 4px 0;
  transition: color 0.2s, transform 0.2s;
  display: block;
}

.toc-link:hover,
.toc-link.active {
  color: var(--blue-600);
  font-weight: 800;
  transform: translateX(4px);
}

/* Sidebar Quick Navigation Card */
.post-sidebar-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 22px;
}

.sidebar-card-label {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: block;
  margin-bottom: 6px;
}

.sidebar-card-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0 0 14px;
}

/* Article Body & Sections */
.post-section {
  margin-bottom: 44px;
  scroll-margin-top: 100px;
}

.post-section h2 {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--slate-900);
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.post-section p {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--slate-700);
  margin: 0 0 20px;
}

.post-bullet-list {
  margin: 16px 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.post-bullet-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--slate-700);
}

.post-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: -1px;
  color: var(--blue-600);
  font-size: 1.4rem;
  font-weight: bold;
}

.post-section img,
.post-body img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 24px 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--slate-200);
  display: block;
}

/* Completely remove CTA Banner & Author Bio per user request */
#post-cta-banner,
#post-author-bio,
.blog-cta-card,
.author-bio-card {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* FAQ Accordion */
.faq-section {
  margin: 48px 0;
  padding-top: 24px;
  border-top: 1px solid var(--slate-100);
}

.faq-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 900;
  text-align: left;
  color: var(--slate-900);
  margin: 0 0 28px;
  letter-spacing: -0.03em;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: var(--blue-300, #93c5fd);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--slate-900);
  cursor: pointer;
  gap: 16px;
  font-family: inherit;
}

.faq-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue-600);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--blue-700);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s;
  padding: 0 26px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--slate-600);
}

.faq-item.open .faq-answer {
  padding: 0 26px 22px 26px;
  max-height: 600px;
}

/* Related Articles */
.related-section {
  margin: 56px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Explore More Tags */
.explore-tags-section {
  margin: 48px 0 20px;
}

.explore-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.explore-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 800;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
  text-decoration: none;
  transition: all 0.2s ease;
}

.explore-tag-pill:hover {
  background: var(--blue-600);
  color: #ffffff;
  border-color: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

/* ==========================================================================
   FOOTER (Exact 1:1 replica from index.html)
   ========================================================================== */
footer {
  margin-top: 64px;
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-brand-logo {
  color: white;
  margin-bottom: 8px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* ==========================================================================
   MOBILE VIEW OPTIMIZATIONS (blogs.html & blog.html)
   ========================================================================== */

/* Universal word-wrap and responsive safety */
.blogs-hero-title,
.post-title,
.blog-card-title,
.blog-card-excerpt,
.post-section,
.post-section h2,
.post-section p,
.breadcrumb,
.faq-question {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Touch devices: smooth interaction without stuck hover transforms */
@media (hover: none) {
  .blog-card:hover {
    transform: none;
  }
  .blog-card:active {
    transform: scale(0.99);
  }
  .page-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.9);
    color: var(--slate-800);
    transform: none;
  }
}

/* Laptop & Tablet Screens (max-width: 1024px) */
@media (max-width: 1024px) {
  .post-shell {
    width: min(100%, calc(100% - 32px));
  }

  .post-glass-container {
    padding: 44px 36px;
    border-radius: 28px;
  }

  .post-layout-grid {
    display: block;
  }

  .post-sidebar-column {
    display: none;
  }

  .post-toc-inline {
    display: block;
    margin-bottom: 36px;
  }
}

/* Tablet & Mobile Screens (max-width: 860px) */
@media (max-width: 860px) {
  .top-nav {
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 20px;
  }

  .blogs-hero-panel {
    padding: 36px 24px;
    margin: 24px auto 36px;
    border-radius: 24px;
  }

  .blogs-hero-title {
    font-size: clamp(2rem, 5.5vw, 2.8rem);
  }

  .latest-news-grid,
  .blogs-grid-row-1 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Standard Mobile Phones (max-width: 640px) */
@media (max-width: 640px) {
  .shell {
    width: min(1140px, calc(100% - 24px));
  }

  .post-shell {
    width: calc(100% - 24px);
    margin: 16px auto 40px;
  }

  .post-glass-container {
    padding: 26px 18px;
    border-radius: 22px;
  }

  /* Hero & Search */
  .blogs-hero-panel {
    padding: 28px 18px;
    border-radius: 22px;
    margin: 18px auto 30px;
  }

  .hero-eyebrow {
    font-size: 0.78rem;
    padding: 5px 14px;
    margin-bottom: 12px;
  }

  .blogs-hero-title {
    font-size: clamp(1.8rem, 6.5vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .blogs-hero-sub {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .blog-search-bar {
    padding: 5px 6px 5px 16px;
    gap: 10px;
  }

  .blog-search-input {
    font-size: 0.94rem;
  }

  .btn-search {
    padding: 9px 20px;
    font-size: 0.9rem;
    min-height: 42px;
  }

  /* Section Headings & Sorting */
  .section-heading-white {
    font-size: 1.6rem;
    margin: 36px 0 18px;
  }

  .blog-divider {
    margin: 36px 0 28px;
  }

  .blogs-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .blogs-header-row h2 {
    font-size: 1.6rem;
  }

  .blogs-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .blogs-sort-select {
    font-size: 0.88rem;
    padding: 7px 14px;
  }

  /* Cards */
  .blog-card {
    border-radius: 20px;
  }

  .blog-card-body {
    padding: 20px 18px;
  }

  .blog-card-title {
    font-size: 1.16rem;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .blog-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .tag-chip {
    font-size: 11px;
    padding: 4px 11px;
  }

  /* Pagination */
  .pagination {
    margin: 36px 0;
    gap: 6px;
    flex-wrap: wrap;
  }

  .page-btn {
    min-width: 40px;
    height: 40px;
    font-size: 0.9rem;
    padding: 0 10px;
    border-radius: 10px;
  }

  /* Single Post Page */
  .breadcrumb {
    font-size: 0.84rem;
    margin-bottom: 18px;
  }

  .post-header-full {
    margin-bottom: 28px;
  }

  .post-title {
    font-size: clamp(1.75rem, 5.5vw, 2.3rem);
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .post-excerpt {
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .post-meta-bar {
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 24px;
  }

  .post-meta-divider {
    display: none;
  }

  .post-meta-details {
    gap: 14px;
    width: 100%;
  }

  .post-cover-wrapper {
    border-radius: 18px;
    margin-bottom: 32px;
  }

  .key-takeaway-box {
    padding: 18px 18px;
    font-size: 0.96rem;
    line-height: 1.65;
    border-radius: 0 14px 14px 0;
    margin-bottom: 28px;
  }

  .toc-card {
    padding: 18px 16px;
    border-radius: 16px;
    margin-bottom: 28px;
  }

  .toc-link {
    font-size: 0.92rem;
  }

  .post-section {
    margin-bottom: 32px;
    scroll-margin-top: 80px;
  }

  .post-section h2 {
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .post-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .post-bullet-list li {
    font-size: 0.98rem;
    line-height: 1.65;
    padding-left: 20px;
    margin-bottom: 10px;
  }

  .faq-section {
    margin: 40px 0;
    padding-top: 20px;
  }

  .faq-title {
    font-size: 1.55rem;
    margin-bottom: 20px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.98rem;
    gap: 12px;
  }

  .faq-answer {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .faq-item.open .faq-answer {
    padding: 0 18px 16px 18px;
  }

  .related-section {
    margin: 40px 0;
  }

  .explore-tags-section {
    margin: 36px 0 16px;
  }

  .explore-tag-pill {
    padding: 7px 16px;
    font-size: 0.86rem;
  }

  /* Footer on mobile */
  footer {
    margin-top: 48px;
    padding: 24px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Small / Compact Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .shell,
  .post-shell {
    width: calc(100% - 20px);
  }

  .top-nav {
    padding: 8px 14px;
    border-radius: 18px;
    margin-top: 10px;
  }

  .brand {
    font-size: 1.35rem;
    gap: 8px;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .blogs-hero-panel {
    padding: 22px 14px;
    border-radius: 18px;
    margin: 14px auto 26px;
  }

  .hero-eyebrow {
    font-size: 0.74rem;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  .blogs-hero-title {
    font-size: 1.7rem;
    letter-spacing: -0.03em;
  }

  .blogs-hero-sub {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .blog-search-bar {
    padding: 4px 5px 4px 12px;
    gap: 8px;
  }

  .blog-search-icon {
    width: 16px;
    height: 16px;
  }

  .blog-search-input {
    font-size: 0.88rem;
  }

  .blog-search-input::placeholder {
    font-size: 0.82rem;
  }

  .btn-search {
    padding: 8px 14px;
    font-size: 0.84rem;
    min-height: 38px;
  }

  .active-filter-badge {
    font-size: 0.78rem;
    padding: 4px 12px;
  }

  .section-heading-white {
    font-size: 1.4rem;
    margin: 28px 0 14px;
  }

  .blog-divider {
    margin: 28px 0 22px;
  }

  .blogs-header-row h2 {
    font-size: 1.4rem;
  }

  .blogs-sort-select {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .blog-card {
    border-radius: 18px;
  }

  .blog-card-body {
    padding: 16px 14px;
  }

  .blog-card-category {
    font-size: 0.74rem;
    margin-bottom: 6px;
  }

  .blog-card-title {
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .featured-card-wide .blog-card-title {
    font-size: 1.15rem;
  }

  .blog-card-excerpt {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .tag-chips-wrap {
    gap: 5px;
  }

  .tag-chip {
    font-size: 10.5px;
    padding: 3px 9px;
  }

  .pagination {
    margin: 28px 0;
    gap: 5px;
  }

  .page-btn {
    min-width: 38px;
    height: 38px;
    font-size: 0.84rem;
    padding: 0 8px;
    border-radius: 9px;
  }

  /* Single Post Page */
  .post-glass-container {
    padding: 20px 14px;
    border-radius: 18px;
    margin: 12px auto 32px;
  }

  .breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 14px;
    gap: 4px;
  }

  .post-header-full {
    margin-bottom: 20px;
  }

  .post-title {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .post-excerpt {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .post-meta-bar {
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 18px;
  }

  .author-avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .post-author-name {
    font-size: 0.9rem;
  }

  .post-meta-details {
    gap: 10px;
  }

  .post-meta-item {
    font-size: 0.82rem;
  }

  .post-cover-wrapper {
    border-radius: 14px;
    margin-bottom: 24px;
  }

  .key-takeaway-box {
    padding: 14px 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    border-radius: 0 12px 12px 0;
    margin-bottom: 22px;
    border-left-width: 4px;
  }

  .toc-card {
    padding: 14px 12px;
    border-radius: 14px;
    margin-bottom: 22px;
  }

  .toc-label {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }

  .toc-list {
    gap: 8px;
  }

  .toc-link {
    font-size: 0.88rem;
  }

  .post-section {
    margin-bottom: 24px;
    scroll-margin-top: 70px;
  }

  .post-section h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .post-section p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 14px;
  }

  .post-bullet-list {
    margin: 10px 0 16px 0;
  }

  .post-bullet-list li {
    font-size: 0.92rem;
    line-height: 1.6;
    padding-left: 18px;
    margin-bottom: 8px;
  }

  .faq-section {
    margin: 32px 0;
    padding-top: 16px;
  }

  .faq-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
  }

  .faq-question {
    padding: 14px 14px;
    font-size: 0.92rem;
    gap: 10px;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
    font-size: 1.25rem;
  }

  .faq-answer {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .faq-item.open .faq-answer {
    padding: 0 14px 14px 14px;
  }

  .related-section {
    margin: 32px 0;
  }

  .explore-tags-section {
    margin: 28px 0 12px;
  }

  .explore-tags-wrap {
    gap: 6px;
  }

  .explore-tag-pill {
    padding: 5px 12px;
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-col h4 {
    font-size: 0.98rem;
    margin-bottom: 4px;
  }

  .footer-col a {
    font-size: 0.88rem;
  }

  .footer-bottom {
    font-size: 0.82rem;
  }
}
