/**
 * Enhanced FAQ Styles
 * Icon styles, search box, animations
 */

/* FAQ Search Box */
.faq-search-box {
    position: relative;
    margin-bottom: 30px;
}

.faq-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.faq-search-input:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
    outline: none;
}

.faq-search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

/* Search highlight */
.accordion.search-highlight {
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: 5px;
    padding: 5px;
    margin: -5px;
}

/* No results message */
.no-faq-results {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* Plus/Minus Icon Style */
.faq-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    float: right;
    margin-top: 3px;
}

.faq-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    font-size: 14px;
}

.faq-icon .fa-minus {
    opacity: 0;
}

.faq-icon.active .fa-plus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

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

/* Chevron Icon Style */
.faq-icon .fa-chevron-down {
    transition: transform 0.3s ease;
}

.accordion.active-block .faq-icon .fa-chevron-down {
    transform: translate(-50%, -50%) rotate(180deg);
}

/* Column Layouts */
.xb-faq.columns-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .xb-faq.columns-2 {
        grid-template-columns: 1fr;
    }
}

/* Tab Style */
.xb-faq.style-tabs {
    display: flex;
    gap: 30px;
}

.xb-faq.style-tabs .faq-tabs-nav {
    flex: 0 0 300px;
}

.xb-faq.style-tabs .faq-tabs-content {
    flex: 1;
}

.xb-faq.style-tabs .faq-tab-link {
    display: block;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.xb-faq.style-tabs .faq-tab-link:hover,
.xb-faq.style-tabs .faq-tab-link.active {
    background: #4A90E2;
    color: #fff;
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion.wow.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Background image overlay */
.faq.bg_img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 0;
}

.faq.bg_img .container {
    position: relative;
    z-index: 1;
}