/* Innerpage block (acf/trending-cards): uses same layout; headline underline uses design tokens */

.trending-cards {
    position: relative;
    z-index: 1;
}

.trending-cards__empty {
    margin: 0;
    font-size: var(--fx-text-font-size-paragraph, 18px);
    color: var(--fx-text-paragraph-default, var(--text-color));
}

.trending-cards__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

.trending-cards__healines h2 {
    position: relative;
}

.trending-cards__healines h2::after {
    position: absolute;
    content: "";
    bottom: 7px;
    left: 0;
    /* right: -133px; */
    width: 100%;
    height: 3px;
    background-color: var(--fx-brand-colors-secondary-text-and-icon, var(--black-coffee));
}

.bg-light-blue .trending-cards__healines h2 span, 
.has-light-teal-bg .trending-cards__healines h2 span {
    position: relative;
    z-index: 1;
    background-color: var(--light-teal);
}

.trending-card-feature {
    display: block;
    text-decoration: none;
    font-weight: 400;
    color: var(--text-color);
}

.trending-card-feature__image {
    position: relative;
    height: 200px;
}

.trending-cards--homepage .trending-card-feature__image {
    height: 219px;
}

.trending-card-feature__image svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

.trending-card-feature__image img,
.trending-card-feature__image svg {
    border-radius: 28px;
}

.trending-card-feature__overlay {
    width: 99px;
    height: 34px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--light-teal);
    border-top-right-radius: 16px;
}

.trending-card-feature__overlay::after {
    position: absolute;
    content: "";
    bottom: 0;
    right: -13px;
    background: none;
    width: 14px;
    height: 14px;
    border-bottom-left-radius: 14px;
    box-shadow: -5px 5px 0 5px var(--light-teal);
}

.trending-card-feature__overlay::before {
    position: absolute;
    content: "";
    top: -28px;
    left: 0;
    background: none;
    width: 28px;
    height: 28px;
    border-bottom-left-radius: 28px;
    box-shadow: -5px 5px 0 5px var(--light-teal);
}

.trending-cards__healines--large {
    max-width: 330px;
}

.trending-cards__healines--large h2::after {
    right: -6px;
    width: 74px;
}

.trending-card-feature__category {
    position: absolute;
    left: 110px;
    bottom: 10px;
    padding: 8px 18px;
    background: var(--primary-opacity-color);
    border-radius: 18px;
    backdrop-filter: blur(2.5px);
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    line-height: 1em;
    text-transform: uppercase;
}

.trending-card-feature__details {
    margin-top: 16px;
}

.trending-card-feature__details h3 {
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.20em;
    margin-bottom: 15px;
}

.trending-cards--homepage .trending-card-feature__details .btn-tertiary::before,
.trending-cards--homepage .trending-card__details .btn-tertiary::before,
.trending-card__details .btn-tertiary::before {
    background: var(--white);
    top: 0;
}

.trending-cards--homepage .trending-card-feature__details .btn-tertiary,
.trending-cards--homepage .trending-card__details .btn-tertiary,
.trending-card__details .btn-tertiary,
.trending-card-feature__bottom .btn-tertiary {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.trending-card-flex {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    row-gap: 18px;
}

.trending-card {
    display: block;
    text-decoration: none;
    font-weight: 400;
    color: var(--text-color);
    background: transparent;
}

.trending-card__image {
    position: relative;
    height: 200px;
}

.trending-card__image img {
    border-radius: 18px;
}

.trending-card__category {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 8px 18px;
    background: var(--primary-opacity-color);
    border-radius: 18px;
    backdrop-filter: blur(2.5px);
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    line-height: 1em;
    text-transform: uppercase;
}

.trending-card__details {
    margin-top: 30px;
}

.trending-card__details h5 {
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.20em;
    margin-bottom: 15px;
}

.trending-card__details p,
.trending-card-feature__details p {
    margin-bottom: 15px;
}

@media (min-width: 768px) {

    .trending-cards__healines h2 {
        margin-bottom: 25px;
    }

    .trending-cards__healines h2::after {
        /* right: -371px;
        width: 359px;
        bottom: 10px; */
    }

    .trending-card-feature__image {
        height: 340px;
    }

    .trending-cards--homepage .trending-card-feature__image {
        height: 438px;
    }

    .trending-card-feature__image img,
    .trending-card-feature__image svg {
        border-radius: 24px;
    }

    .trending-cards--homepage .trending-card-feature__image img,
    .trending-cards--homepage .trending-card-feature__image svg {
        border-radius: 40px;
    }

    .trending-card-feature__overlay {
        width: 198px;
        height: 68px;
        border-top-right-radius: 40px;
    }

    .trending-card-feature__overlay::after {
        bottom: 0;
        right: -39px;
        width: 40px;
        height: 40px;
        border-bottom-left-radius: 40px;
        box-shadow: -15px 5px 0 5px var(--light-teal);
    }

    .trending-card-feature__overlay::before {
        top: -40px;
        left: 0;
        width: 40px;
        height: 40px;
        border-bottom-left-radius: 40px;
        box-shadow: -15px 5px 0 5px var(--light-teal);
    }

    .trending-card-feature__category {
        left: 218px;
        bottom: 19px;
        padding: 12px 27px;
        border-radius: 24px;
        font-size: 20px;
        line-height: 1em;
    }

    .trending-card-feature__details h3 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .trending-card-feature__bottom {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .trending-card-flex {
        margin-top: 42px;
        row-gap: 20px;
    }

    .trending-card {
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .trending-card__image {
        width: 258px;
        height: 144px;
    }

    .trending-card__image img {
        border-radius: 24px;
    }

    .trending-card__category {
        left: 12px;
        top: 12px;
        border-radius: 24px;
        font-size: 15px;
    }

    .trending-card__details {
        margin-top: 0;
        width: calc(100% - 258px);
        padding-left: 32px;
    }

    .trending-card__details h5 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .trending-card__details p {
        margin-bottom: 10px;
    }

    .trending-card-feature__details p {
        margin-bottom: 0;
    }

    .trending-cards__healines--large {
        max-width: 616px;
    }

    .trending-cards__healines--large h2::after {
        right: -47px;
        width: 500px;
    }

  
}

.trending-card-feature__image img.tablet,
.trending-card-feature__image.trending-card-feature__overlay{
    display: block;
}
.trending-card-feature__image svg {
    display: none;
}


@media (min-width: 1200px) {

    .trending-cards__healines h2 {
        margin-bottom: 38px;
        font-size: 55px;
        width: calc(50% - 22px);
    }

    .trending-cards__healines h2::after {
        /* right: -230px;
        width: 215px;
        bottom: 15px; */
    }

    .trending-card-feature__image {
        height: 329px;
    }

    .trending-cards--homepage .trending-card-feature__image {
        height: 495px;
    }

    .trending-card-feature__image img,
    .trending-card-feature__image svg {
        border-radius: 28px;
    }

    .trending-cards--homepage .trending-card-feature__image img,
    .trending-cards--homepage .trending-card-feature__image svg {
        border-radius: 50px;
    }

    .trending-card-feature__overlay {
        width: 185px;
        height: 76px;
        border-top-right-radius: 50px;
    }

    .trending-card-feature__overlay::after {
        right: -45px;
        bottom: -1px;
        width: 50px;
        height: 50px;
        border-bottom-left-radius: 50px;
    }

    .trending-card-feature__overlay::before {
        top: -48px;
        width: 50px;
        height: 50px;
        border-bottom-left-radius: 50px;
    }

    .trending-card-feature__category {
        left: 202px;
        bottom: 18px;
        padding: 10px 22px;
        border-radius: 28px;
    }

    .trending-card-feature__details {
        margin-top: 22px;
    }

    .trending-card-feature__details h3 {
        font-size: 41px;
        margin-bottom: 12px;
    }

    .trending-card-feature__bottom {
        display: block;
        gap: 0;
    }

    .trending-card-flex {
        margin-top: 0;
        row-gap: 32px;
    }

    .trending-card__image {
        width: 184px;
        height: 164px;
    }

    .trending-card__image img {
        border-radius: 28px;
    }

    .trending-card__category {
        left: 15px;
        top: 15px;
        border-radius: 28px;
        font-size: 16px;
    }

    .trending-card__details {
        width: calc(100% - 184px);
        padding-left: 32px;
    }

    .trending-card__details h5 {
        font-size: 27px;
        margin-bottom: 10px;
    }

    .trending-card__details p {
        margin-bottom: 10px;
    }

    .trending-card-feature__details p {
        margin-bottom: 15px;
    }

    .trending-card-feature:hover,
    .trending-card:hover {
        color: var(--fx-brand-colors-primary-lighter, #065e74);
    }

    .trending-card-feature:hover h3,
    .trending-card:hover h5 {
        color: var(--primary-hover-color);
    }

    .trending-card-feature:hover .trending-card-feature__bottom .btn-tertiary::before,
    .trending-card:hover .trending-card__details .btn-tertiary::before {
        width: 100%;
        border-radius: 100px;
    }

    .trending-cards__healines--large h2::after {
        right: 0;
        width: 167px;
    }
    .trending-card-feature__image img.tablet,
    .trending-card-feature__overlay{
        display: none;
    }
    .trending-card-feature__image svg {
        display: block;
    }
}


