.products-grid-section {
    position: relative;
    padding: 120px 0;
}

.products-grid-section .row {
    margin-bottom: -40px;
}

.product-card {
    --product-accent: #45d0bd;

    position: relative;
    overflow: hidden;
    min-height: 550px;
    margin-bottom: 40px;
    padding: 34px 42px 47px;
    border-radius: 25px;
}

.product-card-outline {
    border: 1px solid #4a4a4a;
}

.product-card-gradient {
    color: var(--color-white);
    background:
        radial-gradient(
            circle at 75% 25%,
            color-mix(in srgb, var(--product-accent) 70%, transparent),
            transparent 38%
        ),
        linear-gradient(145deg, #19324e, #5a51a9);
}

.product-card-dark {
    color: var(--color-white);
    background: var(--color-black-secondary);
}

.product-card-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.product-card-category {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--product-accent);
    border-radius: 40px;
    font-family: var(--font-secondary);
    font-size: var(--fs-12);
    font-weight: 500;
}

.product-card-number {
    font-size: var(--fs-14);
    color: #959595;
}

.product-card-content-wrap {
    position: relative;
    height: 421px;
    overflow: hidden;
}

.product-card-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.product-card-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;

    transition:
        grid-template-rows 300ms ease,
        opacity 200ms ease;
}

.product-card-reveal-inner {
    min-height: 0;
    overflow: hidden;
}

.product-card:hover .product-card-reveal,
.product-card:focus-within .product-card-reveal {
    grid-template-rows: 1fr;
    opacity: 1;
}

.product-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 245px;
    min-height: 245px;
}

.product-card-visual > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 35px;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--product-accent), #5365d9);
    font-family: var(--font-secondary);
    font-size: var(--fs-34);
}

.product-card-visual img {
    display: block;
    max-width: 120px;
    height: auto;
}

.product-card-title {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: var(--fs-25);
    line-height: 35px;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: text-decoration-color 300ms ease;
}

.product-card-title a:hover {
    color: inherit;
    text-decoration: underline;
}

.product-card-content p {
    margin: 10px 0 18px;
    font-size: var(--fs-16);
    line-height: 30px;
}

.product-card-link {
    position: relative;
    display: inline-block;
    overflow: hidden;

    padding-right: 23px;

    color: inherit;
    border-bottom: 1px solid currentColor;

    font-size: var(--fs-14);
    line-height: 34px;
    font-weight: 500;
    text-decoration: none;

    transition:
        padding 300ms ease,
        color 300ms ease;
}

.product-card-link::before,
.product-card-link::after {
    content: "\e82d";
    position: absolute;
    top: 50%;
    font: 400 normal 10px "fontello";

    transition:
        transform 300ms ease,
        opacity 300ms ease;
}

/* Visible arrow on the right */

.product-card-link::before {
    right: 0;
    transform: translateY(-50%);
}

/* Incoming arrow on the left */

.product-card-link::after {
    left: 0;
    transform: translateX(-18px) translateY(-50%);
}

.product-card-link:hover {
    padding-right: 0;
    padding-left: 23px;
    color: inherit;
}

.product-card-link:hover::before {
    transform: translateX(18px) translateY(-50%);
}

.product-card-link:hover::after {
    transform: translateX(0) translateY(-50%);
}

.product-card-link-arrows {
    position: relative;
    display: inline-block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    overflow: hidden;
}

.product-card-link-arrow {
    position: absolute;
    inset: 0;
    display: block;
    font-size: 10px;
    line-height: 1;
    opacity: 1;
    transform: translate(0, 0);
    transition:
        transform 200ms ease,
        opacity 200ms ease;
}

.product-card-link-arrow-alt {
    opacity: 0;
    transform: translate(-200%, 200%);
}

.product-card-link:hover
.product-card-link-arrow:not(.product-card-link-arrow-alt) {
    opacity: 0;
    transform: translate(200%, -200%);
}

.product-card-link:hover .product-card-link-arrow-alt {
    opacity: 1;
    transform: translate(0, 0);
}

.dark-mode .product-card-outline {
    color: var(--color-white);
}

@media (max-width: 992px) {
    .products-grid-section {
        padding: 80px 0;
    }

    .product-card {
        padding: 34px 32px 42px;
    }
}

@media (max-width: 768px) {
    .product-card {
        min-height: 500px;
    }
}

@media (hover: none), (max-width: 768px) {
    .product-card-content-wrap {
        height: auto;
        overflow: visible;
    }

    .product-card-content {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
    }

    .product-card-reveal {
        grid-template-rows: 1fr;
        opacity: 1;
        transition: none;
    }
}