/* FAQ Widget Styles */

.faq-section {
    margin: 40px 0 0 0;
    padding: 20px 0;
}

.faq-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    font-weight: 600;
}

/* Accordion Style */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 1.1em;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover,
.faq-question:focus {
    background-color: #f8f9fa;
}

.faq-question[aria-expanded="true"] {
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

.faq-question-text {
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    color: #666;
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer[hidden] {
    display: block;
}

.faq-answer:not([hidden]) {
    max-height: 500px;
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* List Style (non-accordion) */
.faq-list .faq-item {
    margin-bottom: 30px;
    padding: 25px;
}

.faq-list .faq-question {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding: 0;
    background: none;
    cursor: default;
    display: block;
}

.faq-list .faq-answer {
    padding: 0;
    max-height: none;
    overflow: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-section {
        margin: 30px 0;
    }
    
    .faq-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    
    .faq-answer:not([hidden]) {
        padding: 15px 20px;
    }
    
    .faq-list .faq-item {
        padding: 20px;
    }
}

/* Print styles */
@media print {
    .faq-toggle {
        display: none;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 10px 25px !important;
        display: block !important;
    }
    
    .faq-item {
        page-break-inside: avoid;
    }
}
