/* FAQ Section Styling */
.faq-section, .faq {
    padding: 80px 0;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.faq-section::before, .faq::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.faq-section::after, .faq::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent-gradient);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.faq-container, .faq-grid {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 4px solid transparent;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-item.active {
    border-left: 4px solid #2ecc71;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.15);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
    flex: 1;
}

.faq-item:hover .faq-question h3 {
    color: #27ae60;
}

.faq-item.active .faq-question h3 {
    color: #2ecc71;
}

.faq-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.faq-item:hover .faq-icon {
    background: #27ae60;
    color: white;
    transform: rotate(90deg);
}

.faq-item.active .faq-icon {
    background: #2ecc71;
    color: white;
    transform: rotate(180deg);
}

.faq-icon .fa-minus {
    display: none;
}

.faq-item.active .faq-icon .fa-plus {
    display: none;
}

.faq-item.active .faq-icon .fa-minus {
    display: block;
}

/* Simplified FAQ answer styling */
.faq-answer {
    display: none;
    padding: 0 25px 20px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--dark-gray);
}

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

.faq-answer a {
    color: #2ecc71;
    font-weight: 500;
    position: relative;
}

.faq-answer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #2ecc71;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.faq-answer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* FAQ Category Tabs */
.faq-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.faq-tab {
    padding: 8px 20px;
    margin: 0 5px 10px;
    background: var(--white);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-tab:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-tab.active {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Search FAQ */
.faq-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
}

.faq-search input {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px;
    border: none;
    border-radius: 30px;
    background: var(--white);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    font-size: 16px;
    transition: all 0.3s ease;
}

.faq-search input:focus {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    outline: none;
}

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

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

.faq-item.active .faq-answer {
    animation: fadeInDown 0.5s forwards;
}

.faq-item.active {
    animation: greenPulse 1.5s infinite;
}

/* Ripple effect */
.faq-question {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    background: rgba(46, 204, 113, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    width: 100px;
    height: 100px;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes greenPulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Highlight for search results */
.highlight {
    background-color: rgba(46, 204, 113, 0.2);
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 500;
    color: #27ae60;
}

/* Animation for FAQ items */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 15px;
    }
}
