/* ==========================================================================
   Enhanced Article Template — NameExperts
   Scoped under .ne-enhanced-article (body class) or .ne-enhanced-* prefix
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
.ne-enhanced-wrap {
  --ne-blue: #0284C7;
  --ne-blue-hover: #0369A1;
  --ne-blue-glow: rgba(2, 132, 199, 0.35);
  --ne-blue-faint: rgba(2, 132, 199, 0.03);
  --ne-blue-light: rgba(2, 132, 199, 0.08);
  --ne-blue-medium: rgba(2, 132, 199, 0.15);
  --ne-purple: #7C3AED;
  --ne-purple-soft: #8B5CF6;
  --ne-purple-glow: rgba(124, 58, 237, 0.3);
  --ne-purple-faint: rgba(124, 58, 237, 0.04);
  --ne-gradient-accent: linear-gradient(135deg, var(--ne-blue) 0%, var(--ne-purple) 100%);
  --ne-gradient-accent-hover: linear-gradient(135deg, var(--ne-blue-hover) 0%, #6D28D9 100%);
  --ne-gradient-subtle: linear-gradient(135deg, rgba(2,132,199,0.06) 0%, rgba(124,58,237,0.06) 100%);
  --ne-dark: #0D0D0D;
  --ne-dark-card: #1a1a1a;
  --ne-dark-cta: #0a1628;
  --ne-body-text: #1a1a1a;
  --ne-gray: #6b7280;
  --ne-gray-light: #9ca3af;
  --ne-gray-200: #e5e7eb;
  --ne-gray-300: #d1d5db;
  --ne-white: #ffffff;
  --ne-border-dark: rgba(255, 255, 255, 0.1);
  --ne-border-light: rgba(0, 0, 0, 0.08);
  --ne-radius-card: 0.75rem;
  --ne-radius-xl: 0.875rem;
  --ne-radius-pill: 9999px;
  --ne-radius-btn: 0.625rem;
  --ne-radius-lg: 0.5rem;
  --ne-font-stack: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --ne-font-mono: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono',
    Menlo, Courier, monospace;
  --ne-content-max: 48rem;
  --ne-transition-fast: 0.2s ease;
  --ne-transition-normal: 0.3s ease;
}

/* --------------------------------------------------------------------------
   1. Base / Reset scoped to wrapper
   -------------------------------------------------------------------------- */

/* Override global CSS that hides body until GSAP animations init.
   The enhanced template doesn't use the same GSAP scroll animations,
   so the global JS reveal never fires — force body visible here. */
/* Reset root font-size for the enhanced template.
   Global CSS sets html { font-size: 20px } but all enhanced-article
   rem values are designed for a 16px base. */
html:has(body.ne-enhanced-article),
html:has(.ne-enhanced-wrap) {
  font-size: 16px !important;
}

body.ne-enhanced-article,
body:has(.ne-enhanced-wrap) {
  visibility: visible !important;
  background: #ffffff;
}

/* Force the site navbar visible on the enhanced template.
   Global CSS: header { position:absolute; pointer-events:none; z-index:2019 }
   Global CSS: body { visibility:hidden } — revealed by GSAP in R().
   The enhanced template doesn't use the same GSAP, so we must ensure
   the header is positioned, visible, and has correct colours. */
body.ne-enhanced-article > header,
body:has(.ne-enhanced-wrap) > header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  pointer-events: none;
  visibility: visible !important;
  opacity: 1 !important;
}
body.ne-enhanced-article > header *,
body:has(.ne-enhanced-wrap) > header * {
  pointer-events: auto;
}

/* Undo navbar-invert — enhanced hero is dark, so nav must be white.
   navbar-invert in global CSS = white bg + black text (for light-bg pages).
   We override it back to transparent bg + white text for the dark hero.
   Both body class and :has() selectors used so this works even if the
   body class is not applied (e.g. before get_queried_object_id() fix uploads). */
body.ne-enhanced-article .navbar-invert .brand-white,
body:has(.ne-enhanced-wrap) .navbar-invert .brand-white { display: block !important; }
body.ne-enhanced-article .navbar-invert .brand-dark,
body:has(.ne-enhanced-wrap) .navbar-invert .brand-dark { display: none !important; }
body.ne-enhanced-article .navbar-invert .navbar-nav .nav-item > .nav-link,
body:has(.ne-enhanced-wrap) .navbar-invert .navbar-nav .nav-item > .nav-link { color: #fff !important; }
body.ne-enhanced-article .navbar-invert .navbar-nav .nav-item > .nav-link .arrow svg path,
body:has(.ne-enhanced-wrap) .navbar-invert .navbar-nav .nav-item > .nav-link .arrow svg path { stroke: #fff !important; }
body.ne-enhanced-article .navbar-invert .navbar-menu-toggler > span,
body:has(.ne-enhanced-wrap) .navbar-invert .navbar-menu-toggler > span { background-color: #fff !important; }
body.ne-enhanced-article .navbar-invert .btn.btn-primary,
body:has(.ne-enhanced-wrap) .navbar-invert .btn.btn-primary { color: #fff !important; }
body.ne-enhanced-article .navbar-invert .navbar-actions .btn.btn-primary,
body.ne-enhanced-article .navbar-invert .nav-item .btn.btn-primary,
body:has(.ne-enhanced-wrap) .navbar-invert .navbar-actions .btn.btn-primary,
body:has(.ne-enhanced-wrap) .navbar-invert .nav-item .btn.btn-primary {
  background: #7C3AED !important;
  background-color: #7C3AED !important;
  border-color: #7C3AED !important;
  color: #fff !important;
}
body.ne-enhanced-article .navbar-invert .navbar-actions .btn.btn-primary:hover,
body.ne-enhanced-article .navbar-invert .nav-item .btn.btn-primary:hover,
body:has(.ne-enhanced-wrap) .navbar-invert .navbar-actions .btn.btn-primary:hover,
body:has(.ne-enhanced-wrap) .navbar-invert .nav-item .btn.btn-primary:hover {
  background: #6D28D9 !important;
  background-color: #6D28D9 !important;
  border-color: #6D28D9 !important;
}
body.ne-enhanced-article .navbar-invert .navbar-menu,
body:has(.ne-enhanced-wrap) .navbar-invert .navbar-menu { background-color: transparent !important; }

/* Mobile nav fallback — shown via JS toggle when WP Rocket delays global JS */
@media (max-width: 1069px) {
  body.ne-enhanced-article .navbar-menu.mobile-nav-open,
  body:has(.ne-enhanced-wrap) .navbar-menu.mobile-nav-open {
    display: flex !important;
    flex-direction: column !important;
    background-color: rgba(13, 13, 13, 0.97) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 9998 !important;
    padding: 100px 24px 40px !important;
    gap: 8px !important;
    overflow-y: auto !important;
  }
  body.ne-enhanced-article .navbar-menu.mobile-nav-open .nav-item > .nav-link,
  body:has(.ne-enhanced-wrap) .navbar-menu.mobile-nav-open .nav-item > .nav-link {
    color: #fff !important;
    font-size: 18px !important;
    padding: 12px 0 !important;
  }
  body.ne-enhanced-article .navbar-menu.mobile-nav-open .dropdown-menu,
  body:has(.ne-enhanced-wrap) .navbar-menu.mobile-nav-open .dropdown-menu {
    background-color: rgba(30, 30, 30, 0.95) !important;
  }
  body.ne-enhanced-article .navbar-menu.mobile-nav-open .dropdown-link .arrow svg path,
  body:has(.ne-enhanced-wrap) .navbar-menu.mobile-nav-open .dropdown-link .arrow svg path {
    stroke: #fff !important;
  }
  body.ne-enhanced-article .navbar-menu.mobile-nav-open .navbar-nav .nav-item,
  body:has(.ne-enhanced-wrap) .navbar-menu.mobile-nav-open .navbar-nav .nav-item {
    opacity: 1 !important;
    transform: none !important;
  }
  body.ne-enhanced-article .navbar-menu.mobile-nav-open .btn.btn-primary,
  body:has(.ne-enhanced-wrap) .navbar-menu.mobile-nav-open .btn.btn-primary {
    margin-top: 16px !important;
  }

  /* Keep hamburger + logo above the open menu */
  body.ne-enhanced-article > header .navbar-header,
  body:has(.ne-enhanced-wrap) > header .navbar-header {
    position: relative;
    z-index: 10000;
  }
}
body.ne-enhanced-article .navbar-invert .navbar-nav .dropdown .dropdown-menu,
body:has(.ne-enhanced-wrap) .navbar-invert .navbar-nav .dropdown .dropdown-menu { background-color: rgba(13, 13, 13, 0.95) !important; }

/* Desktop hover + JS-click fallback for "Our Services" dropdown.
   Global JS (dropdown click handler) is delayed by WP Rocket, so the first
   click triggers JS loading but doesn't open the menu. The :hover rule
   covers mouse users immediately; .is-ne-open is set by the enhanced-article.js
   fallback for touch/click. */
@media (min-width: 1070px) {
  /* Transparent bridge over the 14px gap (margin-top on .dropdown-menu in global CSS).
     Without this, the mouse exits .nav-item.dropdown while crossing the gap,
     dropping :hover and closing the menu before the user reaches it. */
  body:has(.ne-enhanced-wrap) .navbar .nav-item.dropdown {
    position: relative;
  }
  body:has(.ne-enhanced-wrap) .navbar .nav-item.dropdown::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 16px;
  }
  body:has(.ne-enhanced-wrap) .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    background-color: rgba(13, 13, 13, 0.95) !important;
  }
  body:has(.ne-enhanced-wrap) .navbar .nav-item.dropdown:hover .dropdown-link .arrow svg path {
    stroke: #fff !important;
  }
}
/* JS-click fallback class (works on desktop and inside the mobile nav) */
body:has(.ne-enhanced-wrap) .navbar .nav-item.dropdown.is-ne-open .dropdown-menu {
  display: block !important;
  background-color: rgba(13, 13, 13, 0.95) !important;
}

.ne-enhanced-wrap {
  font-family: var(--ne-font-stack);
  font-size: 16px;
  color: var(--ne-body-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.ne-enhanced-wrap *,
.ne-enhanced-wrap *::before,
.ne-enhanced-wrap *::after {
  box-sizing: border-box;
}

.ne-enhanced-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   2. Scroll Progress Bar
   -------------------------------------------------------------------------- */
.ne-enhanced-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ne-blue) 0%, var(--ne-purple-soft) 60%, var(--ne-purple) 100%);
  box-shadow: 0 0 8px var(--ne-purple-glow);
  z-index: 50;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. Hero / Header Section
   -------------------------------------------------------------------------- */
.ne-enhanced-header {
  position: relative;
  background: linear-gradient(180deg, #0D0D0D 0%, #0D0D0D 40%, #091428 65%, #0a2a5c 82%, #1248a0 95%, #2563eb 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

/* Grid dot pattern overlay */
.ne-enhanced-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* Decorative blur circle — top-right (blue) */
.ne-enhanced-header::after {
  content: '';
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 20rem;
  height: 20rem;
  background: var(--ne-blue);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

/* Decorative blur circle — bottom-left (purple) */
.ne-enhanced-header__inner::before {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: -8rem;
  width: 18rem;
  height: 18rem;
  background: var(--ne-purple);
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Globe canvas — decorative, bottom-center, half-clipped.
   Uses fixed bottom offset so the globe stays at the same distance
   from the bottom edge regardless of title / subtitle length. */
.ne-enhanced-globe {
  position: absolute;
  bottom: -460px;
  left: 50%;
  transform: translateX(-50%);
  width: 1050px;
  height: 1050px;
  pointer-events: none;
  z-index: 1;
}

.ne-enhanced-header__inner {
  position: relative;
  z-index: 2;
  max-width: var(--ne-content-max);
  margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
}

/* Top row: kicker + share */
.ne-enhanced-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Title */
.ne-enhanced-header__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ne-white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
}

/* Subtitle with left gradient accent bar */
.ne-enhanced-header__subtitle {
  position: relative;
  padding-left: 1.25rem;
  border-left: 4px solid transparent;
  border-image: var(--ne-gradient-accent) 1;
  color: var(--ne-gray-300);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 0 2.5rem;
}

/* Hero image */
.ne-enhanced-header__image {
  margin-top: 2.5rem;
  border-radius: var(--ne-radius-card);
  overflow: hidden;
  line-height: 0;
}

.ne-enhanced-header__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ne-radius-card);
}

/* --------------------------------------------------------------------------
   4. Kicker Pill
   -------------------------------------------------------------------------- */
.ne-enhanced-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--ne-gradient-accent);
  color: var(--ne-white);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.4rem 0.875rem;
  border-radius: var(--ne-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px var(--ne-blue-glow), 0 0 8px var(--ne-purple-glow);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Share Button & Dropdown
   -------------------------------------------------------------------------- */
.ne-enhanced-share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--ne-gradient-accent);
  color: var(--ne-white);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.4rem 0.875rem;
  border-radius: var(--ne-radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--ne-transition-fast), box-shadow var(--ne-transition-fast);
  box-shadow: 0 0 16px var(--ne-blue-glow), 0 0 8px var(--ne-purple-glow);
  font-family: var(--ne-font-stack);
  white-space: nowrap;
}

.ne-enhanced-share-btn:hover {
  transform: scale(1.05);
}

.ne-enhanced-share-btn:focus-visible {
  outline: 2px solid var(--ne-blue);
  outline-offset: 2px;
}

.ne-enhanced-share-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Share dropdown — portalled to <body> via JS, positioned fixed.
   Uses hardcoded values instead of var() since it lives outside .ne-enhanced-wrap. */
.ne-enhanced-share-dropdown {
  position: fixed;
  min-width: 12rem;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 99999;
}

.ne-enhanced-share-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ne-enhanced-share-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: none;
  border: none;
  color: #d1d5db;
  font-size: 0.8125rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  text-align: left;
  line-height: 1.3;
}

.ne-enhanced-share-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.ne-enhanced-share-dropdown__item:focus-visible {
  outline: 2px solid #0284C7;
  outline-offset: -2px;
}

.ne-enhanced-share-dropdown__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   6. Author Card
   -------------------------------------------------------------------------- */
.ne-enhanced-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--ne-radius-card);
  padding: 1rem 1.25rem;
  max-width: max-content;
}

.ne-enhanced-author__photo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ne-purple-soft);
  flex-shrink: 0;
}

/* When WP outputs the photo with wp_get_attachment_image, ensure sizing */
img.ne-enhanced-author__photo {
  display: block;
}

.ne-enhanced-author__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ne-enhanced-author__name {
  color: var(--ne-white);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}


.ne-enhanced-author__meta {
  color: var(--ne-gray-300);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.ne-enhanced-author__meta span + span::before {
  content: '\00b7';
  margin: 0 0.375rem;
}

/* --------------------------------------------------------------------------
   7. Body / Content Area Wrapper
   -------------------------------------------------------------------------- */
.ne-enhanced-body {
  background-color: var(--ne-white);
  padding: 3rem 1.5rem 4rem;
}

.ne-enhanced-body__inner {
  max-width: var(--ne-content-max);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   8. Summary
   -------------------------------------------------------------------------- */
.ne-enhanced-summary {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ne-body-text);
  margin-bottom: 2.5rem;
}

.ne-enhanced-summary p {
  margin: 0 0 1.25rem;
}

.ne-enhanced-summary p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Key Takeaways
   -------------------------------------------------------------------------- */
.ne-enhanced-takeaways {
  border-left: 4px solid transparent;
  border-image: var(--ne-gradient-accent) 1;
  background: var(--ne-gradient-subtle);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.ne-enhanced-takeaways__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ne-body-text);
  margin: 0 0 0.75rem;
}

.ne-enhanced-takeaways__title svg {
  width: 18px;
  height: 18px;
  color: var(--ne-purple-soft);
  flex-shrink: 0;
}

.ne-enhanced-takeaways__list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.ne-enhanced-takeaways__list li {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ne-body-text);
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.ne-enhanced-takeaways__list li:last-child {
  margin-bottom: 0;
}

.ne-enhanced-takeaways__list li::marker {
  color: var(--ne-blue);
}

/* --------------------------------------------------------------------------
   10. Infographic / Figure
   -------------------------------------------------------------------------- */
.ne-enhanced-infographic {
  margin: 2.5rem 0;
}

.ne-enhanced-infographic__image-wrap {
  border-radius: var(--ne-radius-card);
  overflow: hidden;
  line-height: 0;
}

.ne-enhanced-infographic__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.ne-enhanced-infographic figcaption,
.ne-enhanced-infographic__caption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ne-gray);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Prose Typography (inside .ne-enhanced-content)
   -------------------------------------------------------------------------- */
.ne-enhanced-content {
  font-family: var(--ne-font-stack) !important;
  font-size: 1.125rem !important;
  line-height: 1.75 !important;
  color: var(--ne-body-text) !important;
}

.ne-enhanced-content p,
.ne-enhanced-content li,
.ne-enhanced-content td,
.ne-enhanced-content th {
  font-family: var(--ne-font-stack) !important;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ne-body-text);
  margin: 0 0 1.25rem;
}

.ne-enhanced-content li,
.ne-enhanced-content td,
.ne-enhanced-content th {
  margin: 0;
}

.ne-enhanced-content > *:last-child {
  margin-bottom: 0;
}

/* Headings */
.ne-enhanced-content h1,
.ne-enhanced-content h2,
.ne-enhanced-content h3,
.ne-enhanced-content h4,
.ne-enhanced-content h5,
.ne-enhanced-content h6 {
  font-family: var(--ne-font-stack) !important;
  color: var(--ne-body-text);
}

.ne-enhanced-content h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 2.5rem 0 1rem !important;
  letter-spacing: -0.01em;
}

.ne-enhanced-content h3 {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 2rem 0 0.75rem !important;
}

.ne-enhanced-content h4 {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 1.5rem 0 0.5rem !important;
}

/* First heading after summary shouldn't have extra top margin */
.ne-enhanced-content > h2:first-child,
.ne-enhanced-content > h3:first-child {
  margin-top: 0;
}

/* Links (exclude buttons) */
.ne-enhanced-content a:not(.btn):not(.ne-enhanced-btn):not(.cta-button) {
  color: var(--ne-blue);
  text-decoration: none;
  transition: color var(--ne-transition-fast);
}

.ne-enhanced-content a:not(.btn):not(.ne-enhanced-btn):not(.cta-button):hover {
  color: var(--ne-blue-hover);
  text-decoration: underline;
}

.ne-enhanced-content a:focus-visible {
  outline: 2px solid var(--ne-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Legacy .btn .btn-primary inside enhanced content */
.ne-enhanced-content .btn.btn-primary,
.ne-enhanced-content__buttons .btn.btn-primary,
.ne-enhanced-content__cta-inline .btn.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ne-radius-pill, 100px);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  background: var(--ne-blue);
  color: #fff;
  transition: background 0.2s ease, transform 0.15s ease;
}

.ne-enhanced-content .btn.btn-primary:hover,
.ne-enhanced-content__buttons .btn.btn-primary:hover,
.ne-enhanced-content__cta-inline .btn.btn-primary:hover {
  background: var(--ne-blue-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Strong / Bold */
.ne-enhanced-content strong,
.ne-enhanced-content b {
  font-weight: 700;
}

/* Lists */
.ne-enhanced-content ul,
.ne-enhanced-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}

.ne-enhanced-content ul {
  list-style: disc;
}

.ne-enhanced-content ol {
  list-style: decimal;
}

.ne-enhanced-content li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

.ne-enhanced-content li::marker {
  color: var(--ne-blue);
}

.ne-enhanced-content ul ul,
.ne-enhanced-content ol ol,
.ne-enhanced-content ul ol,
.ne-enhanced-content ol ul {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

/* Blockquote */
.ne-enhanced-content blockquote {
  border-left: 4px solid transparent;
  border-image: var(--ne-gradient-accent) 1;
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ne-gray);
}

.ne-enhanced-content blockquote p {
  margin-bottom: 0.5rem;
}

.ne-enhanced-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Inline code */
.ne-enhanced-content code {
  background: var(--ne-gray-200);
  font-family: var(--ne-font-mono);
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  word-break: break-word;
}

/* Code blocks */
.ne-enhanced-content pre {
  background: var(--ne-dark);
  color: var(--ne-gray-300);
  border-radius: var(--ne-radius-card);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
}

.ne-enhanced-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* Images */
.ne-enhanced-content img {
  border-radius: var(--ne-radius-card);
  margin: 1.5rem 0;
}

/* HR */
.ne-enhanced-content hr {
  border: none;
  border-top: 1px solid var(--ne-gray-200);
  margin: 2rem 0;
}

/* Tables (inline content tables) */
.ne-enhanced-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border-radius: var(--ne-radius-card);
  overflow: hidden;
  border: 1px solid var(--ne-border-light);
  table-layout: fixed;
  word-break: break-word;
}

.ne-enhanced-content thead th {
  background: linear-gradient(135deg, #0D0D0D 0%, #1a0f2e 100%);
  color: var(--ne-white);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  word-break: normal;
  overflow-wrap: break-word;
}

.ne-enhanced-content tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--ne-border-light);
}

.ne-enhanced-content tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

.ne-enhanced-content tbody tr:hover {
  background: var(--ne-blue-faint);
}

/* --------------------------------------------------------------------------
   12. Styled Table Section (standalone)
   -------------------------------------------------------------------------- */
.ne-enhanced-table-section {
  margin: 2.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ne-enhanced-table-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ne-body-text);
  margin: 0 0 1rem;
}

.ne-enhanced-table-section table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--ne-radius-card);
  overflow: hidden;
  font-size: 0.9375rem;
  border: 1px solid var(--ne-border-light);
}

.ne-enhanced-table-section thead th {
  background: linear-gradient(135deg, #0D0D0D 0%, #1a0f2e 100%);
  color: var(--ne-white);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Rounded top corners on first/last header cells */
.ne-enhanced-table-section thead th:first-child {
  border-top-left-radius: var(--ne-radius-card);
}

.ne-enhanced-table-section thead th:last-child {
  border-top-right-radius: var(--ne-radius-card);
}

.ne-enhanced-table-section tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--ne-border-light);
  color: var(--ne-body-text);
  line-height: 1.5;
}

.ne-enhanced-table-section tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

.ne-enhanced-table-section tbody tr:hover {
  background: var(--ne-blue-faint);
}

/* Rounded bottom corners on last row */
.ne-enhanced-table-section tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--ne-radius-card);
}

.ne-enhanced-table-section tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--ne-radius-card);
}

/* --------------------------------------------------------------------------
   13. CTA Blocks
   -------------------------------------------------------------------------- */
.ne-enhanced-cta {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: linear-gradient(135deg, #0a1628 0%, #120a24 100%);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--ne-radius-xl);
  padding: 2rem;
  margin: 2.5rem 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ne-enhanced-cta--light {
  background: var(--ne-gradient-subtle);
  border: 1px solid rgba(2, 132, 199, 0.1);
}

.ne-enhanced-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  background: var(--ne-gradient-accent);
  border-radius: var(--ne-radius-lg);
  flex-shrink: 0;
}

.ne-enhanced-cta__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ne-white);
}

.ne-enhanced-cta--light .ne-enhanced-cta__icon svg {
  color: var(--ne-dark-cta);
}

.ne-enhanced-cta__body {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.ne-enhanced-cta__kicker {
  display: block;
  font-family: var(--ne-font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ne-white);
  opacity: 0.7;
  margin-bottom: 0.375rem;
}

.ne-enhanced-cta--light .ne-enhanced-cta__kicker {
  color: var(--ne-body-text);
  opacity: 0.6;
}

.ne-enhanced-cta__title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ne-white);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.ne-enhanced-cta--light .ne-enhanced-cta__title {
  color: var(--ne-body-text);
}

.ne-enhanced-cta__text {
  font-size: 1.125rem;
  color: var(--ne-white);
  opacity: 0.9;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.ne-enhanced-cta--light .ne-enhanced-cta__text {
  color: var(--ne-body-text);
  opacity: 0.75;
}

.ne-enhanced-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ne-gradient-accent);
  color: var(--ne-white);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ne-radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--ne-font-stack);
  transition: filter var(--ne-transition-fast), transform var(--ne-transition-fast), box-shadow var(--ne-transition-fast);
  line-height: 1.3;
}

.ne-enhanced-cta__btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--ne-purple-glow);
}

.ne-enhanced-cta__btn:focus-visible {
  outline: 2px solid var(--ne-white);
  outline-offset: 2px;
}

.ne-enhanced-cta__btn svg {
  width: 16px;
  height: 16px;
}

/* CTA Trust Logos */
.ne-enhanced-cta__logos {
  margin-top: 2rem;
  overflow: hidden;
  max-width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.ne-enhanced-cta__logos-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: ne-logo-scroll 28s linear infinite;
  will-change: transform;
}

.ne-enhanced-cta__logos:hover .ne-enhanced-cta__logos-track {
  animation-play-state: paused;
}

@keyframes ne-logo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ne-enhanced-cta__logos-track {
    animation: none;
  }
}


.ne-enhanced-cta__logo {
  height: 2.25rem;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--ne-transition-fast);
}

.ne-enhanced-cta__logo--white {
  filter: none;
}

.ne-enhanced-cta--light .ne-enhanced-cta__logo--white {
  filter: brightness(0);
}


.ne-enhanced-cta__logos:hover .ne-enhanced-cta__logo {
  opacity: 0.8;
}

/* Light variant: dark logos instead of white */
.ne-enhanced-cta--light .ne-enhanced-cta__logo {
  filter: brightness(0);
  opacity: 0.4;
}

.ne-enhanced-cta--light .ne-enhanced-cta__logos:hover .ne-enhanced-cta__logo {
  opacity: 0.65;
}


/* --------------------------------------------------------------------------
   14. FAQ Section
   -------------------------------------------------------------------------- */
.ne-enhanced-faq {
  margin: 3rem 0;
}

.ne-enhanced-faq__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ne-body-text);
  margin: 0 0 1.5rem;
}

.ne-enhanced-faq__heading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--ne-gradient-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.ne-enhanced-faq__heading-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ne-white);
}

.ne-enhanced-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* FAQ Item */
.ne-enhanced-faq__item {
  background: linear-gradient(135deg, #1a1a1a 0%, #1a1520 100%);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--ne-radius-xl);
  overflow: hidden;
  transition: border-color var(--ne-transition-fast), box-shadow var(--ne-transition-fast);
}

.ne-enhanced-faq__item:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
}

.ne-enhanced-faq__trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--ne-font-stack);
  transition: background var(--ne-transition-fast);
}

.ne-enhanced-faq__trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ne-enhanced-faq__trigger:focus-visible {
  outline: 2px solid var(--ne-blue);
  outline-offset: -2px;
}

.ne-enhanced-faq__number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  background: var(--ne-gradient-accent);
  color: var(--ne-white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--ne-radius-lg);
  flex-shrink: 0;
}

.ne-enhanced-faq__question {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ne-white);
  line-height: 1.45;
}

.ne-enhanced-faq__chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ne-purple-soft);
  flex-shrink: 0;
  transition: transform var(--ne-transition-normal);
}

.ne-enhanced-faq__item.is-open .ne-enhanced-faq__chevron {
  transform: rotate(180deg);
}

/* FAQ Answer */
.ne-enhanced-faq__answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--ne-transition-normal),
    opacity var(--ne-transition-normal);
}

.ne-enhanced-faq__item.is-open .ne-enhanced-faq__answer {
  max-height: 40rem;
  opacity: 1;
}

.ne-enhanced-faq__answer-inner {
  padding: 0 1.25rem 1.25rem 3.75rem;
  color: var(--ne-gray-300);
  font-size: 0.875rem;
  line-height: 1.7;
}

.ne-enhanced-faq__answer-inner p {
  margin: 0 0 0.75rem;
}

.ne-enhanced-faq__answer-inner p:last-child {
  margin-bottom: 0;
}

.ne-enhanced-faq__answer-inner a {
  color: var(--ne-blue);
  text-decoration: none;
}

.ne-enhanced-faq__answer-inner a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   15. Related Articles
   -------------------------------------------------------------------------- */
.ne-enhanced-related {
  border-top: 1px solid var(--ne-gray-200);
  padding-top: 3rem;
  margin-top: 3rem;
}

.ne-enhanced-related__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ne-body-text);
  margin: 0 0 1.5rem;
}

.ne-enhanced-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.ne-enhanced-related__card {
  border-radius: var(--ne-radius-card);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  background: var(--ne-white);
  border: 1px solid var(--ne-border-light);
  transition: transform var(--ne-transition-fast),
    box-shadow var(--ne-transition-fast);
  text-decoration: none;
  color: inherit;
  display: block;
}

.ne-enhanced-related__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ne-enhanced-related__card:focus-visible {
  outline: 2px solid var(--ne-blue);
  outline-offset: 2px;
}

.ne-enhanced-related__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ne-gray-200);
}

.ne-enhanced-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ne-transition-normal);
}

.ne-enhanced-related__card:hover .ne-enhanced-related__thumb img {
  transform: scale(1.03);
}

.ne-enhanced-related__card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.ne-enhanced-related__card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ne-body-text);
  line-height: 1.4;
  margin: 0 0 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ne-enhanced-related__card-excerpt {
  font-size: 0.8125rem;
  color: var(--ne-gray);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Scroll-to-Top Button — hidden */
.ne-enhanced-scroll-top {
  display: none !important;
}

/* --------------------------------------------------------------------------
   17. Responsive — Small (< 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .ne-enhanced-header__inner {
    padding: 4.5rem 1rem 2rem;
    display: flex;
    flex-direction: column;
  }

  .ne-enhanced-header__title {
    font-size: 1.875rem;
  }

  .ne-enhanced-header__subtitle {
    font-size: 1rem;
  }

  .ne-enhanced-body {
    padding: 2rem 1rem 3rem;
  }

  .ne-enhanced-content {
    font-size: 1rem;
  }

  .ne-enhanced-content h2 {
    font-size: 1.3125rem;
  }

  .ne-enhanced-content h3 {
    font-size: 1.125rem;
  }

  .ne-enhanced-cta {
    flex-direction: column;
    padding: 1.5rem;
  }

  .ne-enhanced-cta__icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
  }

  .ne-enhanced-cta__icon svg {
    width: 1.375rem;
    height: 1.375rem;
  }

  .ne-enhanced-cta__title {
    font-size: 1.375rem;
  }

  .ne-enhanced-cta__text {
    font-size: 1rem;
  }

  .ne-enhanced-cta__logo {
    height: 1.625rem;
  }


  .ne-enhanced-faq__answer-inner {
    padding-left: 1.25rem;
  }


  .ne-enhanced-globe {
    width: 650px;
    height: 650px;
    bottom: -300px;
  }

  .ne-enhanced-author {
    flex-direction: row;
    text-align: left;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-top: 5rem;
  }

  .ne-enhanced-author__info {
    align-items: flex-start;
  }


  .ne-enhanced-table-section table,
  .ne-enhanced-content table {
    font-size: 0.625rem !important;
    table-layout: fixed;
    word-break: break-word;
  }

  .ne-enhanced-table-section thead th,
  .ne-enhanced-table-section tbody td,
  .ne-enhanced-content thead th,
  .ne-enhanced-content tbody td,
  .ne-enhanced-content td,
  .ne-enhanced-content th {
    font-size: 0.625rem !important;
    padding: 0.25rem 0.375rem;
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   18. Responsive — Medium (640px–1023px)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .ne-enhanced-header__title {
    font-size: 3rem;
  }

  .ne-enhanced-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   19. Responsive — Large (>= 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .ne-enhanced-header__inner {
    padding: 6.5rem 1.5rem 5.5rem;
  }

  .ne-enhanced-header__title {
    font-size: 3.75rem;
  }

  .ne-enhanced-body {
    padding: 3.5rem 1.5rem 5rem;
  }

  .ne-enhanced-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   20. Reduced Motion Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ne-enhanced-wrap *,
  .ne-enhanced-wrap *::before,
  .ne-enhanced-wrap *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .ne-enhanced-progress-bar {
    transition: none;
  }

  .ne-enhanced-faq__answer {
    transition: none;
  }

  .ne-enhanced-related__card:hover {
    transform: none;
  }

  .ne-enhanced-scroll-top:hover {
    transform: none;
  }

  .ne-enhanced-share-btn:hover {
    transform: none;
  }

  .ne-enhanced-globe {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   21. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .ne-enhanced-progress-bar,
  .ne-enhanced-scroll-top,
  .ne-enhanced-share-btn,
  .ne-enhanced-share-dropdown,
  .ne-enhanced-globe {
    display: none !important;
  }

  .ne-enhanced-header {
    background: #000 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .ne-enhanced-header__title {
    font-size: 1.75rem;
  }

  .ne-enhanced-faq__item {
    background: none !important;
    border: 1px solid #ccc;
  }

  .ne-enhanced-faq__question {
    color: #000 !important;
  }

  .ne-enhanced-faq__answer {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }

  .ne-enhanced-faq__answer-inner {
    color: #333 !important;
  }

  .ne-enhanced-faq__chevron {
    display: none;
  }

  .ne-enhanced-cta {
    border: 2px solid var(--ne-blue);
    background: none !important;
    padding: 1rem;
  }

  .ne-enhanced-cta__title,
  .ne-enhanced-cta__text,
  .ne-enhanced-cta__kicker {
    color: #000 !important;
  }

  .ne-enhanced-cta__logos {
    display: none;
  }

  .ne-enhanced-related__card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .ne-enhanced-body {
    padding: 1rem 0;
  }

  .ne-enhanced-content a::after {
    content: ' (' attr(href) ')';
    font-size: 0.75rem;
    color: #666;
  }
}

/* --------------------------------------------------------------------------
   22. Focus-visible utilities (keyboard navigation only)
   -------------------------------------------------------------------------- */
.ne-enhanced-wrap :focus:not(:focus-visible) {
  outline: none;
}

.ne-enhanced-wrap :focus-visible {
  outline: 2px solid var(--ne-blue);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   23. Selection color
   -------------------------------------------------------------------------- */
.ne-enhanced-wrap ::selection {
  background: rgba(2, 132, 199, 0.2);
  color: inherit;
}

/* --------------------------------------------------------------------------
   24. Misc Utility Classes
   -------------------------------------------------------------------------- */
.ne-enhanced-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Toast notification for "Link Copied" */
.ne-enhanced-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ne-dark-card);
  color: var(--ne-white);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--ne-radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ne-transition-fast),
    transform var(--ne-transition-fast),
    visibility var(--ne-transition-fast);
  z-index: 60;
  pointer-events: none;
}

.ne-enhanced-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   25. Featured Image (below the fold, above article body)
   -------------------------------------------------------------------------- */
.ne-enhanced-featured-img {
  margin: 0 0 2.5rem;
  border-radius: var(--ne-radius-card, 1rem);
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ne-enhanced-featured-img__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ne-radius-card, 1rem);
}

/* --------------------------------------------------------------------------
   26. ACF Flexible Content Blocks (legacy post_content field)
   -------------------------------------------------------------------------- */
.ne-enhanced-content__block {
  margin-bottom: 2rem;
}

.ne-enhanced-content__figure {
  margin: 1.5rem 0;
  text-align: center;
}

.ne-enhanced-content__figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ne-radius-md, 0.75rem);
}

.ne-enhanced-content__figure--bordered img {
  border: 1px solid var(--ne-gray-200);
}

.ne-enhanced-content__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.ne-enhanced-content__form {
  background: var(--ne-blue-faint, rgba(2, 132, 199, 0.03));
  border: 1px solid var(--ne-gray-200);
  border-radius: var(--ne-radius-md, 0.75rem);
  padding: 2rem;
  margin: 2rem 0;
}

.ne-enhanced-content__form h3,
.ne-enhanced-content__form h5 {
  margin-bottom: 1rem;
}

.ne-enhanced-content__cta-inline {
  background: var(--ne-blue-faint, rgba(2, 132, 199, 0.03));
  border: 1px solid var(--ne-gray-200);
  border-radius: var(--ne-radius-md, 0.75rem);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.ne-enhanced-content__cta-inline h5 {
  margin-bottom: 1rem;
}

.ne-enhanced-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ne-radius-pill, 100px);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.ne-enhanced-btn--primary {
  background: var(--ne-blue);
  color: #fff !important;
}

.ne-enhanced-btn--primary:hover {
  background: var(--ne-blue-hover);
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ==========================================================================
   27. CSV Import — Styles for HTML classes from body_html / cta_end_html
   Scoped under .ne-enhanced-content or .ne-enhanced-cta-end so they only
   apply inside the enhanced template and don't leak to other pages.
   ========================================================================== */

/* ── Key Takeaways (matches .ne-enhanced-takeaways) ── */
.ne-enhanced-content .key-takeaways {
  border-left: 4px solid transparent;
  border-image: var(--ne-gradient-accent) 1;
  background: var(--ne-gradient-subtle);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}

.ne-enhanced-content .key-takeaways h2,
.ne-enhanced-content .key-takeaways h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ne-body-text);
  margin: 0 0 0.75rem;
}

/* Lightbulb icon for key-takeaways heading */
.ne-enhanced-content .key-takeaways h2::before,
.ne-enhanced-content .key-takeaways h3::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: var(--ne-purple-soft);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21h6M12 3a6 6 0 0 0-4 10.472V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-3.528A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21h6M12 3a6 6 0 0 0-4 10.472V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-3.528A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}

.ne-enhanced-content .key-takeaways ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.ne-enhanced-content .key-takeaways ul li {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ne-body-text);
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.ne-enhanced-content .key-takeaways ul li:last-child {
  margin-bottom: 0;
}

.ne-enhanced-content .key-takeaways ul li::marker {
  color: var(--ne-blue);
}

/* ── Inline CTA boxes from body_html (matches .ne-enhanced-cta) ── */
.ne-enhanced-content .cta-box {
  background: linear-gradient(135deg, #0a1628 0%, #120a24 100%);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--ne-radius-xl);
  padding: 2rem;
  margin: 2.5rem 0;
  color: var(--ne-white) !important;
}

.ne-enhanced-content .cta-box h2,
.ne-enhanced-content .cta-box h3 {
  font-size: 1.625rem !important;
  font-weight: 700 !important;
  color: var(--ne-white) !important;
  line-height: 1.25 !important;
  margin: 0 0 0.5rem !important;
}

.ne-enhanced-content .cta-box p {
  font-size: 1.125rem !important;
  color: var(--ne-white) !important;
  opacity: 0.9;
  line-height: 1.6 !important;
  margin: 0 0 1.25rem !important;
}

/* ── CTA buttons (shared between body_html and cta_end_html) ── */
.ne-enhanced-content .cta-button,
.ne-enhanced-cta-end .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ne-gradient-accent);
  color: var(--ne-white);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ne-radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--ne-font-stack);
  transition: filter var(--ne-transition-fast), transform var(--ne-transition-fast), box-shadow var(--ne-transition-fast);
  line-height: 1.3;
}

.ne-enhanced-content .cta-button:hover,
.ne-enhanced-cta-end .cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--ne-purple-glow);
  color: var(--ne-white);
  text-decoration: none;
}

/* ── End-of-article CTA section (matches .ne-enhanced-cta) ── */
.ne-enhanced-cta-end {
  margin: 2.5rem 0;
}

.ne-enhanced-cta-end .cta-section {
  background: linear-gradient(135deg, #0a1628 0%, #120a24 100%);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--ne-radius-xl);
  padding: 2rem;
  color: var(--ne-white);
}

.ne-enhanced-cta-end .cta-section h2,
.ne-enhanced-cta-end .cta-section h3 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ne-white);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.ne-enhanced-cta-end .cta-section p {
  font-size: 1.125rem;
  color: var(--ne-white);
  opacity: 0.9;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

/* Remove extra margin on <p> that wraps a CTA button */
.ne-enhanced-cta-end .cta-section p:last-child:has(.cta-button),
.ne-enhanced-content .cta-box p:last-child:has(.cta-button) {
  margin-bottom: 0;
}

/* Links inside CTA sections should inherit white color */
.ne-enhanced-cta-end .cta-section a:not(.cta-button) {
  color: var(--ne-blue);
}

.ne-enhanced-content .cta-box a:not(.cta-button) {
  color: var(--ne-blue);
}

/* ── Article images from body_html ── */
.ne-enhanced-content .article-image {
  margin: 1.5rem 0;
  text-align: center;
}

.ne-enhanced-content .article-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ne-radius-card);
  display: block;
  margin: 0 auto;
}

.ne-enhanced-content .article-image figcaption,
.ne-enhanced-content .article-image p.caption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ne-gray);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ── Responsive adjustments for CSV content ── */
@media (max-width: 639px) {
  .ne-enhanced-content .cta-box,
  .ne-enhanced-cta-end .cta-section {
    padding: 1.5rem;
  }

  .ne-enhanced-content .cta-box h2,
  .ne-enhanced-content .cta-box h3,
  .ne-enhanced-cta-end .cta-section h2,
  .ne-enhanced-cta-end .cta-section h3 {
    font-size: 1.375rem;
  }

  .ne-enhanced-content .cta-box p,
  .ne-enhanced-cta-end .cta-section p {
    font-size: 1rem;
  }
}
