﻿.bm-main-events {
    width: 100%;
    padding: 80px 20px;
    background: #f7f9fc;
    color: #17212b;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.bm-me-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.bm-me-header {
    max-width: 850px;
    margin: 0 auto 45px;
    text-align: center;
}

.bm-me-header > span,
.bm-me-section-title > span,
.bm-me-promotion-content > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #1d6f42;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.bm-me-header h2 {
    margin: 0 0 15px;
    font-size: 36px;
    line-height: 1.25;
}

.bm-me-header p {
    margin: 0;
    color: #68737e;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   FILTER
========================================= */

.bm-me-filter {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 25px;
    padding: 22px;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.bm-me-field label {
    display: block;
    margin-bottom: 7px;
    color: #17212b;
    font-size: 12px;
    font-weight: 700;
}

.bm-me-field input,
.bm-me-field select,
.bm-me-sort select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dce2e6;
    border-radius: 5px;
    background: #ffffff;
    color: #17212b;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.bm-me-field input:focus,
.bm-me-field select:focus,
.bm-me-sort select:focus {
    border-color: #1d6f42;
}

.bm-me-filter button {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 5px;
    background: #1d6f42;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.bm-me-filter button:hover {
    background: #258653;
}

.bm-me-filter .bm-me-reset {
    background: #17212b;
}

.bm-me-filter .bm-me-reset:hover {
    background: #273542;
}


/* =========================================
   RESULT BAR
========================================= */

.bm-me-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color: #68737e;
    font-size: 13px;
}

.bm-me-result-bar strong {
    color: #1d6f42;
    font-size: 16px;
}

.bm-me-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-me-sort label {
    font-size: 12px;
    font-weight: 700;
}

.bm-me-sort select {
    width: 160px;
    height: 38px;
}


/* =========================================
   EVENTS GRID
========================================= */

.bm-me-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* =========================================
   EVENT CARD
========================================= */

.bm-me-card {
    overflow: hidden;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.bm-me-card:hover {
    transform: translateY(-5px);
    border-color: #1d6f42;
    box-shadow: 0 12px 30px rgba(23, 33, 43, 0.08);
}


/* Event Image */

.bm-me-image {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: #e8edf0;
}

.bm-me-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bm-me-card:hover .bm-me-image img {
    transform: scale(1.05);
}

.bm-me-image > span {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 9px;
    border-radius: 4px;
    background: #1d6f42;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
}


/* Date */

.bm-me-date {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 58px;
    border-radius: 5px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .12);
}

.bm-me-date strong {
    display: block;
    margin-top: 7px;
    color: #1d6f42;
    font-size: 20px;
    line-height: 1;
}

.bm-me-date small {
    color: #68737e;
    font-size: 10px;
    font-weight: 700;
}


/* Card Content */

.bm-me-card-content {
    padding: 23px;
}

.bm-me-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.bm-me-meta span {
    color: #1d6f42;
    font-size: 11px;
    font-weight: 700;
}

.bm-me-meta span:last-child {
    color: #68737e;
}

.bm-me-card h3 {
    margin: 0 0 10px;
    color: #17212b;
    font-size: 19px;
    line-height: 1.4;
}

.bm-me-card p {
    min-height: 65px;
    margin: 0 0 18px;
    color: #68737e;
    font-size: 13px;
    line-height: 1.7;
}


/* Info */

.bm-me-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
}

.bm-me-info div {
    display: flex;
    flex-direction: column;
}

.bm-me-info strong {
    color: #17212b;
    font-size: 11px;
}

.bm-me-info small {
    margin-top: 4px;
    color: #8a949d;
    font-size: 10px;
}

.bm-me-link {
    display: inline-block;
    margin-top: 16px;
    color: #1d6f42;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.bm-me-link:hover {
    color: #258653;
}


/* =========================================
   NO RESULTS
========================================= */

.bm-me-no-results {
    display: none;
    padding: 45px 20px;
    margin-top: 20px;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.bm-me-no-results h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.bm-me-no-results p {
    margin: 0;
    color: #68737e;
    font-size: 14px;
}


/* =========================================
   SECTION TITLE
========================================= */

.bm-me-section-title {
    margin-bottom: 30px;
}

.bm-me-section-title h2 {
    margin: 0;
    font-size: 29px;
}


/* =========================================
   EVENT CATEGORIES
========================================= */

.bm-me-categories {
    margin-top: 75px;
}

.bm-me-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bm-me-category-grid a {
    padding: 16px 18px;
    border: 1px solid #e2e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #17212b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.bm-me-category-grid a:hover {
    border-color: #1d6f42;
    color: #1d6f42;
    transform: translateY(-2px);
}


/* =========================================
   PROCESS
========================================= */

.bm-me-process {
    margin-top: 75px;
}

.bm-me-process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.bm-me-process-card {
    padding: 25px 20px;
    border: 1px solid #e2e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.bm-me-process-card > div {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #eaf5ee;
    color: #1d6f42;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
}

.bm-me-process-card h3 {
    margin: 0 0 9px;
    font-size: 17px;
}

.bm-me-process-card p {
    margin: 0;
    color: #68737e;
    font-size: 12px;
    line-height: 1.7;
}


/* =========================================
   PROMOTION
========================================= */

.bm-me-promotion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 70px;
    padding: 42px 45px;
    border-radius: 10px;
    background: #17212b;
    color: #ffffff;
}

.bm-me-promotion-content > span {
    color: #7bc69c;
}

.bm-me-promotion-content h2 {
    margin: 0 0 10px;
    font-size: 27px;
    line-height: 1.35;
}

.bm-me-promotion-content p {
    max-width: 720px;
    margin: 0;
    color: #d1d9de;
    font-size: 13px;
    line-height: 1.7;
}

.bm-me-promotion > a {
    flex-shrink: 0;
    padding: 13px 24px;
    border-radius: 5px;
    background: #1d6f42;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bm-me-promotion > a:hover {
    background: #258653;
}


/* =========================================
   FINAL CTA
========================================= */

.bm-me-final-cta {
    margin-top: 35px;
    padding: 50px 25px;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.bm-me-final-cta h2 {
    margin: 0 0 12px;
    font-size: 29px;
}

.bm-me-final-cta p {
    max-width: 700px;
    margin: 0 auto 25px;
    color: #68737e;
    font-size: 14px;
    line-height: 1.7;
}

.bm-me-final-cta div {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bm-me-final-cta a {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 5px;
    background: #1d6f42;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.bm-me-final-cta a:last-child {
    background: #17212b;
}

.bm-me-final-cta a:hover {
    opacity: .9;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .bm-me-filter {
        grid-template-columns: 1fr 1fr;
    }

    .bm-me-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-me-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bm-me-process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bm-me-promotion {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 700px) {

    .bm-main-events {
        padding: 60px 18px;
    }

    .bm-me-header h2 {
        font-size: 29px;
    }

    .bm-me-filter {
        grid-template-columns: 1fr;
    }

    .bm-me-grid {
        grid-template-columns: 1fr;
    }

    .bm-me-result-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .bm-me-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-me-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-me-promotion {
        padding: 35px 25px;
    }

    .bm-me-promotion-content h2 {
        font-size: 24px;
    }

}


@media (max-width: 450px) {

    .bm-main-events {
        padding: 45px 14px;
    }

    .bm-me-header h2 {
        font-size: 25px;
    }

    .bm-me-header p {
        font-size: 14px;
    }

    .bm-me-card-content {
        padding: 20px;
    }

    .bm-me-category-grid {
        grid-template-columns: 1fr;
    }

    .bm-me-process-grid {
        grid-template-columns: 1fr;
    }

    .bm-me-promotion {
        padding: 30px 22px;
    }

    .bm-me-promotion > a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

}


/* =========================================
   HIDDEN EVENT
========================================= */

.bm-me-hidden {
    display: none !important;
}
