html { scroll-behavior: smooth; }

/* ============================================
   READING PROGRESS BAR
   ============================================ */

.blog-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--linear, linear-gradient(90deg, #00e0ff 0%, #00ff94 100%));
  z-index: 9999;
  transition: width 80ms linear;
}


/* ============================================
   BACK LINK
   ============================================ */

.blog-back-row {
  padding-top: 28px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: color 180ms ease;
}

.blog-back-link:hover { color: #00e0ff; }


/* ============================================
   HERO
   ============================================ */

.blog-hero {
  padding: 44px 0 56px;
  position: relative;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 224, 255, 0.045) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-hero-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}

.blog-hero-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 13px;
  border-radius: 999px;
  border: 1px solid rgba(0, 224, 255, 0.2);
  background: rgba(0, 224, 255, 0.05);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00e0ff;
  text-decoration: none;
  transition: background 180ms, border-color 180ms;
}

.blog-hero-cat:hover {
  background: rgba(0, 224, 255, 0.1);
  border-color: rgba(0, 224, 255, 0.4);
}

.blog-hero-title {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #fff;
  margin-bottom: 22px;
}

.blog-hero-intro {
  font-size: 18px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 28px;
  max-width: 600px;
}

.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
  margin-top: 4px;
}

.blog-hero-meta-sep { color: #2a2a2a; }

.blog-hero-meta-author {
  font-size: 13px;
  color: #3a3a3a;
}

.blog-hero-meta-read {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #1e1e1e;
  font-size: 11px;
  font-weight: 600;
  color: #555;
}


/* ============================================
   COVER IMAGE — FULL BLEED
   ============================================ */

.blog-cover {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
}

.blog-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.blog-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent 0%, #000 100%);
  pointer-events: none;
}


/* ============================================
   BODY GRID — ARTICLE + SIDEBAR
   ============================================ */

.blog-body-grid {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 88px;
  align-items: start;
}


/* ============================================
   ARTICLE — POST CONTENT
   ============================================ */

.blog-article { min-width: 0; }

.post-- { color: #9a9a9a; }

.post-- > * + * { margin-top: 22px; }

.post-- p {
  font-size: 17px;
  line-height: 1.88;
  color: #8a8a8a;
  margin-bottom: 0;
}

.post-- h2 {
  font-size: 27px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #141414;
}

.post-- h3 {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-top: 44px;
}

.post-- h4 {
  font-size: 17px;
  font-weight: 700;
  color: #00e0ff;
  margin-top: 36px;
}

.post-- h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #444;
  margin-top: 32px;
}

/* Intro paragraph — brighter, slightly larger */
.post-- > p:first-child {
  font-size: 19px;
  color: #aaa;
  line-height: 1.8;
}

/* Drop cap */
.post-- > p:first-child::first-letter {
  float: left;
  font-size: 4em;
  font-weight: 800;
  line-height: 0.82;
  margin: 6px 10px 0 0;
  background: var(--linear, linear-gradient(168deg, #00e0ff 0%, #00ff94 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-- img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.post-- a {
  color: #00e0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 224, 255, 0.3);
  transition: text-decoration-color 180ms;
}
.post-- a:hover { text-decoration-color: #00e0ff; }

.post-- strong { color: #e0e0e0; font-weight: 700; }
.post-- em     { font-style: italic; color: #aaa; }

.post-- ul,
.post-- ol {
  padding-left: 22px;
}
.post-- ul { list-style: disc; }
.post-- ol { list-style: decimal; }

.post-- li {
  font-size: 17px;
  color: #8a8a8a;
  line-height: 1.75;
  margin-bottom: 8px;
}

.post-- blockquote {
  border-left: none;
  padding: 20px 26px;
  background: #080808;
  border-radius: 0 10px 10px 0;
  position: relative;
}

.post-- blockquote::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #00e0ff, #00ff94);
  border-radius: 2px;
}

.post-- blockquote p {
  font-size: 19px;
  font-style: italic;
  color: #ccc;
  line-height: 1.65;
}

.post-- pre {
  background: #080808;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  padding: 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.65;
}

.post-- code {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  background: #101010;
  border: 1px solid #1e1e1e;
  border-radius: 4px;
  padding: 2px 6px;
  color: #00ff94;
}
.post-- pre code {
  background: none;
  border: none;
  padding: 0;
  color: #9a9a9a;
}

.post-- hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #1e1e1e 25%, #1e1e1e 75%, transparent 100%);
}

/* Article footer */
.blog-article-footer {
  border-top: 1px solid #141414;
  padding-top: 36px;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-article-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-article-footer-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-article-footer-date {
  font-size: 12px;
  color: #3a3a3a;
}

/* Share row */
.blog-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.blog-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2e2e2e;
  margin-right: 2px;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #1e1e1e;
  background: #0a0a0a;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms, border-color 180ms, background 180ms;
  font-family: inherit;
}

.blog-share-btn:hover {
  color: #fff;
  border-color: #2e2e2e;
  background: #111;
}

.blog-share-btn--li:hover  { color: #0a66c2; border-color: rgba(10, 102, 194, 0.3); background: rgba(10,102,194,0.05); }
.blog-share-btn--copy:hover { color: #00ff94; border-color: rgba(0, 255, 148, 0.25); background: rgba(0,255,148,0.04); }


/* ============================================
   SIDEBAR
   ============================================ */

.blog-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* TOC card */
.blog-sidebar-toc {
  background: #080808;
  border: 1px solid #1a1a1a;
  border-radius: 14px;
  padding: 20px;
}

.blog-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 12px;
}

/* CTA card */
.blog-sidebar-cta {
  background: #080808;
  border: 1px solid #1a1a1a;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.blog-sidebar-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--linear, linear-gradient(168deg, #00e0ff 0%, #00ff94 100%));
}

.blog-cta-heading {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.blog-cta-heading span {
  background: var(--linear, linear-gradient(168deg, #00e0ff 0%, #00ff94 100%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-cta-sub {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin: 0 0 6px;
}

.blog-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--linear, linear-gradient(168deg, #00e0ff 0%, #00ff94 100%));
  color: #050505;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 180ms, transform 180ms;
}
.blog-cta-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}


/* ============================================
   TOC — EZ TOC PLUGIN OVERRIDES
   ============================================ */

#ez-toc-container {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.ez-toc-title-container,
a.ez-toc-toggle { display: none !important; }

.ez-toc-counter nav ul,
#ez-toc-container nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#ez-toc-container nav ul li { margin-bottom: 1px; }

#ez-toc-container nav ul li a {
  font-size: 12.5px !important;
  color: #3a3a3a !important;
  text-decoration: none;
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.45;
  transition: color 150ms, background 150ms;
}

#ez-toc-container nav ul li a:visited { color: #3a3a3a !important; }

#ez-toc-container nav ul li a:hover {
  color: #00e0ff !important;
  background: rgba(0, 224, 255, 0.06);
}

#ez-toc-container nav ul li a.toc-active {
  color: #00e0ff !important;
  background: rgba(0, 224, 255, 0.06);
}

#ez-toc-container nav ul ul {
  padding-left: 12px;
  margin-top: 1px;
}

.ez-toc-counter nav ul li a::before { display: none !important; }


/* ============================================
   MORE POSTS
   ============================================ */

.blog-more {
  border-top: 1px solid #111;
  padding: 72px 0 96px;
}

.blog-more-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.blog-more-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  flex: 1;
}

/* Navigation arrow buttons */
.blog-more-nav {
  display: flex;
  gap: 8px;
}

.blog-more-prev,
.blog-more-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #232524;
  background: #0a0a0a;
  color: #666;
  cursor: pointer;
  transition: color 180ms, border-color 180ms, background 180ms;
}

.blog-more-prev:hover,
.blog-more-next:hover {
  color: #00e0ff;
  border-color: rgba(0, 224, 255, 0.3);
  background: rgba(0, 224, 255, 0.04);
}

.blog-more-prev.swiper-button-disabled,
.blog-more-next.swiper-button-disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.blog-more-all {
  font-size: 13px;
  color: #444;
  text-decoration: none;
  transition: color 180ms;
  white-space: nowrap;
}
.blog-more-all:hover { color: #00e0ff; }

/* Swiper container overrides */
.morePostsSwiper {
  overflow: hidden;
}

.morePostsSwiper .swiper-wrapper {
  align-items: stretch;
}

.morePostsSwiper .swiper-slide {
  height: auto;
}

.blog-more-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: #060606;
  border: 1px solid #141414;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 250ms, transform 250ms;
}

.blog-more-card:hover {
  border-color: rgba(0, 224, 255, 0.12);
  transform: translateY(-4px);
}

.blog-more-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}

.blog-more-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.blog-more-card:hover .blog-more-card-img img {
  transform: scale(1.04);
}

.blog-more-card-placeholder {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  background-image: radial-gradient(#161616 1px, transparent 1px);
  background-size: 18px 18px;
}

.blog-more-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.blog-more-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00e0ff;
}

.blog-more-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #d0d0d0;
  line-height: 1.4;
  margin: 0;
}

.blog-more-card-date {
  font-size: 11px;
  color: #3a3a3a;
}


/* ============================================
   BLOG LISTING PAGE — HERO
   ============================================ */

.main-blog-con {
  padding-top: 80px;
  padding-bottom: 60px;
}

.main-blog-con h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 20px;
}

.main-blog-con p {
  font-size: 17px;
  color: #555;
  line-height: 1.7;
  max-width: 520px;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .blog-body-grid {
    grid-template-columns: 1fr 240px;
    gap: 44px;
  }
  .blog-hero-title { font-size: 50px; }
}

@media (max-width: 768px) {
  .blog-hero-title { font-size: 36px; }
  .blog-hero-intro { font-size: 16px; }

  .blog-body-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-sidebar {
    position: static;
    order: -1;
  }

  .blog-sidebar-cta { display: none; }

  .blog-more-nav { display: none; }
  .blog-cover { max-height: 280px; }
  .blog-cover img { max-height: 280px; }

  .main-blog-con h1 { font-size: 44px; }
}

@media (max-width: 480px) {
  .blog-hero-title { font-size: 28px; }
  .post-- p, .post-- li { font-size: 15px; }
  .post-- h2 { font-size: 22px; }
  .post-- h3 { font-size: 18px; }

  .blog-hero-meta-author { display: none; }

  .post-- > p:first-child::first-letter {
    float: none;
    font-size: 1em;
    -webkit-text-fill-color: inherit;
    background: none;
    margin: 0;
    line-height: inherit;
  }
}
