@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.faq-accordion-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 700; /* Bold */
    line-height: 1.3;
    letter-spacing: 0;
    color: #2C3E50;
    margin: 0 0 15px 0;
}

.faq-section-description {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400; /* Regular */
    line-height: 1.6;
    color: #666666;
    max-width: 700px;
    margin: 0 auto;
}

.faq-controls {
    margin-bottom: 40px;
}

/* Search Box */
.faq-search-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #DDD;
    border-radius: 5px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto 20px;
}

.faq-search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.faq-search-button {
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
}

.faq-search-button:hover {
    color: #5A9DB5;
}

/* Category Filters */
.faq-category-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.faq-category-button {
    padding: 10px 24px;
    background: #F5F5F5;
    color: #333333;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.faq-category-button:hover {
    background: #E0E0E0;
}

.faq-category-button.active {
    background: #5A9DB5;
    color: #FFFFFF;
    font-weight: 600;
}

.faq-accordion-list {
    margin-top: 30px;
}

.faq-item {
    background: #FFFFFF; /* Closed FAQ background */
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: #EEF4F6; /* Active FAQ background */
}

.faq-item.hidden {
    display: none;
}

.faq-item:last-child {
    margin-bottom: 0;
}


.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: rgba(90, 157, 181, 0.05);
}

.faq-question-text {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 500; /* Medium */
    line-height: 1.4;
    color: #333333;
    padding-right: 20px;
}

/* Active FAQ Question - Semi Bold */
.faq-item.active .faq-question-text {
    font-weight: 600; /* Semi Bold */
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-icon-plus {
    opacity: 1;
    stroke: #5A9DB5;
}

.faq-icon-minus {
    opacity: 0;
    stroke: #5A9DB5;
}

.faq-item.active .faq-icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-item.active .faq-icon-minus {
    opacity: 1;
}

.faq-answer {
    padding: 0 25px 20px 25px;
    color: #666666;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400; /* Regular */
    line-height: 1.8;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    margin: 0 0 15px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.faq-answer a {
    color: #5A9DB5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: #4A8DA5;
    text-decoration: underline;
}


.faq-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.faq-no-items {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
}


@media (max-width: 768px) {
    .faq-accordion-wrapper {
        padding: 40px 15px;
    }
    
    .faq-section-heading {
        font-size: 28px;
    }
    
    .faq-section-description {
        font-size: 15px;
    }
    
    .faq-search-box {
        max-width: 100%;
    }
    
    .faq-category-filters {
        gap: 8px;
    }
    
    .faq-category-button {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .faq-question {
        padding: 16px 20px;
    }
    
    .faq-question-text {
        font-size: 18px;
    }
    
    .faq-answer {
        padding: 0 20px 16px 20px;
        font-size: 15px;
    }
    
    .faq-answer p,
    .faq-answer li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .faq-section-heading {
        font-size: 24px;
    }
    
    .faq-section-description {
        font-size: 14px;
    }
    
    .faq-question {
        padding: 14px 16px;
    }
    
    .faq-question-text {
        font-size: 16px;
        padding-right: 15px;
    }
    
    .faq-answer {
        padding: 0 16px 14px 16px;
        font-size: 14px;
    }
    
    .faq-answer p,
    .faq-answer li {
        font-size: 14px;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
    }
    
    .faq-category-button {
        font-size: 12px;
        padding: 7px 15px;
    }
}


@media print {
    .faq-search-box,
    .faq-category-filters {
        display: none;
    }
    
    .faq-item {
        page-break-inside: avoid;
    }
    
    .faq-answer {
        display: block !important;
    }
}