/* =====================================================
   RELATED ARTICLES SECTION
   ===================================================== */

.b2e-related-articles {
    background: var(--b2e-gray-50, #f8fafc);
    border-top: 1px solid rgba(15, 43, 91, 0.06);
    padding: 80px 0;
    position: relative;
}

.b2e-related-articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.b2e-related-articles-header .b2e-badge {
    margin-bottom: 14px;
}

.b2e-related-articles-header .b2e-section-title {
    margin-bottom: 12px;
}

.b2e-related-articles-header .b2e-section-subtitle {
    margin-bottom: 0;
}

.b2e-related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.b2e-related-article-card {
    background: #fff;
    border: 1px solid rgba(15, 43, 91, 0.09);
    border-radius: var(--b2e-radius-lg, 16px);
    box-shadow: 0 8px 24px rgba(15, 43, 91, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.b2e-related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 43, 91, 0.12);
}

.b2e-related-article-card-image {
    display: block;
    height: 140px;
    overflow: hidden;
    background: var(--b2e-gray-100, #f1f5f9);
}

.b2e-related-article-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.b2e-related-article-card:hover .b2e-related-article-card-image img {
    transform: scale(1.04);
}

.b2e-related-article-card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.b2e-related-article-card time {
    color: #64748b;
    font-size: 0.9rem;
}

.b2e-related-article-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 10px 0;
    font-weight: 800;
}

.b2e-related-article-card h3 a {
    color: #0f2b5b;
    text-decoration: none;
}

.b2e-related-article-card h3 a:hover {
    color: var(--b2e-primary, #1340a5);
}

.b2e-related-article-card p {
    color: #475569;
    line-height: 1.7;
    margin: 0 0 18px;
    flex: 1;
    font-size: 0.95rem;
}

.b2e-related-article-card-link {
    color: var(--b2e-primary, #1340a5);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.b2e-related-article-card-link:hover {
    text-decoration: underline;
}

.b2e-related-articles-footer {
    text-align: center;
    margin-top: 36px;
}

.b2e-related-articles-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--b2e-primary, #1340a5);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(19, 64, 165, 0.2);
    background: #fff;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.b2e-related-articles-view-all:hover {
    background: rgba(19, 64, 165, 0.05);
    box-shadow: 0 6px 16px rgba(15, 43, 91, 0.08);
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .b2e-related-articles {
        padding: 64px 0;
    }

    .b2e-related-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .b2e-related-articles {
        padding: 48px 0;
    }

    .b2e-related-articles-grid {
        grid-template-columns: 1fr;
    }

    .b2e-related-article-card-image {
        height: 160px;
    }
}
