* {
    box-sizing: border-box;
}
.primary-btn {
    background: var(--aep-primary);
    color: var(--aep-button-text);
}
 

.secondary-btn {
    background: var(--aep-secondary);
    color: var(--aep-button-text);
}
 
.section-subtitle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: 0);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--fs-nav);
    font-weight: var(--fw-medium);
    line-height: var(--lh-nav);
    text-transform: uppercase;
    letter-spacing: 0;
    font-style: italic;
}
.section-subtitle::before, .section-subtitle::after {
    content: "";
    width: 28px;
    height: 14px;
    background: url(/wp-content/themes/import-evolution/assets/images/red-marker.png) no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}
.aep-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: rgba(0, 0, 0, .82);
    background: rgba(var(--aep-overlay-rgb, 0, 0, 0), var(--aep-overlay-opacity));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.aep-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.aep-popup {
    position: relative;
    width: min(1200px, 100vw);
    height: min(450px, calc(100vh - 76px));
    min-height: 420px;
    overflow: visible;

    /* Remove normal border */
    border: none;

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,.98) 0%,
            rgba(0,0,0,.96) 28%,
            rgba(0,0,0,.72) 48%,
            rgba(0,0,0,.10) 73%,
            rgba(0,0,0,.15) 100%
        ),
        var(--aep-bg);

    background-size: cover;
    background-position: center;

    transform: translateY(15px) scale(.985);
    transition: transform .3s ease;

    font-family: Inter, Arial, sans-serif;
}


/* Gradient border */
.aep-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(
        90deg,
        #0b2f9e 0%,
        #a80d27 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}
.aep-overlay.is-open .aep-popup {
    transform: translateY(0) scale(1);
}

.aep-close {
    position: absolute;
    top: -65px;
    right: 0;
    width: 50px;
    height: 50px;
    border: 1px solid #5D5D5D;
    background: #373233;
    z-index: 5;
    padding: 0 !important;
    border-radius: 0 !important;
}

.aep-close span {
    position: absolute;
    left: 16px;
    top: 23px;
    width: 17px;
    height: 3px;
    background: #fff;
}

.aep-close span:first-child {
    transform: rotate(45deg);
}

.aep-close span:last-child {
    transform: rotate(-45deg);
}

.aep-content {
    position: relative;
    z-index: 2;
    width: 58%;
    height: 100%;
    padding: 0 0 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.aep-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #fff;
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-size: 16px;
    /* font-style: italic; */
    font-weight: 600;
    color: var(--color-white);
    font-family: var(--font-primary);
}

.aep-kicker i {
    display: block;
    width: 25px;
    height: 12px;
    background: #df001d;
    transform: skewX(-32deg);
    box-shadow: 8px 0 0 #111;
}

.aep-content h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 50px;
    line-height: .98;
    font-weight: 700;
    /* letter-spacing: -.7px; */
    text-transform: uppercase;
}
.aep-content span {
    color: var(--color-primary-red);
    font-style: italic;
    background: linear-gradient(90deg, #FC0125 0%, #FD4117 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    top: 10px;
}

.aep-description {
    max-width: 670px;
    margin: 30px 0 0;
    font-size: 16px;
    color: var(--color-white);
    font-family: var(--font-primary);
}

.aep-actions {
    display: flex;
    gap: 0px;
    margin-top: 39px;
}

.aep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 198px;
    height: 55px;
    padding: 0 30px;
    color: var(--aep-button-text);
    text-decoration: none;
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transition: transform .2s ease, filter .2s ease, background .2s ease;
}

.aep-primary {
    /* background: var(--aep-primary); */
}
.aep-primary:hover,
.aep-primary:focus {
    background: var(--aep-primary-hover);
    color: var(--aep-button-text);
}

.aep-secondary {
    background: var(--aep-secondary);
}

.aep-secondary:hover,
.aep-secondary:focus {
    background: var(--aep-secondary-hover);
    color: var(--aep-button-text);
}

.aep-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}
@media (max-width: 1024px) {
.aep-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(
        90deg,
        #0b2f9e 0%,
        #a80d27 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}
}
@media (max-width: 992px) {
.aep-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(
        90deg,
        #0b2f9e 0%,
        #a80d27 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}
    .aep-popup {
        width: calc(100vw - 30px);
        height: min(540px, calc(100vh - 100px));
    }

    .aep-content {
        width: 72%;
        padding-left: 5%;
    }

    .aep-content h2 {
        font-size: 40px;
    }
}


@media only screen and (max-width: 767px) {
.aep-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(
        90deg,
        #0b2f9e 0%,
        #a80d27 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}
.aep-overlay {
        padding: 55px 20px;
        align-items: center;
        padding-right: 20px;
    }
.section-subtitle {
    margin: auto;
}
    .aep-popup {
        width: 100%;
        height: auto;
        min-height: 570px;
        background-position: 66% center;
    }

    .aep-close {
        width: 48px;
        height: 48px;
    }

    .aep-close span {
        left: 12px;
        top: 22px;
        width: 23px;
    }

    .aep-content {
        width: 100%;
        min-height: 330px;
        padding: 50px 20px 50px 20px;
        background: linear-gradient(180deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .88) 60%, rgba(0, 0, 0, .42) 100%);
        text-align: center;
    }
.primary-btn, .secondary-btn, .tertiary-btn {
        margin: auto;
        width: 100%;
    }
    .aep-kicker {
        margin-bottom: 22px;
        font-size: 15px;
    }

    .aep-content h2 {
        font-size: 24px;
    }
.aep-content span {
    font-weight: 700;
}
    .aep-description {
        font-size: 14px;
        line-height: 1.6;
        margin-top: 22px;
    }

    .aep-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 28px;
        align-items: flex-start;
    }

    .aep-btn {
        min-width: 190px;
        height: 52px;
    }
}
.aep-popup {
    background-image: linear-gradient(172deg, rgba(0, 0, 0, .98) 0%, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .72) 50%, rgba(0, 0, 0, .10) -2%, rgba(0, 0, 0, .15) 73%), var(--aep-bg);
    background-size: cover;
}
html.aep-popup-open,
body.aep-popup-open {
    overflow: hidden !important;
}
