/* Container Grid */
.wp-block-zubair-faq-grid.cfg-grid-container {
    display: grid;
    /* Essential for layout */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    /* User overrides for padding/margin will apply to this class automatically via WP */
}

/* Individual Item */
.wp-block-zubair-faq-item.cfg-item {
    background: #ffffff;
    padding: 30px 40px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Font styles from block supports will override inheritence if set */
}

/* Allow user background color overrides to work */
.wp-block-zubair-faq-item.cfg-item.has-background {
    /* If user sets background, let WP handle it */
}

.wp-block-zubair-faq-item.cfg-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Question Styling */
.cfg-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.cfg-q-text {
    font-weight: 800;
    /* Default bold */
    font-size: 18px;
    /* Default size */
    color: #000;
    text-align: center;
    width: 100%;
}

.cfg-icon {
    font-size: 24px;
    font-weight: 300;
    margin-left: 15px;
    display: none;
    /* Hidden by default to match clean design */
}

/* Answer Styling */
.cfg-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    opacity: 0.8;
}

/* Editor visibility fix */
.cfg-answer-editor-visible {
    border-top: 1px dashed #ccc;
    margin-top: 10px;
    padding-top: 10px;
    color: #666;
}

.cfg-answer-content {
    padding-top: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    border-top: 1px solid #eee;
    margin-top: 15px;
    text-align: left;
}

/* Active State */
.wp-block-zubair-faq-item.cfg-item.active .cfg-answer {
    max-height: 1000px;
    /* Allow expansion */
    transition: max-height 0.5s ease-in;
}

/* Responsive */
@media (max-width: 768px) {
    .wp-block-zubair-faq-grid.cfg-grid-container {
        grid-template-columns: 1fr;
    }
}