/* ==========================================================================
   FAQs Block
   Updated to perfectly match the responsive container padding and 
   vertical rhythm of the content-grid block.
   ========================================================================== */

.section--faqs {
    --faq-bg:          var(--scheme-bg,        #ffffff);
    --faq-text:        var(--scheme-text,      #313A4C);
    --faq-accent:      var(--scheme-highlight, #BAD532);
    --faq-border:      var(--scheme-border,    #E5E5E5);
    --faq-icon-border: var(--scheme-border,    #313A4C);
}

/* Base Section Styling - Vertical padding updated to match content-grid (80px) */
.section--faqs {
    padding: 80px 0;
    width: 100%;
    background-color: var(--faq-bg);
    color: var(--faq-text);
}

.section--faqs.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Base Wrap Padding - Matches content-grid mobile default */
.faqs__wrap {
    padding: 20px;
}

/* Desktop Wrap Padding - Matches content-grid desktop default */
@media screen and (min-width: 1024px) {
    .faqs__wrap {
        padding: 40px;
    }
}

.faqs__inner {
    max-width: 1540px;
    margin: 0 auto;
}

/* --- LEFT COLUMN CONTENT AREA --- */
.faqs__content {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* padding: top right bottom left */
    /* Left padding set to 0 so the text sits flush with the .faqs__wrap edge */
    padding: 20px 20px 40px 0; 
    border-radius: 20px;
    margin-bottom: 24px;
}

/* --- LOCALIZED CONSTELLATION --- */
.faqs__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}

.faqs__header {
    margin: 0 0 24px;
}

.faqs__heading h2 {
    color: var(--faq-text);
    margin: 0;
    position: relative;
    z-index: 2;
}

.faqs__text {
    margin: 0 0 24px;
    color: var(--faq-text);
    position: relative;
    z-index: 2;
}

.faqs__actions {
    margin: 0 0 24px;
    position: relative;
    z-index: 2;
}

/* FAQ Accordion Items */
.faqs-item {
    border-width: 0 0 2px 0;
    border-style: solid;
    border-color: var(--faq-border);
}

.faqs-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    cursor: pointer;
    color: var(--faq-text);
    transition: color 0.3s ease-in-out;
}

.faqs-item__question h4 {
    color: inherit;
    margin: 0;
}

.faqs-item__question__text {
    display: flex;
    align-items: center;
    padding: 0 20px 0 0;
    font-weight: 700;
}

.faqs-item__question__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--faq-icon-border);
    color: var(--faq-text);
    background-color: transparent;
    transition: color 0.3s ease-in-out,
                background-color 0.3s ease-in-out,
                border-color 0.3s ease-in-out;
}

.faqs-item__question__icon svg {
    width: 10px;
    max-width: 10px;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.faqs-item__question:hover {
    color: var(--faq-accent);
}

.faqs-item__question:hover .faqs-item__question__icon {
    background-color: var(--faq-accent);
    border-color: var(--faq-accent);
    color: var(--faq-bg);
}

.faqs-item.active .faqs-item__question__icon {
    background-color: var(--faq-accent);
    border-color: var(--faq-accent);
    color: var(--faq-bg);
}

.faqs-item.active .faqs-item__question__icon svg {
    transform: rotate(180deg);
}

.faqs-item__answer__inner {
    padding: 0 15px 25px;
    color: var(--faq-text);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

/* Mobile padding adjustments to match content-grid */
@media (max-width: 768px) {
    .section--faqs {
        padding: 60px 0; 
    }
}

@media (min-width: 48em) {
    .faqs__columns {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .faqs__content,
    .faqs__questions {
        width: calc(50% - 48px);
    }
}

@media (min-width: 64em) {
    .faqs__actions {
        margin: 0;
    }
    .faqs__content {
        /* Standardize padding on larger screens while keeping left side flush (0) */
        padding: 0 40px 40px 0;
    }
}

@media (min-width: 80em) {
    .faqs-item__question__icon {
        width: 55px;
        height: 55px;
    }

    .faqs-item__question__icon svg {
        width: 20px;
        max-width: 20px;
    }
}