/* =========================================================
   CERTIFICATIONS PAGE
========================================================= */

.certifications-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================================
   CERTIFICATIONS HERO
========================================================= */

.certifications-hero {
    padding: 90px 0 80px;
    background: #f7faf6;
    border-bottom: 1px solid #e5ece5;
}

.certifications-hero .certifications-container {
    text-align: center;
    max-width: 850px;
}

.section-label {
    display: inline-block;
    margin-bottom: 15px;

    color: #4f7942;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.certifications-hero h1 {
    margin: 0 0 20px;

    color: #17391e;

    font-size: clamp(38px, 5vw, 58px);
    font-weight: 600;

    line-height: 1.15;
}

.certifications-hero p {
    max-width: 760px;
    margin: 0 auto;

    color: #667269;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   CERTIFICATIONS SECTION
========================================================= */

.certifications-section {
    padding: 90px 0;

    background: #ffffff;
}

.certifications-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}


/* =========================================================
   CERTIFICATE CARD
========================================================= */

.certificate-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5ebe5;
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(23, 57, 30, 0.07);

    transition: 0.35s ease;
}

.certificate-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 18px 40px rgba(23, 57, 30, 0.12);
}


/* =========================================================
   CERTIFICATE IMAGE
========================================================= */

.certificate-image {
    height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: #f4f7f3;

    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.02);
}


/* =========================================================
   CERTIFICATE CONTENT
========================================================= */

.certificate-content {
    padding: 30px;
}

.certificate-type {
    display: block;

    margin-bottom: 10px;

    color: #6b806e;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.certificate-content h2 {
    margin: 0 0 15px;

    color: #17391e;

    font-size: 28px;
    font-weight: 600;
}

.certificate-content p {
    margin: 0 0 25px;

    color: #68756b;

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   CERTIFICATE BUTTON
========================================================= */

.certificate-btn {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    padding: 11px 20px;

    background: #17391e;

    color: #ffffff;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    transition: 0.3s ease;
}

.certificate-btn:hover {
    background: #4f7942;

    color: #ffffff;

    gap: 12px;
}


/* =========================================================
   QUALITY MESSAGE
========================================================= */

.quality-message {
    padding: 85px 0;

    background: #f7faf6;
}

.quality-message-content {
    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}

.quality-message-content .section-label {
    margin-bottom: 15px;
}

.quality-message-content h2 {
    margin: 0 0 18px;

    color: #17391e;

    font-size: clamp(30px, 4vw, 42px);
    font-weight: 600;

    line-height: 1.2;
}

.quality-message-content p {
    max-width: 700px;

    margin: 0 auto 28px;

    color: #68756b;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   QUALITY BUTTON
========================================================= */

.quality-btn {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    padding: 12px 24px;

    background: #17391e;

    color: #ffffff;

    border-radius: 7px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition: 0.3s ease;
}

.quality-btn:hover {
    background: #4f7942;

    color: #ffffff;

    gap: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .certifications-hero {
        padding: 75px 0 65px;
    }

    .certifications-section {
        padding: 70px 0;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .certificate-image {
        height: 320px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .certifications-container {
        width: 90%;
    }

    .certifications-hero {
        padding: 60px 0 55px;
    }

    .certifications-hero h1 {
        font-size: 34px;
    }

    .certifications-hero p {
        font-size: 14px;
        line-height: 1.7;
    }

    .certifications-section {
        padding: 55px 0;
    }

    .certifications-grid {
        gap: 20px;
    }

    .certificate-image {
        height: 240px;
        padding: 18px;
    }

    .certificate-content {
        padding: 22px;
    }

    .certificate-content h2 {
        font-size: 24px;
    }

    .certificate-content p {
        font-size: 13px;
        line-height: 1.7;
    }

    .quality-message {
        padding: 60px 0;
    }

    .quality-message-content h2 {
        font-size: 29px;
    }

    .quality-message-content p {
        font-size: 13px;
    }

    .quality-btn {
        width: 100%;
        justify-content: center;
    }

}