/* Shared article layout — hero, sidebar, callouts, related cards */

.section-title {
    font-weight: bold;
    color: #3674B5;
    scroll-margin-top: 110px;
}

.article-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 260px;
    max-height: 460px;
    overflow: hidden;
}
.article-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0) 100%);
}
.article-hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 20px 32px;
    color: #fff;
}
.article-hero-badge {
    display: inline-block;
    background: #3674B5;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.article-hero-text h1 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.25;
    margin: 0 0 12px;
}
.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}
.article-hero-meta img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
}
.article-hero-meta .dot {
    opacity: .6;
}

.article-lead:first-letter {
    font-size: 52px;
    font-weight: 700;
    float: left;
    line-height: .78;
    padding: 6px 8px 0 0;
    color: #3674B5;
}
.article-lead {
    font-size: 19px;
    line-height: 1.75;
    color: #333;
}
.article-body p {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
}

/* Callouts */
.callout {
    display: flex;
    gap: 12px;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 8px 0 28px;
    font-size: 15px;
    color: #1e1e1e;
}
.callout i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}
.callout-tip {
    background: #EAF3FB;
    border-left: 3px solid #3674B5;
}
.callout-tip i {
    color: #3674B5;
}
.callout-note {
    background: #FFF7E6;
    border-left: 3px solid #E0A106;
}
.callout-note i {
    color: #B8790A;
}

/* Icon lists (replace emoji bullet lists) */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 15px;
    color: #444;
}
.icon-list li i {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-top: 2px;
}
.icon-list li.is-positive i {
    background: #E6F4EA;
    color: #1E8E3E;
}
.icon-list li.is-negative i {
    background: #FCE8E6;
    color: #C5221F;
}

/* Numbered step list ("how it works") */
.step-list {
    margin: 24px 0;
}
.step-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3674B5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.step-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e1e1e;
    margin: 4px 0 6px;
}

/* Price / data table */
.article-table th {
    background-color: #3674B5;
    color: #fff !important;
    font-weight: 600;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 110px;
}
.toc-card {
    background: #F5F7FA;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}
.toc-card .toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #888;
    margin-bottom: 10px;
}
.toc-card a {
    display: block;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    padding: 7px 0;
    border-bottom: 1px solid #e6e6e6;
}
.toc-card a:last-child {
    border-bottom: none;
}
.toc-card a:hover {
    color: #3674B5;
}

.cta-card {
    background: #3674B5;
    color: #fff;
    border-radius: 10px;
    padding: 22px;
}
.cta-card .cta-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}
.cta-card .cta-sub {
    font-size: 13px;
    opacity: .9;
    margin-bottom: 16px;
}
.cta-card .btn {
    background: #fff;
    color: #3674B5;
    font-weight: 600;
    width: 100%;
    border: none;
}
.cta-card .btn:hover {
    background: #f0f0f0;
}

.cta-inline {
    background: #F5F7FA;
    border-radius: 12px;
    padding: 32px 24px;
    margin-top: 12px;
}

/* Related articles */
.related-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #888;
    margin-bottom: 16px;
}
.related-card {
    display: block;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ececec;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}
.related-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: inherit;
}
.related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.related-card .related-card-body {
    padding: 14px 16px;
}
.related-card .related-card-body .title {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 4px;
}
.related-card .related-card-body .meta {
    font-size: 12px;
    color: #888;
    margin: 0;
}

@media (max-width: 991.98px) {
    .article-sidebar {
        position: static;
    }
}
