/* ============================================
   FAQ Page Styles
   ============================================ */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition-base: all 0.3s ease;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 120px; /* Offset for fixed header */
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: white;
}

.container-faq {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Hero Section */
.faq-hero {
    position: relative;
    padding: 0px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-hero .container {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, 
                var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    color: white;
}

/* Main FAQ Section */
.faq-main-section {
    padding: 40px 0 80px;
    background-color: white;
}

/* Search Bar */
.faq-search-wrapper {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0 20px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.search-input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    width: 24px;
    height: 24px;
    color: var(--text-light);
    flex-shrink: 0;
}

.faq-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 15px;
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
}

.faq-search-input::placeholder {
    color: var(--text-light);
}

.clear-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-base);
    border-radius: 50%;
}

.clear-search-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.clear-search-btn svg {
    width: 20px;
    height: 20px;
}

/* Filter Tabs */
.faq-filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
    justify-content: center;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--primary-light);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-tab svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.filter-tab.active svg {
    color: var(--white);
}

.tab-icon-img,
.category-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.tab-count {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* FAQ Content Wrapper */
.faq-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Category Section */
.faq-category-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.5s ease-out;
    scroll-margin-top: 120px; /* Ensures proper spacing from fixed header */
}

.faq-category-section.hidden {
    display: none;
}

.category-header {
    margin-bottom: 30px;
    text-align: center;
    padding: 0 20px;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.category-title svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.category-description {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ List */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Item */
.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
    scroll-margin-top: 120px; /* Ensures proper spacing from fixed header */
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    box-shadow: var(--shadow-lg);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    padding: 24px 30px;
    background: var(--white);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition-base);
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::before {
    transform: scaleY(1);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-item.active .faq-question {
    background: rgba(37, 99, 235, 0.05);
}

.question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #171718;
    line-height: 1.6;
    flex: 1;
}

/* FAQ Icon */
.faq-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.faq-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    background: var(--primary-color);
}

.faq-item.active .faq-icon svg {
    color: var(--white);
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.answer-content {
    padding: 0 30px 24px 30px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.answer-content p {
    margin-bottom: 12px;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

.answer-content ul,
.answer-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.answer-content li {
    margin-bottom: 8px;
}

.answer-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* No FAQ State */
.no-faq {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.no-faq-icon {
    width: 80px;
    height: 80px;
    color: var(--text-light);
    margin: 0 auto 20px;
    opacity: 0.5;
}

.no-faq p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* CTA Section */
.faq-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, 
                var(--primary-color) 0%, 
                var(--primary-dark) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Buttons */
.faq-cta-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-base);
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

.faq-cta-btn-solid {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.faq-cta-btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-light);
}

.faq-cta-btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.faq-cta-btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .faq-hero {
        padding: 40px 20px;
    }

    .faq-hero .container {
        min-height: 350px;
    }

    .faq-main-section {
        padding: 30px 0 60px;
    }

    .faq-search-wrapper {
        margin-bottom: 30px;
    }

    .faq-filter-tabs {
        gap: 8px;
        margin-bottom: 30px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .faq-filter-tabs::-webkit-scrollbar {
        height: 6px;
    }

    .faq-filter-tabs::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 3px;
    }

    .filter-tab {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .filter-tab svg,
    .tab-icon-img {
        width: 18px;
        height: 18px;
    }

    .tab-count {
        font-size: 0.8rem;
        padding: 2px 8px;
        min-width: 24px;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .category-title svg,
    .category-icon-img {
        width: 28px;
        height: 28px;
    }

    .category-description {
        font-size: 0.95rem;
    }

    .category-header {
        margin-bottom: 20px;
    }

    .faq-category-section {
        margin-bottom: 40px;
    }

    .faq-question {
        padding: 20px;
    }

    .answer-content {
        padding: 0 20px 20px 20px;
    }

    .question-text {
        font-size: 1rem;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
    }

    .faq-icon svg {
        width: 20px;
        height: 20px;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .faq-cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 20px 10px;
    }

    .faq-hero .container {
        min-height: 300px;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .faq-main-section {
        padding: 20px 0 40px;
    }

    .faq-search-wrapper {
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .faq-search-input {
        font-size: 0.95rem;
        padding: 16px 12px;
    }

    .search-input-container {
        padding: 0 15px;
    }

    .faq-filter-tabs {
        padding: 0 10px 10px;
        gap: 6px;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .filter-tab svg,
    .tab-icon-img {
        width: 16px;
        height: 16px;
    }

    .tab-count {
        font-size: 0.75rem;
        padding: 1px 6px;
        min-width: 20px;
    }

    .category-title {
        font-size: 1.2rem;
        gap: 8px;
    }

    .category-title svg,
    .category-icon-img {
        width: 24px;
        height: 24px;
    }

    .category-description {
        font-size: 0.9rem;
    }

    .category-header {
        margin-bottom: 15px;
    }

    .faq-category-section {
        margin-bottom: 30px;
    }

    .faq-item {
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .faq-question {
        padding: 16px;
    }

    .answer-content {
        padding: 0 16px 16px 16px;
        font-size: 0.95rem;
    }

    .faq-cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .faq-hero,
    .faq-cta-section {
        display: none;
    }

    .faq-item {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    .faq-answer {
        max-height: none !important;
    }

    .faq-icon {
        display: none;
    }
}

