/* FAQ Page Styles */
.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
}

.faq-header__subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Bar Styles */
.faq-search-container {
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.faq-search-wrapper {
    display: flex;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.faq-search-input {
    flex-grow: 1;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 16px 20px;
    font-size: 1rem;
    color: #4a5568;
    outline: none;
    transition: all 0.2s;
}

.faq-search-input:focus {
    border-color: #3B83BD;
    z-index: 1;
}

.faq-search-btn {
    background-color: #3B83BD;
    color: white;
    border: none;
    padding: 0 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.faq-search-btn:hover {
    background-color: #2c6aa0;
}

.faq-clear-btn {
    position: absolute;
    right: 120px;
    /* Adjust based on button width */
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 2;
}

.faq-clear-btn:hover {
    color: #e53e3e;
    background-color: #fff5f5;
}

/* FAQ Items */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

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

.faq-question {
    padding: 20px 25px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #3B83BD;
}

.faq-question.active {
    color: #3B83BD;
    background-color: #f8fbff;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    color: #3B83BD;
    opacity: 0.7;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.faq-answer__content {
    padding: 0 25px 25px 25px;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* Empty State */
.faq-empty {
    text-align: center;
    padding: 50px;
    color: #777;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ced4da;
}

.btn-link {
    color: #3B83BD;
    text-decoration: underline;
    font-weight: 600;
}

/* Pagination Styles */
.faq-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-bottom: 60px;
    flex-wrap: wrap;
}

.faq-page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    user-select: none;
    gap: 8px;
}

.faq-page-item:hover:not(.active) {
    background-color: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

.faq-page-item.active {
    background-color: #3B83BD;
    border-color: #3B83BD;
    color: white;
}

.faq-page-item.prev,
.faq-page-item.next {
    font-weight: 700;
}