/* Panel Dividers */
.panel-divider {
  margin: 30px 4vh 20px 2.75vh;
  padding: 15px 0;
  position: relative;
}

.panel-divider h2 {
  color: white;
  font-family: "Archivo Black", serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  text-align: center;
  margin: 0;
  padding: 0 20px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Dropdown Header Styles */
.dropdown-header {
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  border: none;
  border-radius: 20px;
}

.dropdown-header:hover {
  transform: scale(1.02);
}

.dropdown-header:focus,
.dropdown-header:focus-visible,
.dropdown-header:focus-within {
  outline: none;
  border: none;
  box-shadow: none;
}

.dropdown-header:active {
  outline: none;
  border: none;
}

.dropdown-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  outline: none;
  border: none;
}

.dropdown-header h2:focus,
.dropdown-header h2:focus-visible,
.dropdown-header h2:active {
  outline: none;
  border: none;
  box-shadow: none;
}

.dropdown-header h2 span:focus,
.dropdown-header h2 span:focus-visible,
.dropdown-header h2 span:active {
  outline: none;
  border: none;
  box-shadow: none;
}

.dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.dropdown-header.active .dropdown-arrow {
  transform: rotate(180deg);
  color: white;
}

/* Remove the white line completely */
.panel-divider h2::after {
  display: none;
}

/* Add background color styling for closed state */
.dropdown-header:not(.active) h2 span {
  background: rgba(120, 120, 120, 0.8);
  backdrop-filter: blur(30px);
  border-radius: 20px;
  transition: 0.3s ease;
  border: 1px solid rgba(160, 160, 160, 0.3);
}

.panel-divider h2 span {
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

/* Dropdown Content Styles */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-content.show {
  max-height: 5000px; /* Large enough to accommodate all content */
}

/* Animation for dropdown content */
.dropdown-content > * {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.dropdown-content.show > * {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for multiple items */
.dropdown-content.show > *:nth-child(1) { transition-delay: 0.1s; }
.dropdown-content.show > *:nth-child(2) { transition-delay: 0.2s; }
.dropdown-content.show > *:nth-child(3) { transition-delay: 0.3s; }
.dropdown-content.show > *:nth-child(4) { transition-delay: 0.4s; }
