/* ==========================================================================
   FYNC-style single post article design
   Add this to your Astra child theme's style.css (bottom of file),
   or enqueue it as a separate stylesheet — see enqueue snippet below.
   ========================================================================== */

:root {
  --fync-navy: #0D1B2A;
  --fync-teal: #1268e3;
  --fync-teal-light: #22A08F;
  --fync-teal-pale: #e2eeff;
  --fync-gold: #C89B3C;
  --fync-gold-light: #F0C96B;
  --fync-off-white: #f9f9f9;
  --fync-text-body: #0f1733;
  --fync-text-muted: #454545;
  --fync-border: #DDE3E9;
}

/* Wrapper — guarantees hero + layout stack vertically no matter what
   flex/grid display Astra's #primary / .site-main applies to its
   direct children. */
.fync-single-wrap {
  display: block;
  width: 100%;
}

/* Hero — renders outside Astra's centered container (see single.php),
   so it's naturally full-width without needing a CSS breakout hack. */
.article-hero-wrapper{
  background: #172554;
  padding: 72px 5%;
  border-bottom: 1px solid rgba(200,155,60,0.2);
  width: 100%;
  box-sizing: border-box;
      width: 100vw;
    margin-left: calc((100vw - 100%) / -2);
position: relative;
    overflow: hidden;
  }  
.article-hero-wrapper::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: .6;
    z-index: 0;
    filter: none !important;
}
 
/* 
.article-hero {
  background: var(--fync-navy);
  padding: 72px 5%;
  border-bottom: 1px solid rgba(200,155,60,0.2);
  width: 100%;
  box-sizing: border-box;
}*/
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.4); font-size: 13px; text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.2); font-size: 12px; }
.article-tag {
    display: inline-block;
    background: rgb(85 161 240 / 20%);
    border: 1px solid rgb(50 159 246 / 40%);
    color: #cee3fc;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 2px;
    margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600; color: #fff; line-height: 1.15;
  max-width: 820px; margin-bottom: 20px;
}
.article-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.meta-item { font-size: 13px; color: rgba(255,255,255,0.4); }
.meta-item strong { color: rgba(255,255,255,0.65); font-weight: 500; }

/* Layout: article + sticky sidebar */

.article-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 0%;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.article-body { min-width: 0; }
.article-body h2 {
  font-size: 26px; font-weight: 700; color: var(--fync-navy);
  margin: 48px 0 16px; line-height: 1.3;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 18px; font-weight: 500; color: var(--fync-navy); margin: 28px 0 10px; }
.article-body p { font-size: 15px; color: #0f1733; margin-bottom: 20px; line-height: 1.8; }
.article-body ul { margin: 0 0 20px 24px; }
.article-body li { font-size: 17px; margin-bottom: 8px; line-height: 1.7; }
.article-body a { color: #1268E3; text-decoration: none; border-bottom: 1px solid rgba(26,122,110,0.3); }
.article-body a.btn-teal{color: #FFF}

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 36px 0; font-size: 15px; }
.comparison-table th { background: var(--fync-navy); color: #fff; padding: 14px 18px; text-align: left; font-weight: 500; font-size: 14px; }
.comparison-table th:first-child { border-radius: 6px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 6px 0 0; }
.comparison-table td { padding: 14px 18px; border-bottom: 1px solid var(--fync-border); vertical-align: top; line-height: 1.6; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: #fff; }
.comparison-table tr:nth-child(odd) td { background: var(--fync-off-white); }
.col-label { font-weight: 500; color: var(--fync-navy); }
.col-fractional { color: var(--fync-teal); }
.col-fulltime { color: var(--fync-text-muted); }

/* Verdict box */
.verdict-box { border-radius: 8px; overflow: hidden; margin: 40px 0; }
.verdict-header { background: var(--fync-navy); padding: 20px 28px; }
.verdict-header h3 { font-size: 20px; color: #fff; margin-bottom: 4px; }
.verdict-header p { font-size: 14px; color: rgba(255,255,255,0.5); }
.verdict-body { background: #fff; border: 1px solid var(--fync-border); border-top: none; padding: 24px 28px; }
.verdict-point { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; color: var(--fync-text-body); }
.verdict-point:last-child { margin-bottom: 0; }
.verdict-tick { color: var(--fync-teal); font-size: 16px; flex-shrink: 0; margin-top: 2px; }

/* Cost / stat bar visual */
.cost-visual { background: var(--fync-navy); border-radius: 8px; padding: 32px; margin: 36px 0; }
.cost-visual h4 { font-size: 16px; color: var(--fync-gold-light); margin-bottom: 24px; }
.cost-bar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.cost-bar-label { font-size: 13px; color: rgba(255,255,255,0.6); width: 160px; flex-shrink: 0; }
.cost-bar-wrap { flex: 1; background: rgba(255,255,255,0.06); border-radius: 2px; height: 10px; overflow: hidden; }
.cost-bar-fill { height: 100%; border-radius: 2px; }
.cost-bar-val { font-size: 13px; font-weight: 500; width: 120px; flex-shrink: 0; text-align: right; }

/* Inline CTA box */
.cta-inline { background: var(--fync-teal-pale); border: 1px solid rgba(26,122,110,0.2); border-radius: 8px; padding: 32px; margin: 40px 0; text-align: center; }
.cta-inline h3 { font-size: 23px; font-weight: 500; color: var(--fync-navy); margin-bottom: 10px; }
.cta-inline p { font-size: 15px; color: var(--fync-text-muted); padding-bottom: 20px; }
.btn-teal { background: var(--fync-teal); color: #fff; padding: 12px 28px; border-radius: 4px; font-size: 14px; font-weight: 500; text-decoration: none; display: inline-block; }
.btn-teal:hover { opacity: 0.9; }
.cta-inline a.btn-teal{margin-top:20px;}
.pullquote{
    background: var(--navy);
    border-radius: 8px;
    padding: 32px 36px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}
.pullquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    color: rgba(26, 122, 110, 0.15);
    line-height: 1;
}
.pullquote p {
     
    font-size: 20px;
    color: #fff;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}
.signal-box {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal);
    border-radius: 0 6px 6px 0;
    padding: 24px 28px;
    margin: 32px 0;
}
.signal-num { 
    font-size: 13px;
    color: var(--teal);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.signal-box h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 10px;
}
/* Sidebar */
.sidebar { position: sticky; top: 88px; }
.sidebar-card { background: #fff; border: 1px solid var(--fync-border); border-radius: 8px; padding: 28px; margin-bottom: 20px; }
.sidebar-card h4 { font-size: 14px; font-weight: 500; color: var(--fync-navy); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: 10px; }
.toc-list a {
  font-size: 14px; color: var(--fync-text-muted); text-decoration: none; line-height: 1.5;
  display: block; padding-left: 12px; border-left: 2px solid var(--fync-border);
  transition: border-color 0.2s, color 0.2s;
}
.toc-list a:hover { color: var(--fync-teal); border-left-color: var(--fync-teal); }

.author-card { display: flex; gap: 14px; align-items: flex-start; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--fync-teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.author-avatar-img { border-radius: 50%; flex-shrink: 0; }
.author-name { font-size: 15px; font-weight: 500; color: var(--fync-navy); }
.author-title { font-size: 13px; color: var(--fync-text-muted); margin-top: 2px; }

.related-post { display: block; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--fync-border); }
.related-post:last-child { border-bottom: none; }
.related-post-tag { font-size: 11px; color: var(--fync-teal); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.related-post-title { font-size: 14px; color: var(--fync-navy); line-height: 1.4; }
.single.single-post #content .ast-container{display: block;  position: relative; width: 100%;  z-index: 1; }
/* Mobile */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .comparison-table { font-size: 13px; }
  .comparison-table td, .comparison-table th { padding: 10px 12px; }
}
