
:root {
    --primary-color: #12163C;
    --primary-light: #4361ee15;
    --primary-dark: #0b0e26;
    --text-primary: #333;
    --text-secondary: #555;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --transition: all 0.3s ease;
}

.faq-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 4rem 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    z-index: 0;
}

.faq-header-content {
    position: relative;
    z-index: 1;
}

.faq-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.faq-subtitle {
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.faq-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    padding-left: 3rem;
}

.faq-search-input:focus {
    outline: none;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.faq-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.faq-container {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.faq-section {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-section:hover {
    box-shadow: var(--shadow-md);
}

.faq-section-header {
    background-color: var(--bg-white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-section-title {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.faq-section-icon {
    margin-right: 1rem;
    background-color: var(--primary-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

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

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-weight: 500;
    user-select: none;
    transition: var(--transition);
}

.faq-item.active .faq-question {
    color: white !important;
}

.faq-toggle-icon {
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-color) ;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--bg-white);
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 1rem 2rem 1.5rem 2rem;
}

.faq-answer-content {
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.faq-item.active .faq-answer-content {
    opacity: 1;
}

/* Responsive CSS */
@media (max-width: 768px) {
    .faq-title {
        font-size: 2rem;
    }

    .faq-section-title {
        font-size: 1.2rem;
    }

    .faq-section-header,
    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    .faq-section-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .faq-header {
        padding: 3rem 1rem;
    }

    .faq-title {
        font-size: 1.75rem;
    }

    .faq-subtitle {
        font-size: 0.95rem;
    }

    .faq-section-header,
    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
    }
}