/* ═══════════════════════════════════════════════════
   FNG MICROCRÉDITO — Estilos da Página FAQ
   Carregado apenas em pages/faq.blade.php
═══════════════════════════════════════════════════ */

/* ── 1. HERO ────────────────────────────────────── */
.faq-hero {
    position: relative;
    background: var(--fng-azul);
    padding: 100px 0 90px;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--faq-hero-bg, none) center / cover no-repeat;
    opacity: 0.10;
    z-index: 0;
}

.faq-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199,22,23,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.faq-hero > .container { position: relative; z-index: 1; }

.faq-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    letter-spacing: -0.5px;
    margin: 0.6rem 0 1rem;
}

.faq-hero-sub {
    font-size: 1.05rem;
    color: #b0c4d4;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
}

/* ── 2. FILTROS / CATEGORIAS ────────────────────── */
.faq-filters-section {
    background: #fff;
    padding: 36px 0 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 68px;
    z-index: 100;
}

.faq-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 0;
}

.faq-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 30px 30px 0 0;
    border: none;
    background: #f0f2f4;
    color: #555;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
}

.faq-filter-btn i {
    font-size: 0.95rem;
}

.faq-filter-btn:hover {
    background: #e4e6ea;
    color: var(--fng-azul);
}

.faq-filter-btn.active {
    background: #fff;
    color: var(--fng-vermelho);
    border-bottom: 3px solid var(--fng-vermelho);
    box-shadow: 0 -4px 12px rgba(199,22,23,0.08);
}

/* ── 3. ACORDEÃO FAQ ────────────────────────────── */
.faq-main-section {
    background: #f5f4f1;
    padding: 60px 0 80px;
}

.faq-category-group {
    display: none;
}

.faq-category-group.active {
    display: block;
}

.faq-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.faq-category-label i {
    width: 38px;
    height: 38px;
    background: var(--fng-vermelho);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-category-label h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--fng-azul);
    margin: 0;
}

/* Item do acordeão */
.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

.faq-item-btn {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    text-align: left;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    transition: background var(--transition);
}

.faq-item-btn:hover {
    background: #fafafa;
}

.faq-item-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f2f4;
    color: var(--fng-azul);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

.faq-item.open .faq-item-num {
    background: var(--fng-vermelho);
    color: #fff;
}

.faq-item-question {
    flex: 1;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--fng-azul);
    line-height: 1.4;
}

.faq-item-arrow {
    font-size: 1.1rem;
    color: #aaa;
    transition: transform var(--transition), color var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-item-arrow {
    transform: rotate(180deg);
    color: var(--fng-vermelho);
}

.faq-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
}

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

.faq-item-body-inner {
    padding: 0 24px 22px 72px;
    font-size: 0.93rem;
    color: #555;
    line-height: 1.85;
}

.faq-item-body-inner strong {
    color: var(--fng-azul);
}

.faq-item-body-inner a {
    color: var(--fng-vermelho);
    text-decoration: none;
    font-weight: 600;
}

.faq-item-body-inner a:hover {
    text-decoration: underline;
}

/* ── 4. BLOCO DE DESTAQUE ───────────────────────── */
.faq-highlight-box {
    background: linear-gradient(135deg, var(--fng-azul), #1e3a58);
    border-radius: 20px;
    padding: 36px 40px;
    color: #fff;
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.faq-highlight-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    flex-shrink: 0;
}

.faq-highlight-text { flex: 1; min-width: 200px; }

.faq-highlight-text h4 {
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.faq-highlight-text p {
    font-size: 0.9rem;
    color: #b0c4d4;
    margin: 0;
    line-height: 1.7;
}

.btn-faq-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fng-vermelho);
    color: #fff;
    padding: 13px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.93rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition);
}

.btn-faq-highlight:hover {
    background: #a51213;
    color: #fff;
    transform: translateY(-2px);
}

/* ── 5. CTA FINAL ───────────────────────────────── */
.faq-cta-section {
    position: relative;
    background: var(--fng-azul);
    padding: 100px 0;
    overflow: hidden;
}

.faq-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--faq-cta-bg, none) center / cover no-repeat;
    opacity: 0.08;
    z-index: 0;
}

.faq-cta-section > .container { position: relative; z-index: 1; }

.btn-faq-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #25D366;
    color: #fff;
    padding: 15px 36px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}

.btn-faq-cta-primary:hover {
    background: #1db954;
    color: #fff;
    transform: translateY(-2px);
}

.btn-faq-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    color: #fff;
    padding: 14px 30px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.35);
    transition: all var(--transition);
}

.btn-faq-cta-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Responsivo ─────────────────────────────────── */
@media (max-width: 576px) {
    .faq-item-body-inner { padding-left: 24px; }
    .faq-highlight-box   { padding: 28px 24px; }
    .faq-filter-btn      { font-size: 0.82rem; padding: 9px 14px; }
}
