/* ==============================================
   FAQ Accordion – details/summary (CSS only)
   Plugin: AI SEO Writer
   ============================================== */

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.faq-item + .faq-item {
    margin-top: 0;
}

.faq-question {
    display: block;
    padding: 14px 44px 14px 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    list-style: none;
    background: #f7f9fc;
    transition: background 0.2s;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

/* Mũi tên xoay */
.faq-question::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.25s ease;
}

.faq-item[open] > .faq-question::after {
    transform: translateY(-35%) rotate(-135deg);
}

.faq-item[open] > .faq-question {
    background: #eef3fb;
    color: #1a56db;
    border-bottom: 1px solid #d0ddf5;
}

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

.faq-answer {
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    border-top: none;
}

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