/* =====================
   FAQ Section — Navy bg
   ===================== */
.faq-section {
    background: #0D1B47;
    padding: 6rem 0 5rem 0;
}


/* Header: title + tabs */
.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.faq-title {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    flex-shrink: 0;
}

/* Tab buttons — same style as .btn on home page */
.faq-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.faq-tab {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: left 0.3s ease;
    z-index: 0;
}

.faq-tab span {
    position: relative;
    z-index: 1;
}

.faq-tab:hover::before {
    left: 0;
}

.faq-tab:hover {
    color: #0D1B47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.faq-tab.active {
    background: #ffffff;
    color: #0D1B47;
}

.faq-tab.active::before {
    left: 0;
}

/* Panels */
.faq-panel {
    display: none;
}

.faq-panel.active {
    display: block;
}

/* Question cards — off-white bg */
.faq-items {
    display: flex;
    flex-direction: column;
    background: #f5f1ea;
    border-radius: 0.375rem;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1.5px solid #0D1B47;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.375rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    cursor: pointer;
    text-align: left;
    font-family: 'Instrument Serif', serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #0D1B47;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: rgba(13, 27, 71, 0.65);
}

.faq-icon {
    font-size: 1.375rem;
    font-weight: 300;
    color: rgba(13, 27, 71, 0.35);
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s ease;
    line-height: 1;
    margin-top: 0.1rem;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: #0D1B47;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(13, 27, 71, 0.7);
    padding: 0 1.75rem 1.5rem 1.75rem;
    margin: 0;
}

/* CTA at bottom */
.faq-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.faq-cta p {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.faq-cta a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.2s ease;
}

.faq-cta a:hover {
    border-color: #ffffff;
}

.faq-cta-note {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-section .container {
        padding: 0 1.5rem;
    }

    .faq-title {
        font-size: 2.25rem;
    }

    .faq-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .faq-cta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 0;
    }

    .faq-tabs {
        gap: 0.5rem;
    }

    .faq-tab {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem 1.25rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}
