/* =========================================
   FAQ PAGE STYLING
   ========================================= */

.faq-main-section {
    background-color: #f8fafc;
    padding: 50px 20px;
}

.faq-layout-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
    align-items: start;
}

/* Container Accordion */
.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Item Accordion */
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Accordion saat Aktif (Terbuka) */
.faq-item.active {
    border-color: #dc2626;
    box-shadow: 0 8px 20px -4px rgba(220, 38, 38, 0.1);
}

/* Tombol Header Pertanyaan */
.faq-header {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.faq-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.faq-title i {
    color: #dc2626;
    font-size: 1.1rem;
}

/* Rotasi Ikon Panah */
.faq-icon {
    font-size: 0.9rem;
    color: #64748b;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #dc2626;
}

.faq-item.active .faq-title {
    color: #dc2626;
}

/* Body Jawaban (Smooth Slide Effect) */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    background-color: #fafafa;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-body {
    max-height: 300px; /* Lebar maksimum yang cukup untuk paragraf */
    padding: 20px 24px;
    border-top-color: #f1f5f9;
}

.faq-body p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* Text Bantuan Sidebar */
.sidebar-help-text {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Responsif Layar Mobile */
@media (max-width: 1024px) {
    .faq-layout-grid {
        grid-template-columns: 1fr;
    }
}