/*--------------------------------------------------------------
# Certificates — col-md-6 cards with a fixed-height scrollable PDF
--------------------------------------------------------------*/

.certificates {
    padding: 110px 0 120px;
}

.certificates__intro {
    max-width: 780px;
    margin: 0 auto 60px;
    text-align: center;
}

.certificates__intro-text {
    font-size: 17px;
    line-height: 32px;
    color: #757F95;
    margin: 0;
}

.certificate-card {
    background-color: #ffffff;
    border: 1px solid rgba(117, 127, 149, .18);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.certificate-card:hover {
    border-color: rgba(0, 96, 170, .45);
    box-shadow: 0 18px 46px rgba(25, 26, 28, .08);
    transform: translateY(-4px);
}

/*------------------------- head -------------------------*/

.certificate-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.certificate-card__icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: rgba(0, 96, 170, .1);
    color: #0060AA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.certificate-card__head-text {
    min-width: 0;
}

.certificate-card__title {
    font-size: 19px;
    line-height: 27px;
    font-weight: 700;
    font-family: var(--fixpro-font-two, "Titillium Web", sans-serif);
    color: #191a1c;
    margin: 0;
}

.certificate-card__meta {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #9aa2b4;
    margin-top: 3px;
    letter-spacing: .02em;
}

/*------------------------- PDF viewport -------------------------*/

.certificate-card__viewer {
    position: relative;
    height: 560px;                /* the fixed height; PDF scrolls inside */
    border-radius: 14px;
    overflow: hidden;
    background-color: #f2f3f6;
    border: 1px solid rgba(117, 127, 149, .16);
}

.certificate-card__viewer iframe {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Sits behind the iframe; only visible when the iframe renders nothing,
   which is what mobile browsers without an inline PDF reader do. */
.certificate-card__fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    text-align: center;
    color: #757F95;
}

.certificate-card__fallback i {
    font-size: 44px;
    color: rgba(0, 96, 170, .4);
}

.certificate-card__fallback p {
    margin: 0;
    font-size: 15px;
    line-height: 26px;
    max-width: 300px;
}

/*------------------------- body + actions -------------------------*/

.certificate-card__text {
    font-size: 15px;
    line-height: 27px;
    color: #757F95;
    margin: 18px 0 0;
}

.certificate-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.certificate-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border-radius: 8px;
    background-color: #0060AA;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--fixpro-font-two, "Titillium Web", sans-serif);
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.certificate-card__btn:hover {
    background-color: #191a1c;
    color: #ffffff;
}

.certificate-card__btn--ghost {
    background-color: transparent;
    color: #0060AA;
    border: 1px solid rgba(0, 96, 170, .4);
}

.certificate-card__btn--ghost:hover {
    background-color: #0060AA;
    color: #ffffff;
    border-color: #0060AA;
}

.certificate-card__btn i {
    font-size: 13px;
}

/*------------------------- responsive -------------------------*/

@media only screen and (max-width: 991px) {
    .certificates {
        padding: 90px 0 70px;
    }

    .certificate-card__viewer {
        height: 480px;
    }
}

@media only screen and (max-width: 767px) {
    .certificates {
        padding: 70px 0 50px;
    }

    .certificate-card {
        padding: 20px;
    }

    .certificate-card__viewer {
        height: 420px;
    }

    .certificate-card__title {
        font-size: 17px;
        line-height: 25px;
    }

    .certificate-card__actions .certificate-card__btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
