/*
 * style-blog.css — TriDigi Blog Shared Styles
 * ─────────────────────────────────────────────────────────────────────────────
 * Linked by: blog.html, blog-ai-article-template.html, every article page
 * Do NOT link from: index.html, services.html, about.html, contact.html
 *   (those use style.css only)
 *
 * Contents:
 *   1.  Shared dark-page base (body, nav, WA float, footer)
 *   2.  Article hero & animated background
 *   3.  Article layout (two-column, sidebar)
 *   4.  Article content blocks (prose, callout, lists, stats, table, CTA strip)
 *   5.  Blog archive hero
 *   6.  Blog archive controls (search + filter tabs)
 *   7.  Pillar cards (accordion style)
 *   8.  Standalone article cards grid
 *   9.  Empty state
 *   10. Mobile / responsive overrides
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. SHARED DARK-PAGE BASE
   ═══════════════════════════════════════════════════════════════════════════ */

body.blog-page {
  background: #08080f;
}

/* Nav — light text on dark background */
body.blog-page #mainNav {
  background: rgba(8, 8, 15, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
body.blog-page #mainNav .nav-links a,
body.blog-page #mainNav .nav-links li a {
  color: rgba(255, 255, 255, 0.75) !important;
}
body.blog-page #mainNav .nav-links a:hover {
  color: #fff !important;
}

/* WhatsApp float — fully self-contained so style.css can't override dimensions */
body.blog-page .wa-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9990;
}
body.blog-page .wa-bubble-wrap {
  position: relative;
}
body.blog-page .wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
body.blog-page .wa-btn svg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
body.blog-page .wa-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #25d366;
  z-index: 2;
}
body.blog-page .wa-tooltip {
  position: absolute;
  right: 68px;
  bottom: 50%;
  transform: translateY(50%);
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
body.blog-page .wa-bubble-wrap:hover .wa-tooltip {
  opacity: 1;
}

/* Shared dark footer */
.blog-footer {
  background: #0d0d18;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 48px 24px 28px;
}
.blog-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.blog-footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 36px;
}
.blog-footer-brand {
  max-width: 280px;
}
.blog-footer-brand img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 14px;
  display: block;
}
.blog-footer-brand p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}
.blog-footer-col h5 {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.blog-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-footer-col a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.blog-footer-col a:hover {
  color: #fff;
}
.blog-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.blog-footer-copy {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  margin: 0;
}
.blog-footer-social {
  display: flex;
  gap: 10px;
}
.blog-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.blog-footer-social a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. ARTICLE HERO & ANIMATED BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════ */

.art-hero {
  position: relative;
  padding: 130px 24px 40px;
  overflow: hidden;
  background: #08080f;
}
.art-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.art-hero-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(124, 58, 237, 0.06) 0 1px, transparent 1px 90px), repeating-linear-gradient(0deg, rgba(124, 58, 237, 0.06) 0 1px, transparent 1px 60px);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}
.art-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: artOrbPulse 10s ease-in-out infinite;
}
.art-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -100px;
  left: -80px;
}
.art-orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #f27421, transparent 70%);
  bottom: 0;
  right: -60px;
  animation-delay: -5s;
}
@keyframes artOrbPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.22;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}
.art-nodes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.art-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.6);
  animation: nodeFloat 8s ease-in-out infinite;
}
.art-node::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, rgba(124, 58, 237, 0.4), transparent);
  transform: translateY(-50%);
}
.art-node:nth-child(1) {
  top: 18%;
  left: 12%;
}
.art-node:nth-child(2) {
  top: 55%;
  left: 80%;
  animation-delay: -2s;
  background: rgba(242, 116, 33, 0.6);
}
.art-node:nth-child(3) {
  top: 30%;
  left: 65%;
  animation-delay: -4s;
}
.art-node:nth-child(4) {
  top: 70%;
  left: 20%;
  animation-delay: -6s;
  background: rgba(139, 196, 63, 0.6);
}
@keyframes nodeFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-14px);
    opacity: 1;
  }
}
.art-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.art-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.art-back-link:hover {
  color: var(--orange, #f60);
}
.art-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.art-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.18;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.art-title em {
  font-style: normal;
  background: linear-gradient(90deg, #f27421, #ffc114);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.art-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}
.art-byline-dot {
  color: rgba(255, 255, 255, 0.2);
}
.art-author {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. ARTICLE LAYOUT (two-column + sidebar)
   ═══════════════════════════════════════════════════════════════════════════ */

.art-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}
.art-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}
.sidebar-toc {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 24px;
}
.sidebar-toc h4,
.sidebar-share h4,
.sidebar-related h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 16px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li {
  margin-bottom: 8px;
}
.toc-list a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--orange, #f60);
  border-left-color: var(--orange, #f60);
}
.sidebar-share {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.share-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  flex: 1;
  min-width: 80px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  transition:
    background 0.2s,
    color 0.2s;
  cursor: none;
}
.share-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.share-btn.wa {
  border-color: rgba(37, 211, 102, 0.3);
  color: #4ade80;
}
.share-btn.wa:hover {
  background: rgba(37, 211, 102, 0.12);
}
.sidebar-related {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 20px 22px;
}
.related-item {
  display: block;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: padding-left 0.2s;
}
.related-item:last-child {
  border-bottom: none;
}
.related-item:hover {
  padding-left: 6px;
}
.related-item .rel-cat {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c4b5fd;
  margin-bottom: 4px;
  display: block;
}
.related-item .rel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  display: block;
}
.related-item:hover .rel-title {
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. ARTICLE CONTENT BLOCKS
   ═══════════════════════════════════════════════════════════════════════════ */

.art-content {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.82;
  font-family: "Nunito", sans-serif;
}
.art-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin: 52px 0 16px;
  line-height: 1.3;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.art-content h2:first-of-type {
  border-top: none;
  margin-top: 0;
}
.art-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  margin: 32px 0 10px;
}
.art-content p {
  margin: 0 0 22px;
}
.art-content .art-callout {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(242, 116, 33, 0.08));
  border-left: 3px solid #7c3aed;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 32px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-style: italic;
}
.art-content .art-callout strong {
  color: #c4b5fd;
  font-style: normal;
}
.art-content ol {
  margin: 0 0 22px;
  padding-left: 0;
  counter-reset: art-list;
  list-style: none;
}
.art-content ol li {
  counter-increment: art-list;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.art-content ol li::before {
  content: counter(art-list);
  min-width: 28px;
  height: 28px;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.art-content ul {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}
.art-content ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
}
.art-content ul li::before {
  content: "→";
  color: var(--orange, #f60);
  font-weight: 800;
  flex-shrink: 0;
}
.art-stat-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.art-stat {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
}
.art-stat .stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #f27421, #ffc114);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  display: block;
}
.art-stat .stat-lbl {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  margin-top: 6px;
  display: block;
}
.art-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
}
.art-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.art-table th {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  font-weight: 800;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid rgba(124, 58, 237, 0.2);
  white-space: nowrap;
}
.art-table td {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  vertical-align: top;
}
.art-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}
.art-table .td-good {
  color: #86efac;
}
.art-table .td-bad {
  color: #fca5a5;
}
.art-cta-strip {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(242, 116, 33, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 18px;
  padding: 36px 32px;
  text-align: center;
  margin: 52px 0 0;
}
.art-cta-strip h3 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.art-cta-strip p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin: 0 0 22px;
}
.art-cta-strip .btn-primary {
  display: inline-block;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. BLOG ARCHIVE HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.archive-hero {
  position: relative;
  padding: 130px 24px 80px;
  overflow: hidden;
  background: #08080f;
  text-align: center;
}
.archive-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.archive-hero-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(242, 116, 33, 0.05) 0 1px, transparent 1px 100px), repeating-linear-gradient(0deg, rgba(242, 116, 33, 0.05) 0 1px, transparent 1px 70px);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 20%, transparent 100%);
}
.archive-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: archiveOrbDrift 16s ease-in-out infinite;
}
.archive-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(242, 116, 33, 0.18), transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}
.archive-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  bottom: -50px;
  left: 10%;
  animation-delay: -8s;
}
.archive-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 196, 63, 0.12), transparent 70%);
  bottom: -30px;
  right: 8%;
  animation-delay: -4s;
}
@keyframes archiveOrbDrift {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1.08);
  }
}
.archive-orb-2,
.archive-orb-3 {
  transform: none;
}
@keyframes archiveOrbDrift2 {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.archive-orb-2 {
  animation-name: archiveOrbDrift2;
}
.archive-orb-3 {
  animation-name: archiveOrbDrift2;
}

.archive-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.archive-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange, #f60);
  margin-bottom: 20px;
}
.archive-eyebrow::before,
.archive-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--orange, #f60);
  opacity: 0.5;
}
.archive-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.archive-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #f27421, #ffc114);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.archive-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin: 0;
}
.archive-stats-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.archive-stat {
  text-align: center;
}
.archive-stat .a-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  display: block;
  line-height: 1;
}
.archive-stat .a-lbl {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  display: block;
}
.archive-stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. ARCHIVE CONTROLS — search + filter tabs
   ═══════════════════════════════════════════════════════════════════════════ */

.archive-controls {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 52px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.archive-search-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.archive-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.archive-search {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px 12px 42px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.archive-search::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.archive-search:focus {
  border-color: var(--orange, #f60);
  background: rgba(255, 255, 255, 0.07);
}
.archive-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.archive-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.archive-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.archive-tab.active {
  background: var(--orange, #f60);
  border-color: var(--orange, #f60);
  color: #fff;
}
.archive-tab.tab-ai.active {
  background: #7c3aed;
  border-color: #7c3aed;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. PILLAR CARDS — accordion with chapter list inside
   ═══════════════════════════════════════════════════════════════════════════ */

.archive-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.archive-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.pillar-card:hover {
  border-color: rgba(242, 116, 33, 0.25);
}
.pillar-card.cat-ai:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

/* Pillar header — the always-visible clickable row */
.pillar-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 28px 28px;
  cursor: none;
  user-select: none;
  position: relative;
}
.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: rgba(242, 116, 33, 0.15);
  border: 1px solid rgba(242, 116, 33, 0.25);
}
.pillar-card.cat-ai .pillar-icon {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.25);
}
.pillar-meta {
  flex: 1;
  min-width: 0;
}
.pillar-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pillar-cat-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.pill-gen {
  background: rgba(139, 196, 63, 0.15);
  color: #bef264;
  border: 1px solid rgba(139, 196, 63, 0.3);
}
.pill-ai {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.35);
}
.pill-pillar {
  background: rgba(242, 116, 33, 0.15);
  color: #fdba74;
  border: 1px solid rgba(242, 116, 33, 0.3);
}
.pillar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.35;
}
.pillar-desc {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 580px;
}
.pillar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.pillar-chapter-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}
.pillar-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.2s,
    transform 0.3s;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}
.pillar-card.open .pillar-toggle {
  transform: rotate(180deg);
  background: rgba(242, 116, 33, 0.15);
  border-color: rgba(242, 116, 33, 0.3);
  color: var(--orange, #f60);
}
.pillar-card.cat-ai.open .pillar-toggle {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
}

/* Chapter list — hidden by default, shown when .open */
.pillar-chapters {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 0;
}
.pillar-card.open .pillar-chapters {
  display: block;
}

/* Read-all pillar link */
.pillar-read-all {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}
.pillar-read-all:hover {
  background: rgba(255, 255, 255, 0.03);
}
.pillar-read-all-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(242, 116, 33, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--orange, #f60);
  font-weight: 800;
  flex-shrink: 0;
}
.cat-ai .pillar-read-all-icon {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
}
.pillar-read-all-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}
.pillar-read-all-text span {
  color: var(--orange, #f60);
  margin-left: 4px;
}
.cat-ai .pillar-read-all-text span {
  color: #c4b5fd;
}

/* Individual chapter row */
.chapter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.18s;
}
.chapter-row:last-child {
  border-bottom: none;
}
.chapter-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.chapter-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  min-width: 28px;
  letter-spacing: 0.05em;
}
.chapter-info {
  flex: 1;
  min-width: 0;
}
.chapter-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s;
}
.chapter-row:hover .chapter-title {
  color: #fff;
}
.chapter-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  display: block;
  margin-top: 2px;
}
.chapter-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.chapter-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.badge-new {
  background: rgba(139, 196, 63, 0.18);
  color: #bef264;
  border: 1px solid rgba(139, 196, 63, 0.3);
}
.badge-read {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.chapter-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  transition:
    color 0.18s,
    transform 0.18s;
}
.chapter-row:hover .chapter-arrow {
  color: var(--orange, #f60);
  transform: translateX(3px);
}
.cat-ai .chapter-row:hover .chapter-arrow {
  color: #c4b5fd;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. STANDALONE ARTICLE CARDS GRID
   ═══════════════════════════════════════════════════════════════════════════ */

.standalone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.article-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 116, 33, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.article-card.cat-ai:hover {
  border-color: rgba(124, 58, 237, 0.35);
}

.article-card-top {
  height: 64px;
  display: flex;
  align-items: flex-end;
  padding: 0 18px 12px;
  position: relative;
  overflow: hidden;
}
.article-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  transition: opacity 0.25s;
}
.article-card:hover .article-card-glow {
  opacity: 0.28;
}
.glow-gen {
  background: linear-gradient(135deg, #8bc43f, #ffc114);
}
.glow-ai {
  background: linear-gradient(135deg, #7c3aed, #f27421);
}
.article-cat-pill {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.article-card-body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-body h3 {
  font-size: 0.97rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.4;
}
.article-excerpt {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.article-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  margin-bottom: 14px;
}
.article-read-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--orange, #f60);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.article-card.cat-ai .article-read-link {
  color: #c4b5fd;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. EMPTY / NO-RESULTS STATE
   ═══════════════════════════════════════════════════════════════════════════ */

.archive-empty {
  text-align: center;
  padding: 80px 24px;
  display: none;
}
.archive-empty.visible {
  display: block;
}
.archive-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.archive-empty h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.archive-empty p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */

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

@media (max-width: 860px) {
  /* Article two-column → single column */
  .art-layout {
    display: flex;
    flex-direction: column;
    padding: 40px 20px 60px;
  }
  .art-content {
    order: 1;
  }
  .art-sidebar {
    order: 2;
    position: static !important;
    top: auto !important;
  }

  /* Pillar header compact */
  .pillar-header {
    padding: 20px 18px;
    gap: 14px;
  }
  .pillar-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  .pillar-desc {
    display: none;
  }
  .pillar-chapter-count {
    display: none;
  }
  .chapter-row {
    padding: 12px 18px;
  }
  .chapter-sub {
    display: none;
  }

  /* Archive controls stack */
  .archive-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .archive-search-wrap {
    min-width: unset;
  }

  /* Blog footer columns stack */
  .blog-footer-cols {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .standalone-grid {
    grid-template-columns: 1fr;
  }
  .archive-stats-row {
    gap: 20px;
  }
  .archive-stat-divider {
    display: none;
  }
  .art-stat-row {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. HOMEPAGE BLOG TEASER SECTION (index.html only)
   The "Plans for Every Ambition"-style preview block shown on the homepage.
   Linked via style-blog.css on index.html — NOT used on blog.html or
   article pages (they have their own dedicated sections above).
   ═══════════════════════════════════════════════════════════════════════════ */
/* =====================================================
   BLOG SECTION STYLES
   ===================================================== */
.blog-section {
  position: relative;
  padding: 100px 0 80px;
  background: #0a0a12;
  overflow: hidden;
}

/* 3D animated background */
.blog-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blog-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #f27421, transparent 70%);
  top: -80px;
  left: -100px;
  animation-duration: 14s;
}
.orb2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  bottom: -60px;
  right: -80px;
  animation-duration: 18s;
  animation-delay: -6s;
}
.orb3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #8bc43f, transparent 70%);
  top: 40%;
  left: 55%;
  animation-duration: 22s;
  animation-delay: -10s;
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  33% {
    transform: translateY(-28px) scale(1.06);
  }
  66% {
    transform: translateY(18px) scale(0.95);
  }
}

/* Perspective grid lines — the "3D floor" effect */
.blog-grid-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  background-image:
    linear-gradient(to bottom, transparent 0%, rgba(242, 116, 33, 0.06) 100%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 60px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

/* Inner wrapper */
.blog-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header row */
.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

/* Filter buttons */
.blog-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-filter {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: none;
  transition: all 0.2s;
}
.blog-filter.active,
.blog-filter:hover {
  background: var(--orange, #f60);
  border-color: var(--orange, #f60);
  color: #fff;
}

/* Card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual card */
.blog-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  position: relative;
}
.blog-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(242, 116, 33, 0.35);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(242, 116, 33, 0.15);
}

/* Card top band (category + glow) */
.blog-card-top {
  position: relative;
  height: 72px;
  display: flex;
  align-items: flex-end;
  padding: 0 22px 14px;
  overflow: hidden;
}
.blog-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  transition: opacity 0.3s;
}
.blog-card:hover .blog-card-glow {
  opacity: 0.3;
}
.glow-ai {
  background: linear-gradient(135deg, #7c3aed 0%, #f27421 100%);
}
.glow-gen {
  background: linear-gradient(135deg, #8bc43f 0%, #ffc114 100%);
}

/* Category pill */
.blog-cat {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.blog-cat-ai {
  background: rgba(124, 58, 237, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.4);
}
.blog-cat-gen {
  background: rgba(139, 196, 63, 0.2);
  color: #bef264;
  border: 1px solid rgba(139, 196, 63, 0.35);
}

/* Card body */
.blog-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.4;
}
.blog-excerpt {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  margin-bottom: 16px;
}
.blog-read-link {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange, #f60);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}
.blog-read-link:hover {
  opacity: 0.8;
}

/* Filter hide animation */
.blog-card.hidden {
  display: none;
}

/* Footer row */
.blog-footer-row {
  text-align: center;
  margin-top: 48px;
}
.btn-blog-all {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.25s;
}
.btn-blog-all:hover {
  background: var(--orange, #f60);
  border-color: var(--orange, #f60);
}
/* =====================================================
   END BLOG SECTION STYLES
   ===================================================== */
