/* assets/css/faq.css */

/* Hero Section */
.faq-hero {
    background: linear-gradient(rgba(13, 17, 23, 0.6), rgba(13, 17, 23, 0.6)), url('../images/background-faq.jpg') no-repeat center center/cover;
    padding: 6rem 0;
    text-align: center;
    color: #fff;
}

.faq-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Bagian Daftar FAQ */
.faq-list-section {
    background-color: var(--bg-secondary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-primary-color);
}

.faq-category-title:first-of-type {
    margin-top: 0;
}

.faq-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    user-select: none; /* Mencegah teks terseleksi saat diklik */
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-primary-color);
    transition: color 0.3s;
}

.faq-item.active .faq-question h3,
.faq-question:hover h3 {
    color: var(--accent-color);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--text-secondary-color);
    transition: transform 0.4s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary-color);
}

.faq-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Sesuaikan jika jawaban sangat panjang */
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 2rem;
    }
    .faq-question {
        padding: 1.25rem;
    }
    .faq-question h3 {
        font-size: 1rem;
    }
    .faq-answer p {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}
