/*
Theme Name: Kadence Child
Template: kadence
Version: 2.14
Description: AIscending.com child theme
Author: HC
*/

/* ================================================================
   PAGES — FEATURED IMAGE BANNER (matches single-post behaviour)
   ================================================================

   Kadence defaults: pages get title_layout=above (hero section),
   no feature image shown. Our functions.php filter flips this to
   title=normal + feature=show/behind for any page with a thumbnail.
   The CSS below supports that new layout and keeps the animated
   body background visible through all page content.
   ================================================================ */

/* 1. Transparent content so the animated body gradient shows through
      (body animation lives in Customizer → Additional CSS). */
.page .entry.content-bg,
.page .content-bg,
.page .site-main,
.page .content-area,
.page .content-wrap,
.page .entry-content-wrap {
  background: transparent !important;
  box-shadow: none !important;
}

/* 2. No white bar: hide the Kadence entry-hero section on pages.
      With title='normal' (set by the filter) the hero doesn't
      render at all; this rule is a safety net for any edge case. */
.page .entry-hero {
  display: none !important;
}

/* 3. Space below the transparent header so it overlaps the banner
      image rather than covering the article text.
      Mirrors the same rule already applied to .single. */
.page.transparent-header #primary,
.page.mobile-transparent-header #primary {
  padding-top: 80px !important;
}

/* 4. The entry article sits z-index:1 above the behind-position image.
      Ensure its background is transparent so you see the banner image
      through the negative-margin overlap area. */
.page .entry.single-entry,
.page article.entry {
  background: transparent !important;
  box-shadow: none !important;
}


/* Table styles consolidated into aiscending-table-wrap.php mu-plugin — Session 42 */

/* ================================================================
   CONTENT SPACING — paragraph breathing room + space before tables
   ================================================================ */
.entry-content p {
  margin-bottom: 1.4em;
}

.entry-content div[style*="overflow-x:auto"] {
  margin-top: 2.5em;
  margin-bottom: 1.5em;
}

/* ================================================================
   HOMEPAGE MOBILE FIXES — card grid, CTA strip, featured card
   ================================================================ */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr !important;
  }
  .cta-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 28px 24px !important;
  }
  .cta-btn {
    width: 100% !important;
    text-align: center !important;
  }
  .featured-card {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .feat-arrow {
    display: none !important;
  }
  .section {
    padding: 48px 20px !important;
  }
  nav {
    padding: 0 12px !important;
  }
  .nav-links {
    display: none !important;
  }
  .feat-meta { margin-bottom: 6px; }
  .cta-strip h3 { font-size: 18px !important; word-break: normal !important; white-space: normal !important; }
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================================================================
   HOMEPAGE — all styles extracted from post 36 (page-home.php)
   ================================================================ */
/* Universal reset scoped to homepage — Kadence handles global resets */
.home * { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #080B10;
  --bg2: #0D1219;
  --bg3: #131A24;
  --teal: #00D4BB;
  --teal2: #00A896;
  --teal-dim: rgba(0,212,187,0.08);
  --teal-border: rgba(0,212,187,0.2);
  --teal-glow: rgba(0,212,187,0.15);
  --text: #F0F4F8;
  --muted: #64748B;
  --muted2: #94A3B8;
  --border: rgba(255,255,255,0.05);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ── PARTICLE CANVAS ── */
/* z-index: 50 — above content wrappers (z-index:10) and images,
   below sticky nav (#masthead z-index:9999) and homepage nav (z-index:100).
   pointer-events:none preserves text selection and link clicks. */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* Suppress Kadence's duplicate header on homepage — page-home.php provides its own <nav> */
.home #masthead { display: none !important; }
.home #mobile-header { display: none !important; }

/* Custom nav: visible on all screen sizes; Kadence mobile header hidden ≤768px */
.aiscending-mobile-nav { display: block; }
@media (max-width: 768px) {
  .wp-site-blocks #mobile-header,
  #mobile-header { display: none !important; }
  .aiscending-mobile-nav { display: block !important; }
}

/* Hide Kadence desktop header on non-homepage pages (custom nav replaces it) */
body:not(.home) #masthead,
body:not(.home) .site-header-wrap {
  display: none !important;
}

/* ── Inner-page nav (custom-site-nav) — desktop overrides ── */
.custom-site-nav {
  padding-left: 0;
  padding-right: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 18, 25, 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.custom-site-nav .nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.custom-site-nav .nav-cta {
  display: inline-block;
  background: #00D4BB;
  color: #0D1219;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s ease;
  margin-left: 24px;
}
.custom-site-nav .nav-cta:hover {
  background: #00BFA5;
}
@media (max-width: 768px) {
  .custom-site-nav .nav-cta { display: none; }
  .custom-site-nav {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Hide "Free AI Kit" link on desktop — it only appears in mobile hamburger dropdown */
.nav-link-mobile-only {
  display: none;
}

/* ── Nav CTA pill (desktop) ── */
.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: #00D4BB;
  padding: 10px 22px;
  border: 1px solid rgba(0, 212, 187, 0.3);
  border-radius: 50px;
  background: rgba(0, 212, 187, 0.06);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-cta-pill:hover {
  border-color: rgba(0, 212, 187, 0.6);
  background: rgba(0, 212, 187, 0.12);
  color: #00D4BB;
}
.nav-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00D4BB;
  animation: navDotPulse 2s ease-in-out infinite;
}
@keyframes navDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

nav.homepage-nav {
  padding-left: 32px !important;
  padding-right: 32px !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ── NAV ── */
nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(8,11,16,0.30);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-logo-subtitle {
  color: #8899AA;
}

.nav-logo-text em {
  font-style: italic;
  color: var(--teal);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 15px;
  color: var(--muted2);
  font-weight: 400;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: var(--teal);
  color: #080B10;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s;
}

a.nav-cta { text-decoration: none; color: #080B10; display: block; margin-right: 8px; }
.nav-cta:hover { opacity: 0.88; }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 10;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 48px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0,212,187,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -50px;
  left: 20%;
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(0,150,255,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(38px, 7vw, 84px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -1px;
  margin-bottom: 8px;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.25s;
}

.hero-headline .line1 {
  display: block;
  color: var(--text);
}

.hero-headline .line2 {
  display: block;
  color: var(--teal);
  font-style: italic;
  position: relative;
}

.hero-headline .line3 {
  display: block;
  color: rgba(240,244,248,0.35);
  font-weight: 400;
  font-size: 0.6em;
  letter-spacing: -1px;
  margin-top: 4px;
  font-style: normal;
}

/* typing cursor */
.typed-text { border-right: 3px solid var(--teal); padding-right: 4px; }

.hero-sub {
  font-size: 18px;
  color: var(--muted2);
  line-height: 1.65;
  max-width: 540px;
  margin: 28px auto 40px;
  font-weight: 300;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.55s;
}

.btn-primary {
  background: var(--teal);
  color: #080B10;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  letter-spacing: 0.01em;
}

a.btn-primary { text-decoration: none; color: #080B10; display: inline-block; }
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-ghost {
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  background: transparent;
}

a.btn-ghost { text-decoration: none; color: var(--teal); display: inline-block; }
.btn-ghost:hover { background: var(--teal-dim); transform: translateY(-2px); }

.hero-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.65s;
}

/* ── STATS STRIP ── */
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg2);
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.75s;
}

.stat {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

a.stat-link{text-decoration:none;color:inherit;cursor:pointer;transition:background .2s ease}
a.stat-link:hover{background:rgba(0,212,187,.06)}
a.stat-link .stat-num{color:var(--teal)}

.hero-stats-cite{font-size:12px;color:#555;text-align:center;margin-top:12px}
.hero-stats-cite a{color:var(--teal);text-decoration:none}
.hero-stats-cite a:hover{text-decoration:underline}

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
  animation-delay: 1.2s;
}

.scroll-line {
  width: 1px;
  height: 56px;
  margin-top: -4px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ── ARTICLE CARDS SECTION ── */
.section {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 48px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,212,187,0.25), transparent);
}

/* Featured card */
.featured-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--teal);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

a.featured-card { text-decoration: none; color: inherit; }
.featured-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.feat-badge {
  display: inline-block;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.feat-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.feat-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feat-time {
  font-size: 11px;
  color: var(--muted);
}

.feat-desc {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.6;
}

.feat-arrow {
  font-size: 24px;
  color: var(--teal);
  opacity: 0.6;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.card:hover {
  border-color: var(--teal-border);
  transform: translateY(-3px);
}

.card-img {
  height: 190px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-img-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-inner {
  width: 4px;
  height: 20px;
  background: var(--teal);
  border-radius: 2px;
}

.card-body {
  padding: 18px;
}

.card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.card-desc {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.55;
  margin-bottom: 14px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-time {
  font-size: 11px;
  color: var(--muted);
}

.card-badge {
  display: inline-block;
  width: auto;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 700;
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid var(--teal-border);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(0,212,187,0.07) 100%);
  border: 1px solid var(--teal-border);
  border-radius: 16px;
  padding: 40px 48px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-text h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.cta-text p {
  font-size: 15px;
  color: var(--muted2);
}

.cta-btn {
  background: var(--teal);
  color: #080B10;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  flex-shrink: 0;
}

a.cta-btn { text-decoration: none; color: #080B10; display: inline-block; }
.cta-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ================================================================
   SINGLE POST — Transparent header + content transparency
   (Mirrors .page rules above; appended — DO NOT move or merge)
   ================================================================ */
.single.transparent-header #primary,
.single.mobile-transparent-header #primary {
  padding-top: 80px !important;
}

.single .entry.content-bg,
.single .content-bg,
.single .site-main,
.single .content-area,
.single .content-wrap,
.single .entry-content-wrap {
  background: transparent !important;
  box-shadow: none !important;
}

.single .entry-hero {
  display: none !important;
}

.aiscending-banner-wrap {
  display: none !important;
}

.aiscending-header-banner {
  display: none !important;
}

body.blog .site-main,
body.blog .content-container,
body.archive .site-main,
body.archive .content-container,
body.category .site-main,
body.category .content-container {
  padding-top: 32px;
}

.blog .aiscending-banner-wrap,
body.blog .aiscending-banner-wrap,
body.page-template-default.page .aiscending-banner-wrap {
  display: none !important;
}

/* ================================================================
   ARTICLE + PAGE TEMPLATES — Shared banner
   Constrained to content area width (780px). Higher-specificity selector
   ensures this wins after Kadence's cascade (child CSS loads after
   kadence-global as of v1.1 dependency fix).
   ================================================================ */
.aiscending-single-article .aiscending-banner-wrap,
.aiscending-page-article .aiscending-banner-wrap {
  max-width: 780px !important;
  width: 100%;
  margin: 0 auto 2em;
  line-height: 0;
  display: block;
  overflow: hidden;
}

.aiscending-single-article .aiscending-banner-img,
.aiscending-page-article .aiscending-banner-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* ================================================================
   ARTICLE TEMPLATE — Layout, header, meta
   ================================================================ */
.aiscending-single-primary,
.aiscending-page-primary {
  position: relative;
  z-index: 10;
}

.aiscending-article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 10;
}

/* ── Eyebrow (category + reading time) ── */
.aiscending-article-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.aiscending-article-cat {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.aiscending-article-cat:hover { opacity: 0.8; }

.aiscending-article-sep {
  color: var(--muted);
  font-size: 11px;
}

.aiscending-article-read-time {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Title ── */
.aiscending-article-header .entry-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

/* ── Meta row ── */
.aiscending-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.aiscending-article-meta a {
  color: var(--teal);
  text-decoration: none;
}
.aiscending-article-meta a:hover { text-decoration: underline; }

.aiscending-article-modified {
  font-size: 12px;
  color: var(--muted);
}

/* ================================================================
   ARTICLE TEMPLATE — Content typography
   ================================================================ */
.aiscending-single-article .entry-content {
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

.aiscending-single-article .entry-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin-top: 2.4em;
  margin-bottom: 0.7em;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.aiscending-single-article .entry-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.6em;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.aiscending-single-article .entry-content h4 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.aiscending-single-article .entry-content a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}
.aiscending-single-article .entry-content a:hover { opacity: 0.8; }

.aiscending-single-article .entry-content strong {
  color: var(--text);
  font-weight: 600;
}

.aiscending-single-article .entry-content ul,
.aiscending-single-article .entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}
.aiscending-single-article .entry-content li { margin-bottom: 0.45em; }

.aiscending-single-article .entry-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 14px 24px;
  margin: 2em 0;
  background: var(--bg2);
  border-radius: 0 8px 8px 0;
  color: var(--muted2);
  font-style: italic;
}

.aiscending-single-article .entry-content code {
  background: var(--bg2);
  color: var(--teal);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
}

.aiscending-single-article .entry-content pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.aiscending-single-article .entry-content pre code {
  background: none;
  padding: 0;
  font-size: 0.9em;
}

.aiscending-single-article .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.aiscending-single-article .entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* ── Card image injected before FAQ ── */
.aiscending-card-figure {
  margin: 2.5em 0;
  line-height: 0;
  text-align: center;
}

.aiscending-card-figure .aiscending-card-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: inline-block;
}

/* ── Article footer / tags ── */
.aiscending-article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted2);
}

.aiscending-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.aiscending-tags-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aiscending-tags a {
  color: var(--teal);
  text-decoration: none;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  transition: background 0.2s;
}
.aiscending-tags a:hover { background: rgba(0,212,187,0.15); }

/* ── Multi-page post links ── */
.aiscending-page-links {
  margin-top: 2em;
  font-size: 14px;
  color: var(--muted2);
}
.aiscending-page-links a {
  color: var(--teal);
  text-decoration: none;
  margin: 0 4px;
}

/* ================================================================
   PAGE TEMPLATE
   ================================================================ */
.aiscending-page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 10;
}

.aiscending-page-header .page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.aiscending-page-article .entry-content {
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

.aiscending-page-article .entry-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.7em;
  letter-spacing: -0.3px;
}

.aiscending-page-article .entry-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--text);
  margin-top: 1.75em;
  margin-bottom: 0.6em;
}

.aiscending-page-article .entry-content a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.aiscending-page-article .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ================================================================
   MOBILE — Article + page
   ================================================================ */
@media (max-width: 768px) {
  .aiscending-article-wrap,
  .aiscending-page-wrap {
    padding: 28px 20px 60px;
  }

  .aiscending-article-header .entry-title,
  .aiscending-page-header .page-title {
    font-size: 24px;
  }

  .aiscending-single-article .entry-content {
    font-size: 16px;
  }

  .aiscending-article-meta {
    gap: 6px;
    font-size: 12px;
    margin-bottom: 28px;
  }
}

/* ================================================================
   CALLOUT BOXES — base styles for quickanswer / tip / warning
   Used in article content: .wp-block-callout.quickanswer etc.
   No styles existed before v1.2 — added here.
   ================================================================ */
.wp-block-callout {
  border-radius: 10px;
  padding: 16px 20px;
  margin: 1.75em 0;
  font-size: 15px;
  line-height: 1.65;
  color: #F0F4F8;
  font-family: 'DM Sans', sans-serif;
}

/* Label line (e.g. "Quick answer:", "Pro tip:", "Warning:") */
.wp-block-callout > strong:first-child,
.wp-block-callout > p:first-child > strong:first-child {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.wp-block-callout.quickanswer {
  background: rgba(0,212,187,0.07);
  border: 1px solid rgba(0,212,187,0.22);
  border-left: 3px solid #00D4BB;
}

.wp-block-callout.quickanswer > strong:first-child,
.wp-block-callout.quickanswer > p:first-child > strong:first-child {
  color: #00D4BB;
}

.wp-block-callout.tip {
  background: rgba(0,212,187,0.04);
  border: 1px solid rgba(0,212,187,0.14);
  border-left: 3px solid #00D4BB;
}

.wp-block-callout.tip > strong:first-child,
.wp-block-callout.tip > p:first-child > strong:first-child {
  color: #00D4BB;
}

.wp-block-callout.warning {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.18);
  border-left: 3px solid #FBBF24;
}

.wp-block-callout.warning > strong:first-child,
.wp-block-callout.warning > p:first-child > strong:first-child {
  color: #FBBF24;
}

/* Nested wp:paragraph blocks inside callouts — tighten spacing */
.wp-block-callout p {
  margin-bottom: 0.5em;
  color: inherit;
}
.wp-block-callout p:last-child { margin-bottom: 0; }

/* Session 48: Pro Tip component — manual use only, max 1 per article */
.pro-tip {
  border-left: 3px solid #F59E0B;
  background: #1A1F2E;
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  margin: 24px 0;
}
.pro-tip > strong:first-child {
  color: #F59E0B;
  display: inline;
}

/* Session 48: Action Checklist component — manual use only, how-to/tutorial articles */
.action-checklist {
  list-style: none;
  padding: 12px 0 12px 24px;
  margin: 16px 0;
  border-left: 2px solid #1E2D3D;
}
.action-checklist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}
.action-checklist li:last-child {
  margin-bottom: 0;
}
.action-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid #00D4BB;
  border-radius: 2px;
  background: transparent;
}

/* ================================================================
   MOBILE v1.2 — Banner, cards, callout boxes (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
  /* Banner: ensure no horizontal overflow on small screens */
  .aiscending-single-article .aiscending-banner-wrap,
  .aiscending-page-article .aiscending-banner-wrap {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    max-width: 100%;
  }

  /* Card image: reduce fixed height so cards don't feel too tall */
  .card-img {
    height: 150px;
  }

  /* Callout boxes: tighter padding on mobile */
  .wp-block-callout {
    padding: 14px 16px;
    font-size: 14px;
    margin: 1.4em 0;
  }

  /* Sticky nav: ensure transparent-header padding matches mobile nav height */
  .page.transparent-header #primary,
  .page.mobile-transparent-header #primary,
  .single.transparent-header #primary,
  .single.mobile-transparent-header #primary {
    padding-top: 64px !important;
  }

  /* Particles canvas: no layout contribution on mobile */
  #particles,
  #particles-sh,
  #particles-about {
    width: 100vw !important;
    max-width: 100% !important;
    overflow: hidden;
  }
}

/* ================================================================
   MOBILE v1.2 — Very small screens: 375px and below
   ================================================================ */
@media (max-width: 375px) {
  /* Article + page titles: reduce from 24px (768 rule) to 20px */
  .aiscending-article-header .entry-title,
  .aiscending-page-header .page-title {
    font-size: 20px;
    line-height: 1.2;
  }

  /* Body copy: slightly smaller for tight viewports */
  .aiscending-single-article .entry-content,
  .aiscending-page-article .entry-content {
    font-size: 15px;
  }

  /* Headings within articles */
  .aiscending-single-article .entry-content h2 {
    font-size: 18px;
  }

  .aiscending-single-article .entry-content h3 {
    font-size: 16px;
  }

  /* Homepage hero: reduce padding and font scale */
  .hero {
    padding: 60px 20px 40px !important;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-stats {
    margin-top: 32px;
  }

  .stat-num {
    font-size: 22px;
  }

  /* Section padding */
  .section {
    padding: 40px 16px !important;
  }

  /* Article layout padding */
  .aiscending-article-wrap,
  .aiscending-page-wrap {
    padding: 20px 16px 48px;
  }

  /* Callout boxes: minimal padding at 320px */
  .wp-block-callout {
    padding: 12px 14px;
    font-size: 13px;
  }

  /* Nav CTA: hide on very small screens to prevent overflow */
  .nav-cta {
    display: none !important;
  }
}

/* ================================================================
   PAGE 145 — Free AI Tools Starter Kit
   Suppress the Kadence-rendered banner image and page title that
   appear above the custom hero. Remove aiscending-page-wrap's
   max-width/padding so the quiz centers against the full viewport
   rather than an 860px box.
   ================================================================ */
.page-id-145 .aiscending-banner-wrap { display: none !important; }
.page-id-145 .aiscending-page-header { display: none !important; }
.page-id-145 .content-container      { max-width: 100% !important; margin: 0 auto !important; padding: 0 !important; }
.page-id-145 #inner-wrap,
.page-id-145 #primary,
.page-id-145 #main,
.page-id-145 .aiscending-page-article,
.page-id-145 .aiscending-page-wrap,
.page-id-145 .entry-content          { max-width: 100% !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box !important; }
.page-id-145 #primary                { float: none !important; width: 100% !important; margin: 0 auto !important; }
.page-id-145 .aiscending-page-wrap   { padding-top: 0 !important; padding-bottom: 0 !important; }
.page-id-145 .sh-hero                { padding-top: 28px !important; }

/* ================================================================
   RELATED ARTICLES — 3-card grid after single post content
   ================================================================ */
.related-articles {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 24px;
}

.related-articles h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .related-articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  background: #1A1F2E;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.related-card:hover {
  transform: scale(1.02);
}

.related-card a {
  text-decoration: none;
  color: inherit;
}

.related-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}

.related-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #00C9A7;
}

.related-card-body {
  padding: 1rem;
}

.related-card-category {
  color: #00C9A7;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.related-card-title {
  color: #fff;
  font-size: 1.05rem;
  margin: 0.4rem 0;
  font-weight: 600;
  line-height: 1.3;
}

.related-card-meta {
  color: #8899AA;
  font-size: 0.8rem;
}

/* Quiz centering fix — .quiz-wrap needs auto margins inside #aiscending-quiz */
.page-id-145 .quiz-wrap { margin: 0 auto !important; max-width: 440px !important;
}

body.page-id-145 .aiscending-email-cta p,
body.page-id-145 .aiscending-email-cta h3,
body.page-id-145 .aiscending-email-cta span,
body.page-id-145 .entry-content p,
body.page-id-145 .entry-content h3,
body.page-id-145 .entry-content span,
body.page-id-145 .sh-social-proof,
body.page-id-145 p,
body.page-id-145 h3,
body.page-id-145 span {
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

body.page-id-145 .sh-social-proof {
  white-space: normal !important;
}

/* Kit benefits checklist alignment */
.page-id-145 .sh-kit-section { max-width: 450px; margin: 2.5em auto 0; }

/* What's Inside card icons centered */
.page-id-145 .sh-cards-section .sh-card { text-align: center; }

/* ── HAMBURGER MENU — Mobile homepage nav (≤768px) ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: auto;
  line-height: 1;
}
/* ── MOBILE OVERRIDES (≤768px) — consolidated v2.1 ── */
@media (max-width: 768px) {

  /* — Homepage hamburger dropdown — */
  .nav-hamburger { display: block; }
  .nav-cta { display: none; }
  nav.nav-open .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    width: 38% !important;
    background: rgba(13, 18, 25, 0.92) !important;
    padding: 0 !important;
    gap: 0 !important;
    z-index: 200;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  nav.nav-open .nav-links a {
    display: block !important;
    padding: 14px 24px !important;
    font-size: 14px !important;
    text-align: right !important;
    color: var(--muted2) !important;
    text-decoration: none;
  }
  nav.nav-open .nav-links a:hover { color: var(--teal) !important; }
  nav.nav-open .nav-cta {
    display: block;
    margin: 0 20px 16px;
    text-align: center;
  }
  nav.nav-open .nav-hamburger { color: var(--teal); }

  /* — Scroll hint: hide on mobile — */
  .scroll-hint,
  .scroll-line {
    display: none !important;
  }
}


/* ── STICKY MOBILE NAV ── */
@media (max-width: 768px) {
  .aiscending-mobile-nav,
  .home nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 18, 25, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  /* Revert desktop overrides on mobile */
  nav {
    background: rgba(13, 18, 25, 0.45) !important;
  }
  .nav-logo img {
    width: 38px !important;
    height: 38px !important;
  }
  .nav-cta-pill {
    display: none;
  }
  .nav-link-mobile-only {
    display: block;
  }
  .card-badge {
    display: inline-block !important;
    width: auto !important;
  }
  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
  .feat-badge {
    display: inline-block !important;
    width: auto !important;
    justify-self: center;
  }
  /* Unify homepage + inner page nav padding on mobile */
  nav.homepage-nav {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ================================================================
   404 ERROR PAGE
   ================================================================ */
.error-404-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080B10;
  padding: 3em 1.5em;
}
.error-404-inner {
  max-width: 600px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}
.error-404-content {
  position: relative;
  z-index: 1;
}
.error-404-code {
  font-family: 'Syne', sans-serif;
  font-size: 7rem;
  font-weight: 800;
  color: #00D4BB;
  margin: 0 0 0.1em;
  line-height: 1;
}
.error-404-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #F0F4F8;
  margin: 0 0 0.75em;
  line-height: 1.3;
}
.error-404-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: #9CAAB8;
  margin: 0 0 2.5em;
  line-height: 1.7;
}
.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}
.error-404-btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #080B10;
  background: #00D4BB;
  padding: 0.85em 1.75em;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.error-404-btn-primary:hover { opacity: 0.85; }
.error-404-btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #00D4BB;
  background: transparent;
  padding: 0.85em 1.75em;
  border-radius: 6px;
  border: 2px solid #00D4BB;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.error-404-btn-ghost:hover { opacity: 0.75; }

/* ================================================================
   FOOTER — X/Twitter link
   ================================================================ */
.aiscending-x-footer {
  text-align: center;
  padding: 12px 0 16px;
  background: var(--bg);
  border-top: 1px solid var(--teal-border);
}
.aiscending-x-footer a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.aiscending-x-footer a:hover {
  color: var(--teal);
}
.aiscending-footer-sep {
  color: var(--muted);
  font-size: 13px;
  margin: 0 8px;
  opacity: 0.5;
}
