.cards-bios .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 16px;
}

.cards-bios .cards .card {
    padding: 0;
    border: none;
    border-radius: 4px;
    overflow: visible;
    position: relative;
}

.cards-bios .card a {
    color: #0a376d;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cards-bios .card > div {
    color: #0a376d;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cards-bios .card img {
    margin-bottom: 0;
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
}

.cards-bios .card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
    align-items: flex-start;
    padding: 20px 24px 16px;
    border-radius: 0;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    border: 2px solid rgba(112, 184, 255, 0.5);
    border-bottom: 4px solid #0066cc;
    border-top: none;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.cards-bios .card h4 {
    color: #0a376d;
    line-height: 136%;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 24px */
    letter-spacing: -0.4px;
    margin-bottom: 0;
}

.cards-bios .card .bio-title {
    color: #0a376d;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 136%; /* 27.2px */
    margin-bottom: 12px;
}

.cards-bios .card .card-content::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background-color: #0066cc;
    transition: height 0.3s ease;
    z-index: 1;
}

.cards-bios .card h4,
.cards-bios .card .bio-title {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    font-size: 18px;
}

.cards-bios .card .card-link {
    color: #0a376d;
    font-weight: 500;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    width: 100%;
}

.cards-bios .card .card-link::after {
    content: "";
    background-image: url("white-arrow.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 12px;
    height: 12px;
    display: inline-block;
    filter: brightness(0) saturate(100%) invert(15%) sepia(100%) saturate(1000%)
        hue-rotate(200deg) brightness(0.4);
    transition: filter 0.3s ease;
}

.cards-bios .card a:hover .card-content::before {
    height: 100%;
}

.cards-bios .card a:hover .card-content {
    border-color: #0066cc;
}

.cards-bios .card a:hover h4,
.cards-bios .card a:hover .bio-title,
.cards-bios .card a:hover .card-link {
    color: #fff;
}

.cards-bios .card a:hover .card-link::after {
    filter: none;
}

@media screen and (max-width: 767px) {
    .cards-bios .cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 16px;
    }

    .cards-bios .card .card-content {
        padding: 16px 20px 16px;
    }

    .cards-bios .card h4 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .cards-bios .card .bio-title {
        font-size: 16px;
    }

    .cards-bios .card .card-link {
        margin-top: auto;
    }
}

@media screen and (max-width: 400px) {
    .cards-bios .cards {
        grid-template-columns: 1fr;
    }
}
