/*------------------------------------*\
    
    WebFX WYSIWYG Customizations - Global styling for all ACF WYSIWYG's

    Add custom WYSIWYG styling to this file if it should be applied to all ACF WYSIWYG's on the site
    Otherwise, put your block-specific styles in individual block stylesheets

\*------------------------------------*/

.wysiwyg {
    position: relative;
}

.wysiwyg__wrapper--border {
    border: 1px solid #D0D0D0;
    position: relative;
    overflow: visible;
}

.wysiwyg__wrapper--border::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-secondary);
    box-shadow: 0 0 4px 0 var(--color-white);
    position: absolute;
    top: -5px;
    opacity: 1;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.wysiwyg--stat-right .wysiwyg__wrapper--border::after {
    offset-distance: var(--offset-start, 3.2%);
}

.wysiwyg__wrapper--border.is-animating::after {
    animation: dotRunAroundBorder 12.5s ease-in-out 1;
}
p:has(img) {
    margin: 0 !important;
}
p img {
    margin-top: 14px !important;
}
@keyframes dotRunAroundBorder {
    0% {
        opacity: 1;
        offset-distance: var(--offset-start);
    }
    63.64% {
        opacity: 1;
        offset-distance: calc(var(--offset-start) + 100%);
    }
    100% {
        opacity: 1;
        offset-distance: calc(var(--offset-start) + 100%);
    }
}


.wysiwyg__wrapper {
    padding: 80px 24px;
    border-radius: 12px;
}

.wysiwyg__wrapper h2:only-child {
    margin-bottom: 0;
}

.wysiwyg__wrapper--border::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -1px;
    transform: translate(-50%, 0);
    width: 95px;
    height: 1px;
    background: linear-gradient(90deg, rgba(191, 50, 46, 0.00) 0%, var(--color-secondary) 49.52%, rgba(191, 50, 46, 0.00) 98.56%);
    transition: width 0.6s ease-out;
}

.border-gradient-line {
    display: none;
}

.wysiwyg__wrapper--border-no-dot::before,
.wysiwyg__wrapper--border-no-dot:after {
    display: none;
}

.wysiwyg__wrapper.wysiwyg__wrapper--no-border {
    padding: 0;
}

.wysiwyg__stat {
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: 0 0 15.7px 5px rgba(191, 50, 46, 0.08);
    padding: 25px 24px;
    margin-bottom: 35px;
}

.wysiwyg--stat-bottom .wysiwyg__stat {
    margin-top: 35px;
    margin-bottom: 0;
}

.wysiwyg__stat p {
    position: relative;
    display: block;
    font-size: 18px;
    line-height: 1.33em;
    color: var(--black);
    font-family: var(--font-primary-regular);
    padding-left: 24px;
    margin: 0;
}

.wysiwyg__stat p br {
    display: none;
}

.wysiwyg__stat p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-secondary);
}

.wysiwyg__stat p span {
    font-family: var(--font-primary-bold);
    color: var(--color-secondary);
}

.blockquote-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 0;
    margin: 35px 0;
    justify-content: center;
}

.blockquote-icon {
    display: flex;
    flex-wrap: wrap;
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: var(--drop-shadow-secondary-light);
    padding: 17px 15px;
    width: 100%;
}

.blockquote-icon__icon {
    flex: 1;
    max-width: 56px;
    width: 100%;
}

.blockquote-icon__icon i {
    color: var(--color-secondary);
    font-size: 3.5rem;
}

.blockquote-icon__info {
    margin-top: 0;
    flex: 1;
    padding-left: 15px;
}

.blockquote-icon.is-none .blockquote-icon__info {
    padding-left: 0;
    width: 100%;
}

.blockquote-icon.is-custom .blockquote-icon__icon svg {
    width: 100%;
    height: 100%;
}

.blockquote-icon.is-custom .blockquote-icon__icon svg * {
    fill: var(--color-secondary);
}

.blockquote-icon__info h5 {
    margin-bottom: 0;
    font-size: 22px;
    line-height: 1.3em;
    color: var(--color-black);
}

.quotation-text__wrap {
    max-width: 841px;
    margin: 0 auto;
    text-align: center;
}

.quotation-text__wrap p {
    color: var(--color-black);
    font-size: 18px;
}

.quotation-author {
    color: var(--color-black);
    display: inline-block;
    font-family: var(--font-primary-bold);
    font-size: 23px;
    margin-top: 2rem;
}

.wysiwyg__wrapper.wysiwyg__wrapper--sitemap {
    padding: 0;
}

@media (min-width: 768px) {
    .wysiwyg__wrapper {
        padding: 80px 60px;
    }

    .wysiwyg__wrapper--border::before {
        left: auto;
        right: 35px;
        transform: none;
    }

    .wysiwyg--stat-right .wysiwyg__wrapper--border::before {
        right: auto;
        left: 50px;
    }

    .wysiwyg__wrapper--border::after {
        left: auto;
        right: 77px;
        top: -6px;
        transform: none;
    }

    .wysiwyg--stat-right .wysiwyg__wrapper--border::after {
        left: 92px;
        right: auto;
    }

    .wysiwyg__stat {
        padding: 25px 39px;
        margin-bottom: -66px;
        margin-left: 60px;
        max-width: 448px;
        z-index: 3;
        position: relative;
    }

    .wysiwyg--stat-top-right .wysiwyg__stat {
        margin-left: auto;
        margin-right: 50px;
    }

    .wysiwyg--stat-bottom-right .wysiwyg__stat {
        margin-left: auto;
        margin-right: 50px;
        margin-top: -66px;
        margin-bottom: 0;
    }

    .wysiwyg--stat-bottom-left .wysiwyg__stat {
        margin-left: 60px;
        margin-top: -66px;
        margin-bottom: 0;
    }

    .wysiwyg__stat p {
        font-size: 25px;
        line-height: 1.28em;
    }

    .wysiwyg__stat p::before {
        top: 11px;
    }

    .blockquote-icon {
        align-items: center;
        padding: 34px 30px;
    }

    .blockquote-icon__icon {
        max-width: 52px;
    }

    .blockquote-icon__info {
        margin-top: 0;
        width: calc(100% - 52px);
        padding-left: 20px;
    }

    .quotation-text__wrap p {
        font-size: 20px;
    }

    .blockquote-icon__info h5 {
        font-size: 20px;
    }

}

@media (min-width: 1200px) {
    .wysiwyg__wrapper {
        padding: 50px 76px;
    }

    .wysiwyg--stat .wysiwyg__wrapper {
        padding-top: 100px;
    }

    .wysiwyg--stat-bottom .wysiwyg__wrapper {
        padding-top: 50px;
        padding-bottom: 90px;
    }

    .wysiwyg__wrapper--border.js-decorative-line-animated::before {
        width: 0;
    }

    .wysiwyg__wrapper--border.js-decorative-line-animated.is-animating::before {
        width: 95px;
    }

    .wysiwyg__wrapper--border:has(img.alignright),
    .wysiwyg__wrapper--border:has(img.alignleft) {
        height: 100%;
    }

    .wysiwyg__wrapper--border::after {
        top: 0px;
        left: auto;
        right: auto;
        margin: 0;
        offset-path: inset(0 round 12px);
        offset-distance: var(--offset-start, 29.7%);
        offset-rotate: 0deg;
    }

    .wysiwyg__wrapper--border.js-decorative-line-animated::after {
        opacity: 0;
    }

    .wysiwyg__wrapper--border.js-decorative-line-animated.is-animating::after {
        opacity: 1;
    }

    .wysiwyg__wrapper--border::before {
        right: 103px;
    }

    .wysiwyg--stat-top-right .wysiwyg__wrapper--border::before {
        right: auto;
        left: 106px;
    }

    .wysiwyg--stat-right .border-gradient-line {
        right: auto;
        left: 151px;
    }

    .wysiwyg__stat {
        padding: 34px 39px;
        margin-bottom: -75px;
        margin-left: 76px;
        max-width: 500px;
    }

    .wysiwyg--stat-right .wysiwyg__stat {
        margin-left: auto;
        margin-right: 76px;
    }

    .wysiwyg--stat-bottom-right .wysiwyg__stat {
        margin-left: auto;
        margin-right: 76px;
        margin-top: -75px;
        margin-bottom: 0;
    }

    .wysiwyg--stat-bottom-left .wysiwyg__stat {
        margin-left: 76px;
        margin-top: -75px;
        margin-bottom: 0;
    }

    .wysiwyg__stat p {
        font-size: 36px;
        line-height: 1.11em;
    }

    .wysiwyg__stat p::before {
        top: 15px;
    }

    .wysiwyg__stat p br {
        display: block;
    }

    .blockquote-icons {
        gap: 35px 32px;
    }

    .blockquote-icon {
        width: calc(33.33% - 22px);
        padding: 30px;
    }

    .quotation-text__wrap p {
        font-size: 26px;
        line-height: 1.38em;
    }

    .wysiwyg__wrapper .blockquote-icons + p:last-child {
        margin-top: 50px;
    }
}

@media (min-width: 1600px) {
    .wysiwyg__wrapper {
        padding: 50px 100px;
    }

    .wysiwyg--stat .wysiwyg__wrapper {
        padding-top: 90px;
    }

    .wysiwyg--stat-bottom .wysiwyg__wrapper {
        padding-top: 50px;
        padding-bottom: 90px;
    }

    .wysiwyg__wrapper--border::before {
        right: 151px;
    }

    .wysiwyg--stat-right .wysiwyg__wrapper--border::before {
        right: auto;
        left: 151px;
    }

    .wysiwyg__stat {
        padding: 34px 39px;
        max-width: 640px;
        margin-bottom: -75px;
        margin-left: 154px;
    }

    .wysiwyg--stat-right .wysiwyg__stat {
        margin-left: auto;
        margin-right: 151px;
    }

    .wysiwyg--stat-bottom-right .wysiwyg__stat {
        margin-left: auto;
        margin-right: 151px;
        margin-top: -50px;
        margin-bottom: 0;
    }

    .wysiwyg--stat-bottom-left .wysiwyg__stat {
        margin-left: 154px;
        margin-top: -50px;
        margin-bottom: 0;
    }

    .blockquote-icons {
        gap: 35px 20px;
    }

    .blockquote-icon {
        width: calc(33.333% - 14px);
        padding: 26px 26px;
    }

    .blockquote-icons--full {
        max-width: 100%;
    }

    .blockquote-icons--full .blockquote-icon {
        width: calc(33.333% - 32px);
    }
}

/* Blinking border animation (record button indicator) */
.wysiwyg__wrapper--border.js-decorative-line-blinking::after {
    animation: none;
}

.wysiwyg__wrapper--border.js-decorative-line-blinking.is-animating::after {
    animation: dotBlink 2s ease-in-out infinite;
}

.wysiwyg__wrapper--border.js-decorative-line-blinking::before {
    transition: width 0.6s ease-out;
}

@keyframes dotBlink {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(191, 50, 46, 0.6), 0 0 4px 0 var(--color-white);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(191, 50, 46, 0), 0 0 4px 0 var(--color-white);
    }
}

@media (min-width: 1200px) {
    .wysiwyg__wrapper--border.js-decorative-line-blinking::after {
        opacity: 0;
    }

    .wysiwyg__wrapper--border.js-decorative-line-blinking.is-animating::after {
        opacity: 1;
        animation: dotBlink 2s ease-in-out infinite;
    }

    .wysiwyg__wrapper--border.js-decorative-line-blinking::before {
        width: 0;
    }

    .wysiwyg__wrapper--border.js-decorative-line-blinking.is-animating::before {
        width: 95px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .blockquote-icons {
        gap: 30px;
    }

    .blockquote-icon {
        width: calc(33.333% - 22px);
        padding: 24px 12px;
    }

    .blockquote-icon__info h5 {
        font-size: 16px;
    }
}

/* Two-column override */
@media (min-width: 768px) {
    .blockquote-icons--two-col .blockquote-icon {
        width: calc(50% - 16px);
    }
}

@media (min-width: 1025px) {
    .blockquote-icons--two-col .blockquote-icon {
        width: calc(50% - 16px);
    }
}

@media (min-width: 1600px) {
    .blockquote-icons--two-col .blockquote-icon {
        width: calc(50% - 10px);
    }
}