/* Military Transition — FAQ page (matches Plans page design system) */

.container.faq-page {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.faq-page {
    font-size: 118%;
    color: #1e293b;
}

/* Hero banner */
.faq-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-color: #0f2744;
    background-image: url('/images/bigstock-Call-Center-93907181.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 35%;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 36, 87, 0.35) 0%,
        rgba(15, 39, 68, 0.55) 45%,
        rgba(15, 39, 68, 0.88) 100%
    );
    pointer-events: none;
}

.faq-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px 48px;
    text-align: center;
}

.faq-hero-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #e2e8f0;
    font-size: 1.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.faq-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.faq-hero-subtitle {
    margin: 0 auto;
    max-width: 720px;
    font-size: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

/* Page shell */
.faq-shell {
    background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 38%, #ffffff 100%);
    padding: 0 0 72px;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Intro section */
.faq-intro {
    position: relative;
    margin-top: -36px;
    z-index: 2;
}

.faq-intro-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 36px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    padding: 36px;
    overflow: hidden;
}

@media (min-width: 992px) and (max-width: 1239px) {
    .faq-intro {
        width: min(1320px, calc(100vw - 40px));
        margin-left: calc((100% - min(1320px, calc(100vw - 40px))) / 2);
        margin-right: calc((100% - min(1320px, calc(100vw - 40px))) / 2);
    }

    .faq-intro-card {
        gap: 40px;
        padding: 40px 42px;
    }
}

@media (min-width: 1240px) {
    .faq-intro {
        width: min(1680px, calc(100vw - 48px));
        margin-left: calc((100% - min(1680px, calc(100vw - 48px))) / 2);
        margin-right: calc((100% - min(1680px, calc(100vw - 48px))) / 2);
    }

    .faq-intro-card {
        gap: 44px;
        padding: 44px 48px;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

@media (min-width: 1600px) {
    .faq-intro {
        width: min(1840px, calc(100vw - 64px));
        margin-left: calc((100% - min(1840px, calc(100vw - 64px))) / 2);
        margin-right: calc((100% - min(1840px, calc(100vw - 64px))) / 2);
    }

    .faq-intro-card {
        gap: 52px;
        padding: 48px 56px;
    }
}

.faq-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #1d4ed8 100%);
    border-radius: 20px 20px 0 0;
}

.faq-intro-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(30, 78, 121, 0.18);
}

.faq-intro-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (min-width: 769px) {
    .faq-intro-image-wrap {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }
}

.faq-intro-content h2 {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #dc2626;
}

.faq-intro-content p {
    margin: 0 0 18px;
    font-size: 1.5rem;
    line-height: 1.65;
    color: #475569;
}

.faq-intro-content a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.faq-intro-content a:hover {
    text-decoration: underline;
}

.faq-benefit-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.faq-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #334155;
}

.faq-benefit-list .fa {
    flex-shrink: 0;
    margin-top: 3px;
    color: #16a34a;
    font-size: 1.8rem;
}

/* Main FAQ section */
.faq-main-section {
    position: relative;
    margin-top: 56px;
    padding: 56px 0 64px;
    isolation: isolate;
}

.faq-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: linear-gradient(135deg, #1e4e79 0%, #2b6cb0 100%);
    z-index: -1;
}

.faq-section-header {
    text-align: center;
    margin-bottom: 36px;
}

.faq-section-header h2 {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    color: #ffffff;
}

.faq-section-header p {
    margin: 0 auto;
    max-width: 680px;
    font-size: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

/* Layout: side nav + accordion */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.faq-side-nav {
    position: sticky;
    top: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 24px 20px;
}

.faq-side-nav h3 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f87171;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.faq-side-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-side-nav li {
    margin-bottom: 4px;
}

.faq-side-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.faq-side-nav a:hover,
.faq-side-nav a:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    padding-left: 18px;
}

/* FAQ content panel */
.faq-content {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.faq-content::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #1d4ed8 100%);
}

.faq-content-inner {
    padding: 28px 32px 36px;
}

.faq-category {
    margin-bottom: 36px;
    scroll-margin-top: 24px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category h2 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #dc2626;
}

/* Accordion items */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fafbfc;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: linear-gradient(135deg, #1e4e79 0%, #2b6cb0 100%);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.faq-question:hover,
.faq-question:focus {
    color: #ffffff;
    outline: none;
    background: linear-gradient(135deg, #1a4268 0%, #2563a8 100%);
}

.faq-question-text {
    flex: 1;
    font-size: 1.38rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

.faq-question-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    opacity: 0.85;
    transition: transform 0.25s ease;
}

.faq-question[aria-expanded="true"] .faq-question-icon,
.faq-item.is-open .faq-question-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    background: #ffffff;
}

.faq-answer-inner {
    padding: 20px 22px;
    font-size: 1.42rem;
    line-height: 1.65;
    color: #475569;
    text-align: left;
}

.faq-answer-inner ol {
    margin: 0;
    padding-left: 24px;
}

.faq-answer-inner ol li {
    margin-bottom: 8px;
}

.faq-answer-inner a {
    color: #1d4ed8;
    font-weight: 600;
}

.faq-answer-inner a:hover {
    text-decoration: underline;
}

/* Footer CTA */
.faq-footer-cta {
    margin-top: 48px;
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.faq-footer-cta p {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
}

.faq-footer-cta p:last-child {
    margin-bottom: 0;
}

.faq-footer-cta a {
    color: #fbbf24;
    font-weight: 700;
    text-decoration: none;
}

.faq-footer-cta a:hover {
    text-decoration: underline;
}

.faq-footer-cta .faq-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b !important;
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-footer-cta .faq-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
    text-decoration: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-side-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 20px 16px;
    }

    .faq-side-nav h3 {
        width: 100%;
        margin-bottom: 8px;
    }

    .faq-side-nav li {
        margin-bottom: 0;
    }

    .faq-side-nav a {
        padding: 8px 14px;
        font-size: 1.25rem;
        background: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .faq-hero {
        min-height: 320px;
        background-position: center 30%;
    }

    .faq-hero-inner {
        padding: 56px 20px 36px;
    }

    .faq-intro {
        margin-top: -24px;
    }

    .faq-intro-card {
        grid-template-columns: 1fr;
        padding: 28px 22px;
        gap: 24px;
    }

    .faq-main-section {
        margin-top: 40px;
        padding-top: 40px;
    }

    .faq-content-inner {
        padding: 20px 16px 28px;
    }

    .faq-question {
        padding: 14px 16px;
    }

    .faq-question-text {
        font-size: 1.28rem;
    }

    .faq-answer-inner {
        padding: 16px;
        font-size: 1.32rem;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        min-height: 280px;
    }

    .faq-hero h1 {
        font-size: 2rem;
    }
}
