/* Custom Accordion header styling */
#eventlist h3 .accordeon_icon {
    font-size: 1.8em;
    height: 1em;
    width: 1em;
    margin-right: 0.5em;
    border: 2px solid
    flex-shrink: 0; /* do not allow the icon to shrink */
    margin-right: 10px;
    border-radius: 8px;
    padding: 4px;
    opacity: 0.5;
}

/* Ensuring the header text does not break onto a new line */
#eventlist h3 .header-text {
    display: inline-block;
    /*white-space: nowrap;   */
}

#eventlist h3 {
    font-size: 1em;
    margin: 0;
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    border: 1px solid #DDDDDD;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 2.5em; /* space for the chevron icon */
}

/* Custom Accordion panel styling */
#eventlist div {
    border: 1px solid #DDDDDD;
    border-top: none;
    padding: 10px;
    background-color: #fff;
}


/* Pseudo-element for accordion icons */
#eventlist h3::after {
    font-family: dashicons;
    /* Use dashicons for a downward pointing arrow (closed state) */
    content: "\f347" ; /*"\f140"; f347 Check your dashicons reference; adjust as needed */
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    transition: transform 0.3s ease;
}

/* When the accordion panel is open, the header gets the active class */
#eventlist .ui-accordion-header-active::after {
    content: "\f347" ; /* Dashicons for upward pointing arrow; adjust if necessary */
    /* Optionally, rotate the icon */
    transform: translateY(-50%) rotate(180deg);
}

    .duplicate_info {
        font-size: 0.7rem;
        color: #666666;
    }



