/**
 * Knoppen & tekstlink met icoon — enige bron (site + WYSIWYG-editor)
 * Vereist :root-variabelen uit custom-styles.css (frontend) of editor-wysiwyg-frame.css (admin)
 */

.custom-button {
    display: inline-flex;
    font-family: var(--second-font);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    border-radius: 0;
    padding: 15px 25px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    border: 0;
    text-decoration: none !important;
}

.custom-button:before {
    content: "";
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    -webkit-clip-path: polygon(100% 100%, 100% 0, 0 100%);
    clip-path: polygon(100% 100%, 100% 0, 0 100%);
    transition: background-color 0.3s ease, right 0.3s ease, bottom 0.3s ease;
}

.custom-button:hover:before {
    right: 2px;
    bottom: 2px;
}

.custom-button.custom-button-primary {
    color: var(--white);
    background-color: var(--first-color);
}

.custom-button.custom-button-primary:before {
    background-color: var(--dark-bg);
}

.block-item:hover .custom-button.custom-button-primary,
.custom-button.custom-button-primary:hover {
    color: var(--white);
    background-color: var(--dark-bg);
}

.block-item:hover .custom-button.custom-button-primary:before,
.custom-button.custom-button-primary:hover:before {
    background-color: var(--first-color);
}

.custom-button.custom-button-secondary {
    color: var(--white);
    background-color: var(--dark-bg-2);
}

.custom-button.custom-button-secondary:before {
    background-color: var(--first-color);
}

.block-item:hover .custom-button.custom-button-secondary,
.custom-button.custom-button-secondary:hover {
    color: var(--white);
    background-color: var(--dark-bg);
}

.block-item:hover .custom-button.custom-button-secondary:before,
.custom-button.custom-button-secondary:hover:before {
    background-color: var(--white);
}

.custom-button.custom-button-tertiary {
    color: var(--white);
    background-color: var(--dark-bg);
}

.custom-button.custom-button-tertiary:before {
    background-color: var(--dark-bg-2);
}

.block-item:hover .custom-button.custom-button-tertiary,
.custom-button.custom-button-tertiary:hover {
    color: var(--white);
    background-color: var(--first-color);
}

.block-item:hover .custom-button.custom-button-tertiary:before,
.custom-button.custom-button-tertiary:hover:before {
    background-color: var(--dark-bg);
}

p:has(.link-with-icon),
p:has(.custom-button) {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--white);
    font-family: var(--second-font);
}

.link-with-icon:after {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background: url("../images/arrow-button.svg") no-repeat center;
    -webkit-clip-path: polygon(100% 0, 100% 80%, 80% 100%, 0 100%, 0 0);
    clip-path: polygon(100% 0, 100% 80%, 80% 100%, 0 100%, 0 0);
    background-color: var(--first-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.block-item:hover .link-with-icon:after,
.link-with-icon:hover:after {
    background-color: var(--second-color);
}

.block-item:hover .link-with-icon,
.link-with-icon:hover {
    color: var(--white);
}

.block-item:hover .link-with-icon span,
.link-with-icon:hover span {
    text-decoration: underline;
}

@media (max-width: 1200px) {

    .custom-button {
        font-size: 15px;
        line-height: 22px;
        padding: 14px 22px;
    }

    .custom-button:before {
        width: 9px;
        height: 9px;
        bottom: 3px;
        right: 3px;
    }

    .link-with-icon {
        font-size: 15px;
        line-height: 22px;
        gap: 10px;
    }

    .link-with-icon:after {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 1024px) {

    .custom-button {
        font-size: 14px;
        line-height: 20px;
        padding: 13px 20px;
    }

    .custom-button:before {
        width: 8px;
        height: 8px;
        bottom: 3px;
        right: 3px;
    }

    .link-with-icon {
        font-size: 14px;
        line-height: 20px;
        gap: 10px;
    }

    .link-with-icon:after {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 550px) {

    .headercontent-right-bottom .custom-button {
        display: none;
    }
}
