/* FAQ Hero Section */
.faq-hero {
    background: linear-gradient(135deg, #0D3458 0%, #1a5c99 100%);
    color: white;
    padding: clamp(4rem, 15vh, 8rem) 2rem;
    text-align: center;
}

.faq-hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.9;
}

/* FAQ Content Section */
.faq-section {
    padding: clamp(3rem, 10vh, 6rem) 2rem;
    position: relative;
    overflow: hidden;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Category Styling */
.faq-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
    /* Adjust based on your content */
}

.faq-category.hidden {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 52, 88, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon .material-icons {
    font-size: 24px;
    color: var(--color-primary);
}

.category-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0;
}

/* FAQ Item Styling */
.faq-item {
    border: 1px solid rgba(13, 52, 88, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-origin: top;
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
    /* Adjust based on your content */
}

.faq-item.hidden {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(13, 52, 88, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.faq-question .arrow-icon {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    border-top: 1px solid rgba(13, 52, 88, 0.08);
    will-change: max-height;
}

.faq-answer>div {
    padding: 1.5rem 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, rgba(13, 52, 88, 0.02), transparent);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.faq-answer p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.faq-answer ul {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    list-style: none;
}

.faq-answer li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.95rem;
}

.faq-answer li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.7;
}

/* Active States */
.faq-item.active {
    box-shadow: 0 4px 20px rgba(13, 52, 88, 0.05);
}

.faq-item.active .faq-question {
    color: var(--color-primary);
    font-weight: 600;
}

.faq-item.active .arrow-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* Search Box */
.faq-search {
    margin-bottom: 3rem;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid rgba(13, 52, 88, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 52, 88, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .faq-category {
        padding: 1.5rem;
    }

    .category-header {
        margin-bottom: 1.5rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Add No Results Message */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-secondary);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    display: none;
}

.no-results .material-icons {
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.no-results.show {
    display: block;
}

/* Hover effects */
.faq-question:hover {
    background: rgba(13, 52, 88, 0.02);
}

/* Animation for answer content */
.faq-answer>div {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.faq-item.active .faq-answer>div {
    opacity: 1;
    transform: translateY(0);
}