/* ========================================
   FAQs PAGE STYLES
   ======================================== */

/* Hero Section */
.faq-hero {
    position: relative;
    height: 40vh;
    min-height: 340px;
    background: linear-gradient(135deg, rgba(40,32,86,0.75) 0%, rgba(239,48,147,0.65) 100%),
                url('https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?w=1400') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.faq-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.faq-hero-content p {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 550px;
    margin: 0 auto;
}

/* Category Filter Pills */
.faq-filter-bar {
    background: #fff;
    padding: 30px 0 0;
    text-align: center;
    border-bottom: 2px solid #f3f4f8;
}

.faq-filter-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 30px;
}

.faq-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    background: #fff;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.faq-filter-btn i {
    color: var(--accent-color);
    font-size: 1rem;
}

.faq-filter-btn:hover,
.faq-filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.faq-filter-btn.active i,
.faq-filter-btn:hover i {
    color: #fff;
}

/* Main Content Area */
.faq-content-section {
    padding: 70px 0 90px;
    background: #fafafa;
}

.faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

/* Sidebar */
.faq-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    position: sticky;
    top: 110px;
}

.faq-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f5;
}

.faq-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-sidebar-nav li {
    margin-bottom: 8px;
}

.faq-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.faq-sidebar-nav a i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.faq-sidebar-nav a:hover,
.faq-sidebar-nav a.active {
    background: #fdf2f8;
    color: var(--primary-color);
}

.faq-sidebar-nav a.active {
    font-weight: 700;
}

.faq-sidebar-divider {
    height: 1px;
    background: #f0f0f5;
    margin: 15px 0;
}

.faq-sidebar-cta {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
}

.faq-sidebar-cta p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.faq-sidebar-cta a {
    display: inline-block;
    background: white;
    color: var(--accent-color);
    padding: 9px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-sidebar-cta a:hover {
    transform: scale(1.05);
}

/* FAQ Categories & Accordions */
.faq-main {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.faq-category-block {
    background: #fff;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border-top: 4px solid var(--accent-color);
    scroll-margin-top: 120px;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f5;
}

.faq-category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.faq-category-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Accordion Item */
.faq-item {
    border-bottom: 1px solid #f0f0f5;
}

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

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question .faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fdf2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.faq-question.open .faq-icon {
    background: var(--accent-color);
    color: white;
    transform: rotate(45deg);
}

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

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

.faq-answer-inner {
    padding: 0 10px 22px;
    color: #555;
    line-height: 1.75;
    font-size: 0.97rem;
}

.faq-answer-inner ul {
    padding-left: 20px;
    margin: 10px 0;
}

.faq-answer-inner ul li {
    margin-bottom: 6px;
}

.faq-answer-inner strong {
    color: var(--primary-color);
}

/* Still Have Questions CTA */
.faq-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6b21a8 50%, var(--accent-color) 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.faq-cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.faq-cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

.faq-cta-inner {
    position: relative;
    z-index: 1;
}

.faq-cta-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.faq-cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 35px;
}

.faq-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 35px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.faq-cta-btn.primary {
    background: white;
    color: var(--primary-color);
}

.faq-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.faq-cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.faq-cta-btn.secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .faq-hero-content h1 {
        font-size: 2.2rem;
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-sidebar {
        position: static;
        display: none; /* Hidden on mobile, use filter pills instead */
    }

    .faq-category-block {
        padding: 25px 22px;
    }

    .faq-cta-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .faq-hero-content h1 {
        font-size: 1.8rem;
    }

    .faq-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .faq-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
