/*
Theme Name: MediaForte Blog Child
Theme URI: https://mediaforte.com/
Description: A clean, responsive blog archive and single-post layout for the Hello Elementor theme.
Author: MediaForte
Template: hello-elementor
Version: 1.0.0
Text Domain: mediaforte-blog-child
*/

:root {
    --mf-text: #202124;
    --mf-muted: #6b7280;
    --mf-border: #e5e7eb;
    --mf-surface: #f7f8fa;
    --mf-accent: #2457d6;
    --mf-radius: 12px;
    --mf-content-width: 1180px;
}

.mf-blog-wrap,
.mf-blog-wrap * {
    box-sizing: border-box;
}

.mf-blog-wrap {
    width: min(var(--mf-content-width), calc(100% - 40px));
    margin: 48px auto 72px;
    color: var(--mf-text);
    font-size: 16px;
    line-height: 1.7;
}

.mf-page-heading {
    margin: 0 0 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mf-border);
}

.mf-page-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.mf-page-heading p {
    margin: 0;
    color: var(--mf-muted);
}

.mf-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: start;
}

.mf-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.mf-post-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius);
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.mf-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(20, 30, 55, .07);
}

.mf-post-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mf-surface);
}

.mf-post-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mf-post-card-body {
    padding: 22px;
}

.mf-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
    color: var(--mf-muted);
    font-size: 13px;
}

.mf-post-meta a,
.mf-post-categories a {
    color: var(--mf-accent);
    text-decoration: none;
}

.mf-post-card h2 {
    margin: 0 0 10px;
    font-size: clamp(20px, 2.2vw, 25px);
    line-height: 1.3;
    font-weight: 720;
    letter-spacing: -.02em;
}

.mf-post-card h2 a {
    color: var(--mf-text);
    text-decoration: none;
}

.mf-post-card h2 a:hover,
.mf-post-meta a:hover,
.mf-post-categories a:hover {
    color: var(--mf-accent);
}

.mf-post-excerpt {
    color: #4b5563;
    font-size: 15px;
}

.mf-post-excerpt p {
    margin: 0;
}

.mf-read-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--mf-accent);
    font-weight: 650;
    text-decoration: none;
}

.mf-pagination {
    margin-top: 36px;
}

.mf-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mf-pagination a,
.mf-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    text-decoration: none;
}

.mf-pagination .current {
    color: #fff;
    border-color: var(--mf-accent);
    background: var(--mf-accent);
}

.mf-sidebar {
    display: grid;
    gap: 24px;
}

.mf-widget {
    padding: 22px;
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius);
    background: #fff;
}

.mf-widget-title {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 720;
}

.mf-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mf-widget li {
    padding: 9px 0;
    border-bottom: 1px solid var(--mf-border);
}

.mf-widget li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mf-widget a {
    color: var(--mf-text);
    text-decoration: none;
}

.mf-widget a:hover {
    color: var(--mf-accent);
}

.mf-widget .search-form {
    display: flex;
    gap: 8px;
}

.mf-widget .search-field {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    font: inherit;
}

.mf-widget .search-submit {
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--mf-accent);
    cursor: pointer;
}

.mf-single-article {
    min-width: 0;
}

.mf-single-header {
    margin-bottom: 28px;
}

.mf-single-header h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4.5vw, 48px);
    line-height: 1.12;
    letter-spacing: -.04em;
    font-weight: 780;
}

.mf-single-featured {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: var(--mf-radius);
    background: var(--mf-surface);
}

.mf-single-featured img {
    display: block;
    width: 100%;
    height: auto;
}

.mf-single-content {
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.mf-single-content > * {
    max-width: 100%;
}

.mf-single-content h2,
.mf-single-content h3,
.mf-single-content h4 {
    margin-top: 1.7em;
    margin-bottom: .6em;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.mf-single-content p {
    margin: 0 0 1.35em;
}

.mf-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.mf-single-content a {
    color: var(--mf-accent);
}

.mf-single-content blockquote {
    margin: 28px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--mf-accent);
    color: #4b5563;
}

.mf-post-categories {
    margin-top: 26px;
    color: var(--mf-muted);
    font-size: 14px;
}

.mf-post-tags {
    margin-top: 14px;
    color: var(--mf-muted);
    font-size: 14px;
}

.mf-post-tags a {
    display: inline-block;
    margin: 0 5px 5px 0;
    padding: 3px 9px;
    border: 1px solid var(--mf-border);
    border-radius: 20px;
    color: var(--mf-muted);
    text-decoration: none;
}

.mf-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--mf-border);
}

.mf-post-navigation a {
    color: var(--mf-text);
    text-decoration: none;
    font-weight: 650;
}

.mf-post-navigation .next-post {
    text-align: right;
}

.mf-no-posts {
    padding: 28px;
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius);
    background: var(--mf-surface);
}

@media (max-width: 900px) {
    .mf-blog-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 26px;
    }
    .mf-post-grid {
        gap: 18px;
    }
    .mf-post-card-body {
        padding: 18px;
    }
}

@media (max-width: 700px) {
    .mf-blog-wrap {
        width: min(100% - 28px, var(--mf-content-width));
        margin-top: 30px;
        margin-bottom: 48px;
    }
    .mf-blog-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    .mf-post-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .mf-sidebar {
        grid-row: auto;
    }
    .mf-post-navigation {
        grid-template-columns: minmax(0, 1fr);
    }
    .mf-post-navigation .next-post {
        text-align: left;
    }
}
