.location-card,
.instructor-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.instructor-card {
    display: flex;
    flex-direction: column;
}

.instructor-card__body {
    flex: 1;
}

.location-card:hover,
.instructor-card:hover {
    transform: translateY(-2px);
    border-color: #718300;
    box-shadow: 0 18px 42px rgba(6, 42, 30, .12);
}

.section--dark .location-card:hover,
.section--dark .instructor-card:hover {
    border-color: var(--lime);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

.location-card:focus-visible,
.instructor-card:focus-visible {
    outline: 4px solid var(--lime-bright);
    outline-offset: 4px;
    border-color: var(--green-950);
    box-shadow: 0 0 0 2px var(--green-950);
}

.section--dark .location-card:focus-visible,
.section--dark .instructor-card:focus-visible {
    border-color: var(--lime-bright);
    box-shadow: 0 0 0 2px #fff;
}

.location-card .text-link > span,
.instructor-card .text-link > span {
    display: inline-block;
    transition: transform .2s ease;
}

.location-card:hover .text-link > span,
.instructor-card:hover .text-link > span {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .location-card,
    .instructor-card,
    .location-card .text-link > span,
    .instructor-card .text-link > span {
        transition: none;
    }

    .location-card:hover,
    .instructor-card:hover {
        transform: none;
    }
}
