/*--------------------------------------------------------------
 * FAQ Section Widget — Nordic Elementor
 *------------------------------------------------------------*/

.nordic-faq {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────────── */
.nordic-faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.nordic-faq-subtitle {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    margin-bottom: 8px;
}

.nordic-faq-title {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    line-height: 1.1;
}

/* ── FAQ Grid — CSS Grid instead of column-count ─────────── */
/* Using CSS Grid prevents items from jumping between columns
   when an accordion opens/closes and changes content height. */
.nordic-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    row-gap: 32px;
    align-items: start;
}

/* ── FAQ Item ─────────────────────────────────────────────── */
.nordic-faq-item {
    /* Grid cells do not split — no break-inside needed */
    margin: 0;
}

.nordic-faq-item__toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.nordic-faq-item__question {
    font-size: 18px;
    font-weight: 500;
    color: #FF0000;
    line-height: 1.4;
    padding-right: 20px;
    flex-grow: 1;
}

.nordic-faq-item__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #FF0000;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nordic-faq-item__icon svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

/* ── Active (Open) State ──────────────────────────────────── */
.nordic-faq-item.is-open .nordic-faq-item__icon {
    /* Rotate the plus to become an 'x' */
    transform: rotate(45deg);
}

.nordic-faq-item__content {
    display: none; /* Handled by jQuery slideToggle */
    padding-top: 16px;
    padding-right: 44px; /* Align text under question, leaving space for icon area */
}

.nordic-faq-item__answer {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

.nordic-faq-item__answer p:last-child {
    margin-bottom: 0;
}

/* ── Mobile Layout ────────────────────────────────────────── */
@media (max-width: 767px) {
    .nordic-faq-title {
        font-size: 32px;
    }
    
    .nordic-faq-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 24px;
    }
    
    .nordic-faq-header {
        margin-bottom: 40px;
    }

    .nordic-faq-item__question {
        font-size: 16px;
    }

    .nordic-faq-item__content {
        padding-right: 0;
    }
}
