/* Blog Article Design - Modern Guide Layout */
.blog-article {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #1a1a2e;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Override inline article-wrap width */
.article-wrap {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 60px 24px 80px !important;
}

/* HERO SECTION */
.ba-hero {
    background: linear-gradient(135deg, #534AB7 0%, #532EAA 100%);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    margin: 1.5rem auto 2.5rem;
    text-align: left;
    max-width: 1100px;
}

.ba-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 11px;
    color: #F5F3FF;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.ba-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5DCAA5;
}

.ba-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    margin-bottom: 1.25rem !important;
    text-align: left !important;
    display: inline-block !important;
}

.ba-hero-desc {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
    color: rgba(255,255,255,0.92) !important;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.ba-hero-desc a {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: underline;
}

.ba-hero-cta,
.ba-hero-cta[style] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #1a1a2e !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease !important;
    width: fit-content !important;
    margin: 0 auto 1.4rem !important;
}

.ba-hero-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3) !important;
}

/* EMERGENCY BANNER */
.ba-emergency {
    background: #FCEBEB;
    border: 1px solid #F09595;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.ba-em-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #E24B4A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ba-em-icon i {
    color: #fff;
    font-size: 18px;
}

.ba-em-label {
    font-size: 12px;
    font-weight: 600;
    color: #A32D2D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ba-em-text {
    font-size: 14px;
    color: #791F1F;
    line-height: 1.6;
    margin-bottom: 8px;
}

.ba-em-link {
    font-size: 14px;
    font-weight: 600;
    color: #E24B4A;
    text-decoration: none;
}

.ba-em-link:hover {
    text-decoration: underline;
}

/* TABLE OF CONTENTS */
.ba-toc {
    background: #F7F5FF;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.ba-toc-label {
    font-size: 12px;
    font-weight: 600;
    color: #888780;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
}

.ba-toc ol {
    padding-left: 1.25rem;
    margin: 0;
}

.ba-toc li {
    font-size: 14px;
    color: #534AB7;
    line-height: 2;
}

.ba-toc li a {
    color: #534AB7;
    text-decoration: none;
}

.ba-toc li a:hover {
    text-decoration: underline;
}

/* BODY SECTIONS */
.ba-section {
    margin-bottom: 2.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.ba-h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 0.25rem;
    margin-bottom: 1.15rem;
    padding-top: 0.25rem;
    text-align: left;
    border-bottom: 2px solid #532EAA;
    padding-bottom: 0.75rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.ba-h3 {
    font-size: 18px;
    font-weight: 600;
    color: #532EAA;
    margin-top: 0.15rem;
    margin-bottom: 0.9rem;
    padding-top: 0.15rem;
    line-height: 1.45;
    letter-spacing: 0.005em;
}

.ba-section h4 {
    line-height: 1.5;
    letter-spacing: 0.004em;
    margin-top: 0.1rem;
    margin-bottom: 1rem;
}

.ba-p {
    font-size: 16px;
    color: #2a2a3a;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

/* RIGHTS LIST */
.ba-rights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.ba-right-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #F7F5FF;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.ba-ri-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #534AB7;
    flex-shrink: 0;
    margin-top: 6px;
}

.ba-ri-text {
    font-size: 15px;
    color: #3C3489;
    line-height: 1.6;
}

.ba-ri-text strong {
    font-weight: 600;
    color: #26215C;
}

/* STEPS LIST */
.ba-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.ba-step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ba-step-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #534AB7;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ba-step-content {
    font-size: 15px;
    color: #3a3a4a;
    line-height: 1.6;
    padding-top: 4px;
}

.ba-step-content strong {
    font-weight: 600;
    color: #1a1a2e;
}

/* TIMEFRAME CARDS */
.ba-timeframe-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.ba-tf-card {
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ba-tf-red {
    background: #FCEBEB;
    border: 1px solid #F09595;
}

.ba-tf-amber {
    background: #FAEEDA;
    border: 1px solid #FAC775;
}

.ba-tf-green {
    background: #E0F2F1;
    border: 1px solid #6EE7B7;
}

.ba-tf-badge {
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ba-tfb-red {
    background: #F7C1C1;
    color: #A32D2D;
}

.ba-tfb-amber {
    background: #FAC775;
    color: #633806;
}

.ba-tfb-green {
    background: #C0DD97;
    color: #27500A;
}

.ba-tf-body {
    flex: 1;
}

.ba-tf-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.ba-tft-red {
    color: #A32D2D;
}

.ba-tft-amber {
    color: #633806;
}

.ba-tft-green {
    color: #27500A;
}

.ba-tf-desc {
    font-size: 14px;
    line-height: 1.6;
}

.ba-tfd-red {
    color: #791F1F;
}

.ba-tfd-amber {
    color: #854F0B;
}

.ba-tfd-green {
    color: #3B6D11;
}

/* HIGHLIGHT QUOTE */
.ba-highlight {
    border-left: 4px solid #534AB7;
    border-radius: 0 10px 10px 0;
    background: #EEEDFE;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 15px;
    color: #3C3489;
    line-height: 1.7;
}

.ba-highlight strong {
    font-weight: 600;
    color: #26215C;
}

/* CLAIM CTA */
.ba-claim-cta {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: 3rem;
}

.ba-claim-cta h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

/* Guide/article CTA heading centered */
.guide-content .cta-box h3,
.guide-content .cta-box .ba-h3,
.blog-content .cta-box h3,
.blog-content .cta-box .ba-h3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ba-claim-cta p {
    font-size: 15px;
    color: #888780;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.ba-claim-cta-btn {
    background: #534AB7;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.ba-claim-cta-btn:hover {
    background: #6b5fc9;
}

.ba-claim-cta-sub {
    font-size: 13px;
    color: #5F5E5A;
    margin-top: 0.75rem;
}

.ba-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
    font-size: 13px;
    color: #888780;
}

.ba-stars {
    color: #EF9F27;
    font-size: 15px;
    letter-spacing: 1px;
}

/* Legacy duplicate responsive blocks removed.
   Keep only the FINAL RESPONSIVE OVERRIDE (MASTER) below. */

/* ── FINAL RESPONSIVE OVERRIDE (MASTER) ── */
.blog-article,
.article-wrap,
.guide-content,
.main-article-content {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.guide-layout-wrapper {
    display: block;
    width: 100%;
}

.guide-content img,
.guide-content video,
.guide-content iframe,
.blog-article img,
.blog-article video,
.blog-article iframe {
    max-width: 100%;
    height: auto;
}

.ba-p {
    font-size: clamp(1.05rem, 1.4vw, 1.15rem);
    line-height: 1.82;
    text-align: left;
}

/* Keep clear paragraph breaks across desktop and mobile. */
.guide-content.blog-article .ba-p + .ba-p,
.blog-content p + p {
    margin-top: 0.95rem;
}

/* Keep even paragraph spacing across blog/guide article content */
.guide-content p,
.blog-content p,
.seo-content p,
.article-wrap p,
.ba-p {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    text-justify: auto !important;
    text-align: left !important;
}

.guide-content li,
.blog-content li,
.article-wrap li {
    word-spacing: normal !important;
    letter-spacing: normal !important;
    text-justify: auto !important;
    text-align: left !important;
}

.ba-hero h1 {
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    line-height: 1.25;
}

.ba-hero-desc {
    font-size: clamp(1.04rem, 1.45vw, 1.16rem);
    line-height: 1.7;
    max-width: 900px;
}

.ba-step-content,
.ba-tf-desc {
    font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.ba-tf-title {
    font-size: clamp(1rem, 1.25vw, 1.08rem);
}

@media (max-width: 1024px) {
    .blog-article,
    .article-wrap,
    .guide-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .ba-hero {
        margin: 12px 0 18px !important;
        padding: 1.5rem 1.2rem !important;
    }
}

@media (max-width: 768px) {
    .blog-article,
    .article-wrap,
    .guide-content {
        padding: 16px 10px 28px !important;
    }

    .ba-hero {
        width: 100% !important;
        margin: 8px 0 16px !important;
        padding: 1.25rem 0.9rem !important;
        border-radius: 12px !important;
    }

    .ba-tag {
        margin-bottom: 0.85rem;
    }

    .ba-hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.8rem !important;
    }

    .ba-hero-desc {
        font-size: 1.02rem !important;
        line-height: 1.65 !important;
        margin-bottom: 0.95rem !important;
    }

    .ba-hero-cta,
    .ba-hero-cta[style] {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto 1rem !important;
        font-size: 0.95rem !important;
        padding: 0.82rem 1rem !important;
    }

    .ba-section {
        margin-bottom: 1.8rem !important;
    }

    .ba-h2 {
        font-size: 1.26rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.8rem !important;
    }

    .ba-h3 {
        font-size: 1.06rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.65rem !important;
    }

    .ba-p,
    .ba-section p,
    .ba-section li {
        font-size: 1rem !important;
        line-height: 1.75 !important;
        text-align: left !important;
        margin-bottom: 1rem !important;
    }

    /* Mobile readability fix: avoid justified text gaps */
    .guide-content p,
    .guide-content li,
    .blog-content p,
    .blog-content li,
    .seo-content p,
    .article-wrap p {
        text-align: left !important;
        text-justify: auto !important;
        word-spacing: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
    }

    .guide-content.blog-article .ba-p + .ba-p,
    .blog-content p + p {
        margin-top: 0.95rem !important;
    }

    .guide-content p,
    .blog-content p,
    .seo-content p,
    .article-wrap p,
    .ba-p {
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
    }

    .ba-tf-card,
    .step-card {
        padding: 0.95rem !important;
        border-radius: 12px !important;
    }

    .emergency-box,
    .cta-box,
    .sidebar-cta-card {
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    .emergency-box a,
    .cta-box a {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .main-article-content > div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .blog-article,
    .article-wrap,
    .guide-content {
        padding: 14px 8px 24px !important;
    }

    .ba-hero {
        padding: 1.08rem 0.75rem !important;
    }

    .ba-hero h1 {
        font-size: 1.28rem !important;
    }

    .ba-hero-desc,
    .ba-p,
    .ba-section p,
    .ba-section li {
        font-size: 0.98rem !important;
        line-height: 1.72 !important;
    }

    .guide-content p,
    .guide-content li,
    .blog-content p,
    .blog-content li,
    .seo-content p,
    .article-wrap p {
        text-align: left !important;
        text-justify: auto !important;
        word-spacing: normal !important;
        hyphens: none !important;
    }

    .guide-content p,
    .blog-content p,
    .seo-content p,
    .article-wrap p,
    .ba-p {
        margin-top: 0 !important;
        margin-bottom: 0.95rem !important;
    }
}

/* FINAL: CTA heading must be centered in guide/blog articles */
.guide-content .cta-box .ba-h3,
.guide-content .cta-box h3,
.blog-content .cta-box .ba-h3,
.blog-content .cta-box h3 {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* FINAL OVERRIDE: normalize word spacing on all article text */
article.guide-content.blog-article p,
article.guide-content.blog-article li,
.article-wrap .blog-content p,
.article-wrap .blog-content li,
.article-wrap .seo-content p,
.guide-content .step-card p,
.guide-content .ba-section p {
    text-align: left !important;
    text-align-last: left !important;
    text-justify: auto !important;
    word-spacing: 0 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    font-kerning: normal;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}
