/*
 * FAQ Page - Bingle design (search, category filter, accordion)
 * Excludes: popular-questions, ask-question-section, help-section
 */

.faq-main-section {
    padding: 100px 0 80px;
}

.faq-main-section .section-title {
    margin-bottom: 50px;
}

.faq-main-section .section-title span {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #ff3494;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.faq-main-section .section-title h2 {
    font-size: 42px;
    color: #190a32;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.faq-main-section .section-title h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: #ff3494;
}

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

.faq-main-section .search-box input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    border: 2px solid #e6e6e6;
    border-radius: 50px;
    font-size: 16px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.faq-main-section .search-box input:focus {
    border-color: #ff3494;
    box-shadow: 0 0 0 3px rgba(255, 52, 148, 0.1);
    background: white;
    outline: none;
}

.faq-main-section .search-box button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #7D4196 0%, #FF3494 100%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-main-section .search-box button:hover {
    transform: translateY(-50%) scale(1.1);
}

.faq-main-section .category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.faq-main-section .category-btn {
    background: #f4f4fe;
    border: 2px solid transparent;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-main-section .category-btn:hover,
.faq-main-section .category-btn.active {
    background: linear-gradient(90deg, #7D4196 0%, #FF3494 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 52, 148, 0.2);
}

.faq-main-section .faq-category-section {
    margin-bottom: 60px;
}

.faq-main-section .category-title {
    font-size: 28px;
    color: #190a32;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff3494;
    display: inline-block;
}

.faq-main-section .faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e6e6e6;
    transition: all 0.3s ease;
}

.faq-main-section .faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-main-section .faq-question {
    padding: 22px;
    font-size: 18px;
    font-weight: 600;
    color: #190a32;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-main-section .faq-question:hover {
    background: #f9f9f9;
}

.faq-main-section .faq-question i {
    transition: transform 0.3s ease;
    color: #ff3494;
    font-size: 14px;
}

.faq-main-section .faq-answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    line-height: 1.8;
    color: #666;
}

.faq-main-section .faq-item.active .faq-answer {
    padding: 0 22px 22px;
    max-height: 1000px;
}

.faq-main-section .faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-main-section .faq-item.active .faq-question {
    background: #f4f4fe;
    border-bottom: 1px solid #e6e6e6;
}

/* RTL */
body.rtl .faq-main-section .section-title h2::after {
    right: auto;
    left: 0;
}

body.rtl .faq-main-section .search-box input {
    padding: 18px 20px 18px 60px;
}

body.rtl .faq-main-section .search-box button {
    left: auto;
    right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-main-section .section-title h2 {
        font-size: 32px;
    }

    .faq-main-section .category-filter {
        gap: 5px;
    }

    .faq-main-section .category-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .faq-main-section .faq-question {
        padding: 18px;
        font-size: 16px;
    }
}
