/* Style the pre footer component. */
/* =========================================================
   PRE-FOOTER.CSS — Complex Challenge Conversation Callout
   Figma Node: 1265:2043 (Top rounded 40px)
   ========================================================= */

.pre-footer-section {
    padding-block: 140px;
    background-color: #E2E6EF;
    text-align: center;
    position: relative;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: -40px;
    z-index: 2;
    overflow: hidden;
}

/* Keep the homepage FAQ's full bottom spacing, as in the HTML reference. */
:where(body.home) .pre-footer-section {
    margin-top: 0;
}

/* Background Media Container (Figma node 1265:2043) */
.pre-footer-section .pre-footer-media {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Option 1: Pre-footer Artwork Image */
.pre-footer-section .pre-footer-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Option 2: Pre-footer Background Video */
.pre-footer-section .pre-footer-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pre-footer-section .container {
    position: relative;
    z-index: 2;
}

.pre-footer-section .pre-footer-content {
    max-width: 930px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pre-footer-section .pre-footer-desc {
    font-size: var(--font-size-p2);
    line-height: var(--line-height-p2);
}

/* Responsive */
@media (max-width: 991px) {
    .pre-footer-section {
        padding-block: 100px;
    }
}

@media (max-width: 575px) {
    .pre-footer-section {
        padding-block: 70px;
        border-radius: 24px 24px 0 0;
    }
}

/* Homepage reference refresh: NGT-HTML/index.html. */
:where(body.home) .pre-footer-section{ text-align: center;  position: relative;  overflow: hidden; }
:where(body.home) .pre-footer-section .pre-footer-media{ position: absolute;  inset: 0;  overflow: hidden;  pointer-events: none; }
:where(body.home) .pre-footer-section .pre-footer-bg-image{ display: block;  position: absolute;  inset: 0;  width: 100%;  height: 100%;  object-fit: cover; }
:where(body.home) .pre-footer-section .pre-footer-bg-video{ position: absolute;  inset: 0;  width: 100%;  height: 100%;  object-fit: cover; }
:where(body.home) .pre-footer-section .pre-footer-content{ display: flex;  gap: 15px;  flex-direction: column;  align-items: center;  position: relative; }
:where(body.home) .pre-footer-section{
    padding-top: 143px;
    padding-bottom: 183px;
    background-color: var(--color-bluish-grey);
    background-image: linear-gradient(180deg, #F4F7F9 17.68%, var(--color-white) 102.03%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 2;
}
:where(body.home) .pre-footer-section .pre-footer-media{
    z-index: 1;
}
:where(body.home) .pre-footer-section .pre-footer-bg-image{
    object-position: center;
}
:where(body.home) .pre-footer-section .pre-footer-bg-video{
    object-position: center;
}
:where(body.home) .pre-footer-section .pre-footer-content{
    max-width: 940px;
    margin-inline: auto;
    z-index: 2;
}
:where(body.home) .pre-footer-section .pre-footer-content .ngt-h2{
    font-size: 50px;
}
:where(body.home) .pre-footer-section .pre-footer-content p{
    font-size: var(--font-size-p2);
    line-height: var(--line-height-p2);
    margin-bottom: 0;
}
@media (max-width: 1199px){:where(body.home) .pre-footer-section{
        padding-top: 80px;
        padding-bottom: 100px;
    }
:where(body.home) .pre-footer-section .pre-footer-content .ngt-h2{
        font-size: 40px;
    }}
@media (max-width: 991px){:where(body.home) .pre-footer-section{
        padding-top: 60px;
        padding-bottom: 80px;
    }
:where(body.home) .pre-footer-section .pre-footer-content .ngt-h2{
        font-size: 36px;
    }
:where(body.home) .pre-footer-section .pre-footer-content .ngt-h2 br{
        display: none;
    }}
@media (max-width: 991px){:where(body.home) .pre-footer-section{
        padding-top: 40px;
        padding-bottom: 60px;
    }
:where(body.home) .pre-footer-section .pre-footer-content .ngt-h2{
        font-size: 30px;
    }}
