/* ==========================================================================
   CloseDaily Blog Redesign — blog-c1.css
   Design System: Inter font, dark navy + cyan/indigo 11ty accent
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Blog Container & Font Override
   -------------------------------------------------------------------------- */

.blog-c1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  font-size: 16px;
  line-height: 1.7;
}

.blog-c1-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   2. Blog Index Page — Hero Section
   -------------------------------------------------------------------------- */

.blog-hero {
  padding: 48px 0 32px;
  background: #ffffff;
}

.blog-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.blog-hero-eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #22d3ee;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0a0e1a;
  margin-bottom: 16px;
}

.blog-hero-title .hero-accent {
  background: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #6366f1;
}

.blog-hero-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 28px;
}

.blog-hero-search {
  position: relative;
  max-width: 420px;
}

.blog-hero-search input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  background: #f8fafc;
  transition: border 0.2s;
  outline: none;
}

.blog-hero-search input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.blog-hero-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
}

.hero-featured {
  background: #0a0e1a;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.hero-featured-img {
  height: 200px;
  overflow: hidden;
}

.hero-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-featured-body {
  padding: 24px;
}

.hero-featured-cat {
  display: inline-block;
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.hero-featured-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-featured-title a {
  color: #ffffff;
  text-decoration: none;
}

.hero-featured-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   2. Blog Index Page — Category Tabs
   -------------------------------------------------------------------------- */

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 0 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 32px;
}

.cat-tab {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
}

.cat-tab:hover {
  color: #0a0e1a;
}

.cat-tab.active {
  color: #0a0e1a;
  border-bottom-color: #22d3ee;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. Blog Index Page — Page Layout (content + sidebar)
   -------------------------------------------------------------------------- */

.blog-page-wrapper {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   2. Blog Index Page — Post Grid
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   2. Blog Index Page — Post Cards
   -------------------------------------------------------------------------- */

.blog-post-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.25s;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: #22d3ee;
}

.blog-card-img {
  height: 160px;
  overflow: hidden;
}

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

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

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
}

.blog-card-cat {
  color: #06b6d4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-card-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #94a3b8;
}

.blog-card-date {
  color: #94a3b8;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #0a0e1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #22d3ee;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-readmore {
  font-size: 0.8rem;
  font-weight: 600;
  color: #22d3ee;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-readmore:hover {
  gap: 8px;
}

/* --------------------------------------------------------------------------
   3. Sidebar Components (shared across all pages)
   -------------------------------------------------------------------------- */

.blog-sidebar {
  position: sticky;
  top: 84px;
}

.blog-sidebar > * + * {
  margin-top: 14px;
}

/* Sidebar — Primary CTA Card */

.sidebar-cta-primary {
  background: #0a0e1a;
  border-radius: 16px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.sidebar-cta-primary::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
}

.sidebar-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.sidebar-cta-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.sidebar-cta-text {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}

.sidebar-cta-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-cta-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  transform: translateY(-1px);
}

/* Sidebar — Newsletter Card */

.sidebar-newsletter {
  background: #111827;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-newsletter-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.sidebar-newsletter-text {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 14px;
  line-height: 1.4;
}

.sidebar-newsletter-input {
  position: relative;
  margin-bottom: 10px;
}

.sidebar-newsletter-input span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.8rem;
}

.sidebar-newsletter-input input {
  width: 100%;
  padding: 10px 12px 10px 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.8rem;
  outline: none;
}

.sidebar-newsletter-input input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.sidebar-newsletter-input input:focus {
  border-color: rgba(34, 211, 238, 0.4);
}

.sidebar-newsletter-btn {
  width: 100%;
  padding: 9px;
  background: rgba(99, 102, 241, 0.18);
  color: #c4b5fd;
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-newsletter-btn:hover {
  background: rgba(99, 102, 241, 0.28);
}

/* Sidebar — Tools Section */

.sidebar-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-tools-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

/* Sidebar — Tool Pills */

.sidebar-tool-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
}

.sidebar-tool-pill::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: #22d3ee;
  border-radius: 0 3px 3px 0;
  transition: all 0.25s;
}

.sidebar-tool-pill:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: #eef2ff;
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.1);
}

.sidebar-tool-pill:hover::before {
  height: 60%;
}

.sidebar-tool-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.sidebar-tool-pill:hover .sidebar-tool-icon {
  border-color: rgba(34, 211, 238, 0.3);
  background: #eef2ff;
}

.sidebar-tool-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0a0e1a;
  line-height: 1.2;
}

.sidebar-tool-desc {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.3;
  margin-top: 2px;
}

/* Sidebar — Popular Posts */

.sidebar-popular {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.sidebar-popular-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a0e1a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-popular-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
}

.sidebar-popular-item:first-child {
  border-top: none;
  padding-top: 0;
}

.sidebar-popular-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  min-width: 20px;
}

.sidebar-popular-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #0a0e1a;
  line-height: 1.4;
  text-decoration: none;
}

.sidebar-popular-link:hover {
  color: #22d3ee;
}

/* --------------------------------------------------------------------------
   4. Pagination
   -------------------------------------------------------------------------- */

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  margin-bottom: 64px;
}

.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: #22d3ee;
  color: #22d3ee;
}

.page-btn.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

.page-btn.prev,
.page-btn.next {
  width: auto;
  padding: 0 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Reading Progress Bar
   -------------------------------------------------------------------------- */

.reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #6366f1, #8b5cf6);
  z-index: 200;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Breadcrumb
   -------------------------------------------------------------------------- */

.blog-breadcrumb {
  padding: 20px 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.blog-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: #22d3ee;
}

.blog-breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Post Header
   -------------------------------------------------------------------------- */

.post-header {
  margin-bottom: 32px;
}

.post-cat-tag {
  display: inline-block;
  background: rgba(34, 211, 238, 0.08);
  color: #22d3ee;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-decoration: none;
}

.post-cat-tag:hover {
  background: rgba(34, 211, 238, 0.15);
}

.post-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0a0e1a;
  margin-bottom: 20px;
}

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

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0a0e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22d3ee;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.post-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a0e1a;
}

.post-author-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

.post-share-btns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.post-share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.post-share-btn:hover {
  border-color: #22d3ee;
  color: #22d3ee;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Featured Image
   -------------------------------------------------------------------------- */

.post-featured-img {
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
}

.post-featured-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Post Content Grid
   -------------------------------------------------------------------------- */

.post-content-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Post Body Typography
   -------------------------------------------------------------------------- */

.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
}

.post-body p {
  margin-bottom: 1.75rem;
}

.post-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0a0e1a;
  margin-top: 48px;
  margin-bottom: 16px;
  scroll-margin-top: 90px;
  line-height: 1.3;
}

.post-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a0e1a;
  margin-top: 32px;
  margin-bottom: 12px;
  scroll-margin-top: 90px;
}

.post-body h2:first-child {
  margin-top: 0;
}

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

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body li::marker {
  color: #22d3ee;
}

.post-body blockquote {
  margin: 2rem 0;
  padding: 20px 24px;
  border-left: 4px solid #22d3ee;
  background: rgba(34, 211, 238, 0.04);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #64748b;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.post-body a {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover {
  color: #06b6d4;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Key Stat Boxes
   -------------------------------------------------------------------------- */

.key-stat {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 1.5rem 0;
}

.key-stat strong {
  color: #92400e;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Inline CTA
   -------------------------------------------------------------------------- */

.inline-cta {
  background: #0a0e1a;
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.inline-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
}

.inline-cta-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.inline-cta-text p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.inline-cta-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.inline-cta-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Tags
   -------------------------------------------------------------------------- */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.post-tag {
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
}

.post-tag:hover {
  border-color: #22d3ee;
  color: #22d3ee;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Post Navigation
   -------------------------------------------------------------------------- */

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.post-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
}

.post-nav a:hover {
  color: #22d3ee;
}

.post-nav-next {
  text-align: right;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Related Posts
   -------------------------------------------------------------------------- */

.related-posts {
  margin-top: 64px;
  padding-top: 40px;
  padding-bottom: 64px;
  border-top: 1px solid #e2e8f0;
}

.related-posts-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

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

.related-post-card {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s;
}

.related-post-card:hover {
  border-color: #22d3ee;
  transform: translateY(-2px);
}

.related-post-img {
  width: 140px;
  min-height: 120px;
  flex-shrink: 0;
}

.related-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-body {
  padding: 16px;
}

.related-post-cat {
  font-size: 0.7rem;
  color: #06b6d4;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.related-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a0e1a;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   5. Single Post Page — Floating TOC Pill
   -------------------------------------------------------------------------- */

.toc-floating {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.toc-floating.visible {
  opacity: 1;
  pointer-events: auto;
}

.toc-floating.hidden {
  opacity: 0;
  pointer-events: none;
}

.toc-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a0e1a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  white-space: nowrap;
}

.toc-pill:hover {
  transform: scale(1.02);
}

.toc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  flex-shrink: 0;
}

.toc-pill-chevron {
  transition: transform 0.3s;
}

.toc-pill.open .toc-pill-chevron {
  transform: rotate(180deg);
}

.toc-dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #0a0e1a;
  border-radius: 16px;
  padding: 16px 0;
  min-width: 280px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.toc-dropdown.open {
  display: block;
}

.toc-dropdown-title {
  padding: 0 20px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toc-dropdown ol {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.toc-dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.15s;
}

.toc-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #22d3ee;
}

.toc-dropdown li a.toc-active {
  color: #22d3ee;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Category Page — Category Hero
   -------------------------------------------------------------------------- */

.cat-hero {
  padding: 40px 0 32px;
  position: relative;
}

.cat-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #22d3ee;
}

.cat-hero-content {
  padding-left: 24px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 211, 238, 0.08);
  color: #22d3ee;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.cat-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0a0e1a;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cat-hero-desc {
  font-size: 1rem;
  color: #64748b;
  max-width: 600px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.cat-stats {
  display: flex;
  gap: 12px;
}

.cat-stat {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
}

.cat-stat-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #06b6d4;
}

.cat-stat-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   6. Category Page — Category Nav
   -------------------------------------------------------------------------- */

.cat-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 0 0 20px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cat-nav-link {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-nav-link:hover {
  color: #0a0e1a;
}

.cat-nav-link.active {
  color: #0a0e1a;
  border-bottom-color: #22d3ee;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Category Page — Sort Bar
   -------------------------------------------------------------------------- */

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sort-count {
  font-size: 0.85rem;
  color: #64748b;
}

.sort-select {
  padding: 8px 32px 8px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #0a0e1a;
  background: #ffffff;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.sort-select:focus {
  border-color: #22d3ee;
}

/* --------------------------------------------------------------------------
   7. No Results State
   -------------------------------------------------------------------------- */

.blog-empty {
  text-align: center;
  padding: 80px 20px;
}

.blog-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.blog-empty p {
  color: #64748b;
}

/* --------------------------------------------------------------------------
   8. Responsive Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .blog-page-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .blog-sidebar {
    display: none;
  }
}

@media (max-width: 900px) {
  .blog-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-featured {
    display: none;
  }

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

  .post-title {
    font-size: 1.8rem;
  }

  .inline-cta {
    flex-direction: column;
    text-align: center;
  }

  .cat-hero-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {
  .blog-post-grid {
    grid-template-columns: 1fr;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .post-share-btns {
    display: none;
  }

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

/* --------------------------------------------------------------------------
   CloseDaily Header Override — actual header is 72px, not 64px
   -------------------------------------------------------------------------- */
.reading-progress {
  top: 72px !important;
}

.blog-sidebar {
  top: 92px !important;
}

.post-body h2 {
  scroll-margin-top: 100px !important;
}

.post-body h3 {
  scroll-margin-top: 100px !important;
}

/* ── Author Bio Box ── */
.post-author-bio {
  display: flex;
  gap: 16px;
  padding: 24px;
  margin: 32px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.post-author-bio-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}
.post-author-bio-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.post-author-bio-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a0e1a;
}
.post-author-bio-text {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin: 6px 0 0;
}
@media (max-width: 600px) {
  .post-author-bio { flex-direction: column; align-items: center; text-align: center; }
}
