.tfnz-navcards_container {
    padding: 64px 0 80px 0;
}

.tfnz-navcards_heading {
    text-align: center;
    font-size: 2rem;
    line-height: 2rem;
    text-transform: none;
    position: relative;
    padding-bottom: 20px;
    margin: 0 20px 48px 20px !important;
    color: var(--heading-color) !important;
}

.tfnz-navcards_heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 48px;
    height: 6px;
    background: var(--underline-color);
    transform: translateX(-50%);
}

.tfnz-navcards_card {
    margin: 32px auto 0 auto;
    width: 1270px;
    max-width: 90%;
    background: #fff;
    display: flex;
    align-items: stretch;
    border-radius: 0.25rem;
    overflow: hidden;
    min-height: 245px;
    cursor: pointer;
    text-decoration: none;
}

.tfnz-navcards_container:has(.tfnz-navcards_adminButtons) .tfnz-navcards_card {
    border-radius: 0.25rem 0.25rem 0 0;
}

.tfnz-navcards_adminButtons {
    background: #fff;
    margin: 0 auto;
    width: 1270px;
    max-width: 90%;
    padding: 10px 20px;
    border-radius: 0 0 0.25rem 0.25rem;
}

.tfnz-navcards_cardImageContainer {
    width: 35%;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.tfnz-navcards_cardImageContainer img {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.tfnz-navcards_cardContent {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 64px 48px 32px 48px;
    justify-content: center;
    gap: 10px;
}

.tfnz-navcards_cardTitle {
    text-transform: none;
    font-size: 1.5rem;
    color: rgb(51 51 51 / 1) !important;
}

.tfnz-navcards_description p,
.tfnz-navcards_description li {
    font-size: 0.9rem; /* Match font size to TFI */
    color: rgb(117 117 117 / 1);
    margin-left: 0 !important; /* WYSIWYG adds +40 margin. Override. */
    line-height: 1.46;
}

.tfnz-navcards_description img {
    border-radius: 0.625rem;
}

.tfnz-navcards_description h1,
.tfnz-navcards_description h2,
.tfnz-navcards_description h3,
.tfnz-navcards_description h4,
.tfnz-navcards_description h5,
.tfnz-navcards_description h6 {
    margin-left: 0 !important;
}

.tfnz-navcards_card:hover {
    box-shadow: 0 0 #0000,0 0 #0000,3px 8px 15px 1px rgba(0,0,0,.35);
    text-decoration: none;
}

.tfnz-navcards_card:hover .tfnz-navcards_cardTitle {
    color: #008caa !important;
}

.tfnz-navcards_card:hover .tfnz-navcards_cardImageContainer img {
    transform: scale(1.1);
}

@media screen and (max-width: 1250px) {
    .tfnz-navcards_heading {
        width: 80%;
        text-align: left;
        margin: 0 auto !important;
        font-size: 1.5rem;
        line-height: 1.5rem;
    }

    .tfnz-navcards_heading::after {
        left: 0;
        transform: none;
    }

    .tfnz-navcards_card {
        width: 80%;
        max-width: none;
        min-height: 200px;
    }

    .tfnz-navcards_adminButtons {
        width: 80%;
        max-width: none;
    }

    .tfnz-navcards_cardImageContainer {
        width: 40%;
    }

    .tfnz-navcards_cardContent {
        padding: 32px 32px 16px 32px;
    }
}

@media screen and (max-width: 800px) {
    .tfnz-navcards_card {
        flex-direction: column;
        width: auto;
        margin: 32px 24px 0 24px;
    }

    .tfnz-navcards_adminButtons {
        width: auto;
        margin: 0 24px;
    }

    .tfnz-navcards_cardImageContainer {
        width: 100%;
        aspect-ratio: 7 / 4;
    }
}