.custom-accordion .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1d4c43; /* Dark blue */
    color: white;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
    position: relative;
    font-weight: bold;
    transition: border-radius 0.3s ease;
    height: 76px;
}

.custom-accordion .accordion-header .icon {
    width: 30px;
    height: 30px;
    background-color: white;
    color: #004080; /* Matches header background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.custom-accordion .accordion-content {
    display: none;
    padding: 15px;
    border: 0px solid #ddd;
    background-color: white;
    color: black;
    border-radius: 0 0 10px 10px;
}

.custom-accordion .accordion-item.open .accordion-header {
    border-radius: 10px 10px 0 0;
}

.custom-accordion .accordion-item.open .accordion-content {
    display: block;
}

.custom-accordion .accordion-item.open .icon {
    transform: rotate(45deg);
}

/* Added by update: spacing between accordion items and preserve line breaks */
.custom-accordion .accordion-item + .accordion-item { 
    margin-top: 10px; 
}
.custom-accordion .accordion-content {
    white-space: pre-wrap; /* show original line breaks */
}

/* Ensured visible gap between multiple accordion items */
.custom-accordion { display: block; }
.custom-accordion .accordion-item { margin: 0; }
.custom-accordion .accordion-item:not(:last-child) { margin-bottom: 10px; }


/* Spacing & layout updates */
.custom-accordion {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    gap: 10px;
}
.custom-accordion .accordion-item { margin: 0 !important; }
