/***************************
 * UNIVERSAL ACCORDION COMPONENT
 ***************************/

/* Accordion root */
.accordion {
    width: 100%;
    display: block !important;
}

/* Each accordion item */
.accordion-item {
    display: block !important;
    border-bottom: 1px solid #ddd;
    margin: 0;
    padding: 0;
}

/* Accordion header button */
.accordion-header {
    width: 100%;
    display: block !important;
    background: #faf7ee; /* default even color */
    color: #000000;
    cursor: pointer;
    padding: 12px 18px;
    margin-top: 10px;
    border: none;
    text-align: left;
    font-size: 15px;
    line-height: 1.3;
    border-radius: 10px;
    position: relative;
    transition: background-color 0.25s ease;
}

/* Alternating colors */
.accordion-item:nth-child(odd) .accordion-header {
    background-color: #d2bfab; /* odd */
}

.accordion-item:nth-child(even) .accordion-header {
    background-color: #faf7ee; /* even */
}

/* Hover + active state */
.accordion-header:hover,
.accordion-header.active {
    background-color: #ccc;
}

/* Plus / minus icon */
.accordion-header::after {
    content: '+';
    font-weight: bold;
    color: #555;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.accordion-header.active::after {
    content: '−';
}

/* Accordion panel (closed by default) */
.accordion-panel {
    display: block !important;
    max-height: 0 !important;
    overflow: hidden;
    background: #ffffff;
    padding: 0 18px;
    transition: max-height 0.3s ease-out;
}

/* Open state */
.accordion-panel.open {
    max-height: 2000px !important; /* large enough to fit content */
    overflow: visible;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Inner content */
.accordion-inner {
    display: block !important;
    padding: 0.5rem 0 1rem 0;
    line-height: 1.6;
}

/***************************
 * FLEX ISOLATION FIX
 * (Prevents flex inheritance without breaking animation)
 ***************************/
.accordion,
.accordion-wrapper {
    display: block !important;
    flex: none !important;
}

/* Prevent flex inheritance from BoldGrid/Crio */
.accordion,
.accordion-wrapper {
    flex: none !important;
}

.accordion-panel {
    overflow: hidden;
}

.accordion-panel.open {
    overflow: visible !important;
}


