/* =================================================================
   FAQ PAGE V3 - PROFESSIONAL & RESPONSIVE
   - Focus on aesthetics, readability, and mobile-first responsiveness.
   - Uses CSS variables for a consistent design system.
================================================================= */

:root {
    --primary-color: #C62828;
    --primary-color-light: #fdf5f5;
    --text-color-dark: #212529;
    --text-color-light: #495057;
    --border-color: #dee2e6;
    --background-light: #f8f9fa;
    --font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Base page setup */
.faq-body-override {
    font-family: var(--font-family-sans-serif);
    background-color: #fff;
}

/* Header Section
-------------------------------------------------- */
.faq-header {
    background: linear-gradient(to right, rgba(179, 22, 22, 0.95), rgba(200, 43, 23, 0.95)), url('https://i.imgur.com/8xP9N1B.jpeg') no-repeat center center;
    background-size: cover;
    padding: 3rem 1.5rem;
    color: white;
    text-align: center;
}

.faq-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

.faq-search-bar {
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.faq-search-bar .form-control {
    border-radius: 50px;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Main Content Layout
-------------------------------------------------- */
.faq-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Sidebar Navigation
-------------------------------------------------- */
.faq-sidebar-wrapper {
    flex: 0 0 280px;
    margin-right: 2.5rem;
}

.faq-sidebar-nav {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.faq-sidebar-nav .nav-link {
    color: var(--text-color-light);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.faq-sidebar-nav .nav-link:hover,
.faq-sidebar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-color-light);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.faq-sidebar-nav .nav-link i {
    margin-right: 1.25rem;
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: #888;
}

.faq-sidebar-nav .nav-link.active i {
    color: var(--primary-color);
}

/* Main Content Area
-------------------------------------------------- */
.faq-main-content-wrapper {
    flex: 1;
    min-width: 0;
}

.faq-content-section {
    margin-bottom: 3rem;
}

.faq-content-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    color: var(--text-color-dark);
}

/* Accordion Styles
-------------------------------------------------- */
.accordion-item {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s ease;
}

.accordion-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.accordion-header {
    border-bottom: 0;
}

.accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color-dark);
    padding: 1.2rem 1.5rem;
    box-shadow: none;
    border-radius: 5px;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--primary-color-light);
}

.accordion-body {
    padding: 0.5rem 1.5rem 1.5rem;
    line-height: 1.6;
    color: var(--text-color-light);
}

/* Footer Section
-------------------------------------------------- */
.faq-footer-section {
    background-color: var(--background-light);
    padding: 3rem 1.5rem;
    text-align: center;
}

.trust-badges-container img {
    height: 45px;
    margin: 0 1rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.trust-badges-container img:hover {
    filter: none;
    opacity: 1;
}

/* Responsive Design
-------------------------------------------------- */
@media (max-width: 991.98px) {
    .faq-container {
        flex-direction: column;
        padding: 1.5rem;
    }

    .faq-sidebar-wrapper {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .faq-sidebar-nav {
        position: static;
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.5rem;
    }

    .faq-sidebar-nav .nav-link {
        border: 1px solid transparent;
        border-radius: 50px;
        margin: 0.25rem;
        padding: 0.5rem 1rem;
    }
    .faq-sidebar-nav .nav-link:hover,
    .faq-sidebar-nav .nav-link.active {
        background-color: var(--primary-color-light);
        border-color: var(--border-color);
        transform: none;
    }
    
    .faq-header h1 {
        font-size: 2rem;
    }
} 