/* ============================================================
   GoPlay India — Blog Stylesheet  v1.0
   Extends main.css / clean.css — Black · Electric Blue · Neon Green
   assets/css/blog.css

   USED BY:
     blog.html            → listing page  (.blog-toolbar, .featured-post, .posts-grid)
     blog/*.html          → article pages (.article-shell, .article-body, .toc-card)

   Every colour here comes from the :root tokens defined in main.css.
   Do not hard-code new brand colours — reuse --gold (electric blue),
   --neon (green), --gray-light, --border, --radius*, --transition.
   ============================================================ */


/* ============================================================
   1. SHARED — THUMBNAIL FRAME  (drop your image in, it just works)
   ============================================================
   Markup pattern used everywhere:

     <div class="thumb thumb-16x9">
       <img src="../assets/images/blog/my-thumb.jpg" alt="..."
            loading="lazy" onerror="this.remove()">
       <span class="thumb-ph">Thumbnail<small>1200 × 675</small></span>
     </div>

   If the image is missing or fails to load it is removed and the
   neon placeholder underneath shows through — nothing ever looks broken.
   ------------------------------------------------------------ */
.thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 207, 255, 0.10), rgba(0, 255, 136, 0.05)),
    #010509;
  border-bottom: 1px solid rgba(0, 207, 255, 0.14);
  isolation: isolate;
}
.thumb-16x9 { aspect-ratio: 16 / 9; }
.thumb-21x9 { aspect-ratio: 21 / 9; }
.thumb-4x3  { aspect-ratio: 4 / 3; }
.thumb-1x1  { aspect-ratio: 1 / 1; }

.thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  transition: transform 0.55s cubic-bezier(.2, .7, .3, 1);
}

/* Neon grid placeholder that sits behind the image */
.thumb-ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0, 207, 255, 0.55);
  background-image:
    linear-gradient(rgba(0, 207, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 207, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  text-align: center;
  padding: 12px;
}
.thumb-ph::before {
  content: '\1F5BC';
  font-size: 1.6rem;
  letter-spacing: 0;
  filter: drop-shadow(0 0 10px rgba(0, 207, 255, 0.45));
}
.thumb-ph small {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(122, 154, 184, 0.7);
  text-transform: none;
}

/* Soft vignette so overlaid text stays readable on any uploaded image */
.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(0, 4, 10, 0.72) 0%, rgba(0, 4, 10, 0.06) 45%, transparent 75%);
  pointer-events: none;
}
.thumb.no-vignette::after { display: none; }


/* ============================================================
   2. LISTING — TOOLBAR (category chips + live search)
   ============================================================ */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 40px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(0, 207, 255, 0.05), inset 0 1px 0 rgba(0, 207, 255, 0.05);
}
.blog-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-cat-btn {
  padding: 9px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray-light);
  transition: var(--transition);
  white-space: nowrap;
}
.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: linear-gradient(135deg, #00cfff, #0080cc);
  color: #000810;
  border-color: #00cfff;
  box-shadow: 0 0 18px rgba(0, 207, 255, 0.45);
}

.blog-search {
  position: relative;
  flex: 0 1 260px;
  min-width: 200px;
}
.blog-search input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 50px;
  background: rgba(0, 8, 18, 0.75);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: inherit;
  font-size: .88rem;
  transition: var(--transition);
}
.blog-search input::placeholder { color: var(--gray); }
.blog-search input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(0, 207, 255, 0.30);
}
.blog-search .s-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: .9rem;
  pointer-events: none;
}

/* "No results" state */
.blog-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-light);
}
.blog-empty.show { display: block; }
.blog-empty .be-icon { font-size: 2.6rem; display: block; margin-bottom: 12px; opacity: .7; }


/* ============================================================
   3. LISTING — FEATURED POST
   ============================================================ */
.featured-post {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 207, 255, 0.26);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 56px;
  transition: var(--transition);
  box-shadow: 0 0 60px rgba(0, 207, 255, 0.05), inset 0 1px 0 rgba(0, 207, 255, 0.06);
}
.featured-post:hover {
  border-color: rgba(0, 207, 255, 0.55);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 207, 255, 0.18);
}
.featured-post:hover .thumb > img { transform: scale(1.05); }

.featured-post .thumb {
  height: 100%;
  min-height: 320px;
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px solid rgba(0, 207, 255, 0.14);
}
.featured-body {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-body .post-title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.28;
  margin-bottom: 14px;
}
.featured-body .post-excerpt {
  font-size: .95rem;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

/* Ribbon sitting on top of the featured thumbnail */
.featured-flag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #000810;
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.55);
}


/* ============================================================
   4. LISTING — POST GRID + CARD
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 26px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: rgba(0, 14, 30, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 207, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 207, 255, 0.45);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 207, 255, 0.14);
}
.post-card:hover .thumb > img { transform: scale(1.06); }
.post-card:hover .post-title { color: var(--gold-light); }

.post-card.is-hidden { display: none; }

/* Category pill floating on the thumbnail */
.post-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(0, 8, 20, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 207, 255, 0.40);
  color: var(--gold-light);
  box-shadow: 0 0 14px rgba(0, 207, 255, 0.20);
}
.post-cat.cat-green { border-color: rgba(0, 255, 136, 0.40); color: var(--neon); }
.post-cat.cat-amber { border-color: rgba(255, 204, 0, 0.40);  color: var(--amber); }

/* Read-time chip, bottom-right of thumbnail */
.post-time {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  padding: 4px 11px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  background: rgba(0, 8, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 207, 255, 0.22);
  color: var(--gray-light);
}

.post-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .76rem;
  color: var(--gray);
  margin-bottom: 12px;
}
.post-meta .dot { opacity: .45; color: var(--gold); }
.post-meta time { color: var(--gray); }

.post-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 10px;
  color: var(--white);
  transition: color 0.25s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-excerpt {
  color: var(--gray-light);
  font-size: .89rem;
  line-height: 1.75;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tag chips under the excerpt */
.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.post-tags span {
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  color: var(--gray-light);
  background: rgba(0, 207, 255, 0.05);
  border: 1px solid rgba(0, 207, 255, 0.13);
}

/* ── The "Read Now" button ── */
.btn-read {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .4px;
  color: #000810;
  background: linear-gradient(135deg, #00cfff 0%, #0080cc 60%, #005fa3 100%);
  border: 1px solid rgba(0, 207, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 207, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-read::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22) 50%, transparent);
  transition: left 0.5s ease;
}
.btn-read:hover::before { left: 150%; }
.btn-read:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #33d9ff 0%, #00aaee 60%, #007acc 100%);
  box-shadow: 0 0 30px rgba(0, 207, 255, 0.70), 0 6px 22px rgba(0, 207, 255, 0.40);
}
.btn-read .arw { transition: transform 0.3s; }
.btn-read:hover .arw { transform: translateX(4px); }

/* Neon-green variant, used on the featured card */
.btn-read.btn-read-neon {
  width: auto;
  align-self: flex-start;
  padding: 14px 30px;
  color: #001a0e;
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-read.btn-read-neon:hover {
  background: linear-gradient(135deg, #4dffab 0%, #00e076 100%);
  box-shadow: 0 0 34px rgba(0, 255, 136, 0.75), 0 6px 22px rgba(0, 255, 136, 0.35);
}

/* Whole-card link overlay so the card is clickable, button stays focusable */
.post-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-indent: -9999px;
  overflow: hidden;
}
.post-card .btn-read,
.featured-post .btn-read { position: relative; z-index: 6; }


/* ============================================================
   5. LISTING — NEWSLETTER / PUBLISHING-SCHEDULE STRIP
   ============================================================ */
.blog-strip {
  margin-top: 56px;
  padding: 40px 38px;
  border-radius: var(--radius-xl);
  background: rgba(0, 14, 30, 0.60);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 207, 255, 0.26);
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 0 60px rgba(0, 207, 255, 0.04), inset 0 1px 0 rgba(0, 207, 255, 0.05);
}
.blog-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 207, 255, 0.07), transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 100%, rgba(0, 255, 136, 0.05), transparent 60%);
  pointer-events: none;
}
.blog-strip h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}
.blog-strip h2 span { color: var(--neon); text-shadow: 0 0 20px rgba(0, 255, 136, 0.45); }
.blog-strip p {
  color: var(--gray-light);
  max-width: 620px;
  margin: 0 auto 26px;
  line-height: 1.8;
  font-size: .95rem;
  position: relative;
}


/* ============================================================
   6. ARTICLE PAGE — READING PROGRESS BAR
   ============================================================ */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #00cfff, #00ff88);
  box-shadow: 0 0 12px rgba(0, 207, 255, 0.8);
  transition: width 0.12s linear;
}


/* ============================================================
   7. ARTICLE PAGE — HEADER
   ============================================================ */
.article-hero {
  padding: 48px 0 32px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 10, 24, 0.90) 0%, transparent 100%);
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 207, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 100%, rgba(0, 255, 136, 0.06), transparent 60%);
  pointer-events: none;
}
.article-hero .container { position: relative; }

.article-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
  max-width: 900px;
  text-shadow: 0 0 40px rgba(0, 207, 255, 0.18);
}
.article-hero h1 span { color: var(--neon); text-shadow: 0 0 26px rgba(0, 255, 136, 0.50); }
.article-standfirst {
  color: var(--gray-light);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 820px;
  margin-bottom: 26px;
}

/* Byline row */
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.byline-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00cfff, #0080cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #000810;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0, 207, 255, 0.50);
}
.byline-text { line-height: 1.45; }
.byline-name { font-weight: 700; font-size: .92rem; }
.byline-meta { font-size: .78rem; color: var(--gray); }
.byline-spacer { flex: 1; }

/* Share buttons */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  background: rgba(0, 207, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--gold-light);
  transition: var(--transition);
  cursor: pointer;
  font-family: inherit;
}
.share-btn:hover {
  background: rgba(0, 207, 255, 0.16);
  border-color: var(--border-hover);
  box-shadow: 0 0 16px rgba(0, 207, 255, 0.35);
  transform: translateY(-2px);
}

/* Big hero image for the article */
.article-figure {
  margin: 30px 0 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 207, 255, 0.24);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.80), 0 0 40px rgba(0, 207, 255, 0.10);
}
.article-figure .thumb { border-bottom: none; }
.article-figure figcaption {
  padding: 12px 18px;
  font-size: .8rem;
  color: var(--gray);
  background: rgba(0, 8, 18, 0.75);
  border-top: 1px solid rgba(0, 207, 255, 0.12);
  text-align: center;
}


/* ============================================================
   8. ARTICLE PAGE — LAYOUT (main + sticky sidebar)
   ============================================================ */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 48px 0 72px;
  align-items: start;
}
.article-side {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar card shell */
.side-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.side-card h3 {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold-light);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 207, 255, 0.12);
}

/* Table of contents */
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: block;
  padding: 8px 12px 8px 14px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--gray-light);
  border-left: 2px solid rgba(0, 207, 255, 0.14);
  border-radius: 0 6px 6px 0;
  transition: var(--transition);
}
.toc-list a:hover {
  color: var(--gold-light);
  background: rgba(0, 207, 255, 0.06);
  border-left-color: var(--gold);
}
.toc-list a.active {
  color: var(--neon);
  background: rgba(0, 255, 136, 0.07);
  border-left-color: var(--neon);
  font-weight: 700;
}

/* Sidebar download CTA */
.side-cta { text-align: center; }
.side-cta .sc-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(0, 207, 255, 0.45));
}
.side-cta h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.side-cta p { font-size: .84rem; color: var(--gray-light); line-height: 1.7; margin-bottom: 18px; }

/* "More articles" mini list */
.mini-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 207, 255, 0.08);
  transition: var(--transition);
}
.mini-post:last-child { border-bottom: none; padding-bottom: 0; }
.mini-post:hover .mini-title { color: var(--gold-light); }
.mini-post .thumb {
  flex: 0 0 74px;
  width: 74px;
  height: 56px;
  border-radius: 8px;
  border-bottom: none;
  border: 1px solid rgba(0, 207, 255, 0.14);
}
.mini-post .thumb-ph { font-size: 0; gap: 0; background-size: 14px 14px; }
.mini-post .thumb-ph::before { font-size: .95rem; }
.mini-post .thumb-ph small { display: none; }
.mini-title {
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--white);
  transition: color 0.25s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-date { font-size: .72rem; color: var(--gray); margin-top: 4px; }


/* ============================================================
   9. ARTICLE PAGE — BODY TYPOGRAPHY
   ============================================================ */
.article-body { max-width: 760px; }

.article-body > h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 48px 0 16px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
  position: relative;
}
.article-body > h2::before {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--gold), var(--neon));
  box-shadow: 0 0 14px rgba(0, 207, 255, 0.55);
}
.article-body > h2:first-child { margin-top: 0; }
.article-body h2 span { color: var(--neon); }

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 32px 0 12px;
  line-height: 1.4;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}
.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 24px 0 10px;
}

.article-body p {
  color: var(--gray-light);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 18px;
}
.article-body p strong,
.article-body li strong { color: var(--white); font-weight: 700; }
.article-body a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-body a:hover { color: var(--neon); }

/* Lead paragraph */
.article-body p.lead {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--white);
  padding-left: 18px;
  border-left: 3px solid var(--neon);
  margin-bottom: 26px;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.article-body ul li {
  position: relative;
  padding-left: 26px;
  color: var(--gray-light);
  font-size: .98rem;
  line-height: 1.8;
}
.article-body ul li::before {
  content: '\203A';
  position: absolute;
  left: 6px;
  top: -1px;
  color: var(--neon);
  font-weight: 900;
  font-size: 1.15rem;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.55);
}
.article-body ol { counter-reset: alist; }
.article-body ol li {
  position: relative;
  padding-left: 38px;
  color: var(--gray-light);
  font-size: .98rem;
  line-height: 1.8;
  counter-increment: alist;
}
.article-body ol li::before {
  content: counter(alist);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00cfff, #0080cc);
  color: #000810;
  font-size: .76rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 207, 255, 0.45);
}

/* Key-takeaways box (put right after the intro) */
.takeaways {
  background: rgba(0, 255, 136, 0.045);
  border: 1px solid rgba(0, 255, 136, 0.26);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 0 0 32px;
  position: relative;
  overflow: hidden;
}
.takeaways::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 100% 0%, rgba(0, 255, 136, 0.07), transparent 60%);
  pointer-events: none;
}
.takeaways h3 {
  margin: 0 0 14px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--neon);
  display: flex;
  align-items: center;
  gap: 8px;
}
.takeaways ul { margin-bottom: 0; gap: 10px; }
.takeaways ul li { font-size: .93rem; }

/* Callout / tip / warning boxes */
.callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius);
  margin: 26px 0;
  font-size: .93rem;
  line-height: 1.8;
  color: var(--gray-light);
  border: 1px solid var(--border);
  background: rgba(0, 207, 255, 0.045);
}
.callout .co-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1.4; }
.callout strong { display: block; color: var(--white); margin-bottom: 4px; font-size: .95rem; }
.callout-tip   { background: rgba(0, 255, 136, 0.05); border-color: rgba(0, 255, 136, 0.24); }
.callout-warn  { background: rgba(255, 51, 85, 0.05);  border-color: rgba(255, 51, 85, 0.26); }
.callout-amber { background: rgba(255, 204, 0, 0.05);  border-color: rgba(255, 204, 0, 0.26); }

/* Pull quote */
.article-body blockquote {
  margin: 32px 0;
  padding: 24px 26px 24px 30px;
  border-left: 3px solid var(--neon);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(0, 14, 30, 0.55);
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--white);
  font-style: italic;
}
.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: .82rem;
  font-style: normal;
  color: var(--gray);
}

/* Data table */
.table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 8, 18, 0.6);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .89rem;
  min-width: 520px;
}
.article-body thead th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #000810;
  background: linear-gradient(135deg, #00cfff, #0080cc);
  white-space: nowrap;
}
.article-body tbody td {
  padding: 13px 16px;
  color: var(--gray-light);
  border-bottom: 1px solid rgba(0, 207, 255, 0.09);
  line-height: 1.65;
}
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover td { background: rgba(0, 207, 255, 0.045); color: var(--white); }
.article-body tbody td strong { color: var(--neon); }

/* Inline figure inside the article body */
.body-figure { margin: 30px 0; }
.body-figure .thumb {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 207, 255, 0.20);
}
.body-figure figcaption {
  margin-top: 10px;
  font-size: .8rem;
  color: var(--gray);
  text-align: center;
  line-height: 1.6;
}

/* Numbered step blocks */
.steps { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.step-row {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(0, 14, 30, 0.55);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.step-row:hover { border-color: rgba(0, 207, 255, 0.38); box-shadow: 0 0 22px rgba(0, 207, 255, 0.10); }
.step-n {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00cfff, #0080cc);
  color: #000810;
  font-weight: 900;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0, 207, 255, 0.50);
}
.step-row h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--white); }
.step-row p  { margin: 0; font-size: .91rem; line-height: 1.75; color: var(--gray-light); }

/* Stat cards row inside an article */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.stat-chip {
  text-align: center;
  padding: 20px 14px;
  border-radius: var(--radius);
  background: rgba(0, 14, 30, 0.60);
  border: 1px solid var(--border);
}
.stat-chip b {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(0, 255, 136, 0.45);
  margin-bottom: 4px;
}
.stat-chip span { font-size: .78rem; color: var(--gray); line-height: 1.4; }

/* Pros / cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.pc-card {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(0, 14, 30, 0.55);
  border: 1px solid var(--border);
}
.pc-card h4 {
  margin: 0 0 14px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.pc-good h4 { color: var(--neon); }
.pc-bad  h4 { color: var(--red); }
.pc-card ul { margin: 0; gap: 9px; }
.pc-card ul li { font-size: .88rem; padding-left: 24px; }
.pc-good ul li::before { content: '\2713'; color: var(--neon); font-size: .95rem; top: 1px; }
.pc-bad  ul li::before { content: '\2715'; color: var(--red);  font-size: .9rem;  top: 1px; text-shadow: 0 0 8px rgba(255, 51, 85, 0.5); }

/* Mid-article conversion banner */
.inline-cta {
  margin: 36px 0;
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(0, 14, 30, 0.65);
  border: 1px solid rgba(0, 207, 255, 0.30);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 44px rgba(0, 207, 255, 0.06), inset 0 1px 0 rgba(0, 207, 255, 0.06);
}
.inline-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 207, 255, 0.09), transparent 65%);
  pointer-events: none;
}
.inline-cta h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}
.inline-cta h3 span { color: var(--neon); }
.inline-cta p {
  position: relative;
  margin: 0 auto 20px;
  max-width: 480px;
  font-size: .92rem;
  color: var(--gray-light);
}
.inline-cta .btn { position: relative; }

/* Tag row at the end of the article */
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 40px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.article-tags .at-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray);
  margin-right: 4px;
}
.article-tags a {
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 50px;
  color: var(--gold-light);
  background: rgba(0, 207, 255, 0.06);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
}
.article-tags a:hover {
  background: rgba(0, 207, 255, 0.15);
  border-color: var(--border-hover);
  color: var(--white);
}

/* Author box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(0, 14, 30, 0.55);
  border: 1px solid var(--border);
}
.author-box .byline-avatar { width: 60px; height: 60px; font-size: 1.35rem; }
.author-box h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; }
.author-box .ab-role {
  font-size: .8rem;
  color: var(--neon);
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.35);
}
.author-box p { margin: 0; font-size: .88rem; line-height: 1.75; color: var(--gray-light); }

/* Prev / next navigation */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}
.an-card {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(0, 14, 30, 0.55);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.an-card:hover {
  border-color: rgba(0, 207, 255, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 22px rgba(0, 207, 255, 0.12);
}
.an-card .an-dir {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 8px;
}
.an-card .an-title { font-size: .93rem; font-weight: 700; line-height: 1.5; color: var(--white); }
.an-card.an-next { text-align: right; }
.an-card.an-empty { opacity: .35; pointer-events: none; }


/* ============================================================
   10. RELATED POSTS (bottom of article page)
   ============================================================ */
.related-section {
  padding: 60px 0 80px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}


/* ============================================================
   11. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .article-shell { grid-template-columns: 1fr; gap: 40px; }
  .article-side  { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-side .side-card { flex: 1 1 300px; }
  .article-side .side-card.toc-card { flex: 1 1 100%; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .thumb { min-height: 260px; aspect-ratio: 16 / 9; border-right: none; border-bottom: 1px solid rgba(0, 207, 255, 0.14); }
}

@media (max-width: 768px) {
  .blog-toolbar { padding: 16px; gap: 14px; }
  .blog-search  { flex: 1 1 100%; }
  .blog-cats    { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .blog-cats::-webkit-scrollbar { display: none; }
  .posts-grid   { grid-template-columns: 1fr; gap: 22px; }
  .featured-body { padding: 28px 22px; }
  .blog-strip   { padding: 30px 20px; }
  .article-shell { padding: 36px 0 56px; }
  .article-body p.lead { font-size: 1.02rem; }
  .pros-cons    { grid-template-columns: 1fr; }
  .article-nav  { grid-template-columns: 1fr; }
  .an-card.an-next { text-align: left; }
  .author-box   { flex-direction: column; gap: 14px; }
  .byline-spacer { display: none; }
  .share-row    { width: 100%; }
  .article-side { flex-direction: column; }
}

@media (max-width: 480px) {
  .article-body > h2 { margin-top: 38px; }
  .step-row  { flex-direction: column; gap: 10px; }
  .stat-row  { grid-template-columns: 1fr 1fr; }
  .btn-read.btn-read-neon { width: 100%; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .thumb > img,
  .btn-read::before,
  .read-progress { transition: none; }
}
