.nasaa-notes-accordion-container {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.nasaa-notes-column {
  display: flex;
  width: 100%;
  flex-direction: column;
  /* Prevents flex items from overflowing */
}

.nasaa-notes-column .accordion-item {
  margin: 0px;
  overflow: hidden;
  border-width: 1px;
  border-left-width: 0px;
  border-right-width: 0px;
  border-top-width: 0px;
  border-style: solid;
  --tw-border-opacity: 1;
  border-color: rgb(203, 213, 225, var(--tw-border-opacity, 1));
  padding: 0px;
}

.nasaa-notes-column .accordion-item:last-child {
  border-bottom: none;
}

.nasaa-notes-column .accordion-item .accordion-header {
  margin: 0px;
  padding: 0px;
}

.nasaa-notes-column .accordion-item .accordion-header button {
  font-size: 23px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-family: "avenir-next-lt-pro-condensed", Sans-serif;
  color: #510856;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  background: none;
  border: none;
  text-align: left;
  transition: all 0.3s ease;
}

.nasaa-notes-column:last-child {
  margin-bottom: 0;
}

.accordion-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.accordion-button:not(.collapsed) .accordion-icon {
  transform: rotate(180deg);
}

.accordion-collapse {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;
}

.accordion-collapse.show {
  max-height: 500px; /* Adjust based on your content needs */
}

.accordion-body {
  --tw-bg-opacity: 0.1;
  background: rgba(81, 8, 86, var(--tw-bg-opacity, 1));
  padding: 0px;
  --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);
}

.accordion-body .newsletter-children-list {
  margin: 0px;
  display: flex;
  list-style-type: none;
  flex-direction: column;
  padding: 0px;
  padding: 1rem;
}

.accordion-body .newsletter-children-list li {
  margin: 0px;
  border-width: 1px;
  border-left-width: 0px;
  border-right-width: 0px;
  border-top-width: 0px;
  border-style: solid;
  padding: 0px;
}

.accordion-body .newsletter-children-list li:last-child {
  border-bottom: none;
}

.accordion-body .newsletter-children-list a {
  font-weight: bold !important;
  text-transform: uppercase !important;
  border-radius: 0px;
  border-style: none;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  text-indent: 0.25rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 400;
}

.accordion-body .newsletter-children-list a:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(226, 232, 240, var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(15, 23, 42, var(--tw-text-opacity, 1));
}

.accordion-body .newsletter-children-list a {
  color: #510856;
  font-family: "avenir-next-lt-pro-condensed", Sans-serif;
}

.newsletter-children-list li {
  margin-bottom: 0.75rem;
}

.newsletter-children-list li:last-child {
  margin-bottom: 0;
}

.newsletter-children-list a {
  display: block;
  padding: 0.5rem 1rem;
  color: #3b82f6;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.newsletter-children-list a:hover {
  background: #eff6ff;
  border-left-color: #3b82f6;
  color: #1d4ed8;
}

.no-children {
  color: #6b7280;
  font-style: italic;
  margin: 0;
}

/* Layout visibility controls */

.desktop-layout {
  display: flex;
}

.mobile-layout {
  display: none;
  flex-direction: column;
  gap: 0;
}

/* Mobile responsiveness */

@media (max-width: 640px) {
  .desktop-layout {
    display: none;
  }
  .mobile-layout {
    display: flex;
  }
}

@media (max-width: 768px) {
  .accordion-button {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  .accordion-body {
    padding: 1rem;
  }
  .newsletter-children-list a {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Tablet responsiveness */

@media (max-width: 1024px) and (min-width: 769px) {
  .nasaa-notes-accordion-container {
    gap: 0.75rem;
  }
}
