﻿.bm-team-gallery {
    width: 100%;
    padding: 90px 20px;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.bm-team-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ==========================================
   TEAM HEADING
   ========================================== */

.bm-team-heading {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.bm-team-heading > span,
.bm-gallery-heading > span {
    display: inline-block;
    margin-bottom: 12px;

    color: #1d6f42;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
}

.bm-team-heading h2,
.bm-gallery-heading h2 {
    margin: 0 0 15px;

    color: #17212b;

    font-size: 42px;
    line-height: 1.2;
}

.bm-team-heading h2 strong,
.bm-gallery-heading h2 strong {
    color: #1d6f42;
}

.bm-team-heading p,
.bm-gallery-heading p {
    margin: 0;

    color: #69737c;

    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================
   TEAM GRID
   ========================================== */

.bm-team-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;
}


/* ==========================================
   TEAM CARD
   ========================================== */

.bm-team-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5eaee;

    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);

    transition: all 0.3s ease;
}

.bm-team-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.10);
}


/* ==========================================
   TEAM IMAGE
   ========================================== */

.bm-team-image {
    position: relative;

    width: 100%;
    height: 300px;

    overflow: hidden;

    background: #eef3f0;
}

.bm-team-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.bm-team-card:hover
.bm-team-image img {
    transform: scale(1.05);
}


/* ==========================================
   TEAM OVERLAY
   ========================================== */

.bm-team-overlay {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1d6f42;

    border-radius: 50%;
}

.bm-team-overlay span {
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}


/* ==========================================
   TEAM INFORMATION
   ========================================== */

.bm-team-info {
    padding: 20px;
    text-align: center;
}

.bm-team-info h3 {
    margin: 0 0 7px;

    color: #17212b;

    font-size: 17px;
    line-height: 1.4;
}

.bm-team-info p {
    margin: 0;

    color: #1d6f42;

    font-size: 13px;
    font-weight: 600;
}


/* ==========================================
   GALLERY HEADING
   ========================================== */

.bm-gallery-heading {
    max-width: 760px;

    margin: 85px auto 40px;

    text-align: center;
}


/* ==========================================
   GALLERY GRID
   ========================================== */

.bm-gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    grid-auto-rows: 230px;

    gap: 18px;
}


/* ==========================================
   GALLERY ITEM
   ========================================== */

.bm-gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: 12px;

    background: #eef3f0;

    border: 1px solid #e5eaee;
}

.bm-gallery-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.bm-gallery-item:hover img {
    transform: scale(1.06);
}


/* ==========================================
   LARGE GALLERY IMAGE
   ========================================== */

.bm-gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}


/* ==========================================
   GALLERY HOVER
   ========================================== */

.bm-gallery-item::after {
    content: "";

    position: absolute;

    inset: 0;

    background: rgba(29, 111, 66, 0.08);

    opacity: 0;

    transition: opacity 0.3s ease;
}

.bm-gallery-item:hover::after {
    opacity: 1;
}


/* ==========================================
   BOTTOM STATEMENT
   ========================================== */

.bm-team-bottom {
    margin-top: 50px;

    padding: 32px 25px;

    text-align: center;

    background: #f1f6f3;

    border: 1px solid #dfeae3;

    border-radius: 14px;
}

.bm-team-bottom h3 {
    margin: 0 0 9px;

    color: #17212b;

    font-size: 23px;
}

.bm-team-bottom p {
    max-width: 700px;

    margin: 0 auto;

    color: #647079;

    font-size: 15px;

    line-height: 1.7;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 992px) {

    .bm-team-gallery {
        padding: 70px 20px;
    }

    .bm-team-heading h2,
    .bm-gallery-heading h2 {
        font-size: 36px;
    }

    .bm-team-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .bm-gallery-grid {
        grid-template-columns:
            repeat(2, 1fr);

        grid-auto-rows: 220px;
    }

}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {

    .bm-team-gallery {
        padding: 55px 15px;
    }

    .bm-team-heading {
        margin-bottom: 35px;
    }

    .bm-team-heading h2,
    .bm-gallery-heading h2 {
        font-size: 30px;
    }

    .bm-team-heading p,
    .bm-gallery-heading p {
        font-size: 15px;
    }

    .bm-team-grid {
        grid-template-columns: 1fr;
    }

    .bm-team-image {
        height: 330px;
    }

    .bm-gallery-heading {
        margin-top: 60px;
    }

    .bm-gallery-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 230px;

        gap: 15px;
    }

    .bm-gallery-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bm-team-bottom {
        margin-top: 35px;
        padding: 25px 18px;
    }

    .bm-team-bottom h3 {
        font-size: 20px;
    }

}
