/* ========================================
   Section: FAQ Accordion
   ======================================== */

.faq-section {
    background: linear-gradient(135deg, #1a2f4a 0%, #2d4f7a 50%, #1e3a5f 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 50px 0 !important;
}

.faq-section::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(56, 118, 183, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.faq-section .why-header { position: relative; z-index: 1; }
.faq-section .why-title  { color: #ffffff; }
.faq-section .why-description { color: rgba(255, 255, 255, 0.65); }

.faq-badge {
    display: inline-block;
    background: rgba(56, 118, 183, 0.25);
    color: #a8c8f0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: var(--small-margin);
    font-family: var(--font-primary);
    border: 1px solid rgba(56, 118, 183, 0.3);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Card — no hover color change */
.faq-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

/* Open state — highlighted card */
.faq-item.open {
    background: rgba(56, 118, 183, 0.18);
    border-color: rgba(56, 118, 183, 0.7);
    box-shadow: 0 4px 24px rgba(56, 118, 183, 0.2);
}

/* Question button */
.faq-question {
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 20px 20px 20px 24px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-primary) !important;
    font-size: 0.97rem;
    font-weight: 600;
    color: #ffffff !important;
    min-width: unset;
    max-width: unset;
    line-height: 1.4;
    box-shadow: none !important;
    outline: none;
}

/* Remove any hover/focus background on the button */
.faq-question:hover,
.faq-question:focus {
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Icon */
.faq-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    padding: 0 !important;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(56, 118, 183, 0.35);
    border: 1px solid rgba(56, 118, 183, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Answer wrapper — CSS grid trick for smooth height animation */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    opacity: 0;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

/* Inner div needed for grid trick */
.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner p {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin: 0;
    padding: 0 24px 22px 24px;
    font-family: var(--font-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

/* Responsive */
@media (max-width: 576px) {
    .faq-question { font-size: 0.9rem; padding: 16px 14px 16px 18px !important; }
    .faq-answer-inner p { padding: 12px 18px 18px; }
}

/* Pagination nav */
.faq-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.faq-prev,
.faq-next {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(56, 118, 183, 0.25) !important;
    border: 1px solid rgba(56, 118, 183, 0.5) !important;
    color: #ffffff !important;
    font-size: 1rem;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
    box-shadow: none !important;
}

.faq-prev:hover,
.faq-next:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.faq-prev:disabled,
.faq-next:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.faq-page-info {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    min-width: 60px;
    text-align: center;
}

/* Page groups */
.faq-page {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.faq-page.active {
    display: flex;
}

/* CTA below FAQ */
.faq-cta {
    text-align: center;
    margin-top: 48px;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(56, 118, 183, 0.3);
    border-radius: 16px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.faq-cta-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.faq-cta-text {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 24px;
    line-height: 1.6;
}

.faq-cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff !important;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.faq-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: #ffffff !important;
    text-decoration: none;
}
