/* =========================
   CERTIFICATE PAGE BANNER
========================== */

.certificate-banner {
    position: relative;
    width: 100%;
    height: 400px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background-image: url("../images/certificate-banner.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* DARK OVERLAY */

.certificate-banner-overlay {
    position: absolute;
    inset: 0;

    background: rgba(5, 12, 22, 0.32);
}


/* CONTENT */

.certificate-banner-content {
    position: relative;
    z-index: 2;

    text-align: center;
}


.certificate-banner-content h1 {
    margin: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 40px;
    font-weight: 500;

    line-height: 1.2;
}


/* =========================
   TABLET
========================== */

@media (max-width: 768px) {

    .certificate-banner {
        height: 300px;
    }

    .certificate-banner-content h1 {
        font-size: 44px;
    }

}


/* =========================
   MOBILE
========================== */

@media (max-width: 480px) {

    .certificate-banner {
        height: 230px;

        background-position: center;
    }

    .certificate-banner-content h1 {
        font-size: 36px;
    }

}
/* Certificate Section */
.certificate-section {
    width: 100%;
    padding: 70px 20px;
    background: #f7f7f7;
}

.certificate-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

/* Main Box */
.certificate-box {
    width: 320px;
    height: 420px;
    border: 1px solid #aaa;
    background: #fff;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Image */
.certificate-image {
    width: 100%;
}

.certificate-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Second horizontal certificate */
.certificate-image.landscape {
    margin-top: 0;
}

/* Tablet */
@media (max-width: 900px) {
    .certificate-container {
        gap: 25px;
    }

    .certificate-box {
        width: 50%;
        height: auto;
        min-height: 430px;
        padding: 30px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .certificate-section {
        padding: 50px 15px;
    }

    .certificate-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .certificate-box {
        width: 100%;
        max-width: 380px;
        min-height: auto;
        padding: 25px;
    }
}