﻿
.bm-downloads {
    width: 100%;
    padding: 80px 20px;
    background: #f7f9fc;
    color: #17212b;
    font-family: Arial, Helvetica, sans-serif;
}

.bm-downloads *,
.bm-downloads *::before,
.bm-downloads *::after {
    box-sizing: border-box;
}

.bm-dl-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   HEADER
   ========================================= */

.bm-dl-header {
    max-width: 850px;
    margin: 0 auto 45px;
    text-align: center;
}

.bm-dl-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #1d6f42;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.bm-dl-header h1 {
    margin: 0 0 15px;
    font-size: 40px;
    line-height: 1.2;
}

.bm-dl-header p {
    margin: 0;
    color: #68737e;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   FILTERS
   ========================================= */

.bm-dl-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    padding: 22px;
    margin-bottom: 30px;
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 12px;
    box-shadow: 0 7px 25px rgba(23, 33, 43, 0.05);
}

.bm-dl-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bm-dl-field label {
    color: #17212b;
    font-size: 13px;
    font-weight: 700;
}

.bm-dl-field input,
.bm-dl-field select,
.bm-dl-sort select {
    width: 100%;
    height: 45px;
    padding: 0 13px;
    background: #ffffff;
    border: 1px solid #dfe5e9;
    border-radius: 6px;
    outline: none;
    color: #17212b;
    font-size: 13px;
}

.bm-dl-field input:focus,
.bm-dl-field select:focus,
.bm-dl-sort select:focus {
    border-color: #1d6f42;
}

.bm-dl-filters > button {
    height: 45px;
    padding: 0 28px;
    border: 0;
    border-radius: 6px;
    background: #1d6f42;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.bm-dl-filters > button:hover {
    background: #258653;
}


/* =========================================
   RESULT BAR
   ========================================= */

.bm-dl-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.bm-dl-result-bar strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.bm-dl-result-bar > div > span {
    color: #68737e;
    font-size: 13px;
}

.bm-dl-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-dl-sort label {
    color: #68737e;
    font-size: 13px;
    white-space: nowrap;
}

.bm-dl-sort select {
    width: 180px;
}


/* =========================================
   DOWNLOAD GRID
   ========================================= */

.bm-dl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bm-dl-card {
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 11px;
    overflow: hidden;
    transition: 0.25s ease;
}

.bm-dl-card:hover {
    transform: translateY(-5px);
    border-color: #1d6f42;
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.08);
}


/* =========================================
   CARD TOP
   ========================================= */

.bm-dl-card-top {
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f0f5f2;
    border-bottom: 1px solid #e2e7eb;
}

.bm-dl-file-icon {
    width: 65px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 7px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 7px 15px rgba(23, 33, 43, 0.12);
}

.bm-dl-pdf {
    background: #1d6f42;
}

.bm-dl-doc {
    background: #355f8a;
}

.bm-dl-new {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #17212b;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
}


/* =========================================
   CARD CONTENT
   ========================================= */

.bm-dl-content {
    padding: 20px;
}

.bm-dl-category {
    color: #1d6f42;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bm-dl-content h3 {
    margin: 8px 0 9px;
    font-size: 16px;
    line-height: 1.4;
}

.bm-dl-content p {
    min-height: 67px;
    margin: 0 0 16px;
    color: #68737e;
    font-size: 12px;
    line-height: 1.7;
}

.bm-dl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    margin-bottom: 15px;
    border-top: 1px solid #edf0f2;
}

.bm-dl-meta span {
    padding: 5px 7px;
    background: #f3f5f6;
    border-radius: 4px;
    color: #68737e;
    font-size: 10px;
}

.bm-dl-button {
    width: 100%;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1d6f42;
    border-radius: 5px;
    background: #ffffff;
    color: #1d6f42;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.bm-dl-button:hover {
    background: #1d6f42;
    color: #ffffff;
}


/* =========================================
   NO RESULTS
   ========================================= */

.bm-dl-no-results {
    display: none;
    padding: 55px 20px;
    margin-top: 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
}

.bm-dl-no-icon {
    margin-bottom: 12px;
    font-size: 35px;
}

.bm-dl-no-results h3 {
    margin: 0 0 8px;
}

.bm-dl-no-results p {
    margin: 0;
    color: #68737e;
    font-size: 13px;
}


/* =========================================
   PAGINATION
   ========================================= */

.bm-dl-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 38px 0 75px;
}

.bm-dl-page {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dfe5e9;
    border-radius: 5px;
    background: #ffffff;
    color: #17212b;
    cursor: pointer;
    font-size: 12px;
}

.bm-dl-page:hover,
.bm-dl-page.active {
    border-color: #1d6f42;
    background: #1d6f42;
    color: #ffffff;
}


/* =========================================
   CATEGORY SECTION
   ========================================= */

.bm-dl-section-title {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.bm-dl-section-title > span {
    color: #1d6f42;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.bm-dl-section-title h2 {
    margin: 8px 0 10px;
    font-size: 30px;
}

.bm-dl-section-title p {
    margin: 0;
    color: #68737e;
    line-height: 1.7;
}

.bm-dl-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 55px;
}

.bm-dl-category-card {
    padding: 25px 20px;
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    transition: 0.25s ease;
}

.bm-dl-category-card:hover {
    transform: translateY(-3px);
    border-color: #1d6f42;
}

.bm-dl-category-card > div {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #eaf4ee;
    color: #1d6f42;
    font-size: 11px;
    font-weight: 700;
}

.bm-dl-category-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.bm-dl-category-card p {
    margin: 0;
    color: #68737e;
    font-size: 12px;
    line-height: 1.7;
}


/* =========================================
   CTA
   ========================================= */

.bm-dl-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 14px;
    background: #17212b;
    color: #ffffff;
}

.bm-dl-cta > div {
    max-width: 750px;
}

.bm-dl-cta > div > span {
    color: #7bc69c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.bm-dl-cta h2 {
    margin: 9px 0 10px;
    font-size: 27px;
}

.bm-dl-cta p {
    margin: 0;
    color: #c8d0d6;
    font-size: 14px;
    line-height: 1.7;
}

.bm-dl-cta-button {
    min-width: 160px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 6px;
    background: #1d6f42;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bm-dl-cta-button:hover {
    background: #258653;
}


/* =========================================
   FINAL CTA
   ========================================= */

.bm-dl-final {
    padding: 50px 25px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 14px;
}

.bm-dl-final h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.bm-dl-final p {
    margin: 0 0 23px;
    color: #68737e;
    font-size: 14px;
}

.bm-dl-final a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 175px;
    height: 44px;
    padding: 0 22px;
    border-radius: 6px;
    background: #1d6f42;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.bm-dl-final a:hover {
    background: #258653;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1050px) {

    .bm-dl-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bm-dl-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-dl-filters {
        grid-template-columns: 1fr 1fr;
    }

    .bm-dl-filters > button {
        width: 100%;
    }
}


@media (max-width: 750px) {

    .bm-downloads {
        padding: 60px 15px;
    }

    .bm-dl-header h1 {
        font-size: 32px;
    }

    .bm-dl-filters {
        grid-template-columns: 1fr;
    }

    .bm-dl-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-dl-result-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .bm-dl-sort {
        width: 100%;
    }

    .bm-dl-sort select {
        width: 100%;
    }

    .bm-dl-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 25px;
    }

    .bm-dl-cta-button {
        width: 100%;
    }
}


@media (max-width: 500px) {

    .bm-dl-header h1 {
        font-size: 27px;
    }

    .bm-dl-header p {
        font-size: 14px;
    }

    .bm-dl-grid {
        grid-template-columns: 1fr;
    }

    .bm-dl-category-grid {
        grid-template-columns: 1fr;
    }

    .bm-dl-cta h2 {
        font-size: 23px;
    }

    .bm-dl-final h2 {
        font-size: 23px;
    }

    .bm-dl-pagination {
        flex-wrap: wrap;
    }
}

