/* ===== BLOG — F1rst Motors ===== */
.fm-blog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
}
.fm-blog__head { text-align: center; margin-bottom: 48px; }
.fm-blog__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 4px; color: #ffffff; position: relative;
    display: inline-block; padding-bottom: 18px; margin: 0;
}
.fm-blog__title::after {
    content: ""; position: absolute; left: 50%; bottom: 0;
    transform: translateX(-50%); width: 44px; height: 2px; background: #e31e24;
}
.fm-blog__subtitle { color: #888; font-size: 15px; margin-top: 16px; }

.fm-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.fm-post-card {
    background: #141414; border: 1px solid #1f1f1f; border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: border-color .2s, transform .2s;
}
.fm-post-card:hover { border-color: #e31e24; transform: translateY(-3px); }
.fm-post-card__link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.fm-post-card__image { position: relative; aspect-ratio: 16/9; background: #1a1a1a; overflow: hidden; }
.fm-post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.fm-post-card__placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #555; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}
.fm-post-card__cat {
    position: absolute; top: 12px; left: 12px; background: #e31e24; color: #fff;
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: .5px; font-family: 'Montserrat', sans-serif;
}
.fm-post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.fm-post-card__title {
    font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 600;
    line-height: 1.4; margin: 0 0 12px; color: #fff;
}
.fm-post-card__excerpt { font-size: 14px; line-height: 1.6; color: #aaa; margin: 0 0 18px; flex: 1; }
.fm-post-card__meta {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid #262626; padding-top: 14px; margin-top: auto;
}
.fm-post-card__date { font-size: 12px; color: #777; }
.fm-post-card__more { font-size: 13px; font-weight: 600; color: #e31e24; font-family: 'Montserrat', sans-serif; }

.fm-blog__empty { text-align: center; color: #888; padding: 60px 0; font-size: 16px; }

.fm-blog__pagination { margin-top: 48px; text-align: center; }
.fm-blog__pagination .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 4px; border-radius: 6px;
    border: 1px solid #262626; color: #ccc; text-decoration: none; font-size: 14px;
}
.fm-blog__pagination .page-numbers.current { background: #e31e24; border-color: #e31e24; color: #fff; }
.fm-blog__pagination a.page-numbers:hover { border-color: #e31e24; color: #fff; }

/* ===== SINGLE POST ===== */
.fm-article {
    max-width: 820px; margin: 0 auto; padding: 48px 20px 60px; color: #fff;
    font-family: 'Inter', 'Montserrat', sans-serif;
}
.fm-article__back { display: inline-block; color: #888; font-size: 13px; text-decoration: none; margin-bottom: 24px; }
.fm-article__back:hover { color: #e31e24; }
.fm-article__cat {
    display: inline-block; background: #e31e24; color: #fff; font-size: 11px; font-weight: 600;
    padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 16px; font-family: 'Montserrat', sans-serif;
}
.fm-article__title { font-family: 'Montserrat', sans-serif; font-size: 32px; font-weight: 700; line-height: 1.25; margin: 0 0 14px; color: #fff; }
.fm-article__date { font-size: 13px; color: #777; margin-bottom: 32px; }
.fm-article__cover { margin: 0 0 32px; border-radius: 12px; overflow: hidden; }
.fm-article__cover img { width: 100%; height: auto; display: block; }
.fm-article__content { font-size: 16px; line-height: 1.8; color: #d0d0d0; }
.fm-article__content h2 { font-family: 'Montserrat', sans-serif; font-size: 23px; color: #fff; margin: 36px 0 14px; }
.fm-article__content h3 { font-family: 'Montserrat', sans-serif; font-size: 19px; color: #fff; margin: 28px 0 12px; }
.fm-article__content p { margin: 0 0 18px; }
.fm-article__content ul, .fm-article__content ol { margin: 0 0 18px; padding-left: 24px; }
.fm-article__content li { margin-bottom: 8px; }
.fm-article__content a { color: #e31e24; text-decoration: underline; }
.fm-article__content strong { color: #fff; }
.fm-article__content table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.fm-article__content th, .fm-article__content td { border: 1px solid #262626; padding: 10px 12px; text-align: left; font-size: 14px; }
.fm-article__content th { background: #141414; color: #fff; }

.fm-article__cta {
    margin-top: 48px; background: #141414; border: 1px solid #1f1f1f; border-left: 4px solid #e31e24;
    border-radius: 0 8px 8px 0; padding: 28px 32px;
}
.fm-article__cta p { margin: 0 0 16px; color: #ccc; font-size: 15px; }
.fm-article__cta .fm-btn {
    display: inline-block; background: #e31e24; color: #fff; text-decoration: none;
    padding: 12px 28px; border-radius: 6px; font-weight: 600; font-family: 'Montserrat', sans-serif; font-size: 14px;
}
.fm-article__cta .fm-btn:hover { background: #c41a1f; }

@media (max-width: 900px) { .fm-blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .fm-blog__grid { grid-template-columns: 1fr; }
    .fm-blog__title { font-size: 26px; letter-spacing: 3px; }
    .fm-article__title { font-size: 25px; }
    .fm-article { padding: 32px 16px 48px; }
}
