﻿.bm-video-gallery {
    width: 100%;
    padding: 80px 20px;
    background: #f7f9fc;
    color: #17212b;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.bm-vg-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.bm-vg-header {
    max-width: 850px;
    margin: 0 auto 45px;
    text-align: center;
}

.bm-vg-header > span,
.bm-vg-section-title > span,
.bm-vg-cta > div > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #1d6f42;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.bm-vg-header h2 {
    margin: 0 0 15px;
    font-size: 36px;
    line-height: 1.25;
}

.bm-vg-header p {
    margin: 0;
    color: #68737e;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   FILTER
========================================= */

.bm-vg-filter {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 25px;
    padding: 22px;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.bm-vg-field label {
    display: block;
    margin-bottom: 7px;
    color: #17212b;
    font-size: 12px;
    font-weight: 700;
}

.bm-vg-field input,
.bm-vg-field select,
.bm-vg-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-vg-field input:focus,
.bm-vg-field select:focus {
    border-color: #1d6f42;
}

.bm-vg-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-vg-filter button:hover {
    background: #258653;
}

.bm-vg-filter .bm-vg-reset {
    background: #17212b;
}

.bm-vg-filter .bm-vg-reset:hover {
    background: #273542;
}


/* =========================================
   RESULT BAR
========================================= */

.bm-vg-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    color: #68737e;
    font-size: 13px;
}

.bm-vg-result-bar strong {
    color: #1d6f42;
    font-size: 16px;
}

.bm-vg-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-vg-sort label {
    font-size: 12px;
    font-weight: 700;
}

.bm-vg-sort select {
    width: 150px;
    height: 38px;
}


/* =========================================
   FEATURED VIDEO
========================================= */

.bm-vg-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    overflow: hidden;
    margin-bottom: 65px;
    border-radius: 12px;
    background: #17212b;
    color: #ffffff;
}

.bm-vg-featured-video {
    min-height: 380px;
    background: #000000;
}

.bm-vg-featured-video iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

.bm-vg-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px;
}

.bm-vg-featured-content > span {
    margin-bottom: 12px;
    color: #7bc69c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.bm-vg-featured-content h2 {
    margin: 0 0 15px;
    font-size: 28px;
    line-height: 1.35;
}

.bm-vg-featured-content p {
    margin: 0 0 25px;
    color: #d1d9de;
    font-size: 13px;
    line-height: 1.8;
}

.bm-vg-featured-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.bm-vg-featured-info div {
    padding: 13px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 5px;
}

.bm-vg-featured-info strong,
.bm-vg-featured-info small {
    display: block;
}

.bm-vg-featured-info strong {
    font-size: 11px;
}

.bm-vg-featured-info small {
    margin-top: 4px;
    color: #9daab3;
    font-size: 10px;
}

.bm-vg-featured-content > a {
    display: inline-block;
    align-self: flex-start;
    padding: 12px 20px;
    border-radius: 5px;
    background: #1d6f42;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.bm-vg-featured-content > a:hover {
    background: #258653;
}


/* =========================================
   SECTION TITLE
========================================= */

.bm-vg-section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 25px;
}

.bm-vg-section-title h2 {
    margin: 0;
    font-size: 29px;
}

.bm-vg-section-title p {
    max-width: 400px;
    margin: 0;
    color: #68737e;
    font-size: 13px;
    line-height: 1.7;
    text-align: right;
}


/* =========================================
   VIDEO GRID
========================================= */

.bm-vg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* =========================================
   VIDEO CARD
========================================= */

.bm-vg-card {
    overflow: hidden;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
    transition: all .3s ease;
}

.bm-vg-card:hover {
    transform: translateY(-5px);
    border-color: #1d6f42;
    box-shadow: 0 12px 30px rgba(23,33,43,.08);
}


/* Thumbnail */

.bm-vg-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #17212b;
}

.bm-vg-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.bm-vg-card:hover .bm-vg-thumbnail img {
    transform: scale(1.06);
}


/* Overlay */

.bm-vg-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.15);
    pointer-events: none;
}


/* Play Button */

.bm-vg-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    background: #1d6f42;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all .25s ease;
}

.bm-vg-play:hover {
    background: #258653;
    transform: translate(-50%, -50%) scale(1.08);
}


/* Badge */

.bm-vg-thumbnail > span {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    background: #ffffff;
    color: #1d6f42;
    font-size: 9px;
    font-weight: 700;
}


/* Duration */

.bm-vg-duration {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    padding: 5px 7px;
    border-radius: 3px;
    background: rgba(0,0,0,.75);
    color: #ffffff;
    font-size: 10px;
}


/* Card Content */

.bm-vg-card-content {
    padding: 20px;
}

.bm-vg-card-content > small {
    display: block;
    margin-bottom: 8px;
    color: #1d6f42;
    font-size: 10px;
    font-weight: 700;
}

.bm-vg-card-content h3 {
    min-height: 48px;
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.bm-vg-card-content p {
    min-height: 62px;
    margin: 0 0 15px;
    color: #68737e;
    font-size: 12px;
    line-height: 1.7;
}

.bm-vg-card-content a {
    color: #1d6f42;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.bm-vg-card-content a:hover {
    color: #258653;
}


/* =========================================
   NO RESULTS
========================================= */

.bm-vg-no-results {
    display: none;
    margin-top: 20px;
    padding: 45px 20px;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.bm-vg-no-results h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.bm-vg-no-results p {
    margin: 0;
    color: #68737e;
    font-size: 14px;
}


/* =========================================
   CATEGORIES
========================================= */

.bm-vg-categories {
    margin-top: 75px;
}

.bm-vg-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bm-vg-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-vg-category-grid a:hover {
    border-color: #1d6f42;
    color: #1d6f42;
    transform: translateY(-2px);
}


/* =========================================
   CTA
========================================= */

.bm-vg-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 70px;
    padding: 45px 50px;
    border-radius: 10px;
    background: #17212b;
    color: #ffffff;
}

.bm-vg-cta > div > span {
    color: #7bc69c;
}

.bm-vg-cta h2 {
    max-width: 700px;
    margin: 0 0 10px;
    font-size: 27px;
    line-height: 1.35;
}

.bm-vg-cta p {
    max-width: 700px;
    margin: 0;
    color: #d1d9de;
    font-size: 13px;
    line-height: 1.7;
}

.bm-vg-cta > 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-vg-cta > a:hover {
    background: #258653;
}


/* =========================================
   FINAL CTA
========================================= */

.bm-vg-final {
    margin-top: 35px;
    padding: 50px 25px;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.bm-vg-final h2 {
    margin: 0 0 12px;
    font-size: 29px;
}

.bm-vg-final p {
    max-width: 700px;
    margin: 0 auto 25px;
    color: #68737e;
    font-size: 14px;
    line-height: 1.7;
}

.bm-vg-final a {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 5px;
    background: #1d6f42;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.bm-vg-final a:hover {
    background: #258653;
}


/* =========================================
   VIDEO MODAL
========================================= */

.bm-vg-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.85);
    box-sizing: border-box;
}

.bm-vg-modal.active {
    display: flex;
}

.bm-vg-modal-box {
    position: relative;
    width: min(900px, 100%);
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
}

.bm-vg-modal-box iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}

.bm-vg-close {
    position: absolute;
    z-index: 5;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #17212b;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .bm-vg-filter {
        grid-template-columns: 1fr 1fr;
    }

    .bm-vg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-vg-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bm-vg-featured {
        grid-template-columns: 1fr;
    }

    .bm-vg-featured-video,
    .bm-vg-featured-video iframe {
        min-height: 420px;
    }

}


@media (max-width: 700px) {

    .bm-video-gallery {
        padding: 60px 18px;
    }

    .bm-vg-header h2 {
        font-size: 29px;
    }

    .bm-vg-filter {
        grid-template-columns: 1fr;
    }

    .bm-vg-result-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .bm-vg-grid {
        grid-template-columns: 1fr;
    }

    .bm-vg-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-vg-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .bm-vg-section-title p {
        text-align: left;
    }

    .bm-vg-featured-content {
        padding: 30px;
    }

    .bm-vg-featured-video,
    .bm-vg-featured-video iframe {
        min-height: 300px;
    }

    .bm-vg-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 35px 25px;
    }

    .bm-vg-cta h2 {
        font-size: 24px;
    }

    .bm-vg-modal-box iframe {
        height: 350px;
    }

}


@media (max-width: 450px) {

    .bm-video-gallery {
        padding: 45px 14px;
    }

    .bm-vg-header h2 {
        font-size: 25px;
    }

    .bm-vg-header p {
        font-size: 14px;
    }

    .bm-vg-category-grid {
        grid-template-columns: 1fr;
    }

    .bm-vg-featured-content {
        padding: 25px 20px;
    }

    .bm-vg-featured-content h2 {
        font-size: 23px;
    }

    .bm-vg-featured-video,
    .bm-vg-featured-video iframe {
        min-height: 230px;
    }

    .bm-vg-featured-info {
        grid-template-columns: 1fr;
    }

    .bm-vg-cta {
        padding: 30px 22px;
    }

    .bm-vg-cta > a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .bm-vg-modal {
        padding: 10px;
    }

    .bm-vg-modal-box iframe {
        height: 240px;
    }

}


/* Hidden Card */

.bm-vg-hidden {
    display: none !important;
}
