.r2m-hover-card {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;
    min-height: 220px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    isolation: isolate;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.r2m-hover-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
    transition: opacity .35s ease;
}

.r2m-hover-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.78);
    opacity: 0;
    z-index: 2;
    transition: opacity .35s ease;
}

.r2m-hover-card:hover,
.r2m-hover-card:focus-within {
    transform: translateY(-6px);
    border-color: var(--r2m-accent, #ff7900);
    box-shadow: 0 22px 60px rgba(0,0,0,0.5), 0 0 24px rgba(255,121,0,0.25);
}

.r2m-hover-card:hover::before,
.r2m-hover-card:focus-within::before {
    opacity: 0;
}

.r2m-hover-card:hover::after,
.r2m-hover-card:focus-within::after {
    opacity: 1;
}

.r2m-hover-card__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transform: translateY(0);
    transition: transform .35s ease;
}

.r2m-hover-card:hover .r2m-hover-card__content,
.r2m-hover-card:focus-within .r2m-hover-card__content {
    transform: translateY(0);
}

.r2m-hover-card__icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    font-size: 42px;
    line-height: 1;
    color: var(--r2m-accent, #ff7900);
    background: rgba(255,121,0,0.08);
    border-radius: 14px;
    margin-bottom: 14px;
    transition: transform .35s ease, background-color .35s ease, color .35s ease;
}

.r2m-hover-card__icon svg {
    width: 1em;
    height: 1em;
    /*fill: currentColor;*/
}

.r2m-hover-card:hover .r2m-hover-card__icon,
.r2m-hover-card:focus-within .r2m-hover-card__icon {
    transform: translateY(-2px);
}

.r2m-hover-card__title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
}

.r2m-hover-card__description,
.r2m-hover-card__button {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

.r2m-hover-card:hover .r2m-hover-card__description,
.r2m-hover-card:hover .r2m-hover-card__button,
.r2m-hover-card:focus-within .r2m-hover-card__description,
.r2m-hover-card:focus-within .r2m-hover-card__button {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.r2m-hover-card__description {
    color: #d6d6d6;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
}

.r2m-hover-card__button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--r2m-accent, #ff7900);
    border: 1px solid var(--r2m-accent, #ff7900);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    transition: opacity .35s ease, transform .35s ease, filter .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.r2m-hover-card__button:hover,
.r2m-hover-card__button:focus {
    filter: brightness(1.12);
    transform: translateY(0) translateX(2px);
}

.r2m-hover-card__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    line-height: 1;
}

.r2m-hover-card__button-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

@media (hover: none) {
    .r2m-hover-card::after,
    .r2m-hover-card__description,
    .r2m-hover-card__button {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}
