/**
 * FAQ Section Styles
 */

.faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(16, 117, 134, 0.1);
    border: 1px solid rgba(70, 181, 229, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(16, 117, 134, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(70, 181, 229, 0.05);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #107586;
    margin: 0;
    flex: 1;
    padding-right: 20px;
    font-family: 'Exo 2', sans-serif;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #107586, #46B5E5);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 0 30px 25px;
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Active state */
.faq-item.active .faq-question {
    background-color: rgba(70, 181, 229, 0.05);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-toggle svg {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-wrapper {
        max-width: 100%;
    }
    
    .faq-list {
        gap: 10px;
    }
    
    /* Initially hide FAQs beyond the third on mobile */
    .faq-item:nth-child(n+4) {
        display: none;
    }
    
    .faq-item.show-all {
        display: block;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .faq-toggle {
        width: 28px;
        height: 28px;
    }
    
    .faq-toggle svg {
        width: 16px;
        height: 16px;
    }
    
    .faq-answer p {
        padding: 0 20px 15px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .faq-item.active .faq-answer {
        max-height: 300px;
    }
}

/* Show more button styles */
.faq-show-more-wrapper {
    text-align: center;
    margin-top: 20px;
}

.faq-show-more {
    padding: 10px 30px;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .faq-question {
        padding: 12px 15px;
    }
    
    .faq-question h3 {
        font-size: 14px;
    }
    
    .faq-answer p {
        padding: 0 15px 12px;
        font-size: 13px;
    }
}