/* ============================================================
   SINGLE BLOG DETAIL  —  single-blog.css  v=20260527
   AthenaS green model · single-blog-* namespace
   ============================================================ */

/* 0. Body override — beats style.css body{background:#fff} */
body:has(.single-blog-page),
body.single-blog-page {
  background: #020b06 !important;
  color: #ffffff !important;
}
.single-blog-page {
  background: #020b06;
  color: #ffffff;
  min-height: 100vh;
  font-family: 'Poppins','Inter',sans-serif;
}
.single-blog-page p  { color: rgba(200,230,180,.78) !important; }
.single-blog-page h1,
.single-blog-page h2,
.single-blog-page h3,
.single-blog-page h4 { color: #ffffff !important; }
.single-blog-page .ui-reveal { opacity:1!important; transform:none!important; }

/* 1. Keyframes */
@keyframes sbGlowPulse {
  0%,100% { opacity:.7;  transform:translate(-50%,-50%) scale(1);    }
  50%      { opacity:1;   transform:translate(-50%,-50%) scale(1.18); }
}
@keyframes sbGridDrift {
  from { background-position:0 0; }
  to   { background-position:64px 64px; }
}
@keyframes sbFadeUp {
  from { opacity:0; transform:translateY(44px); }
  to   { opacity:1; transform:translateY(0); }
}

/* 2. Hero */
.single-blog-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #020b06;
  padding: 140px 24px 80px; /* bx-navbar is 80px; 60px breathing room */
}
/* grid pattern */
.single-blog-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(182,255,46,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182,255,46,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  animation: sbGridDrift 20s linear infinite;
}
.single-blog-hero__glow {
  position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(182,255,46,.18) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none; z-index: 0;
  animation: sbGlowPulse 7s ease-in-out infinite;
}
.single-blog-hero__dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.single-blog-hero__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: 860px;
}
.single-blog-category {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase;
  color: #b6ff2e;
  background: rgba(182,255,46,.08);
  border: 1px solid rgba(182,255,46,.22);
  padding: 6px 18px; border-radius: 999px;
}
.single-blog-title {
  font-family: 'Poppins','Inter',sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  font-weight: 900; color: #fff; line-height: 1.2;
  margin: 0;
  text-shadow: 0 0 40px rgba(182,255,46,.18);
  animation: sbFadeUp .85s cubic-bezier(.22,1,.36,1) both;
}
.single-blog-meta {
  font-size: 13px; color: rgba(200,230,180,.65);
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}
.single-blog-meta span { display: flex; align-items: center; gap: 6px; }
.single-blog-meta i { color: #b6ff2e; }

/* 3. Body section */
.single-blog-body {
  position: relative;
  background: #020b06;
  padding: 60px 0 100px;
  overflow: hidden;
}
.single-blog-body::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(182,255,46,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182,255,46,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
}
.single-blog-container {
  width: min(1180px, 92%);
  margin: 0 auto;
  position: relative; z-index: 1;
}

/* 4. Two-column layout — article 70%, sidebar 30% */
.single-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: start;
}

/* 5. Article content */
.single-blog-content { min-width: 0; }

/* Stagger reveal — visible by default, JS opts in */
.single-blog-content > * {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity  .75s cubic-bezier(.22,1,.36,1),
    transform .75s cubic-bezier(.22,1,.36,1);
}
.sb-reveal-ready .single-blog-content > * {
  opacity: 0;
  transform: translateY(40px);
}
.single-blog-content > *.sb-visible {
  opacity: 1 !important; transform: translateY(0) !important;
}

/* Images */
.single-blog-img {
  margin: 28px 0 36px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(182,255,46,.18);
  box-shadow: 0 0 40px rgba(182,255,46,.08), 0 24px 60px rgba(0,0,0,.55);
}
.single-blog-img img {
  width: 100%; height: auto; max-height: 480px;
  object-fit: cover; display: block;
  transition: transform .7s ease;
}
.single-blog-img:hover img { transform: scale(1.04); }

/* Typography */
.single-blog-content p {
  font-size: 1rem; line-height: 1.9;
  color: rgba(200,230,180,.78) !important;
  margin: 0 0 22px;
}
.single-blog-content h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800; color: #fff !important;
  margin: 40px 0 16px; line-height: 1.25;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(182,255,46,.15);
}
.single-blog-content h3 {
  font-size: 1.05rem; font-weight: 700;
  color: #b6ff2e !important; margin: 26px 0 10px;
}
.single-blog-content ul,
.single-blog-content ol {
  padding-left: 1.6rem; margin: 0 0 22px;
  color: rgba(200,230,180,.78) !important; line-height: 1.9;
}
.single-blog-content ul li,
.single-blog-content ol li { margin-bottom: 10px; }
.single-blog-content strong { color: #fff; }
.single-blog-content em { color: #b6ff2e; font-style: italic; }

/* Share bar */
.single-blog-share {
  margin: 48px 0 0; padding: 28px 0;
  border-top: 1px solid rgba(182,255,46,.10);
  border-bottom: 1px solid rgba(182,255,46,.10);
}
.single-blog-share h4 {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .22em;
  color: rgba(200,230,180,.65); margin: 0 0 14px;
}
.single-blog-share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.single-blog-share-btns a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 16px; color: #fff; text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.single-blog-share-btns a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}
.sb-fb { background: #355da8; }
.sb-tw { background: #1da1f2; }
.sb-wa { background: #25d366; }
.sb-li { background: #0077b5; }
.sb-em { background: #2d6a2d; }

/* Author card */
.single-blog-author {
  position: relative; overflow: hidden;
  margin-top: 48px; padding: 28px;
  background: linear-gradient(180deg, rgba(182,255,46,.055), rgba(182,255,46,.02));
  border: 1px solid rgba(182,255,46,.14);
  border-radius: 20px;
  display: flex; gap: 22px; align-items: flex-start;
  backdrop-filter: blur(12px);
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.single-blog-author::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: #b6ff2e;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.single-blog-author:hover::before { transform: scaleX(1); }
.single-blog-author:hover {
  border-color: rgba(182,255,46,.30);
  box-shadow: 0 20px 50px rgba(0,0,0,.34), 0 0 36px rgba(182,255,46,.10);
  transform: translateY(-4px);
}
.single-blog-author__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: #b6ff2e;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; color: #020b06;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(182,255,46,.45);
}
.single-blog-author__info h4 {
  font-size: 1rem; font-weight: 800; color: #fff !important; margin: 0 0 6px;
}
.single-blog-author__info p {
  font-size: .9rem; color: rgba(200,230,180,.72) !important; margin: 0; line-height: 1.7;
}

/* Reply form */
.single-blog-reply {
  margin-top: 56px; padding-top: 48px;
  border-top: 1px solid rgba(182,255,46,.10);
}
.single-blog-reply h2 {
  font-size: clamp(1.4rem,2.5vw,2rem); font-weight: 900;
  color: #fff !important; margin: 0 0 8px;
}
.single-blog-reply__note {
  font-size: 13px; color: rgba(200,230,180,.65) !important; margin: 0 0 28px;
}
.single-blog-reply__note span { color: #b6ff2e; }
.single-blog-reply__form { display: flex; flex-direction: column; gap: 18px; }
.sbr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sbr-group { display: flex; flex-direction: column; gap: 7px; }
.sbr-group label { font-size: 13px; font-weight: 700; color: #fff !important; }
.sbr-group label span { color: #b6ff2e; }
.single-blog-reply__form textarea,
.single-blog-reply__form input {
  width: 100%; box-sizing: border-box;
  background: rgba(2,11,6,.80);
  border: 1px solid rgba(182,255,46,.14);
  border-radius: 8px; color: #fff;
  font-family: 'Poppins',sans-serif; font-size: 14px;
  padding: 12px 14px; outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.single-blog-reply__form textarea::placeholder,
.single-blog-reply__form input::placeholder { color: rgba(200,230,180,.28); }
.single-blog-reply__form textarea:focus,
.single-blog-reply__form input:focus {
  border-color: #b6ff2e;
  box-shadow: 0 0 0 3px rgba(182,255,46,.12);
}
.sbr-alert { font-size: 13px; min-height: 18px; color: #b6ff2e; }
.single-blog-reply__form button[type="submit"] {
  width: max-content; border: 0; border-radius: 999px;
  padding: 14px 32px; color: #020b06;
  font-family: 'Poppins',sans-serif; font-size: .875rem;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: #b6ff2e; cursor: pointer;
  box-shadow: 0 0 28px rgba(182,255,46,.38), 0 8px 24px rgba(0,0,0,.28);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.single-blog-reply__form button[type="submit"]:hover {
  background: #c8ff5a;
  transform: translateY(-3px);
  box-shadow: 0 0 48px rgba(182,255,46,.55);
}

/* 6. Sidebar */
.single-blog-sidebar {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 28px;
}

/* Sidebar card */
.single-blog-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(182,255,46,.055), rgba(182,255,46,.02));
  border: 1px solid rgba(182,255,46,.14);
  border-radius: 20px;
  padding: 26px 24px;
  backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(40px);
  transition:
    opacity  .75s cubic-bezier(.22,1,.36,1),
    transform .75s cubic-bezier(.22,1,.36,1),
    border-color .4s ease, box-shadow .4s ease;
}
.single-blog-card.sb-visible { opacity: 1; transform: translateY(0); }
.single-blog-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: #b6ff2e;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.single-blog-card:hover::before { transform: scaleX(1); }
.single-blog-card:hover {
  border-color: rgba(182,255,46,.30);
  box-shadow: 0 20px 50px rgba(0,0,0,.34), 0 0 36px rgba(182,255,46,.10);
  transform: translateY(-4px);
}
.single-blog-card h3 {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .22em;
  color: #b6ff2e !important; margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(182,255,46,.12);
}

/* Categories */
.sb-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sb-cat-list li a {
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(200,230,180,.72); font-size: 14px; text-decoration: none;
  padding: 7px 0; border-bottom: 1px solid rgba(182,255,46,.06);
  transition: color .25s ease, padding-left .25s ease;
}
.sb-cat-list li a:hover { color: #b6ff2e; padding-left: 6px; }
.sb-cat-list li a span { color: rgba(182,255,46,.55); font-size: 12px; }

/* Newsletter */
.sb-nl-desc { font-size: 13px; color: rgba(200,230,180,.65) !important; line-height: 1.6; margin: 0 0 14px; }
.sb-nl-form { display: flex; flex-direction: column; gap: 10px; }
.sb-nl-form input {
  width: 100%; box-sizing: border-box;
  background: rgba(2,11,6,.80);
  border: 1px solid rgba(182,255,46,.14);
  border-radius: 8px; color: #fff;
  font-family: 'Poppins',sans-serif; font-size: 13px;
  padding: 10px 13px; outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.sb-nl-form input::placeholder { color: rgba(200,230,180,.28); }
.sb-nl-form input:focus { border-color: #b6ff2e; box-shadow: 0 0 0 3px rgba(182,255,46,.12); }
.sb-nl-form button {
  width: 100%; border: 0; border-radius: 999px;
  padding: 11px 20px; color: #020b06;
  font-family: 'Poppins',sans-serif; font-size: .78rem;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: #b6ff2e; cursor: pointer;
  box-shadow: 0 0 22px rgba(182,255,46,.35);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.sb-nl-form button:hover {
  background: #c8ff5a;
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(182,255,46,.55);
}

/* Latest posts card (from includes/latest-posts.php) */
.single-blog-sidebar .latest-posts-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(182,255,46,.055), rgba(182,255,46,.02));
  border: 1px solid rgba(182,255,46,.14);
  border-radius: 20px; padding: 24px;
  backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(40px);
  transition:
    opacity  .75s cubic-bezier(.22,1,.36,1),
    transform .75s cubic-bezier(.22,1,.36,1),
    border-color .4s ease, box-shadow .4s ease;
}
.single-blog-sidebar .latest-posts-card.sb-visible { opacity: 1; transform: translateY(0); }
.single-blog-sidebar .latest-posts-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: #b6ff2e;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.single-blog-sidebar .latest-posts-card:hover::before { transform: scaleX(1); }
.single-blog-sidebar .latest-posts-card:hover {
  border-color: rgba(182,255,46,.30);
  box-shadow: 0 20px 50px rgba(0,0,0,.34), 0 0 36px rgba(182,255,46,.10);
  transform: translateY(-4px);
}
.single-blog-sidebar .latest-posts-card h3 {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .22em;
  color: #b6ff2e !important; margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(182,255,46,.12);
}
.single-blog-sidebar .latest-post-item {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 12px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(182,255,46,.06);
}
.single-blog-sidebar .latest-post-item:last-child { border-bottom: none; }
.single-blog-sidebar .latest-post-item img {
  width: 72px !important; height: 62px !important; max-width: 72px !important;
  object-fit: cover; border-radius: 10px; display: block;
  margin: 0 !important;
  border: 1px solid rgba(182,255,46,.12) !important;
  box-shadow: none !important;
  transition: transform .35s ease;
}
.single-blog-sidebar .latest-post-item:hover img { transform: scale(1.06); }
.single-blog-sidebar .latest-post-item h4 { margin: 0 0 5px; font-size: 13px; line-height: 1.3; font-weight: 700; }
.single-blog-sidebar .latest-post-item h4 a {
  color: rgba(220,240,210,.88); text-decoration: none;
  transition: color .25s ease;
}
.single-blog-sidebar .latest-post-item h4 a:hover { color: #b6ff2e; }
.single-blog-sidebar .latest-post-item span { color: rgba(182,255,46,.55); font-size: 11px; display: block; }

/* 7. Responsive */
@media (max-width: 1024px) {
  .single-blog-layout { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 28px; }
}
@media (max-width: 991px) {
  .single-blog-layout { grid-template-columns: 1fr !important; }
  .single-blog-sidebar { position: static; }
}
@media (max-width: 768px) {
  .single-blog-hero { padding: 110px 20px 60px; }
  .sbr-row { grid-template-columns: 1fr; }
  .single-blog-author { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .single-blog-hero { padding: 100px 16px 50px; }
  .single-blog-title { font-size: 1.4rem; }
  .single-blog-img { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .single-blog-content > *,
  .single-blog-card,
  .single-blog-sidebar .latest-posts-card {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .single-blog-hero::before,
  .single-blog-hero__glow { animation: none !important; }
}

/* ============================================================
   SINGLE BLOG DETAIL LAYOUT POLISH
   Final overrides for C/C++ and other single-blog-* pages.
   ============================================================ */
.single-blog-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 78, 24, .42), transparent 42%),
    #080c08;
}

.single-blog-hero {
  min-height: auto;
  padding: 150px 24px 58px;
}

.single-blog-hero__inner {
  width: min(1180px, 92%);
  max-width: none;
}

.blog-detail-title,
.single-blog-title,
.single-blog-hero h1 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.05;
  max-width: 1100px;
  margin: 0 auto 24px;
  text-align: center;
  word-break: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
  letter-spacing: 0;
  animation: sbFadeUp .85s cubic-bezier(.22,1,.36,1) both;
}

.single-blog-meta {
  gap: 14px 24px;
  margin: 0 auto;
  max-width: 920px;
  color: rgba(220, 240, 210, .74);
}

.single-blog-meta span {
  min-width: max-content;
}

.single-blog-container {
  width: min(1320px, 92%);
  max-width: 1320px;
}

.single-blog-layout {
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 48px;
}

.single-blog-body {
  padding: 64px 0 108px;
}

.single-blog-content {
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(182, 255, 46, .14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(182, 255, 46, .025));
  box-shadow: 0 24px 72px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(16px) saturate(1.12);
}

.single-blog-img {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 40px;
  border-radius: 24px;
}

.single-blog-img + p,
.single-blog-img + h2,
.single-blog-img + h3 {
  margin-top: 0;
}

.single-blog-img img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  border-radius: 24px;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}

.single-blog-img:hover img {
  transform: scale(1.035);
}

.single-blog-sidebar {
  gap: 28px;
}

.single-blog-card,
.single-blog-sidebar .latest-posts-card {
  opacity: 1;
  transform: translateY(0);
  border-radius: 20px;
  padding: 26px 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(182, 255, 46, .025));
  border: 1px solid rgba(182, 255, 46, .15);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.single-blog-card:hover,
.single-blog-sidebar .latest-posts-card:hover {
  border-color: rgba(182, 255, 46, .32);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .38), 0 0 34px rgba(182, 255, 46, .12);
}

.sb-reveal-ready .single-blog-card,
.sb-reveal-ready .single-blog-sidebar .latest-posts-card {
  opacity: 0;
  transform: translateX(36px);
}

.sb-reveal-ready .single-blog-card.sb-visible,
.sb-reveal-ready .single-blog-sidebar .latest-posts-card.sb-visible {
  opacity: 1;
  transform: translateX(0);
}

.sb-reveal-ready .single-blog-card.sb-visible:hover,
.sb-reveal-ready .single-blog-sidebar .latest-posts-card.sb-visible:hover {
  transform: translateY(-4px);
}

.sb-nl-form input,
.single-blog-reply__form input,
.single-blog-reply__form textarea {
  border-radius: 10px;
}

.sb-nl-form input,
.sb-nl-form button {
  min-height: 46px;
}

@media (max-width: 1100px) {
  .single-blog-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
  }
}

@media (max-width: 991px) {
  .single-blog-layout {
    grid-template-columns: 1fr;
  }

  .single-blog-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .single-blog-hero {
    padding: 118px 18px 42px;
  }

  .blog-detail-title,
  .single-blog-title,
  .single-blog-hero h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .single-blog-content {
    padding: 20px;
    border-radius: 18px;
  }

  .single-blog-img,
  .single-blog-img img {
    border-radius: 16px;
  }
}
