/* Styling untuk halaman FAQ */

.faq-main-section {
    padding: 60px 0;
    text-align: center;
}

.faq-main-title {
    font-size: 3.5em; /* Ukuran font judul utama */
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.faq-main-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-top: 0;
}

/* Bar Pencarian */
.faq-search-bar {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
}

#faq-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: box-shadow 0.2s ease-in-out;
}

#faq-search-input:focus {
    border-color: #E24B4B;
    box-shadow: 0 0 0 3px rgba(226, 75, 75, 0.2);
}

.faq-search-bar .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Daftar Akordeon */
.faq-list-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    color: #333;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.2em; /* Ukuran yang ideal untuk ikon panah */
    color: #999;
    transition: transform 0.3s ease; /* Transisi untuk rotasi */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

/* State saat akordeon terbuka */
.faq-item.open .faq-answer {
    max-height: 500px; /* Nilai besar agar bisa menampung konten */
    padding: 15px 10px;
}
.faq-item.open .faq-toggle {
    transform: rotate(-180deg); /* Rotasi 180 derajat saat terbuka */
}

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


/* Bagian "Hubungi Kami" */
.faq-contact-section {
    background-color: #f8f8f8;
    padding: 60px 0;
    margin-top: 50px;
    text-align: center;
}

.faq-contact-section h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.faq-contact-section p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 25px;
}

.contact-button {
    display: inline-block;
    background-color: #E24B4B;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #c93b3b;
}

/* Penyesuaian responsif */
@media (max-width: 768px) {
    .faq-main-title {
        font-size: 2.5em;
    }
    .faq-search-bar {
        max-width: 90%;
    }
}