/* ==================================================
   FAQ PAGE
================================================== */

/* ==================================================
   1. FAQ HERO
================================================== */

.faq-hero {
    position: relative;
    min-height: 520px;
    padding: 110px 0;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            rgba(20,30,50,.62),
            rgba(20,30,50,.62)
        ),
        url("images/faq_hero.webp");

    background-size: cover;
    background-position: center 75%;
    background-repeat: no-repeat;

    color: var(--ns-white);
    text-align: center;
}

.faq-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-label {
    display: inline-block;
    color: var(--ns-red);

    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;

    margin-bottom: 14px;
}

/* White label only inside the hero */

.faq-hero .faq-label {
    color: var(--ns-white);
}

.faq-hero h1 {
    color: var(--ns-white);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.08;
    text-transform: uppercase;
    margin-bottom: 34px;
}

.faq-hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.faq-hero .btn-secondary {
    background: transparent;
    border: 2px solid var(--ns-white);
    color: var(--ns-white);
}

.faq-hero .btn-secondary:hover {
    background: var(--ns-white);
    border-color: var(--ns-white);
    color: var(--ns-blue);
}

/* Responsive */

@media (max-width: 900px) {

    .faq-hero {
        min-height: 460px;
        padding: 90px 0;
    }

    .faq-hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 650px) {

    .faq-hero {
        min-height: 430px;
        padding: 80px 0;
    }

    .faq-hero h1 {
        font-size: 34px;
    }

    .faq-hero-buttons {
        flex-direction: column;
    }

    .faq-hero-buttons a {
        width: 100%;
    }
}

/* ==================================================
   2. FAQ CONTENT
================================================== */

.faq-section {
    background: var(--ns-light);
    padding: 100px 0;
}

.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 72px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-header {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.faq-category-header .faq-label {
    margin-bottom: 0;
}

/* FAQ accordion */

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--ns-white);
    border: 1px solid rgba(47,57,118,.08);
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 10px 26px rgba(0,0,0,.08);

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.faq-item:hover {
    border-color: rgba(182,44,50,.25);
    box-shadow: 0 14px 32px rgba(0,0,0,.11);
}

.faq-item[open] {
    border-color: rgba(182,44,50,.25);
}

.faq-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;

    padding: 24px 64px 24px 28px;

    color: var(--ns-blue);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}

.faq-item summary::after {
    content: "+";

    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);

    color: var(--ns-red);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item[open] summary {
    color: var(--ns-red);
}

.faq-item p {
    padding: 0 28px 26px;

    color: #4f5d8c;
    font-size: 16px;
    line-height: 1.65;
}

/* Responsive */

@media (max-width: 700px) {

    .faq-section {
        padding: 70px 0;
    }

    .faq-category {
        margin-bottom: 54px;
    }

    .faq-category-header {
        margin-bottom: 20px;
    }

    .faq-item summary {
        padding: 22px 56px 22px 22px;
        font-size: 16px;
    }

    .faq-item summary::after {
        right: 22px;
    }

    .faq-item p {
        padding: 0 22px 24px;
        font-size: 15px;
    }
}

/* ==================================================
   3. FAQ FINAL CTA
================================================== */

.faq-cta {
    padding: 80px 0;

    background:
        linear-gradient(
            rgba(255,255,255,.50),
            rgba(255,255,255,.50)
        ),
        url("images/home_cta.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-align: center;
}

.faq-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-cta h2 {
    color: var(--ns-blue);
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.faq-cta p {
    max-width: 720px;
    margin: 0 auto 34px;

    color: var(--ns-blue);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.65;
}

.faq-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.faq-cta-buttons .btn-primary,
.faq-cta-buttons .btn-secondary {
    min-width: 220px;
}

/* Responsive */

@media (max-width: 900px) {

    .faq-cta h2 {
        font-size: 38px;
    }
}

@media (max-width: 650px) {

    .faq-cta {
        padding: 70px 0;
    }

    .faq-cta h2 {
        font-size: 32px;
    }

    .faq-cta p {
        font-size: 16px;
    }

    .faq-cta-buttons {
        flex-direction: column;
    }

    .faq-cta-buttons a {
        width: 100%;
    }
}