/* FAQ Section Block Styles */

.faq-section {
    padding: 60px 0;
}

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

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

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

.faq-group__title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
}

.faq-group__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.faq-item[open] {
    border-color: #d0d0d0;
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question:hover {
    background-color: #f8f8f8;
}

.faq-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 24px 18px;
    color: #555;
    line-height: 1.7;
}

.faq-item__answer p:first-child {
    margin-top: 0;
}

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

/* FAQ Search */
.faq-search-wrapper {
    position: relative;
    margin-bottom: 32px;
    max-width: 480px;
}

.faq-search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 15px;
    line-height: 1.5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.faq-search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.faq-search-input::placeholder {
    color: #999;
}

.faq-search-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    pointer-events: none;
}

.faq-search-input:focus ~ .faq-search-icon {
    color: #0066cc;
}
/* Editor preview styles */
.editor-styles-wrapper .faq-item[open] .faq-item__question {
    background-color: transparent;
}
