/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0A0F1E;
  --bg2:     #1A2744;
  --accent:  #4F8EF7;
  --teal:    #00D4AA;
  --white:   #FFFFFF;
  --muted:   #8892A4;
  --border:  rgba(79,142,247,0.15);
  --card-bg: rgba(26,39,68,0.6);
  --display: 'Plus Jakarta Sans', sans-serif;
  --body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

/* ── FORCE OVERRIDE ASTRA AND ANY OTHER THEME CSS ─────────── */
html body,
html body.ast-page-builder-template,
html body.blog,
html body.single,
html body.single-post,
html body.archive {
  background: #0A0F1E !important;
  color: #FFFFFF !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* Force ALL headings white — overrides Astra, Elementor, anything */
h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.single-hero h1,
.blog-hero h1,
.post-card h2,
.post-nav-title {
  color: #FFFFFF !important;
}

/* Force body text white */
p, li, span, td, th, blockquote,
.entry-content p,
.entry-content li {
  color: rgba(255,255,255,0.85);
}

/* Force muted elements */
.post-meta,
.single-meta,
.post-excerpt,
.blog-hero p,
.post-nav-label,
.spinner-text,
.all-loaded {
  color: #8892A4 !important;
}

/* Remove any white or light backgrounds Astra injects */
#page, #content, #primary, #secondary,
.ast-container, .ast-article-post,
.site-content, .entry-content,
article, .post, .page {
  background: transparent !important;
  color: #FFFFFF !important;
}

/* Force ALL headings white everywhere */
h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-title a,
.page-title,
.site-title,
.ast-header-break-point .main-header-bar,
body h1, body h2, body h3, body h4, body h5, body h6,
.single-hero h1,
.blog-hero h1,
.post-card h2,
.post-nav-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', 'Arial Black', sans-serif !important;
}

/* Force body text colour */
body p,
body li,
body td,
body th,
body span,
body div,
.entry-content p,
.entry-content li {
  color: inherit;
}

/* Kill any white backgrounds Astra might inject */
.ast-container,
.site-content,
.content-area,
.ast-article-post,
.ast-separate-container,
.ast-page-builder-template .ast-article-post,
#content,
#primary,
.ast-primary-sticky-sidebar,
.sidebar-primary,
.widget-area {
  background: transparent !important;
  background-color: transparent !important;
}

/* Remove Astra's default padding that shifts content */
.ast-separate-container .ast-article-post,
.ast-article-post,
.entry-content-wrap {
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Hide Astra elements we don't want */
.ast-breadcrumbs-wrapper,
.ast-comment-list,
.comments-area,
.post-navigation.navigation,
.ast-post-meta,
.entry-meta,
.entry-footer,
.ast-author-bio,
.ast-related-posts-title,
.related-posts-title,
#comments {
  display: none !important;
}

/* Remove Astra header — we have our own */
#masthead,
.ast-mobile-header-wrap,
.ast-primary-header-bar,
.main-header-bar,
.ast-below-header-wrap,
.ast-above-header-wrap {
  display: none !important;
}

/* Remove Astra footer — we have our own */
#colophon,
.site-footer,
.footer-widget-area,
.ast-small-footer {
  display: none !important;
}

/* Fix admin bar offset */
.admin-bar #page-wrap { padding-top: 97px; }
.admin-bar #site-nav  { top: 32px; }
@media (max-width: 782px) {
  .admin-bar #page-wrap { padding-top: 111px; }
  .admin-bar #site-nav  { top: 46px; }
}

body {
  background: var(--bg) !important;
  color: var(--white) !important;
  font-family: var(--body) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased !important;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }

/* ── CONTAINER ────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
}

/* ── NAV ──────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.current { color: var(--white); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85 !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  display: block;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0; right: 0;
  background: rgba(10,15,30,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--white); }

/* ── MAIN CONTENT OFFSET (fixed nav) ─────────────────────── */
#page-wrap { padding-top: 65px; }

/* ── BLOG LISTING PAGE ────────────────────────────────────── */
.blog-hero {
  background: var(--bg);
  padding: 80px 40px 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.blog-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.blog-hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--white);
}

.blog-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── POSTS GRID ───────────────────────────────────────────── */
.posts-section {
  padding: 64px 40px 100px;
  background: var(--bg);
}

.posts-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── POST CARD ────────────────────────────────────────────── */
.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.post-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0;
  transition: opacity 0.3s;
}

.post-card:hover {
  border-color: rgba(79,142,247,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  color: inherit;
}

.post-card:hover::before { opacity: 1; }

/* Thumbnail */
.post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg2);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img { transform: scale(1.04); }

/* No thumbnail placeholder */
.post-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--bg2), rgba(79,142,247,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-thumb-placeholder svg {
  opacity: 0.15;
  width: 40px;
  height: 40px;
}

/* Category tag */
.post-tag {
  display: inline-block;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  width: fit-content;
}

/* Post title */
.post-card h2 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  flex-grow: 0;
}

/* Excerpt */
.post-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta */
.post-meta {
  font-size: 12px;
  color: rgba(136,146,164,0.7);
  font-weight: 500;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(136,146,164,0.4);
  flex-shrink: 0;
}

/* ── LOAD MORE / INFINITE SCROLL ─────────────────────────── */
.load-more-wrapper {
  max-width: 1200px;
  margin: 48px auto 0;
  display: flex;
  justify-content: center;
}

.load-more-spinner {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.load-more-spinner.active { display: flex; }

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.spinner-text {
  font-size: 13px;
  color: var(--muted);
}

.all-loaded {
  display: none;
  font-size: 14px;
  color: var(--muted);
  padding: 16px;
  text-align: center;
}

.all-loaded.show { display: block; }

/* ── SINGLE POST ──────────────────────────────────────────── */
.single-hero {
  padding: 100px 40px 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.single-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.single-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.single-category {
  display: inline-block;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.single-category:hover { background: rgba(79,142,247,0.2); color: var(--accent); }

.single-hero h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--white);
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.single-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(136,146,164,0.4);
}

/* Featured image */
.single-featured-image {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 48px;
}

.single-featured-image img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* Post content */
.single-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px 100px;
}

/* Typography for post body */
.entry-content { color: var(--white); }

.entry-content p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

.entry-content h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
  margin: 48px 0 20px;
  line-height: 1.2;
}

.entry-content h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 36px 0 16px;
  line-height: 1.3;
}

.entry-content h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 28px 0 12px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.entry-content li {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--teal); }

.entry-content strong { color: var(--white); font-weight: 600; }

.entry-content em { color: rgba(255,255,255,0.7); }

.entry-content blockquote {
  border-left: 4px solid var(--teal);
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(26,39,68,0.5);
  border-radius: 0 10px 10px 0;
}

.entry-content blockquote p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 0;
  font-style: italic;
}

.entry-content pre,
.entry-content code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.entry-content code {
  padding: 2px 8px;
  font-size: 14px;
  color: var(--teal);
}

.entry-content pre {
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.entry-content img {
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 24px 0;
  max-width: 100%;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.entry-content th {
  background: var(--bg2);
  color: var(--white);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}

.entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.8);
}

.entry-content tr:hover td { background: rgba(26,39,68,0.4); }

.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Post navigation */
.post-nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.post-nav-link {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.2s;
  display: block;
}

.post-nav-link:hover {
  border-color: rgba(79,142,247,0.4);
  transform: translateY(-2px);
  color: inherit;
}

.post-nav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-nav-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.post-nav-link.next { text-align: right; }

/* Back to blog */
.back-to-blog {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 20px;
}

.back-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* ── FOOTER ───────────────────────────────────────────────── */
#site-footer {
  background: #060A14;
  border-top: 1px solid var(--border);
  padding: 60px 40px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom .heart { color: var(--teal); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-inner { padding: 16px 24px; }
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
  .container { padding: 0 24px; }
  .blog-hero { padding: 60px 24px 48px; }
  .blog-hero-inner { padding: 0; }
  .posts-section { padding: 48px 24px 80px; }
  .posts-grid { grid-template-columns: 1fr; }
  .single-hero { padding: 90px 24px 48px; }
  .single-hero-inner { padding: 0; }
  .single-featured-image { padding: 0 24px 36px; }
  .single-content { padding: 36px 24px 80px; }
  .post-nav { padding: 0 24px 60px; grid-template-columns: 1fr; }
  .back-to-blog { padding: 0 24px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  #site-footer { padding: 48px 24px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .post-nav { grid-template-columns: 1fr; }
}

/* ── HIDE THIRD-PARTY SOCIAL SHARE PLUGINS ────────────────── */
/* Only hide floating bars — NOT popups/modals (subscribe) */
.ssba_bar_align,
.at-share-btn-elements,
[class*="sassy-social"][class*="bar"],
[class*="social-float"],
[id*="sbar"] {
  display: none !important;
}

/* ── FIX LINK COLOURS — override WordPress/Astra brown ────── */
body a,
body a:link,
body a:visited {
  color: #4F8EF7 !important;
  text-decoration: none;
}

body a:hover,
body a:focus {
  color: #00D4AA !important;
  text-decoration: none;
}

/* Nav links override — muted grey, not blue */
#site-nav .nav-links a,
#site-nav .nav-links a:link,
#site-nav .nav-links a:visited {
  color: #8892A4 !important;
}

#site-nav .nav-links a:hover {
  color: #FFFFFF !important;
}

#site-nav .nav-cta,
#site-nav .nav-cta:link,
#site-nav .nav-cta:visited,
#site-nav .nav-cta:hover {
  color: #FFFFFF !important;
}

/* Footer links — muted, not blue */
#site-footer .footer-col a,
#site-footer .footer-col a:link,
#site-footer .footer-col a:visited {
  color: #8892A4 !important;
}

#site-footer .footer-col a:hover {
  color: #FFFFFF !important;
}

/* Post card links — inherit white */
.post-card,
.post-card:link,
.post-card:visited,
.post-card:hover {
  color: inherit !important;
}

/* Post nav links */
.post-nav-link,
.post-nav-link:link,
.post-nav-link:visited {
  color: inherit !important;
}

.back-link,
.back-link:link,
.back-link:visited {
  color: #8892A4 !important;
}

.back-link:hover {
  color: #4F8EF7 !important;
}

/* Entry content links — accent blue with underline */
.entry-content a,
.entry-content a:link,
.entry-content a:visited {
  color: #4F8EF7 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: #00D4AA !important;
}

/* ── FEATURED IMAGE — constrain height ────────────────────── */
.single-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(79,142,247,0.15);
}

/* ── TABLE OF CONTENTS — dark theme styling ───────────────── */
/* Targets LuckyWP TOC, Rank Math TOC, and any .wp-block-table-of-contents */
.luckywp-toc,
.rank-math-toc,
.wp-block-table-of-contents,
.ez-toc-container,
[id*="toc"],
[class*="table-of-contents"],
[class*="toc-container"],
[class*="toc-wrap"],
[class*="luckywp"],
[id*="ez-toc"] {
  background: rgba(26,39,68,0.7) !important;
  border: 1px solid rgba(79,142,247,0.2) !important;
  border-left: 3px solid #4F8EF7 !important;
  border-radius: 10px !important;
  padding: 20px 24px !important;
  margin: 32px 0 !important;
  color: #FFFFFF !important;
}

/* TOC title/heading */
.luckywp-toc .luckywp-toc-title,
.luckywp-toc-title,
[class*="toc"] .toc-title,
[class*="toc"] h3,
[class*="toc"] h4,
[id*="ez-toc"] .ez-toc-title,
[id*="toc"] summary,
[id*="toc"] .toc-toggle {
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

/* TOC links */
.luckywp-toc a,
[class*="toc"] a,
[id*="toc"] a,
[id*="ez-toc"] a {
  color: #4F8EF7 !important;
  text-decoration: none !important;
}

.luckywp-toc a:hover,
[class*="toc"] a:hover,
[id*="ez-toc"] a:hover {
  color: #00D4AA !important;
}

/* TOC hide/show toggle */
.luckywp-toc .luckywp-toc-toggle,
[class*="toc"] [class*="toggle"],
[id*="toc"] [class*="toggle"] {
  color: #8892A4 !important;
  font-size: 13px !important;
}

/* TOC list items */
.luckywp-toc ol,
.luckywp-toc ul,
[class*="toc"] ol,
[class*="toc"] ul,
[id*="ez-toc"] ol,
[id*="ez-toc"] ul {
  color: #8892A4 !important;
  margin: 0 !important;
  padding-left: 20px !important;
}

.luckywp-toc li,
[class*="toc"] li,
[id*="ez-toc"] li {
  color: #8892A4 !important;
  margin-bottom: 6px !important;
  font-size: 14px !important;
}

/* ── HEADING COLOUR HIERARCHY ──────────────────────────────── */
/* H1 — brightest white (page/post titles) */
body h1,
.single-hero h1,
.blog-hero h1,
.entry-content h1 {
  color: #FFFFFF !important;
  font-size: clamp(26px, 3vw, 34px) !important;
}

/* H2 — white (main section headings in post body) */
body h2,
.entry-content h2 {
  color: #FFFFFF !important;
  font-size: clamp(20px, 2.5vw, 26px) !important;
  margin-top: 48px !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(79,142,247,0.15) !important;
}

/* H3 — slightly muted (subsections) */
body h3,
.entry-content h3 {
  color: rgba(255,255,255,0.92) !important;
  font-size: clamp(17px, 2vw, 21px) !important;
  margin-top: 36px !important;
  margin-bottom: 12px !important;
}

/* H4 — more muted (sub-subsections) */
body h4,
.entry-content h4 {
  color: rgba(255,255,255,0.80) !important;
  font-size: 17px !important;
  margin-top: 28px !important;
  margin-bottom: 10px !important;
}

/* Post card titles — full white */
.post-card h2 {
  color: #FFFFFF !important;
  font-size: 17px !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* Post nav titles */
.post-nav-title {
  color: #FFFFFF !important;
  font-size: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}


/* ── MULTIPLE CATEGORY TAGS ────────────────────────────────── */
.post-tags,
.single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.post-tags .post-tag,
.single-cats .single-category {
  margin-bottom: 0;
}

.single-cats { margin-bottom: 20px; }

.single-cats .single-category {
  display: inline-block;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  color: #4F8EF7 !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.single-cats .single-category:hover {
  background: rgba(79,142,247,0.2) !important;
  color: #4F8EF7 !important;
}

/* ── BACK TO INSIGHTS — above featured image ───────────────── */
.back-to-blog-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 40px 16px;
}

/* ── FEATURED IMAGE — white bg images ─────────────────────── */
/* If the illustration has a white background, blend it */
.single-featured-image img {
  background: transparent;
  mix-blend-mode: normal;
}

/* Optional: give images with white bg a subtle inset */
.single-featured-image {
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto 0;
  padding: 0 40px 48px;
}

/* ── TOC — nuclear override ────────────────────────────────── */
/* LuckyWP uses #luckywp-toc or .luckywp-toc */
#luckywp-toc,
.luckywp-toc,
.luckywp-toc-wrap,
div[id^="luckywp"],
div[class^="luckywp"] {
  background-color: #1A2744 !important;
  background: #1A2744 !important;
  border: 1px solid rgba(79,142,247,0.25) !important;
  border-left: 3px solid #4F8EF7 !important;
  border-radius: 10px !important;
  padding: 20px 24px !important;
  margin: 32px 0 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

/* TOC title */
#luckywp-toc .luckywp-toc-title,
.luckywp-toc .luckywp-toc-title,
.wp-block-table-of-contents .wp-block-heading {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  background: none !important;
  padding: 0 0 12px 0 !important;
  border-bottom: 1px solid rgba(79,142,247,0.15) !important;
  margin-bottom: 12px !important;
}

/* TOC hide/show toggle */
#luckywp-toc .luckywp-toc-toggle,
.luckywp-toc .luckywp-toc-toggle {
  color: #4F8EF7 !important;
  font-size: 12px !important;
  text-decoration: none !important;
}

/* TOC list */
#luckywp-toc ol,
#luckywp-toc ul,
.luckywp-toc ol,
.luckywp-toc ul {
  margin: 0 !important;
  padding-left: 18px !important;
  background: transparent !important;
}

#luckywp-toc li,
.luckywp-toc li {
  color: #8892A4 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin-bottom: 4px !important;
  background: transparent !important;
}

#luckywp-toc a,
.luckywp-toc a {
  color: #4F8EF7 !important;
  text-decoration: none !important;
  font-size: 13px !important;
}

#luckywp-toc a:hover,
.luckywp-toc a:hover {
  color: #00D4AA !important;
  text-decoration: underline !important;
}

/* ── SOCIAL SHARE BAR — more specific targeting ────────────── */
/* Sassy Social Share floating sidebar */
.ssba-bar-section,
.ssba_bar_align,
div.ssba-bar-section,
div[class*="ssba_bar"],
#ssbp-bar-container,
.ssbp-bar-container,
[id^="ssbp"],
[class*="ssbp-wrap"],
[class*="ssbp-bar"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── ENSURE ALL BODY TEXT IS WHITE/LIGHT ───────────────────── */
/* Some Astra elements override colour back to dark */
.ast-article-post *,
.ast-article-post p,
.ast-article-post span,
.ast-separate-container .ast-article-post,
.site-content *:not(a):not(h1):not(h2):not(h3):not(h4):not(input):not(button):not(select) {
  color: inherit;
}

/* Force the post title (h1) pure white always */
.single-hero h1,
.entry-title,
h1.entry-title,
.page-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* ── ENTRY CONTENT HEADINGS — clear hierarchy ──────────────── */
.entry-content > h2:first-of-type {
  margin-top: 0 !important;
}

.entry-content h2 {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

.entry-content h3 {
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
}

.entry-content h4 {
  color: rgba(255,255,255,0.80) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.80) !important;
}

@media (max-width: 900px) {
  .back-to-blog-wrap { padding: 20px 24px 12px; }
  .single-featured-image { padding: 0 24px 36px; }
}

/* ── FEATURED IMAGE — final aggressive fix ─────────────────── */
.single-featured-image,
.single-featured-image img,
.post-thumbnail img,
.wp-post-image {
  max-height: 420px !important;
  height: auto !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.single-featured-image {
  overflow: hidden !important;
  border-radius: 12px !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 0 40px 40px !important;
}

/* ── RESTORE SOCIAL SHARE BAR ──────────────────────────────── */
/* Undo previous hide — let Sassy Social Share display naturally */
.ssba-bar-section,
.ssba_bar_align,
div.ssba-bar-section,
div[class*="ssba_bar"],
#ssbp-bar-container,
.ssbp-bar-container,
[id^="ssbp"],
[class*="ssbp-wrap"],
[class*="ssbp-bar"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ── SUBSCRIBE POPUP — dark theme ──────────────────────────── */
/* Target common popup plugin wrappers */
[class*="mailpoet"][class*="popup"],
[class*="mailpoet"][class*="modal"],
[id*="mailpoet"][id*="popup"],
.mailpoet_form_popup,
.mp_form_popup,
[class*="popup-overlay"],
[class*="subscribe-popup"] {
  background: #1A2744 !important;
  border: 1px solid rgba(79,142,247,0.2) !important;
  border-radius: 16px !important;
  color: #FFFFFF !important;
}

[class*="mailpoet"][class*="popup"] *,
[class*="mailpoet"][class*="modal"] * {
  color: #FFFFFF !important;
}

@media (max-width: 900px) {
  .single-featured-image {
    padding: 0 24px 32px !important;
  }
}

/* ── LIGHTBOX ─────────────────────────────────────────────────── */
#paras-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#paras-lightbox.is-open {
  display: flex;
}

.plb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(4px);
  animation: plbFadeIn 0.25s ease;
}

.plb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.plb-close:hover {
  background: rgba(79,142,247,0.3);
}

.plb-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  animation: plbZoomIn 0.25s ease;
}

.plb-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(79,142,247,0.2);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
  cursor: default !important;
}

@keyframes plbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes plbZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
