﻿
/* ===== FAQ SECTION - STYLISH & MATCHING ===== */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 248, 255, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0066CC, #00A86B);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    color: #0066CC;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #00A86B;
    border-radius: 2px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.2);
}

.faq-item.active {
    border-left: 4px solid #00A86B;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

.faq-question {
    padding: 22px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: rgba(0, 102, 204, 0.02);
}

.faq-question h3 {
    color: #01411C;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0066CC, #00A86B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #00A86B, #01411C);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 168, 107, 0.03);
}

.faq-answer-content {
    padding: 0 25px 25px;
    color: #333333;
    line-height: 1.7;
}

.faq-answer-content p {
    margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul, 
.faq-answer-content ol {
    margin: 1rem 0;
    padding-left: 20px;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
}

.faq-answer-content strong {
    color: #01411C;
    font-weight: 600;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2.5rem;
}

.faq-category-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid rgba(0, 102, 204, 0.2);
    border-radius: 50px;
    color: #0066CC;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.faq-category-btn:hover {
    background: rgba(0, 102, 204, 0.05);
    border-color: #0066CC;
    transform: translateY(-2px);
}

.faq-category-btn.active {
    background: #0066CC;
    color: white;
    border-color: #0066CC;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* FAQ Search */
.faq-search {
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid rgba(0, 102, 204, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    color: #333333;
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.faq-search .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #0066CC;
    font-size: 1.2rem;
}

/* FAQ Stats */
.faq-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.faq-stat-item {
    text-align: center;
    padding: 20px;
    min-width: 150px;
}

.faq-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066CC;
    margin-bottom: 5px;
}

.faq-stat-label {
    color: #333333;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact CTA */
.faq-contact {
    text-align: center;
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 168, 107, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.faq-contact h3 {
    color: #01411C;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.faq-contact p {
    color: #333333;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* FAQ Variations */
.faq-item.important {
    border-left: 4px solid #FF6B6B;
}

.faq-item.important .faq-icon {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.faq-item.important .faq-question h3 {
    color: #D63031;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .faq-container {
        padding: 0 15px;
    }
    
    .faq-question {
        padding: 18px 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer-content {
        padding: 0 20px 20px;
    }
    
    .faq-categories {
        gap: 10px;
    }
    
    .faq-category-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    
    .faq-search {
        margin-bottom: 2rem;
    }
    
    .faq-stats {
        gap: 20px;
        margin-top: 2rem;
    }
    
    .faq-stat-item {
        min-width: 120px;
        padding: 15px;
    }
    
    .faq-stat-number {
        font-size: 2rem;
    }
    
    .faq-contact {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 16px 18px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-category-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .faq-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .faq-stat-item {
        width: 100%;
        max-width: 200px;
    }
}

/* Animation for FAQ items */
@keyframes fadeInFAQ {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInFAQ 0.5s ease forwards;
}

/* JavaScript Interactive Classes */
.faq-item.active .faq-answer {
    max-height: 500px;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
    background: rgba(0, 102, 204, 0.03);
    border-radius: 12px;
    border: 1px dashed rgba(0, 102, 204, 0.2);
}

.highlight {
    background-color: rgba(255, 235, 59, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
}