/* 2-column teaser layout */
.teaser-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 8rem;
}

@media (max-width: 767px) {
    .teaser-with-image {
        grid-template-columns: 1fr;
    }
}

/* Dark teal left column */
.teaser-with-image__text {
    background-color: var(--c-secondary);
    padding: 2em 1.5em;
    font-family: 'proxima-nova', sans-serif;
}

/* Image fills the right column */
.teaser-with-image__img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.teaser-with-image__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.teaser-list {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.teaser-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.5rem 0;
}

.teaser-item:first-child {
    padding-top: 0;
}

.teaser-item:last-child {
    padding-bottom: 0;
}

.teaser-item+.teaser-item {
    border-top: 1px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
}

.teaser-category {
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-primary);
}

/* Override main#main p { color: var(--color-grey) } */
main#main .teaser-text {
    color: var(--c-primary);
    font-size: 1.4em;
    line-height: 1.5;
    margin: 0;
}

/* Higher specificity than main#main a { all: unset } (0,1,2) */
main#main .teaser-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--c-primary);
    color: var(--c-primary);
    text-decoration: none;
    cursor: pointer;
    margin-top: 4rem;
    background: transparent;
    font-family: inherit;
}

main#main .teaser-btn:hover {
    background-color: color-mix(in srgb, var(--c-primary) 15%, transparent);
}