/* Downloads Accordion Component */
.downloads-accordion {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* Download Section */
.download-section {
  margin-bottom: 48px;
}

.download-section:last-child {
  margin-bottom: 0;
}

/* Section Header Button */
.download-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  border-top: 0.5px solid var(--color-divider);
  padding: 12px 0;
  cursor: pointer;
  color: var(--color-off-black);
  text-align: left;
  margin-bottom: 48px;
}

/* .download-header.transitioning {
  border-top: none;
} */

.download-header:hover {
  opacity: 0.7;
}

.download-header .chevron-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease-out;
  flex-shrink: 0;
}

.download-header[aria-expanded='false'] .chevron-icon {
  transform: rotate(180deg);
}

/* Download Items List */
.download-items-list {
  max-height: 5000px;
  opacity: 1;
  overflow: hidden;
}

.download-items-list.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.download-items-list.collapsing {
  animation: fadeOutUp 500ms ease-out forwards;
  max-height: 5000px;
}

.download-items-list.expanding {
  animation: fadeInDown 500ms ease-out forwards;
  max-height: 5000px;
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 0.5px solid var(--color-divider);
  font-family: 'Wastberg Grotesk', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 20px;
  color: var(--color-off-black);
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  text-align: left;
}

button.download-item:hover {
  opacity: 0.7;
}

.download-item-title {
  width: 211px;
  flex-shrink: 0;
}

.download-item-title .download-item-link {
  justify-content: flex-start;
}

.download-item-format {
  width: 219px;
  flex-shrink: 0;
}

.download-item-size {
  width: 218px;
  flex-shrink: 0;
}

.download-item-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 20px;
  color: var(--color-off-black);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.download-item-link:hover {
  opacity: 0.7;
}

.download-item-link svg {
  width: 20px;
  height: 20px;
}

/* Download All Button */
.download-all-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-off-black);
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.download-all-btn:hover {
  opacity: 0.7;
}

.download-all-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.download-left {
  justify-content: flex-start !important;
}

/* Responsive */
@media (max-width: 768px) {
  .download-section {
    margin-bottom: 32px;
  }

  .download-item {
    gap: 8px;
  }

  .download-item-title {
    flex: 1;
    width: auto;
  }

  .download-item-format,
  .download-item-size {
    display: none;
  }

  .download-item-link {
    flex: 0 0 auto;
  }
}
