/* ==========================================================================
   Keron FAQ Manager - Frontend Styles
   ========================================================================== */

.keron-faq-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

.keron-faq-hub-title {
    background-color: #f8fafc;
    color: #0f172a;
    padding: 15px 20px;
    border-left: 5px solid #0284c7;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.keron-faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.keron-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.keron-faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.keron-faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    list-style: none; /* Hides default native arrow */
}

/* Hide webkit summary markers */
.keron-faq-question::-webkit-details-marker {
    display: none;
}

.keron-faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    padding-right: 20px;
}

.keron-faq-question .faq-icon {
    font-size: 1.5rem;
    color: #0284c7;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.keron-faq-item[open] .faq-icon {
    transform: rotate(45deg); /* Turns the + into an x */
}

.keron-faq-item[open] .keron-faq-question {
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.keron-faq-answer {
    padding: 20px;
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

.keron-faq-answer p {
    margin-top: 0;
}

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