@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin-border {
    to {
        --border-angle: 360deg;
    }
}

.image-buttons__headlines,
.image-buttons__title {
    margin-bottom: 35px;
}

.image-buttons__title :last-child {
    margin-bottom: 0;
}

.image-button-flex {
    row-gap: 35px;
    justify-content: center;
}

.image-button {
    display: flex;
    height: 100%;
    justify-content: space-between;
    flex-direction: column;
    font-weight: 400;
    color: var(--text-color);
}

.image-button__img {
    height: 175px;
    position: relative;
}

.image-button__img img {
    border-radius: 8px;
}

.image-button__details,
.image-button__bottom {
    margin-top: 25px;
}

.image-button__bottom {
    text-align: right;
}

.image-button__title {
    color: var(--text-color);
    font-size: 24px;
}

@media (min-width: 768px) {
    .image-buttons__headlines {
        margin-bottom: 50px;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }

    .image-buttons__title {
        margin-bottom: 0;
        width: calc(100% - 234px);
    }

    .image-button__img {
        height: 179px;
    }

    .image-button__img img {
        border-radius: 12px;
    }

    .image-button__bottom {
        text-align: left;
    }

    .image-button__title {
        font-size: 28px;
    }
}


@media (min-width: 1200px) {
    .image-button-flex {
        row-gap: 48px;
    }

    .image-buttons__title {
        width: calc(100% - 433px);
    }

    .image-button__img {
        height: 350px;
    }

    .image-button__img img {
        border-radius: 20px;
    }

    .image-button__bottom {
        text-align: left;
        margin-top: 20px;
    }

    .image-button__title {
        font-size: 36px;
    }

    a.image-button:hover {
        text-decoration: none;
        color: var(--text-color);
    }

    .image-button__img::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 20px;
        padding: 5px;
        background: conic-gradient(
            from var(--border-angle),
            transparent 50%,
            var(--artimus-pink) 75%,
            var(--secondary-color) 92%,
            transparent 100%
        );
        -webkit-mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        animation: spin-border 2s linear infinite;
    }

    a.image-button:hover .image-button__img::before {
        opacity: 1;
    }

    a.image-button:hover .btn-tertiary {
        font-weight: 700;
        background: var(--pink-gradient);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: all ease-in-out 0.0s;
    }

    a.image-button:hover .btn-tertiary::after {
        background: var(--pink-gradient);
        -webkit-text-fill-color: var(--white);
        transform: rotate(-6.15deg) translate(0, -50%);

    }
}