/* Similar news / related articles section */
.pf-similar-news {
    margin: 34px 0 26px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.pf-similar-news-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.pf-similar-news-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.pf-similar-news-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 900;
    line-height: 1.15;
}

.pf-similar-news-head p {
    max-width: 660px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.pf-similar-news-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 14px;
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.pf-similar-news-more:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.pf-similar-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.pf-similar-news-card {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pf-similar-news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .20);
    box-shadow: 0 16px 30px rgba(15, 23, 42, .10);
}

.pf-similar-news-image {
    position: relative;
    display: block;
    min-height: 145px;
    aspect-ratio: 16 / 9;
    background-color: #e2e8f0;
    background-position: center;
    background-size: cover;
}

.pf-similar-news-category {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--pf-related-category-color, #2563eb);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 10px 18px rgba(15, 23, 42, .18);
}

.pf-similar-news-body {
    padding: 14px;
}

.pf-similar-news-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.pf-similar-news-body h3 a {
    color: #0f172a;
    text-decoration: none;
}

.pf-similar-news-body h3 a:hover {
    color: #2563eb;
    text-decoration: none;
}

.pf-similar-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.pf-similar-news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 991.98px) {
    .pf-similar-news {
        padding: 18px;
        border-radius: 18px;
    }

    .pf-similar-news-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .pf-similar-news {
        margin: 26px 0 20px;
        padding: 15px;
    }

    .pf-similar-news-head {
        flex-direction: column;
        gap: 12px;
    }

    .pf-similar-news-more {
        width: 100%;
    }

    .pf-similar-news-grid {
        grid-template-columns: 1fr;
    }
}

html.dark-mode-site .pf-similar-news,
html.dark-mode-site .pf-similar-news-card {
    border-color: rgba(148, 163, 184, .18);
    background: #111827;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

html.dark-mode-site .pf-similar-news-head h2,
html.dark-mode-site .pf-similar-news-body h3 a {
    color: #f8fafc;
}

html.dark-mode-site .pf-similar-news-head p,
html.dark-mode-site .pf-similar-news-meta {
    color: #94a3b8;
}

html.dark-mode-site .pf-similar-news-image {
    background-color: #1f2937;
}
