.tab {
    position: relative;
    border: 2px solid #273884;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}
.tab input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}
.tab__content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s;
}
.tab input:checked ~ .tab__content {
    max-height: 100%;
}

/* Visual styles */
.accordion {
    color: var(--theme);
    overflow: hidden;
}
.tab__label,
.tab__close {
    display: flex;
    background: var(--theme);
    cursor: pointer;
}
.tab__label {
    justify-content: space-between;
    padding: 1rem 1rem 0;
}
.tab__label::after {
    content: "\276F";
    color: #273884;
    width: 1em;
    height: 1em;
    text-align: center;
    transform: rotate(90deg);
    transition: all 0.35s;
}
.tab input:checked + .tab__label::after {
    transform: rotate(270deg);
}
.tab__content {
    padding: 0 1rem;
}
.tab__content p {
    margin: 0 0 1rem 0;
}
.tab__close {
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}
.accordion--radio {
    --theme: var(--secondary);
}

/* Arrow animation */
.tab input:not(:checked) + .tab__label:hover::after {
    animation: bounce .5s infinite;
}
@keyframes bounce {
    25% {
        transform: rotate(90deg) translate(.25rem);
    }
    75% {
        transform: rotate(90deg) translate(-.25rem);
    }
}

.tab-meta {
    padding: 0 1rem 1rem;
}

.cohort-name {
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    color: #273884;
}

.cohort-title {
    font-size: 1rem;
    display: block;
}

.cohort-year {
    font-weight: 600;
}

.comp-pill {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin: 0.175rem 0;
    border-radius: 50px;
    background-color: #F4BC58;
    color: #273884;
}

.cred-pill {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    margin: 0.175rem 0;
    border-radius: 50px;
    border: 1px solid #273884;
    color: #273884;
}

.bio-container {
    display: block;
}

.cohort-avatar img, .elementor .cohort-avatar img {
    border-radius: 50%;
    max-width: 150px;
    margin: 0 auto;
    display: block;
}

.tab__content ul {
    margin-bottom: 1rem;
}

@media screen and (min-width: 480px) {
    .bio-container {
        display: flex;
    }

    .cohort-avatar {
        margin: 0 1rem 1rem 0;
    }
}