/* ==========================================================================
   DangUy FAQ Module - Accordion Styles
   Thiết kế giao diện Khối câu hỏi thường gặp (FAQ) chuẩn UI phẳng
   ========================================================================== */

.danguy-faq-section {
    margin: 25px 0;
    padding: 0;
    font-family: inherit;
}

.danguy-faq-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dg-primary, #8b0000);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.danguy-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Từng khối câu hỏi */
.danguy-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.danguy-faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.danguy-faq-item.is-open {
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Nút bấm câu hỏi */
.danguy-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    outline: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    user-select: none;
    margin: 0;
}

.danguy-faq-question:hover {
    color: var(--dg-primary-light, #c62828);
}

.danguy-faq-item.is-open .danguy-faq-question {
    color: var(--dg-primary, #8b0000);
}

/* Icon mũi tên gập/mở */
.danguy-faq-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #6b7280;
    transition: transform 0.25s ease, color 0.2s ease;
}

.danguy-faq-icon i,
.danguy-faq-icon svg {
    font-size: 14px;
}

.danguy-faq-item.is-open .danguy-faq-icon {
    transform: rotate(180deg);
    color: var(--dg-primary-light, #c62828);
}

/* Nội dung câu trả lời */
.danguy-faq-answer {
    display: none;
    padding: 0 20px 18px 20px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #4b5563;
    border-top: 1px solid transparent;
}

.danguy-faq-item.is-open .danguy-faq-answer {
    display: block;
}

.danguy-faq-answer p {
    margin: 0 0 10px 0;
}

.danguy-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .danguy-faq-question {
        padding: 14px 16px;
        font-size: 0.98rem;
    }
    .danguy-faq-answer {
        padding: 0 16px 14px 16px;
        font-size: 0.92rem;
    }
}
