/* ==========================================================================
   OLLALINK BLOG STYLESHEET
   Template & Card Architecture: Ollasoftware Blog Language
   Visual Identity & Theme: Ollalink Engineering (Electric Blue / Deep Navy / Slate)
   ========================================================================== */

:root {
  --o-brand: #2563eb;
  --o-brand-dark: #1d4ed8;
  --o-brand-tint: #eff6ff;
  --o-brand-border: #bfdbfe;
  --o-brand-glow: rgba(37, 99, 235, 0.22);
  --o-ink: #0f172a;
  --o-mute: #475569;
  --o-faint: #94a3b8;
  --o-line: #e2e8f0;
  --o-line-hi: #cbd5e1;
  --o-panel: #ffffff;
  --o-bg: #f8fafc;
  --o-radius: 12px;
  --o-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  --o-ink: #f8fafc;
  --o-mute: #94a3b8;
  --o-faint: #64748b;
  --o-line: #1e293b;
  --o-line-hi: #334155;
  --o-panel: #0b1220;
  --o-bg: #070c16;
  --o-brand-tint: rgba(37, 99, 235, 0.15);
  --o-brand-border: rgba(37, 99, 235, 0.35);
}

/* Base resets & typography */
body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--o-ink);
  background: var(--o-bg);
  -webkit-font-smoothing: antialiased;
}

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

.mono {
  font-family: var(--o-mono);
}

/* --------------------------------------------------------------------------
   SHARED SITE HEADER & ANNOUNCEMENT BAR (Identical to Marketing Homepage)
   -------------------------------------------------------------------------- */
.announcement {
  background: #b3211a;
  color: #fff;
  height: 40px;
  position: relative;
  z-index: 101;
  font-family: 'Lato', sans-serif;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.announcement-bar-link {
  display: flex;
  height: 100%;
  width: 100%;
  color: #fff !important;
  text-decoration: none !important;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.announcement-bar-link:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #fff !important;
  text-decoration: none !important;
}
.announcement-inner {
  height: 100%;
  width: 100%;
  max-width: 1140px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
}
.announcement-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.announcement-text strong {
  color: #fff;
}
.announcement .badge {
  background: #fff;
  color: #b3211a;
  font-family: 'Lato', sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.announcement-link {
  color: #fff !important;
  font-weight: 700;
  font-size: 14.5px;
  transition: opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
}
.announcement-bar-link:hover .announcement-link {
  opacity: 0.88;
  text-decoration: underline !important;
}
@media (max-width: 860px) {
  .announcement {
    height: auto;
    min-height: 38px;
    padding: 6px 0;
  }
  .announcement-inner {
    padding: 0 16px;
    justify-content: center;
    font-size: 13px;
    text-align: center;
  }
  .announcement-link {
    display: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .site-header {
  background: rgba(11, 18, 32, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
  max-width: 100%;
  padding: 0 36px;
  position: relative;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 16px;
    height: 64px;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  z-index: 2;
}
.brand-logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 768px) {
  .brand-logo-img {
    height: 48px;
  }
}
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #000 !important;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  transition: color 0.15s ease, opacity 0.15s ease;
}
[data-theme="dark"] .nav-links a {
  color: #f8fafc !important;
}
.nav-links a:hover,
.nav-links a.active {
  color: #2563eb !important;
  opacity: 0.85;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.nav-cta .btn-primary,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0 20px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  background: #2563eb !important;
  color: #fff !important;
  border: 2px solid #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta .btn-primary:hover,
.btn-primary:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: #fff !important;
}
@media (max-width: 1024px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .nav-cta {
    display: none !important;
  }
  .mobile-menu-btn {
    display: block !important;
  }
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid #e2e8f0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #0f172a;
}
[data-theme="dark"] .mobile-menu-btn {
  border-color: #334155;
  color: #f8fafc;
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 2px solid #1a1a1a;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
[data-theme="dark"] .mobile-nav {
  background: #0b1220;
  border-bottom-color: #334155;
}
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a !important;
  text-decoration: none !important;
}
[data-theme="dark"] .mobile-nav a {
  border-bottom-color: #1e293b;
  color: #f8fafc !important;
}
.mobile-nav a.btn-primary {
  background: #2563eb !important;
  color: #fff !important;
  text-align: center;
  border-radius: 999px;
  padding: 10px 20px;
  border: none;
}

/* --------------------------------------------------------------------------
   Blog Hero Section (Split 2-Column with Breadcrumbs and Stats)
   -------------------------------------------------------------------------- */
.blog-hero-split {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 48px !important;
  padding: 60px 48px 56px !important;
  border-bottom: 1px solid var(--o-line) !important;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 65%) !important;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-col {
  display: flex;
  flex-direction: column;
}
.hero-left {
  gap: 18px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--o-faint);
}
.crumbs a {
  color: var(--o-mute);
  transition: color 0.15s ease;
}
.crumbs a:hover {
  color: var(--o-brand);
}
.crumbs .sep {
  color: var(--o-line-hi);
}
.crumbs .current {
  color: var(--o-brand);
  font-weight: 800;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--o-brand);
  text-transform: uppercase;
  font-weight: 800;
  background: var(--o-brand-tint);
  border: 1px solid var(--o-brand-border);
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
}

.hero-h1 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--o-ink);
  margin: 0;
}
.hero-h1 span {
  color: var(--o-brand);
}

.hero-desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--o-mute);
  margin: 0;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--o-brand);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 14px var(--o-brand-glow);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--o-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--o-brand-glow);
}
.btn-outline {
  border: 1px solid var(--o-line-hi);
  background: transparent;
  color: var(--o-ink);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--o-brand);
  color: var(--o-brand);
  background: var(--o-brand-tint);
  transform: translateY(-1px);
}

.hero-right {
  gap: 16px;
  padding-left: 32px;
  border-left: 1px solid var(--o-line);
  justify-content: center;
}
.subtag {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--o-brand);
  font-weight: 800;
  text-transform: uppercase;
}
.right-h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--o-ink);
  margin: 0;
  letter-spacing: -0.02em;
}
.right-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--o-mute);
  margin: 0;
}

.stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
}
.stat-pill {
  background: var(--o-panel);
  border: 1px solid var(--o-line);
  border-radius: var(--o-radius);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.stat-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--o-ink);
  line-height: 1;
}
.stat-num.crimson {
  color: var(--o-brand);
}
.stat-lbl {
  font-size: 10.5px;
  color: var(--o-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Filter Ribbon Bar (Horizontal pills with counts)
   -------------------------------------------------------------------------- */
.trust-ribbon-bar {
  background: var(--o-brand);
  background: linear-gradient(90deg, #1e40af, #2563eb, #1e40af);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 18px var(--o-brand-glow);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}
.trust-scroller {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #fff;
  justify-content: center;
  max-width: 1440px;
  flex-wrap: wrap;
}
.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.filter-pill-btn .num {
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.28);
  padding: 1px 7px;
  border-radius: 9999px;
  color: #fff;
  font-weight: 700;
}
.filter-pill-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  transform: translateY(-1px);
}
.filter-pill-btn.active {
  background: #fff;
  color: var(--o-brand);
  border-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.filter-pill-btn.active .num {
  background: var(--o-brand);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Main 3-Column Layout: Left Sidebar + Posts Grid + Right Sidebar
   -------------------------------------------------------------------------- */
.blog-main-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  gap: 28px;
  padding: 36px 32px 70px;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  align-items: start;
}

/* Left Sidebar (Search & Categories) */
.blog-left-sidebar,
.about-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  width: 230px;
  flex-shrink: 0;
  z-index: 20;
}
.sidebar-sticky-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-box-wrap {
  position: relative;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 10px 14px 10px 34px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--o-line-hi);
  border-radius: 8px;
  background: var(--o-panel);
  color: var(--o-ink);
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.search-input:focus {
  outline: none;
  border-color: var(--o-brand);
  box-shadow: 0 0 0 3px var(--o-brand-glow);
}
.search-icon {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 14px;
  height: 14px;
  color: var(--o-faint);
  pointer-events: none;
}

.sidebar-badge-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nh-pill-crimson {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px var(--o-brand-glow);
}

.sidebar-clean-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-clean-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--o-ink);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}
.sidebar-clean-link:hover,
.sidebar-clean-link.active {
  color: var(--o-brand);
  background: var(--o-brand-tint);
}
.sidebar-count {
  font-size: 11px;
  color: var(--o-faint);
  font-weight: 700;
}

/* Middle Column: Posts */
.posts-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section-label-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: -4px;
}
.newest-pill {
  background: var(--o-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px var(--o-brand-glow);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Featured Hero Card (Ollasoftware Language)
   -------------------------------------------------------------------------- */
.featured-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: var(--o-panel);
  border: 1.5px solid var(--o-brand-border);
  border-radius: 18px;
  padding: 26px 30px;
  text-decoration: none;
  color: var(--o-ink);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.06);
  position: relative;
  overflow: hidden;
}
.featured-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px var(--o-brand-glow), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: var(--o-brand);
}

.card-watermark {
  position: absolute;
  right: 24px;
  bottom: 12px;
  width: 170px;
  height: 110px;
  pointer-events: none;
  opacity: 0.12;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
}
.featured-hero-card:hover .card-watermark {
  opacity: 0.22;
  transform: scale(1.05);
}
.watermark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.tags-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-pill-brand {
  background: var(--o-brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.2px;
}
.card-domain-tag {
  font-size: 11.5px;
  color: var(--o-faint);
  font-weight: 600;
}
.new-badge-pill {
  background: var(--o-brand-tint);
  color: var(--o-brand);
  border: 1px solid var(--o-brand-border);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.featured-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--o-ink);
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}
.featured-desc {
  color: var(--o-mute);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
}
.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--o-line);
  padding-top: 12px;
  position: relative;
  z-index: 2;
}
.meta-read-time {
  font-size: 12px;
  color: var(--o-faint);
  font-weight: 600;
}
.meta-read-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--o-brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}
.featured-hero-card:hover .meta-read-link {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   3-Column Card Grid (.clean-post-card)
   -------------------------------------------------------------------------- */
.post-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.clean-post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--o-panel);
  border: 1.5px solid var(--o-line);
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--o-ink);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.clean-post-card:hover {
  border-color: var(--o-brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--o-brand-glow), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-clean-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--o-ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card-clean-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--o-brand);
  margin: 0;
  line-height: 1.4;
}
.card-clean-desc {
  font-size: 0.86rem;
  color: var(--o-mute);
  line-height: 1.55;
  margin: 4px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-clean-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--o-line);
  padding-top: 10px;
  margin-top: auto;
}
.card-read-time {
  font-size: 11.5px;
  color: var(--o-faint);
  font-weight: 600;
}
.card-clean-cta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--o-brand);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: transform 0.15s ease;
}
.clean-post-card:hover .card-clean-cta {
  transform: translateX(3px);
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--o-panel);
  border: 1.5px dashed var(--o-line-hi);
  border-radius: 12px;
  color: var(--o-mute);
}
.reset-filter-btn {
  background: var(--o-brand);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.15s ease;
}
.reset-filter-btn:hover {
  background: var(--o-brand-dark);
}

/* Right Sidebar: Platform Highlights */
.archive-brand-card {
  background: var(--o-panel);
  border: 1.5px solid var(--o-line);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.archive-brand-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e40af, #2563eb, #3b82f6);
}
.archive-brand-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--o-brand);
  background: var(--o-brand-tint);
  border: 1px solid var(--o-brand-border);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.archive-brand-img-wrap {
  width: 100%;
  max-width: 180px;
  height: 120px;
  margin: 0.35rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--o-bg);
  border: 1px solid var(--o-line);
  border-radius: 10px;
  padding: 0.75rem;
}
.archive-brand-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.archive-brand-heading {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--o-ink);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.archive-brand-desc {
  font-size: 0.84rem;
  color: var(--o-mute);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.archive-brand-stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.archive-stat-box {
  background: var(--o-bg);
  border: 1px solid var(--o-line);
  border-radius: 8px;
  padding: 0.55rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.archive-stat-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--o-brand);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.archive-stat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--o-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.archive-brand-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--o-brand);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--o-brand-glow);
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.archive-brand-cta:hover {
  background: var(--o-brand-dark);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Blog Archive Section (Bottom Categorized Link Matrix)
   -------------------------------------------------------------------------- */
.blog-archive-section {
  background: #f1f5f9;
  border-top: 1px solid var(--o-line);
  padding: 4rem 1.5rem 5rem;
  width: 100%;
  box-sizing: border-box;
}
[data-theme="dark"] .blog-archive-section {
  background: #070c16;
}
.archive-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.archive-header {
  margin-bottom: 2.25rem;
}
.archive-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--o-brand);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  display: inline-block;
}
.archive-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--o-ink);
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}
.archive-sub {
  color: var(--o-mute);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
  max-width: 780px;
}
.archive-main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.archive-directory-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.archive-category-block {
  background: var(--o-panel);
  border: 1px solid var(--o-line);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}
.archive-category-block:hover {
  border-color: var(--o-line-hi);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.archive-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid var(--o-line);
}
.archive-cat-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--o-ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.archive-cat-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--o-brand);
  background: var(--o-brand-tint);
  border: 1px solid var(--o-brand-border);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}
.archive-links-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem 1.25rem;
}
.archive-link {
  font-size: 0.88rem;
  color: var(--o-mute);
  text-decoration: none;
  line-height: 1.45;
  transition: all 0.15s ease;
  display: block;
}
.archive-link:hover {
  color: var(--o-brand);
}
.archive-link:hover .archive-link-brand {
  text-decoration: underline;
  color: var(--o-brand);
}
.archive-link-brand {
  font-weight: 700;
  color: var(--o-ink);
  transition: color 0.15s ease;
}
.archive-link-tagline {
  color: var(--o-faint);
  font-size: 0.82rem;
  margin-left: 0.25rem;
}

/* --------------------------------------------------------------------------
   Article Detail Page Template
   -------------------------------------------------------------------------- */
.article-detail-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.article-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--o-line);
  padding-bottom: 28px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-h1 {
  font-size: 40px;
  line-height: 1.18;
  font-weight: 900;
  color: var(--o-ink);
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}
.article-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--o-mute);
  margin: 0 0 20px;
}
.article-author-card {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--o-faint);
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--o-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--o-ink);
}
.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 40px 0 16px;
  color: var(--o-ink);
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--o-line);
  padding-bottom: 8px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--o-ink);
}
.article-body p {
  margin: 0 0 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 8px;
}

/* Callouts & Code in Article */
.callout-box {
  background: var(--o-brand-tint);
  border-left: 4px solid var(--o-brand);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
}
.callout-box strong {
  color: var(--o-brand);
}

pre.code-block {
  background: #0f172a;
  color: #f8fafc;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--o-mono);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 24px 0;
  border: 1px solid #334155;
}

/* Related articles at bottom */
.related-posts-section {
  border-top: 1px solid var(--o-line);
  margin-top: 60px;
  padding-top: 40px;
}
.related-h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 24px;
}

/* --------------------------------------------------------------------------
   Global Footer
   -------------------------------------------------------------------------- */
.foot {
  background: #0b1220;
  color: #94a3b8;
  padding: 60px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-container {
  max-width: 1320px;
  margin: 0 auto;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-brand-col .brand-name {
  color: #fff;
}
.foot-tagline {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 360px;
}
.foot-col-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-links a {
  color: #94a3b8;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.foot-links a:hover {
  color: #fff;
}
.foot-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .blog-main-layout {
    grid-template-columns: 210px 1fr 210px;
    gap: 20px;
    padding: 28px 20px 64px;
  }
}

@media (max-width: 1024px) {
  .blog-hero-split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 44px 28px 36px !important;
  }
  .hero-right {
    padding-left: 0 !important;
    border-left: none !important;
    border-top: 1px solid var(--o-line) !important;
    padding-top: 28px !important;
  }
  .blog-main-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .blog-left-sidebar, .about-sidebar {
    position: static;
    width: 100%;
  }
  .blog-left-sidebar { order: 2; }
  .posts-column { order: 1; }
  .about-sidebar { order: 3; }
  .archive-main-layout {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero-split {
    padding: 32px 18px !important;
  }
  .hero-h1 {
    font-size: 34px;
  }
  .post-grid-3col {
    grid-template-columns: 1fr;
  }
  .nav-center {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .foot-legal {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
