.accordion-block {
  margin: 10px 0 0 0;
  overflow: hidden;
  /* background-color: white; */
  transition: box-shadow 0.2s ease;
  border-bottom: 2px solid var(--charcoal) !important;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .accordion-block:nth-of-type(1) {
  margin-top: 80px;
  border-top: 2px solid var(--charcoal) !important;
}

.accordion-header {
  padding: 20px 0 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  user-select: none;
  transition: background-color 0.2s ease;
  border: none;
  outline: none;
  background-color: transparent !important;
}

.accordion-header:hover {
}

.accordion-header:focus {
  background-color: none;
  outline: none;
}

.accordion-header-text {
  flex-grow: 1;
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 600;
  font-family: "proxima-soft", sans-serif;
  /* color: var(--darkest); */
}

.accordion-icon {
  display: block;
  display: flex;
  justify-content: center;
  align-items: center;
}

.accordion-icon svg path {
  transform-origin: center center;
  transition: transform 0.4s ease-in-out;
}

.accordion-icon.expanded svg path {
  margin: 0;
  padding: 0;
  transform: rotate(135deg);
  transform-origin: center;
}

.accordion-icon.expanded svg rect {
  fill: var(--medium);
}

.accordion-content {
  /* border-top: 1px solid #ddd; */
  /* background-color: white; */
  overflow: hidden;
  transition: max-height 0.3s ease-in;
}

.accordion-content.collapsed {
  max-height: 0;
  border-top: none;
  transition: max-height 0.3s ease-in;
}

.accordion-content:not(.collapsed) {
  max-height: 2000px;
}

.accordion-content-inner {
  padding: 24px;
}

.accordion-content-inner p a {
  transition: all ease-in 0.3s;
}

.accordion-content-inner > *:first-child {
  margin-top: 0;
}

.accordion-content-inner > *:last-child {
  margin-bottom: 0;
}

.accordion-content-inner > * {
  width: 90%;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .accordion-header {
    padding: 15px 18px;
  }

  .accordion-content-inner {
    padding: 18px;
  }

  .accordion-header-text {
    font-size: 24px;
  }
  .accordion-content-inner > * {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .accordion-content-inner > * {
    width: 100%;
  }

  .accordion-header {
    padding: 12px 0px;
  }

  .accordion-content-inner {
    padding: 15px;
  }

  .accordion-header-text {
    font-size: 20px;
  }
}

/* Animation for smoother transitions */
@media (prefers-reduced-motion: no-preference) {
  .accordion-content {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .accordion-content.collapsed {
    transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .accordion-block {
    border-width: 2px;
  }

  .accordion-header:focus {
    outline-width: 3px;
  }
}
