/* =========================================================
   AVIDITY CAPITAL — Blog Article / Long-Form Page Stylesheet
   File: css/blog-article.css
   Depends on: style.css, case-study.css
   Scope: .ba-* components (blog article prefix)
   ========================================================= */


/* =========================================================
   ARTICLE HERO
   ========================================================= */
.ba-hero {
    position: relative;
    min-height: 58vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.ba-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ba-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.ba-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7, 30, 51, 0.92) 0%,
        rgba(7, 30, 51, 0.70) 40%,
        rgba(7, 30, 51, 0.30) 100%
    );
}

.ba-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 8rem;
    padding-bottom: 3.5rem;
    max-width: 820px;
}

/* Breadcrumb inside hero */
.ba-breadcrumb {
    margin-bottom: 1.25rem;
}

.ba-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.ba-breadcrumb ol li {
    font-size: 0.75rem;
    color: rgba(248, 246, 241, 0.6);
}

.ba-breadcrumb ol li a {
    color: rgba(248, 246, 241, 0.7);
    font-weight: 500;
    transition: color 0.2s;
}

.ba-breadcrumb ol li a:hover {
    color: #E8C97A;
}

.ba-breadcrumb ol li i {
    font-size: 0.5rem;
    color: rgba(248, 246, 241, 0.35);
}

.ba-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.12;
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.ba-hero-title em {
    font-style: italic;
    color: #E8C97A;
}

.ba-hero-deck {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(248, 246, 241, 0.85);
    line-height: 1.65;
    max-width: 680px;
    margin-bottom: 1.5rem;
}

.ba-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.75rem;
    font-size: 0.78rem;
    color: rgba(248, 246, 241, 0.6);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.ba-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ba-hero-meta i {
    color: #C9A84C;
    font-size: 0.72rem;
}


/* =========================================================
   MAIN LAYOUT  (article + sidebar)
   ========================================================= */
.ba-main {
    padding: 4rem 0 5rem;
    background: #F8F6F1;
}

.ba-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3.5rem;
    align-items: start;
}


/* =========================================================
   ARTICLE TYPOGRAPHY
   ========================================================= */
.ba-article {
    max-width: 100%;
}

.ba-lead {
    font-size: 1.12rem;
    color: #0D3B5E;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.ba-article p {
    font-size: 1.02rem;
    color: #2D3748;
    line-height: 1.8;
    margin-bottom: 1.35rem;
}

.ba-article h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    font-weight: 500;
    color: #0D3B5E;
    line-height: 1.2;
    margin: 3rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid #EEF0F4;
}

.ba-article h2:first-of-type {
    margin-top: 2rem;
}

.ba-article h2 em {
    font-style: italic;
    color: #C9A84C;
}

.ba-article strong {
    font-weight: 700;
    color: #0D3B5E;
}

.ba-gold {
    color: #C9A84C;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.08em;
}

/* Pull quote */
.ba-pull {
    border-left: 3px solid #C9A84C;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2.5rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.55rem);
    line-height: 1.4;
    color: #0D3B5E;
    font-weight: 500;
    font-style: normal;
}

.ba-pull em {
    color: #C9A84C;
    font-style: italic;
}

/* Numbered exit list */
.ba-exits {
    list-style: none;
    margin: 1.5rem 0 2rem;
    padding: 0;
}

.ba-exits li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #EEF0F4;
    font-size: 1.02rem;
    color: #2D3748;
    line-height: 1.7;
}

.ba-exits li:first-child {
    border-top: 1px solid #EEF0F4;
}

.ba-exits-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 500;
    color: #C9A84C;
    line-height: 1;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
    margin-top: 0.1rem;
}

/* Trade-offs box */
.ba-tradeoffs {
    background: #EEF0F4;
    border-radius: 6px;
    padding: 2rem 2.25rem;
    margin: 2rem 0;
}

.ba-tradeoffs h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #0D3B5E;
    margin-bottom: 1.5rem;
}

.ba-tradeoff-item {
    margin-bottom: 1.35rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(13, 59, 94, 0.1);
}

.ba-tradeoff-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ba-tradeoff-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1A527A;
    margin-bottom: 0.35rem;
}

.ba-tradeoff-label i {
    color: #C9A84C;
    font-size: 0.85rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.ba-tradeoffs p {
    font-size: 0.97rem !important;
    color: #4A5568 !important;
    margin-bottom: 0 !important;
    line-height: 1.7 !important;
}

/* CTA inset block (within article body) */
.ba-cta-inset {
    background: linear-gradient(135deg, #071E33 0%, #0D3B5E 100%);
    border-radius: 6px;
    padding: 2.25rem 2.5rem;
    margin: 3rem 0;
    color: #F8F6F1;
}

.ba-cta-inset h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.ba-cta-inset p {
    font-size: 0.97rem !important;
    color: rgba(248, 246, 241, 0.82) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.7 !important;
}

/* FAQ within article */
.ba-faq {
    padding: 3rem 0 0;
    background: transparent;
}

.ba-faq .section-header {
    margin-bottom: 1.5rem;
}

/* Disclosure within article */
.ba-disclosure {
    margin-top: 2.5rem;
}


/* =========================================================
   SIDEBAR
   ========================================================= */
.ba-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ba-sidebar-card {
    background: #FFFFFF;
    border: 1px solid #EEF0F4;
    border-radius: 5px;
    padding: 1.5rem 1.75rem;
}

.ba-sidebar-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 1rem;
}

/* Related links list */
.ba-sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ba-sidebar-links li a {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #EEF0F4;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0D3B5E;
    line-height: 1.4;
    transition: color 0.2s, gap 0.2s;
    flex-wrap: wrap;
}

.ba-sidebar-links li:last-child a {
    border-bottom: none;
    padding-bottom: 0;
}

.ba-sidebar-links li a:hover {
    color: #C9A84C;
    gap: 0.75rem;
}

.ba-sidebar-links li a i {
    margin-left: auto;
    flex-shrink: 0;
    color: #C9A84C;
    font-size: 0.7rem;
    margin-top: 0.2rem;
    transition: transform 0.2s;
}

.ba-sidebar-links li a:hover i {
    transform: translateX(3px);
}

.ba-sidebar-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: #EEF0F4;
    color: #4A5568;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    flex-shrink: 0;
    margin-right: 0.25rem;
    align-self: center;
}

/* CTA sidebar card */
.ba-sidebar-cta {
    background: linear-gradient(160deg, #0D3B5E 0%, #071E33 100%);
    border-color: rgba(201, 168, 76, 0.3);
}

.ba-sidebar-cta .ba-sidebar-eyebrow {
    color: #E8C97A;
}

.ba-sidebar-cta h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 0.65rem;
}

.ba-sidebar-cta p {
    font-size: 0.88rem;
    color: rgba(248, 246, 241, 0.78);
    line-height: 1.65;
}

/* Letter series sidebar card */
.ba-sidebar-ll {
    background: #FBF7EB;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-top: 3px solid #C9A84C;
}

.ba-sidebar-ll-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #0D3B5E;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.ba-sidebar-ll-title em {
    color: #C9A84C;
    font-style: italic;
}

.ba-sidebar-ll-body {
    font-size: 0.84rem;
    color: #4A5568;
    line-height: 1.65;
    margin-bottom: 1rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .ba-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ba-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .ba-sidebar-cta {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .ba-hero {
        min-height: 65vh;
        align-items: flex-end;
    }

    .ba-hero-content {
        padding-top: 5rem;
        padding-bottom: 2.5rem;
    }

    .ba-hero-meta {
        gap: 0.5rem 1.25rem;
    }

    .ba-main {
        padding: 2.5rem 0 3.5rem;
    }

    .ba-sidebar {
        grid-template-columns: 1fr;
    }

    .ba-sidebar-cta {
        grid-column: span 1;
    }

    .ba-tradeoffs {
        padding: 1.5rem;
    }

    .ba-cta-inset {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .ba-pull {
        padding-left: 1rem;
    }

    .ba-exits li {
        gap: 0.85rem;
    }
}
