/* ================================================================
   GUIDE PAGE — Modulos-style layout, Eternalnex colors
================================================================ */

/* overflow-x:hidden on html/body breaks position:sticky */
html.enx-guide-html,
html.enx-guide-html body,
html:has(.enx-guide-page),
html:has(.enx-guide-page) body {
    overflow-x: clip;
}

.enx-guide-page {
    background: #fff;
    color: var(--enx-theme-text-color);
    overflow: visible;
}

.enx-guide-page--elementor {
    padding-top: 0;
    padding-bottom: 0;
}

.enx-guide-page--elementor .enx-guide-hero {
    /* dark logo header sits over hero */
    padding-top: calc(var(--hh, 76px) + 56px);
}

.enx-guide-shell {
    overflow: visible;
}

.enx-guide-page .container.enx-guide-container {
    max-width: min(1520px, 100%);
    width: 100%;
    padding-left: clamp(20px, 3.5vw, 72px);
    padding-right: clamp(20px, 3.5vw, 72px);
}

/* Elementor content sits in the right column */
.enx-guide-page--elementor .enx-guide-content {
    max-width: none;
}

.enx-guide-page--elementor .enx-guide-content .elementor {
    max-width: none;
}

.enx-guide-page--elementor .enx-guide-content .elementor-section,
.enx-guide-page--elementor .enx-guide-content .e-con {
    max-width: 100%;
}

.enx-guide-page--elementor h2.enx-guide-heading,
.enx-guide-page--elementor h2.elementor-heading-title,
.enx-guide-page--elementor .elementor-widget-heading h2 {
    scroll-margin-top: calc(var(--hh, 76px) + 28px);
}

/* ---------- Hero ---------- */
.enx-guide-hero {
    position: relative;
    padding: 140px 0 72px;
    overflow: hidden;
    background: var(--navy2);
}

.enx-guide-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 85% 20%, rgba(123, 47, 247, 0.35), transparent 60%),
        radial-gradient(ellipse 55% 50% at 10% 80%, rgba(243, 18, 115, 0.28), transparent 55%),
        linear-gradient(145deg, #080c1f 0%, #12183a 55%, #1a0f2e 100%);
}

.enx-guide-hero__inner {
    position: relative;
    z-index: 1;
    max-width: min(860px, 100%);
}

.enx-guide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.enx-guide-title {
    margin: 0 0 22px;
    color: #fff;
    font-family: var(--enx-font-heading);
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 700;
    line-height: 1.12;
}

.enx-guide-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.7;
}

.enx-guide-lead p {
    margin: 0 0 14px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.enx-guide-lead p:last-child {
    margin-bottom: 0;
}

/* ---------- Body layout ---------- */
.enx-guide-body {
    padding: 64px 0 120px;
    background: #fff;
    overflow: visible;
}

.enx-guide-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: clamp(40px, 4vw, 72px);
    align-items: start;
    overflow: visible;
}

.enx-guide-layout--no-toc {
    grid-template-columns: 1fr;
}

/* ---------- Sticky TOC ---------- */
.enx-guide-toc {
    position: sticky;
    top: calc(var(--hh, 76px) + 28px);
    align-self: start;
    width: 100%;
    z-index: 2;
    overflow: visible;
}

.enx-guide-toc__inner {
    max-height: calc(100vh - var(--hh, 76px) - 56px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 12px 8px 0;
    scrollbar-width: thin;
}

.enx-guide-toc__label {
    margin: 0 0 18px;
    color: var(--enx-theme-muted-text-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.enx-guide-toc .custom-event-share {
    margin-bottom: 28px;
    padding-top: 0;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.enx-guide-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--border);
}

.enx-guide-toc__item {
    margin: 0;
}

.enx-guide-toc__link {
    position: relative;
    display: block;
    padding: 12px 8px 12px 40px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--enx-theme-muted-text-color);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

/* Main: 1, 2, 3 — Sub: a, b, c (from data-toc-label) */
.enx-guide-toc__link::before {
    content: attr(data-toc-label);
    position: absolute;
    left: 8px;
    top: 12px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--navy, #0d1128);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    transition: color 0.2s ease;
}

.enx-guide-toc__link:hover {
    color: var(--enx-theme-heading-color);
}

.enx-guide-toc__link.is-active {
    color: var(--red);
    border-left-color: var(--red);
    font-weight: 700;
}

.enx-guide-toc__link.is-active::before {
    color: var(--red);
}

.enx-guide-toc__item--sub .enx-guide-toc__link,
.enx-guide-toc__link--sub {
    padding: 8px 8px 8px 52px;
    font-size: 15px;
    font-weight: 500;
    color: var(--enx-theme-muted-text-color);
}

.enx-guide-toc__link--sub::before {
    left: 22px;
    top: 8px;
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: 600;
}

.enx-guide-toc__link--sub.is-active {
    color: var(--red);
    font-weight: 600;
}

.enx-guide-page--elementor h3.enx-guide-heading,
.enx-guide-page--elementor h3.elementor-heading-title,
.enx-guide-page--elementor .elementor-widget-heading h3 {
    scroll-margin-top: calc(var(--hh, 76px) + 28px);
}

/* ---------- Content ---------- */
.enx-guide-content {
    min-width: 0;
    max-width: 920px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--enx-theme-text-color);
}

.enx-guide-content > *:first-child {
    margin-top: 0;
}

.enx-guide-content p {
    margin: 0 0 1.15em;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.enx-guide-content h2 {
	/*margin: 2.4em 0 0.7em; */
    padding-top: 0.35em;
    color: var(--enx-theme-heading-color);
    font-family: var(--enx-font-heading);
    font-size: clamp(26px, 2.2vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    scroll-margin-top: calc(var(--hh, 76px) + 28px);
}

.enx-guide-content h3 {
	/*margin: 1.8em 0 0.55em; */
    color: var(--enx-theme-heading-color);
    font-family: var(--enx-font-heading);
    font-size: clamp(20px, 1.5vw, 24px);
    font-weight: 700;
    line-height: 1.3;
    scroll-margin-top: calc(var(--hh, 76px) + 28px);
}

.enx-guide-content h4 {
    margin: 1.4em 0 0.45em;
    color: var(--enx-theme-heading-color);
    font-family: var(--enx-font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.enx-guide-content ul,
.enx-guide-content ol {
    margin: 0 0 1.25em;
    padding-left: 1.35em;
}

.enx-guide-content li {
    margin-bottom: 0.45em;
}

.enx-guide-content a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.enx-guide-content a:hover {
    color: var(--enx-theme-link-hover-color);
}

.enx-guide-content strong {
    color: var(--enx-theme-heading-color);
    font-weight: 700;
}

.enx-guide-content blockquote {
    margin: 1.6em 0;
    padding: 18px 22px;
    border-left: 3px solid var(--red);
    background: var(--enx-theme-soft-bg);
    color: var(--enx-theme-heading-color);
    font-style: normal;
}

/* Process / steps strip inside content */
.enx-guide-content .enx-guide-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 1.8em 0 2em;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.08), rgba(243, 18, 115, 0.08));
    border: 1px solid var(--border);
}

.enx-guide-content .enx-guide-steps__item {
    text-align: center;
    padding: 12px 8px;
}

.enx-guide-content .enx-guide-steps__num {
    display: block;
    margin-bottom: 6px;
    color: var(--red);
    font-family: var(--enx-font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.enx-guide-content .enx-guide-steps__label {
    color: var(--enx-theme-heading-color);
    font-family: var(--enx-font-heading);
    font-size: 16px;
    font-weight: 700;
}

/* Inline mid-CTA card */
.enx-guide-content .enx-guide-callout {
    margin: 2.2em 0;
    padding: 28px 30px;
    border-radius: 18px;
    background: var(--navy2);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.enx-guide-content .enx-guide-callout::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(123, 47, 247, 0.4), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(243, 18, 115, 0.3), transparent 40%);
    pointer-events: none;
}

.enx-guide-content .enx-guide-callout > * {
    position: relative;
    z-index: 1;
}

.enx-guide-content .enx-guide-callout h3,
.enx-guide-content .enx-guide-callout h4 {
    margin-top: 0;
    color: #fff;
}

.enx-guide-content .enx-guide-callout p {
    color: rgba(255, 255, 255, 0.82);
}

.enx-guide-content .enx-guide-callout a.enx-guide-callout__btn {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.enx-guide-content .enx-guide-callout a.enx-guide-callout__btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Bottom CTA */
.enx-guide-cta {
    margin-top: 56px;
    padding: 36px 34px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(123, 47, 247, 0.08), rgba(243, 18, 115, 0.1));
    border: 1px solid var(--border);
}

.enx-guide-cta__title {
    margin: 0 0 10px;
    color: var(--enx-theme-heading-color);
    font-family: var(--enx-font-heading);
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 700;
}

.enx-guide-cta__text {
    margin: 0 0 20px;
    max-width: 640px;
    color: var(--enx-theme-text-color);
    font-size: 16px;
    line-height: 1.65;
}

.enx-guide-cta__btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.enx-guide-cta__btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ---------- Large / full desktop ---------- */
@media (min-width: 1400px) {
    .enx-guide-layout {
        grid-template-columns: 380px minmax(0, 1fr);
        gap: 80px;
    }

    .enx-guide-toc__link {
        font-size: 16px;
        padding: 13px 10px 13px 42px;
    }

    .enx-guide-toc__link::before {
        top: 13px;
    }

    .enx-guide-toc__link--sub {
        padding-left: 54px;
    }

    .enx-guide-toc__link--sub::before {
        left: 24px;
        top: 9px;
    }

    .enx-guide-content {
        max-width: 980px;
        font-size: 18px;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .enx-guide-layout {
        grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
        gap: 36px;
    }
}

@media (max-width: 991px) {
    .enx-guide-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .enx-guide-toc {
        position: relative;
        top: 0;
    }

    .enx-guide-toc__inner {
        max-height: none;
        overflow: visible;
        padding: 16px 18px;
        border-radius: 14px;
        background: var(--enx-theme-soft-bg);
        border: 1px solid var(--border);
    }

    .enx-guide-toc__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
        border-left: 0;
    }

    .enx-guide-toc__link {
        margin-left: 0;
        border-left: 0;
        padding: 8px 0 8px 28px;
        border-bottom: 1px solid transparent;
    }

    .enx-guide-toc__link::before {
        left: 0;
        top: 8px;
        min-width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .enx-guide-toc__link--sub {
        padding-left: 40px;
    }

    .enx-guide-toc__link--sub::before {
        left: 12px;
        top: 8px;
        min-width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .enx-guide-toc__link.is-active {
        border-left-color: transparent;
        color: var(--red);
    }

    .enx-guide-content {
        max-width: none;
    }

    .enx-guide-content .enx-guide-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .enx-guide-hero {
        padding: 120px 0 52px;
    }

    .enx-guide-body {
        padding: 36px 0 72px;
    }

    .enx-guide-toc__list {
        grid-template-columns: 1fr;
    }

    .enx-guide-content .enx-guide-steps {
        grid-template-columns: 1fr;
    }

    .enx-guide-content .enx-guide-callout,
    .enx-guide-cta {
        padding: 24px 20px;
    }
}
