﻿
.bm-certificates {
    padding: 90px 20px;
    background: #f7f9fc;
    font-family: Arial, Helvetica, sans-serif;
}

.bm-cert-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   HEADING
   ========================================= */

.bm-cert-heading {
    max-width: 800px;
    margin: 0 auto 55px;
    text-align: center;
}

.bm-cert-heading span {
    display: inline-block;
    margin-bottom: 12px;

    color: #1d6f42;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.bm-cert-heading h2 {
    margin: 0 0 18px;

    color: #17212b;
    font-size: 40px;
    line-height: 1.2;
}

.bm-cert-heading h2 strong {
    color: #1d6f42;
}

.bm-cert-heading p {
    margin: 0;

    color: #68727d;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   CERTIFICATE GRID
   ========================================= */

.bm-cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}


/* =========================================
   CERTIFICATE CARD
   ========================================= */

.bm-cert-card {
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e4e8ed;
    border-radius: 15px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);

    transition: all 0.3s ease;
}

.bm-cert-card:hover {
    transform: translateY(-8px);

    border-color: #1d6f42;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}


/* =========================================
   CERTIFICATE IMAGE
   ========================================= */

.bm-cert-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #eef2f5;
}

.bm-cert-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.bm-cert-card:hover .bm-cert-image img {
    transform: scale(1.05);
}


/* =========================================
   IMAGE OVERLAY
   ========================================= */

.bm-cert-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(23, 33, 43, 0.72);

    opacity: 0;

    transition: opacity 0.3s ease;
}

.bm-cert-card:hover .bm-cert-overlay {
    opacity: 1;
}

.bm-cert-overlay span {
    padding: 11px 20px;

    color: #ffffff;
    background: #1d6f42;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================
   CERTIFICATE INFORMATION
   ========================================= */

.bm-cert-info {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 22px 20px;
}

.bm-cert-number {
    min-width: 42px;
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: #1d6f42;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 700;
}

.bm-cert-info h3 {
    margin: 0 0 5px;

    color: #17212b;

    font-size: 16px;
    line-height: 1.4;
}

.bm-cert-info p {
    margin: 0;

    color: #7b858e;

    font-size: 13px;
}


/* =========================================
   BOTTOM STATEMENT
   ========================================= */

.bm-cert-bottom {
    max-width: 850px;

    margin: 60px auto 0;
    padding: 38px 30px;

    text-align: center;

    background: #17212b;

    border-radius: 15px;
}

.bm-cert-bottom h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 27px;
}

.bm-cert-bottom p {
    max-width: 700px;

    margin: 0 auto 18px;

    color: #d6dce1;

    font-size: 15px;
    line-height: 1.8;
}

.bm-cert-bottom strong {
    color: #7bc99c;

    font-size: 14px;
    letter-spacing: 0.5px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1050px) {

    .bm-cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .bm-certificates {
        padding: 65px 15px;
    }

    .bm-cert-heading {
        margin-bottom: 40px;
    }

    .bm-cert-heading h2 {
        font-size: 30px;
    }

    .bm-cert-heading p {
        font-size: 15px;
    }

    .bm-cert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bm-cert-image {
        height: 360px;
    }

    .bm-cert-bottom {
        margin-top: 40px;
        padding: 30px 20px;
    }

    .bm-cert-bottom h3 {
        font-size: 23px;
    }
}
