/* inst */

.education-container {
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: center;
    margin: 0 auto;
    container-type: inline-size;
}

.institution {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20%;
    /* because there are 5 institutions in a line */
}

.degree {
    height: 4.75em;
    line-height: 1.2em;
    text-align: center;
}

.degre,
.caption * {
    margin: 0;
    text-align: center;
    line-height: 1.2em;
}

.inst-logo {
    height: 80px;
    width: 80px;
    object-fit: contain;
    margin: 0.5em 0;
}

.arrow-container {
    height: 100px;
    padding: 5em .3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow {
    font-size: 1em;
}

.arrow::before {
    content: "";
    display: inline-block;
    border: solid black;
    border-width: .3em .3em 0 0;
    padding: .3em;
    transform: rotate(45deg);
}

@container (max-width: 600px) {
    .inst-logo {
        height: 50px;
        width: 50px;
        object-fit: contain;
        margin: 0.5em 0;
    }

    .degree {
        font-size: small;
        margin: .5em 0;
    }

    .degre,
    .caption * {
        font-size: small;
    }

    .arrow {
        font-size: .8em;
    }

    .arrow-container {
        height: 60px;
        padding: 5em 0;
        padding-right: .3em;
    }
}
