/* assets/css/faq.css */

.faq-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h2 {
    color: #ebb745;
    font-size: 2.2em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.faq-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ebb745;
}

.faq-header p {
    color: #666;
    font-size: 1.1em;
    max-width: 600px;
    margin: 20px auto 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.faq-question {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    transition: background 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    flex: 1;
    font-weight: 500;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ebb745;
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: white;
}

.faq-answer.active {
    padding: 20px 25px;
    max-height: 800px;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.faq-item.active {
    border-color: #ebb745;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: #dd8729;
}

.faq-item.active .faq-question {
    background: #fffbe6;
}

[itemprop="mainEntity"] {
    border-left: 4px solid transparent;
}

.faq-item.active[itemprop="mainEntity"] {
    border-left-color: #ebb745;
}

@media (max-width: 768px) {
    .faq-section {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .faq-header h2 {
        font-size: 1.8em;
    }
    
    .faq-question {
        padding: 15px 18px;
    }
    
    .faq-question h3 {
        font-size: 0.95em;
    }
    
    .faq-answer.active {
        padding: 15px 18px;
    }
    
    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 16px;
        margin-right: 12px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.5s ease forwards;
}

.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }
.faq-item:nth-child(6) { animation-delay: 0.5s; }