/**
 * FAQ Cards - Carbon Fields block, modern accordion design
 *
 * @package jGambling
 */

.jgambling-faq {
    margin: 32px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.jgambling-faq__heading {
    margin: 0 0 24px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.jgambling-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.jgambling-faq__card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.jgambling-faq__card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jgambling-faq__card--open {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.jgambling-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    transition: background 0.25s ease;
}

.jgambling-faq__question:hover {
    background: #f8fafc;
}

.jgambling-faq__card--open .jgambling-faq__question {
    background: #f8fafc;
    color: #000000;
}

.jgambling-faq__question-text {
    flex: 1;
    padding-right: 16px;
}


.jgambling-faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    color: #000000;
    transition: transform 0.25s ease;
}

.jgambling-faq__icon::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    top: 4px;
    left: 5px;
}

.jgambling-faq__card--open .jgambling-faq__icon {
    transform: rotate(180deg);
}


.jgambling-faq__answer {
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.jgambling-faq__answer--closed {
    max-height: 0;
}

.jgambling-faq__card--open .jgambling-faq__answer {
    max-height: 1000px;
}

.jgambling-faq__answer-inner {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

.jgambling-faq__answer-inner p:first-child {
    margin-top: 0;
}

.jgambling-faq__answer-inner p:last-child {
    margin-bottom: 0;
}


@media (max-width: 768px) {
    .jgambling-faq__heading {
        font-size: 24px;
    }

    .jgambling-faq__question {
        padding: 14px 16px;
        font-size: 16px;
    }

    .jgambling-faq__answer-inner {
        padding: 0 16px 16px;
        font-size: 14px;
    }
}
