/* =========================================================
   NGC AEO + SEO VENN DIAGRAM
   ========================================================= */

.ngc-venn {
    --ngc-teal: #35a9af;
    --ngc-charcoal: #303030;
    --ngc-light: #eceeef;
    --ngc-header-height: 140px;
    --ngc-scroll-distance: 1800px;

    font-family: inherit;
}

.ngc-venn * {
    box-sizing: border-box;
}

.ngc-venn ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================================================
   DESKTOP — SCROLL ANIMATION
   ========================================================= */

.ngc-venn__desktop {
    position: relative;
    height: calc(
        100vh - var(--ngc-header-height) + var(--ngc-scroll-distance)
    );
}

.ngc-venn__sticky {
    position: sticky;
    top: var(--ngc-header-height);

    height: calc(100vh - var(--ngc-header-height));

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    background: var(--ngc-charcoal);
}

/* =========================================================
   DIAGRAM
   ========================================================= */

.ngc-venn__diagram {
    position: relative;
    width: min(94vw, 1100px);
    aspect-ratio: 1.44;

    --merge: 0;
    --reveal: 0;
    --aeo-opacity: 0;
    --seo-opacity: 0;
}

/* =========================================================
   CIRCLES — SHARED STYLING
   ========================================================= */

.ngc-venn__circle {
    position: absolute;
    top: 5%;
    height: 90%;
    width: 64%;

    border-radius: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 7%;
    text-align: center;

    will-change: transform;
}

.ngc-venn__circle h2 {
    font-size: clamp(38px, 6vw, 78px);
    line-height: 1;
    margin: 0 0 9%;
    font-weight: 800;
}

.ngc-venn__circle ul {
    font-size: clamp(12px, 1.35vw, 18px);
    line-height: 1.35;
    max-width: 45%;

    display: grid;
    gap: 1.1em;
}

/* =========================================================
   AEO CIRCLE — LEFT ALIGNED
   ========================================================= */

.ngc-venn__circle--aeo {
    left: 0;
    background: rgba(53, 169, 175, 0.9);
    color: white;

    transform: translateX(
        calc((1 - var(--merge)) * -18%)
    );

    opacity: var(--aeo-opacity);

    align-items: flex-start;
    text-align: left;
    padding-left: 8%;
}

.ngc-venn__circle--aeo h2,
.ngc-venn__circle--aeo ul {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

/* =========================================================
   SEO CIRCLE — RIGHT ALIGNED
   ========================================================= */


.ngc-venn__circle--seo {
    right: 0;
/*     background: var(--ngc-light); */
	background: rgba(236, 238, 239, 0.9);
    color: #252525;

    transform: translateX(
        calc((1 - var(--merge)) * 18%)
    );

    opacity: var(--seo-opacity);

    align-items: flex-end;
    text-align: right;
    padding-right: 8%;
}

.ngc-venn__circle--seo h2,
.ngc-venn__circle--seo ul {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

/* =========================================================
   SHARED INTERSECTION — VENN LENS
   ========================================================= */

.ngc-venn__intersection {
    position: absolute;
    inset: 5% 0;

    pointer-events: none;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: var(--reveal);

    color: #ffffff;
    text-align: center;
}

/* Shared benefits */

.ngc-venn__intersection ul {
    position: relative;
    z-index: 2;

    width: 30%;
    max-width: 330px;

    display: grid;
    gap: clamp(6px, 1vh, 12px);

    margin: 0;
    padding: 0;

    font-size: clamp(11px, 1.15vw, 16px);
    line-height: 1.25;
    font-weight: 500;

    text-align: center;
}

.ngc-venn__intersection li {
    width: 100%;
    max-width: 100%;
	padding-bottom: 5px !important;
    white-space: normal;
    overflow-wrap: break-word;
}

/* =========================================================
   DARK CENTER LENS
   ========================================================= */

.ngc-venn__intersection::before {
    content: "";
    position: absolute;
    z-index: 1;
    height: 84%;
    top: 8%;
    bottom: 0;
    left: 32.5%;
    width: 35%;
    background: var(--ngc-charcoal);
    border-radius: 50%;
}

/* =========================================================
   WPBAKERY COMPATIBILITY
   ========================================================= */

@media (min-width: 768px) {

    .vc_row.ngc-venn-row {
        overflow: visible !important;
    }

    .ngc-venn-row .vc_column_container,
    .ngc-venn-row .vc_column-inner,
    .ngc-venn-row .wpb_wrapper {
        overflow: visible !important;
    }

}

/* =========================================================
   MOBILE — STACKED CARDS
   ========================================================= */

.ngc-venn__mobile {
    display: none;
}

@media (max-width: 767px) {

    .ngc-venn__desktop {
        display: none;
    }

    .ngc-venn__mobile {
        display: grid;
        gap: 16px;
        padding: 20px 0;
    }

    .ngc-venn__card {
        padding: 30px 24px;
        border-radius: 0px;

        opacity: 0;
        transform: translateY(24px);

        transition:
            opacity .65s ease,
            transform .65s ease;
    }

    .ngc-venn__card.is-visible {
        opacity: 1;
        transform: none;
    }

    .ngc-venn__card h2 {
        font-size: clamp(30px, 9vw, 46px);
        margin: 0 0 18px;
    }

    .ngc-venn__card ul {
        display: grid;
        gap: 13px;

        font-size: 16px;
        line-height: 1.45;
    }

    .ngc-venn__card--aeo {
        background: var(--ngc-teal);
        color: white;
    }

    .ngc-venn__card--seo {
        background: var(--ngc-light);
        color: #252525;
    }

    .ngc-venn__card--shared {
        background: var(--ngc-charcoal);
        color: white;
    }

}

/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ngc-venn__desktop {
        height: auto;
    }

    .ngc-venn__sticky {
        position: relative;
        top: auto;
        height: auto;
        min-height: 600px;
    }

    .ngc-venn__diagram {
        --merge: 1 !important;
        --reveal: 1 !important;
        --aeo-opacity: 1 !important;
        --seo-opacity: 1 !important;
    }

    .ngc-venn__card {
        opacity: 1;
        transform: none;
        transition: none;
    }

}

/* =========================================================
   SECTION HEADING
   ========================================================= */

@media (min-width: 768px) {

    .ngc-venn__sticky {
        flex-direction: column;
        gap: 25px;
    }

    .ngc-venn__heading {
        color: #ffffff;
        font-size: clamp(28px, 3vw, 42px);
        font-weight: 700;
        line-height: 1.2;
        text-align: center;

        max-width: 1000px;
        margin: 0;
        padding: 0 20px;
    }

}