/* About Good Job Section */
.about-section {
    background-color: #FFFFFF;
    width: 100%;
    padding: 6.25rem 3.75rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.about-header__text {
    width: 50%;
}

.about-header__paragraph {
    width: 40%;
    margin-top: 2.4375rem;
}

.about-section .eyebrow-label {
    width: fit-content;
    color: var(--color-brand-blue);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0%;
    font-weight: 500;
    margin: 0 0 1rem 0;
    font-family: "Bricolage Grotesque", sans-serif;
    line-height: 16px;
}

.about-heading {
    width: 83%;
    color: #05121E;
    font-weight: 700;
    line-height: 48px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    margin: 0;
    letter-spacing: 0%;
}

.about-paragraph {
    width: 98%;
    color: #0D2C4A;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 30px;
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
}

.about-image-frame {
    display: flex;
    flex-direction: row;
    gap: 1.25%;
    width: 100%;
    padding: 1.25rem;
    border: 5px solid var(--color-brand-blue);
    border-radius: 32px;
    background: #0976DE;
}

.about-image-frame img {
    width: 32.5%;
    height: auto;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.about-captions {
    display: flex;
    flex-direction: row;
    gap: 11.25%;
    width: 100%;
}

.about-caption {
    width: 22.5%;
    display: flex;
    flex-direction: column;
}

.about-caption:first-of-type {
    margin-left: 5%;
}

.about-caption__title {
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 1.25rem;
    font-weight: 400;
    color: #0D2C4A;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: "Bricolage Grotesque", sans-serif;
    line-height: 100%;
    letter-spacing: 0%;
}

.about-caption__number {
    color: #0D2C4A;
    font-weight: 400;
    width: fit-content;
    font-family: "Bricolage Grotesque", sans-serif;
    line-height: 100%;
    letter-spacing: 0%;
    font-size: 1.5rem;
}

.about-caption__text {
    color: #15497B;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 0 3rem;
}

@media (max-width: 768px) {
    .about-section {
        padding: 6.25rem 1rem;
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        /* replaces the old top spacing between header, image frame, and captions — no margin */
    }

    .about-header {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        text-align: center;
    }

    .about-header__text,
    .about-header__paragraph {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 0;
    }

    .about-heading {
        width: 100%;
        max-width: 80%;
        font-size: clamp(1.65rem, 1.2rem + 3vw, 2.25rem);
        text-align: center;
        line-height: 1.15;
    }

    .about-paragraph {
        width: 100%;
        /* overrides the desktop width that was set for the side-by-side layout */
        text-align: center;
        font-size: 1rem;
        line-height: 1.5;
    }

    .about-image-frame {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        border-width: 5px;
        border-radius: 28px;
    }

    .about-image-frame img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 0.7;
        /* wide-ish landscape crop to match the reference */
    }

    .about-captions {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0.625rem;
    }

    .about-caption {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .about-caption:first-of-type {
        margin-left: 0;
    }

    .about-caption__title {
        justify-content: center;
    }

    .about-caption__text {
        margin: 0;
        text-align: center;
        max-width: 14.5rem;
    }
}