/* ================================
   FAQ Page Styles
   ================================ */

/* FAQ Hero */
.faq-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 140px 0 80px;
    text-align: center;
}
.faq-hero h1 {
    color: white;
    font-size: 2.75rem;
    margin-bottom: 16px;
}
.faq-hero .page-lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* FAQ Search */
.faq-search-wrapper {
    max-width: 560px;
    margin: 0 auto;
}
.faq-search {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 6px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.faq-search i.fa-search {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 12px;
}
.faq-search input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1rem;
    padding: 14px 0;
    color: var(--text-base);
    outline: none;
}
.faq-search input::placeholder {
    color: var(--text-muted);
}
.faq-search-clear {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    font-size: 1rem;
    transition: color 0.2s ease;
}
.faq-search-clear:hover {
    color: var(--accent);
}
.faq-search-clear.visible {
    display: block;
}
.faq-search-hint {
    margin-top: 14px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}
.faq-search-hint a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.faq-search-hint a:hover {
    color: white;
}

/* FAQ Category Tabs */
.faq-categories-nav {
    background: white;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 72px;
    z-index: 100;
    padding: 0;
}
.faq-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.faq-tabs::-webkit-scrollbar {
    display: none;
}
.faq-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-light);
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.faq-tab i {
    font-size: 1rem;
}
.faq-tab:hover {
    background: var(--primary-soft);
    color: var(--primary);
}
.faq-tab.active {
    background: var(--primary);
    color: white;
}

/* FAQ Content */
.faq-content {
    padding: 60px 0 80px;
    background: var(--bg-light);
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
.faq-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* FAQ Category */
.faq-category {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.faq-category.hidden {
    display: none;
}
.faq-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}
.faq-category-title i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 10px;
    font-size: 1rem;
}

/* FAQ Item Accordion */
.faq-item {
    border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item.hidden {
    display: none;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    gap: 16px;
}
.faq-question span {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-base);
    line-height: 1.5;
    transition: color 0.2s ease;
}
.faq-question i {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.faq-question:hover span {
    color: var(--accent);
}
.faq-question:hover i {
    background: var(--accent-soft);
    color: var(--accent);
}
.faq-question[aria-expanded="true"] span {
    color: var(--primary);
}
.faq-question[aria-expanded="true"] i {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    display: none;
    padding: 0 0 24px;
}
.faq-answer.open {
    display: block;
    animation: faqSlideDown 0.3s ease;
}
@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.faq-answer > div {
    padding: 20px 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}
.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-base);
    margin: 0 0 16px;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}
.faq-answer ul, .faq-answer ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.faq-answer li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-base);
    margin-bottom: 8px;
}
.faq-answer li:last-child {
    margin-bottom: 0;
}
.faq-answer a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.faq-answer a:hover {
    color: var(--accent);
}

/* FAQ Table */
.faq-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}
.faq-table th,
.faq-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.faq-table th {
    background: var(--primary-soft);
    font-weight: 700;
    color: var(--primary);
}
.faq-table tr:last-child td {
    border-bottom: none;
}
.faq-table tr:hover td {
    background: rgba(255,107,26,0.05);
}

/* FAQ Sidebar */
.faq-sidebar {
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-sidebar-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.faq-sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 12px;
}
.faq-sidebar-card h3 i {
    color: var(--accent);
}
.faq-sidebar-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}
.faq-sidebar-card .btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}
.btn-whatsapp:hover {
    background: #1da851;
    color: white;
}

/* Resources List */
.faq-resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.faq-resources li {
    border-bottom: 1px solid var(--border-light);
}
.faq-resources li:last-child {
    border-bottom: none;
}
.faq-resources a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-base);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.faq-resources a i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--secondary);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.faq-resources a:hover {
    color: var(--accent);
}
.faq-resources a:hover i {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Stats Grid */
.faq-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.faq-stat {
    text-align: center;
    padding: 16px 12px;
    background: var(--bg-light);
    border-radius: 10px;
}
.faq-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}
.faq-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* No Results */
.faq-no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
}
.faq-no-results i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.faq-no-results h3 {
    font-size: 1.25rem;
    color: var(--text-base);
    margin: 0 0 8px;
}
.faq-no-results p {
    color: var(--text-muted);
    margin: 0;
}
.faq-no-results a {
    color: var(--accent);
    font-weight: 600;
}

/* FAQ CTA Section */
.faq-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 70px 0;
    text-align: center;
}
.faq-cta-content {
    max-width: 600px;
    margin: 0 auto;
}
.faq-cta h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin: 0 0 12px;
}
.faq-cta p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 28px;
}
.faq-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.faq-cta .btn-outline {
    border-color: rgba(255,255,255,0.4);
    color: white;
}
.faq-cta .btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* ================================
   Responsive Styles
   ================================ */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .faq-sidebar-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 120px 0 60px;
    }
    .faq-hero h1 {
        font-size: 2rem;
    }
    .faq-hero .page-lead {
        font-size: 1rem;
    }
    .faq-tabs {
        gap: 8px;
        padding: 10px 0;
    }
    .faq-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    .faq-tab span {
        display: none;
    }
    .faq-tab i {
        margin: 0;
    }
    .faq-tab.active span {
        display: inline;
    }
    .faq-content {
        padding: 40px 0 60px;
    }
    .faq-category {
        padding: 20px;
    }
    .faq-category-title {
        font-size: 1.15rem;
    }
    .faq-question span {
        font-size: 0.95rem;
    }
    .faq-sidebar {
        grid-template-columns: 1fr;
    }
    .faq-stat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .faq-stat {
        padding: 12px 8px;
    }
    .faq-stat-number {
        font-size: 1.25rem;
    }
    .faq-cta h2 {
        font-size: 1.75rem;
    }
    .faq-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .faq-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .faq-hero h1 {
        font-size: 1.65rem;
    }
    .faq-search {
        padding: 4px 16px;
    }
    .faq-search input {
        padding: 12px 0;
        font-size: 0.95rem;
    }
    .faq-category {
        padding: 16px;
        border-radius: 12px;
    }
    .faq-category-title {
        font-size: 1.05rem;
        gap: 10px;
    }
    .faq-category-title i {
        width: 34px;
        height: 34px;
    }
    .faq-question {
        padding: 16px 0;
    }
    .faq-answer > div {
        padding: 16px;
    }
    .faq-table {
        font-size: 0.8rem;
    }
    .faq-table th,
    .faq-table td {
        padding: 10px 12px;
    }
    .faq-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
