.accordion-item {
  border-bottom: 1px solid #e5e7eb;
  transition: border-color 0.2s;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.25rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 550;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  font-family: inherit;
}
.accordion-toggle:hover {
  color: #0b1b2f;
}

.accordion-content {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    opacity 0.2s ease;
  padding: 0 0.25rem;
  opacity: 0;
}

/* Rotate icon and reveal content based on aria-expanded */
.accordion-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.accordion-toggle[aria-expanded="true"] + .accordion-content {
  display: block;
  max-height: 300px;
  padding: 0rem 0.25rem 0.65rem 0.25rem;
  opacity: 1;
}
