/* APF Academy v3.2 — article image presentation only */
.article-cover.has-cover {
    position: relative;
    height: 160px;
    padding: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0a1117, #101a21);
}
.article-cover.has-cover::before {
    content: none !important;
}
.article-cover.has-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 9px;
}
.article-cover.has-cover span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    margin: 0;
    background: rgba(7, 12, 16, .9);
    backdrop-filter: blur(8px);
}

.apf-article-cover {
    width: min(100%, 720px);
    max-width: 720px;
    aspect-ratio: auto !important;
    min-height: 0;
    margin: 0 auto 24px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(145deg, #0a1117, #101a21);
}
.apf-article-cover img {
    display: block;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    max-height: 410px;
    object-fit: contain !important;
    object-position: center;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .article-cover.has-cover {
        height: 138px;
        padding: 6px;
    }
    .article-cover.has-cover span {
        right: 9px;
        bottom: 9px;
    }
    .apf-article-cover {
        width: 100%;
        padding: 7px;
        margin-bottom: 16px;
        border-radius: 16px;
    }
    .apf-article-cover img {
        max-height: 300px;
        border-radius: 10px;
    }
}
