/* Template 8 ONLY — Quick Links / CMS extra pages */
body.al_body_template_eight .nest-cms-page {
    background: linear-gradient(180deg, #f6faf8 0%, #ffffff 48%) !important;
    padding-top: 0 !important;
    padding-bottom: 60px !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

body.al_body_template_eight .nest-cms-banner {
    position: relative;
    margin: 0 0 28px;
    padding: 34px 0 36px;
    background:
        radial-gradient(ellipse at 12% 20%, rgba(59, 183, 126, 0.22) 0%, transparent 48%),
        radial-gradient(ellipse at 88% 80%, rgba(103, 188, 238, 0.18) 0%, transparent 46%),
        linear-gradient(135deg, #1f3344 0%, #253D4E 55%, #2f4a5c 100%);
    overflow: hidden;
}

body.al_body_template_eight .nest-cms-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

body.al_body_template_eight .nest-cms-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #3BB77E 0%, #67bcee 50%, #3BB77E 100%);
}

body.al_body_template_eight .nest-cms-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

body.al_body_template_eight .nest-cms-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(59, 183, 126, 0.18);
    border: 1px solid rgba(59, 183, 126, 0.35);
    color: #9be7c0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.al_body_template_eight .nest-cms-banner__title {
    margin: 0 0 12px !important;
    color: #fff !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
}

body.al_body_template_eight .nest-cms-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
}

body.al_body_template_eight .nest-cms-breadcrumb a {
    color: #9be7c0 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

body.al_body_template_eight .nest-cms-breadcrumb a:hover {
    color: #fff !important;
}

body.al_body_template_eight .nest-cms-breadcrumb__sep {
    opacity: 0.55;
}

body.al_body_template_eight .nest-cms-page .custom-container {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.al_body_template_eight .nest-cms-page .main-top-heading.nest-cms-content-card,
body.al_body_template_eight .nest-cms-page .nest-cms-content-card {
    background: #fff !important;
    border: 1px solid #e6ece9 !important;
    border-radius: 20px !important;
    padding: 28px 32px 32px !important;
    margin-bottom: 24px !important;
    box-shadow:
        0 2px 4px rgba(37, 61, 78, 0.03),
        0 12px 32px rgba(37, 61, 78, 0.08) !important;
}

body.al_body_template_eight .nest-cms-prose {
    color: #5a6570;
    font-size: 1.02rem;
    line-height: 1.8;
}

body.al_body_template_eight .nest-cms-prose > p:first-child,
body.al_body_template_eight .nest-cms-prose > *:first-child {
    margin-top: 0 !important;
}

body.al_body_template_eight .nest-cms-prose p {
    margin-bottom: 16px !important;
    color: #5a6570 !important;
    line-height: 1.8 !important;
}

body.al_body_template_eight .nest-cms-prose h1,
body.al_body_template_eight .nest-cms-prose h2,
body.al_body_template_eight .nest-cms-prose h3,
body.al_body_template_eight .nest-cms-prose h4 {
    color: #1f3344 !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    margin-top: 1.4em !important;
    margin-bottom: 0.55em !important;
}

body.al_body_template_eight .nest-cms-prose h2 { font-size: 1.45rem !important; }
body.al_body_template_eight .nest-cms-prose h3 { font-size: 1.25rem !important; }

body.al_body_template_eight .nest-cms-prose a {
    color: var(--theme-deafult) !important;
    font-weight: 600 !important;
}

body.al_body_template_eight .nest-cms-prose ul,
body.al_body_template_eight .nest-cms-prose ol {
    padding-left: 1.35rem !important;
    margin-bottom: 16px !important;
}

body.al_body_template_eight .nest-cms-prose li {
    margin-bottom: 8px !important;
    color: #5a6570 !important;
}

body.al_body_template_eight .nest-cms-prose img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 14px !important;
    margin: 16px 0 !important;
    border: 1px solid #eaf1ed !important;
}

body.al_body_template_eight .nest-cms-prose table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 18px 0 !important;
    border: 1px solid #eaf1ed !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

body.al_body_template_eight .nest-cms-prose table th,
body.al_body_template_eight .nest-cms-prose table td {
    padding: 10px 12px !important;
    border: 1px solid #eaf1ed !important;
}

body.al_body_template_eight .nest-cms-prose table th {
    background: #eef8f2 !important;
    color: #1f3344 !important;
    font-weight: 700 !important;
}

body.al_body_template_eight .nest-cms-prose blockquote {
    margin: 18px 0 !important;
    padding: 14px 18px !important;
    border-left: 4px solid var(--theme-deafult) !important;
    background: #eef8f2 !important;
    border-radius: 0 12px 12px 0 !important;
    color: #3d4f5c !important;
}

/* FAQ accordion on CMS pages */
body.al_body_template_eight .nest-cms-page #faq-accordion .faq-card {
    background: #fff !important;
    border: 1px solid #e6ece9 !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 18px rgba(37, 61, 78, 0.05) !important;
}

body.al_body_template_eight .nest-cms-page #faq-accordion .faq-header {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

body.al_body_template_eight .nest-cms-page #faq-accordion .collase1 {
    background: #fff !important;
    color: #1f3344 !important;
    font-weight: 700 !important;
    padding: 16px 18px !important;
    border: 0 !important;
    text-decoration: none !important;
}

body.al_body_template_eight .nest-cms-page #faq-accordion .faq-collapse .open,
body.al_body_template_eight .nest-cms-page #faq-accordion .card-body.open {
    color: #5a6570 !important;
    background: #f7fbf9 !important;
    border-top: 1px solid #eaf1ed !important;
}

/* Vendor/forms still nested under nest page get softer cards */
body.al_body_template_eight .nest-cms-page .al_vendor_signup,
body.al_body_template_eight .nest-cms-page .al_details_vendor {
    border: 1px solid #e6ece9 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 22px rgba(37, 61, 78, 0.06) !important;
}

@media (max-width: 991px) {
    body.al_body_template_eight .nest-cms-banner {
        padding: 28px 0 30px;
        margin-bottom: 22px;
    }

    body.al_body_template_eight .nest-cms-banner__title {
        font-size: 1.65rem !important;
    }

    body.al_body_template_eight .nest-cms-page .main-top-heading.nest-cms-content-card {
        padding: 22px 20px 24px !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 575px) {
    body.al_body_template_eight .nest-cms-banner {
        padding: 22px 0 24px;
    }

    body.al_body_template_eight .nest-cms-banner__title {
        font-size: 1.4rem !important;
    }

    body.al_body_template_eight .nest-cms-page {
        padding-bottom: 36px !important;
    }

    body.al_body_template_eight .nest-cms-page .main-top-heading.nest-cms-content-card {
        padding: 18px 16px 20px !important;
    }
}
