﻿.bm-articles-news {
    width: 100%;
    padding: 80px 20px;
    background: #f7f9fc;
    color: #17212b;
    font-family: Arial, Helvetica, sans-serif;
}

.bm-an-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* Header */

.bm-an-header {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
}

.bm-an-header > span,
.bm-an-section-title > span,
.bm-an-latest-head span,
.bm-an-publish span {
    display: inline-block;
    margin-bottom: 10px;
    color: #1d6f42;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.bm-an-header h2 {
    margin: 0 0 15px;
    font-size: 36px;
    line-height: 1.25;
}

.bm-an-header p {
    margin: 0;
    color: #68737e;
    font-size: 16px;
    line-height: 1.8;
}


/* Filters */

.bm-an-filters {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr auto;
    gap: 18px;
    padding: 25px;
    margin-bottom: 65px;
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
}

.bm-an-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.bm-an-field input,
.bm-an-field select,
.bm-an-sort select {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #dfe5e9;
    border-radius: 5px;
    background: #ffffff;
    color: #17212b;
    outline: none;
    font-size: 13px;
}

.bm-an-field input:focus,
.bm-an-field select:focus {
    border-color: #1d6f42;
}

.bm-an-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.bm-an-actions button {
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: #1d6f42;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.bm-an-actions button:hover {
    background: #258653;
}

.bm-an-actions .bm-an-reset {
    background: #17212b;
}


/* Section Title */

.bm-an-section-title {
    margin-bottom: 30px;
    text-align: center;
}

.bm-an-section-title h2 {
    margin: 0;
    font-size: 30px;
}


/* Featured */

.bm-an-featured {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 25px;
    margin-bottom: 75px;
}

.bm-an-featured-main {
    overflow: hidden;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.bm-an-featured-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.bm-an-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bm-an-featured-image span {
    position: absolute;
    left: 18px;
    top: 18px;
    padding: 7px 10px;
    border-radius: 4px;
    background: #1d6f42;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.bm-an-featured-content {
    padding: 25px;
}

.bm-an-featured-content small,
.bm-an-card-content small {
    color: #1d6f42;
    font-size: 11px;
    font-weight: 700;
}

.bm-an-featured-content h3 {
    margin: 10px 0;
    font-size: 25px;
    line-height: 1.35;
}

.bm-an-featured-content p {
    margin: 0 0 18px;
    color: #68737e;
    line-height: 1.7;
    font-size: 14px;
}

.bm-an-meta {
    display: flex;
    gap: 8px;
    color: #8a949d;
    font-size: 11px;
    margin-bottom: 18px;
}

.bm-an-featured-content a,
.bm-an-small-featured a,
.bm-an-card-footer a {
    color: #1d6f42;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.bm-an-featured-content a:hover,
.bm-an-small-featured a:hover,
.bm-an-card-footer a:hover {
    color: #258653;
}


/* Small Featured */

.bm-an-featured-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bm-an-small-featured {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e2e7eb;
    border-radius: 9px;
    background: #ffffff;
}

.bm-an-small-image {
    height: 105px;
    overflow: hidden;
    border-radius: 6px;
}

.bm-an-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bm-an-small-featured small {
    color: #1d6f42;
    font-size: 10px;
    font-weight: 700;
}

.bm-an-small-featured h3 {
    margin: 7px 0 10px;
    font-size: 15px;
    line-height: 1.4;
}


/* Latest */

.bm-an-latest-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.bm-an-latest-head h2 {
    margin: 0;
    font-size: 30px;
}

.bm-an-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-an-sort label {
    font-size: 13px;
    font-weight: 700;
}

.bm-an-sort select {
    width: 150px;
}


/* Article Grid */

.bm-an-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.bm-an-card {
    overflow: hidden;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.bm-an-card:hover {
    transform: translateY(-5px);
    border-color: #1d6f42;
    box-shadow: 0 12px 30px rgba(23, 33, 43, 0.08);
}

.bm-an-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.bm-an-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bm-an-card-image span {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 9px;
    border-radius: 4px;
    background: #1d6f42;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
}

.bm-an-card-content {
    padding: 22px;
}

.bm-an-card-content h3 {
    margin: 8px 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.bm-an-card-content p {
    min-height: 65px;
    margin: 0 0 18px;
    color: #68737e;
    font-size: 13px;
    line-height: 1.7;
}

.bm-an-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #edf0f2;
}

.bm-an-card-footer span {
    color: #8a949d;
    font-size: 11px;
}


/* No Results */

.bm-an-no-results {
    display: none;
    margin-bottom: 50px;
    padding: 45px 20px;
    text-align: center;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.bm-an-no-results h3 {
    margin: 0 0 8px;
}

.bm-an-no-results p {
    margin: 0;
    color: #68737e;
}


/* Categories */

.bm-an-categories {
    margin: 75px 0;
}

.bm-an-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bm-an-category-grid a {
    display: block;
    padding: 14px 16px;
    border: 1px solid #e2e7eb;
    border-radius: 5px;
    background: #ffffff;
    color: #17212b;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s ease;
}

.bm-an-category-grid a:hover {
    border-color: #1d6f42;
    color: #1d6f42;
    transform: translateX(3px);
}


/* Publish */

.bm-an-publish {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    padding: 45px 50px;
    border-radius: 12px;
    background: #17212b;
    color: #ffffff;
}

.bm-an-publish span {
    color: #7bc69c;
}

.bm-an-publish h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.bm-an-publish p {
    max-width: 700px;
    margin: 0;
    color: #d1d9de;
    font-size: 14px;
    line-height: 1.7;
}

.bm-an-publish > a {
    flex-shrink: 0;
    padding: 13px 25px;
    border-radius: 5px;
    background: #1d6f42;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.bm-an-publish > a:hover {
    background: #258653;
}


/* Final CTA */

.bm-an-final-cta {
    padding: 50px 25px;
    border-radius: 12px;
    background: #1d6f42;
    color: #ffffff;
    text-align: center;
}

.bm-an-final-cta h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.bm-an-final-cta p {
    max-width: 700px;
    margin: 0 auto 25px;
    color: #e1f1e7;
    font-size: 15px;
    line-height: 1.7;
}

.bm-an-final-cta a {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 5px;
    background: #ffffff;
    color: #1d6f42;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.bm-an-final-cta a:hover {
    background: #17212b;
    color: #ffffff;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .bm-an-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-an-actions {
        align-items: center;
    }

    .bm-an-featured {
        grid-template-columns: 1fr;
    }

    .bm-an-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-an-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .bm-articles-news {
        padding: 60px 18px;
    }

    .bm-an-header h2 {
        font-size: 29px;
    }

    .bm-an-filters {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .bm-an-actions {
        flex-direction: column;
    }

    .bm-an-actions button {
        width: 100%;
    }

    .bm-an-grid {
        grid-template-columns: 1fr;
    }

    .bm-an-latest-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .bm-an-sort {
        width: 100%;
    }

    .bm-an-sort select {
        width: 100%;
    }

    .bm-an-category-grid {
        grid-template-columns: 1fr;
    }

    .bm-an-publish {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px 25px;
    }
}


@media (max-width: 450px) {

    .bm-articles-news {
        padding: 45px 14px;
    }

    .bm-an-header h2 {
        font-size: 25px;
    }

    .bm-an-header p {
        font-size: 14px;
    }

    .bm-an-featured-image {
        height: 220px;
    }

    .bm-an-featured-content h3 {
        font-size: 21px;
    }

    .bm-an-small-featured {
        grid-template-columns: 95px 1fr;
    }

    .bm-an-small-image {
        height: 90px;
    }

    .bm-an-publish h2 {
        font-size: 24px;
    }

    .bm-an-final-cta h2 {
        font-size: 25px;
    }
}
