/* ==========================================================================
   Single Blog Post CSS
   Reuses the same .rb-blog wrapper/variables/tag/button styles defined in
   blog-listing.css — enqueue both files on singular 'blog' posts.
   ========================================================================== */

.rb-art-head {
    color: #fff;
}
.wrap.hero {
    max-width: 820px;
}
.rb-breadcrumb {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: .04em;
    margin-bottom: 28px;
}
.rb-breadcrumb a { color: inherit; text-decoration: none; }
.rb-breadcrumb a:hover { color: #fff; }

.rb-art-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
}
.rb-art-meta .rb-who { display: flex; align-items: center; gap: 10px; }
.rb-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--rb-lime);
    color: var(--rb-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}
.rb-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Article body: styles core WordPress blocks straight out of the editor ---- */
.rb-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 40px;
}

/* First paragraph of the content is automatically styled as the "lead" —
   no editor action needed. */
.rb-article > p:first-of-type {
    font-size: 21px;
    line-height: 1.6;
    color: var(--rb-ink);
    font-weight: 500;
    margin-bottom: 32px;
}

.rb-article h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rb-ink);
    margin: 44px 0 16px;
}
.rb-article h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--rb-ink);
    margin: 32px 0 12px;
}
.rb-article p {
    font-size: 17px;
    line-height: 1.75;
    color: #33384a;
    margin-bottom: 20px;
}
.rb-article ul {
    margin: 0 0 22px 0;
    padding-left: 0;
    list-style: none;
}
.rb-article ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.7;
    color: #33384a;
}
.rb-article ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 1px;
    color: #12b981;
    font-weight: 800;
}
/* Ordered lists keep normal numbers, just match paragraph typography */
.rb-article ol {
    margin: 0 0 22px 26px;
    padding-left: 0;
}
.rb-article ol li {
    font-size: 17px;
    line-height: 1.7;
    color: #33384a;
    margin-bottom: 12px;
}
.rb-article a {
    color: #1414c8;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(20, 20, 200, .3);
}
.rb-article img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 12px 0 28px;
}
.rb-article figcaption {
    font-size: 13px;
    color: var(--rb-muted);
    text-align: center;
    margin-top: -18px;
    margin-bottom: 28px;
}

/* ---- Pullquote: a Block Style variation on the core Quote block.
   Editors select it from the block's Styles panel — no custom class typing. ---- */
.rb-article blockquote,
.rb-article .wp-block-quote {
    border-left: 4px solid var(--rb-lime);
    background: var(--rb-cream);
    border-radius: 0 14px 14px 0;
    padding: 26px 30px;
    margin: 34px 0;
    font-size: 21px;
    font-weight: 600;
    color: var(--rb-ink);
    line-height: 1.5;
}
.rb-article blockquote p,
.rb-article .wp-block-quote p {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
}
.rb-article blockquote cite,
.rb-article .wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rb-muted);
    font-style: normal;
}

/* ---- Callout box: inserted as a ready-made Block Pattern ("RB: Callout Box") ---- */
.rb-callout {
    background: var(--rb-navy);
    border-radius: 16px;
    padding: 32px 34px;
    margin: 36px 0;
    position: relative;
    overflow: hidden;
}
.rb-callout::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rb-cobalt), var(--rb-lime));
}
.rb-callout .rb-callout-kicker {
    font-family: var(--rb-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rb-lime);
    margin-bottom: 12px;
    font-weight: 700;
}
.rb-callout p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}
.rb-callout a { color: var(--rb-lime); }

/* ---- Inline CTA: inserted as a ready-made Block Pattern ("RB: Inline CTA") ---- */
.rb-inline-cta {
    border: 1px solid var(--rb-line-lt);
    border-radius: 16px;
    padding: 28px 30px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: #fff;
}
.rb-inline-cta .rb-cta-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--rb-ink);
}
.rb-inline-cta .rb-cta-sub {
    font-size: 14px;
    color: var(--rb-muted);
    margin-top: 4px;
}
/* Targets the link generated inside WordPress's core Button block
   (<div class="wp-block-button rb-btn-dark"><a class="wp-block-button__link">) */
.rb-inline-cta .wp-block-button.rb-btn-dark .wp-block-button__link,
.rb-inline-cta a.rb-btn-dark {
    display: inline-block;
    background: var(--rb-navy);
    color: var(--rb-lime);
    padding: 14px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    border: none;
}

.rb-article-footnote {
    font-size: 14px;
    color: var(--rb-muted);
    border-top: 1px solid var(--rb-line-lt);
    padding-top: 24px;
    margin-top: 36px;
}

/* ---- Related posts ---- */
.rb-related-section { background: var(--rb-cream); }
.rb-rel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
@media (max-width: 820px) { .rb-rel-grid { grid-template-columns: 1fr; } }
.rb-rel {
    background: #fff;
    border: 1px solid var(--rb-line-lt);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform .2s, box-shadow .2s;
}
.rb-rel:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(13, 16, 48, .1);
}
.rb-rel .rb-img {
    height: 130px;
    background: linear-gradient(140deg, #12123a, #0a0a2e);
    background-size: cover;
    background-position: center;
}
.rb-rel .rb-body { padding: 20px 22px 24px; }
.rb-rel h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--rb-ink);
    line-height: 1.3;
    margin-bottom: 8px;
}
.rb-rel p {
    color: var(--rb-muted);
    line-height: 1.55;
}

.single.single-blog .rb-blog {
    background: #fff;
}
.rb-related-section .btn-primary span {
    transform: rotate(180deg);
}