/*
 * page-accreditations.css — rules used only on the Accreditations page
 * (page-accreditations.php). Sections in page order.
 */

/* ------------------------------------------------------------------------
 * One bordered row per accreditation: number and logo left, text right
 * --------------------------------------------------------------------- */

.fdfs-accred-list {
    margin-top: 66px;
    border: 1px solid var(--fdfs-line);
}

.fdfs-accred-item {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: 50px;
    padding: 50px 49px;
}

.fdfs-accred-item + .fdfs-accred-item {
    border-top: 1px solid var(--fdfs-line);
}

.fdfs-accred-item__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 4px;
}

.fdfs-accred-item__logo {
    align-self: stretch;
    margin-top: 21px;
    padding: 16px;
    background: var(--fdfs-white);
    border: 1px solid var(--fdfs-line);
}

.fdfs-accred-item__logo-img {
    width: auto;
    max-width: 100%;
    height: 65px;
    object-fit: contain;
}

/* A logo not uploaded yet: an empty box of logo height. */
.fdfs-accred-item__logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 65px;
    background: var(--fdfs-placeholder);
}

.fdfs-accred-item__title {
    color: var(--fdfs-black);
    font-family: var(--fdfs-font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
}

.fdfs-accred-item__definition {
    margin-top: 15px;
    color: var(--fdfs-text-strong);
    font-size: var(--fdfs-size-card-text);
    line-height: 1.6;
}

.fdfs-accred-item__label {
    margin-top: 25px;
}

.fdfs-accred-item__meaning {
    margin-top: 13px;
    font-size: 1.045rem;
    line-height: 1.63;
}

/* ------------------------------------------------------------------------
 * Certificates note with the contact card
 * --------------------------------------------------------------------- */

.fdfs-accred-docs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 547px);
    align-items: start;
    column-gap: 64px;
    margin-top: 65px;
    padding-top: 50px;
    border-top: 1px solid var(--fdfs-line);
}

.fdfs-accred-docs__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 2px;
}

.fdfs-accred-docs__heading {
    color: var(--fdfs-black);
    font-family: var(--fdfs-font-heading);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.25;
}

.fdfs-accred-docs__body {
    max-width: 700px;
    margin-top: 18px;
    font-size: var(--fdfs-size-card-text);
    line-height: 1.6;
}

.fdfs-accred-docs__text > .fdfs-button {
    margin-top: 33px;
}

.fdfs-contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 33px 32px;
    background: var(--fdfs-white);
    border: 1px solid var(--fdfs-line);
}

.fdfs-contact-card__phone {
    margin-top: 17px;
    color: var(--fdfs-black);
    font-family: var(--fdfs-font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.fdfs-contact-card__email {
    margin-top: 8px;
    font-size: var(--fdfs-size-card-text);
    line-height: 1.6;
}

.fdfs-contact-card__phone:hover,
.fdfs-contact-card__email:hover {
    color: var(--fdfs-red);
}

/* ------------------------------------------------------------------------
 * Scope of accreditation note
 * --------------------------------------------------------------------- */

.fdfs-accred-scope {
    margin-top: 66px;
    padding-top: 41px;
    border-top: 1px solid var(--fdfs-line);
}

.fdfs-accred-scope__text {
    max-width: 787px;
    margin-top: 17px;
    font-size: var(--fdfs-size-card-text);
    line-height: 1.6;
}

/* ------------------------------------------------------------------------
 * Smaller screens
 * --------------------------------------------------------------------- */

@media (max-width: 1023px) {
    .fdfs-accred-item {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .fdfs-accred-item__aside {
        max-width: 280px;
    }

    .fdfs-accred-docs {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

@media (max-width: 639px) {
    .fdfs-accred-item {
        padding: 32px 20px;
    }

    .fdfs-contact-card {
        padding: 24px;
    }
}
