.blog-modern-hero {
    position: relative;
    overflow: hidden;
}

.blog-modern-hero .banner__media img {
    min-height: 300px;
    max-height: 420px;
    object-fit: cover;
}

.blog-modern-hero .banner__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 26, 56, 0.35) 0%, rgba(8, 26, 56, 0.65) 100%);
}

.blog-modern-hero .banner__content {
    z-index: 2;
    padding: 24px 16px;
}

.blog-modern-hero .banner__content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.blog-modern-hero .banner__content p {
    max-width: 620px;
    margin: 0 auto 14px;
    font-size: 1rem;
    opacity: 0.95;
}

.blog-modern-hero .form-search.form-search--blog {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 45, 87, 0.14);
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(7, 22, 45, 0.22);
    padding: 4px;
}

.blog-modern-hero .form-search.form-search--blog .form__element {
    border-radius: 10px;
}

.blog-modern-categories {
    background: #ffffff;
    border-top: 1px solid #d8e2f1;
    border-bottom: 1px solid #d8e2f1;
}

.blog-modern-categories__nav > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 14px 0;
    list-style: none;
}

.blog-modern-categories__nav > ul li a {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c8d6ea;
    border-radius: 999px;
    padding: 8px 14px;
    color: #17345f;
    font-size: 0.92rem;
    background: #f7faff;
    transition: all 0.2s ease;
}

.blog-modern-categories__nav > ul li a:hover {
    border-color: #1f4f90;
    background: #e8f0fb;
}

.blog-modern-results {
    background: linear-gradient(180deg, #f6f9fd 0%, #eff4fb 100%);
    padding: 28px 0 40px;
}

.blog-modern-listing {
    margin-bottom: 8px;
}

.blog-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.blog-modern-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(17, 41, 74, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(17, 41, 74, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(17, 41, 74, 0.12);
}

.blog-modern-card__media {
    background: #e6edf8;
}

.blog-modern-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-modern-card__body {
    padding: 14px;
}

.blog-modern-card__categories {
    color: #1f4f90;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.blog-modern-card__category {
    color: inherit;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.blog-modern-card__title {
    margin: 0 0 8px;
    font-size: 1.3rem;
    line-height: 1.35;
}

.blog-modern-card__title a {
    color: #112c4f;
}

.blog-modern-card__title a:hover {
    color: #1f4f90;
}

.blog-modern-card__meta {
    font-size: 0.85rem;
    color: #5a6f8f;
    margin-bottom: 10px;
}

.blog-modern-card__excerpt {
    margin: 0 0 14px;
    color: #364a68;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-modern-card__btn {
    min-height: 42px;
    line-height: 42px;
    padding: 0 16px;
    width: auto;
}

.blog-modern-pagination .table-controls {
    padding: 12px 0 0;
}

.blog-modern-empty {
    border: 1px solid #d4e0ef;
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 12px;
}

@media (max-width: 1199px) {
    .blog-modern-grid {
        gap: 14px;
    }

    .blog-modern-card__title {
        font-size: 1.14rem;
    }
}

@media (max-width: 991px) {
    .blog-modern-hero .banner__media img {
        min-height: 240px;
        max-height: 320px;
    }

    .blog-modern-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .blog-modern-results {
        padding: 18px 0 26px;
    }

    .blog-modern-hero .banner__content {
        padding: 18px 12px;
    }

    .blog-modern-hero .banner__content p {
        margin-bottom: 10px;
    }

    .blog-modern-hero .form-search.form-search--blog {
        border-radius: 10px;
    }

    .blog-modern-categories__nav > ul {
        gap: 8px;
        padding: 10px 0;
    }

    .blog-modern-categories__nav > ul li a {
        padding: 7px 12px;
        font-size: 0.86rem;
    }

    .blog-modern-card__body {
        padding: 12px;
    }

    .blog-modern-card__title {
        font-size: 1.06rem;
    }

    .blog-modern-card__excerpt {
        -webkit-line-clamp: 5;
    }
}
