/* Template Download Section - trapezoid banner, Figma-aligned */

.template-download-section-trapezoid {
  --slant-opposite-side: calc(100vw * 0.05235602);
  --banner-background-color: var(--color-background-2);
  --banner-padding: 80px 16px;
  --banner-clip-path: polygon(0 0, 100% var(--slant-opposite-side), 100% 100%, 0 calc(100% - var(--slant-opposite-side)));
  --banner-shadow-color: transparent;
}

/* When used without trapezoid wrapper (plain template), apply background and padding */
.template-download-section:not(.trapezoid-banner-wrapper) {
  background-color: var(--color-background-2);
  padding: var(--banner-padding);
  width: 100%;
}

.template-download-section .trapezoid-banner-content {
  align-items: center;
}

.template-download-section .template-download-section-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.template-download-section .template-download-title {
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  margin: 0;
  color: var(--color-accent-2);
}

.template-download-section .template-download-description {
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  color: var(--color-accent-4);
  margin: 8px 0 0 0;
}

.template-download-section .template-download-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  padding: 0;
  list-style: none;
  margin: 32px 0 0 0;
}

.template-download-section .template-download-list.single-item {
  justify-items: center;
}

.template-download-section .template-download-list.single-item .template-download-item {
  max-width: 600px;
  width: 100%;
}

.template-download-section .template-download-item {
  background-color: var(--color-background-1);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  overflow: hidden;
  transition: all 0.3s ease;
}

.template-download-section .template-download-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.template-download-section .template-download-link {
  display: flex;
  align-items: center;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
  gap: 16px;
}

.template-download-section .template-download-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-download-section .template-download-content {
  flex: 1;
  min-width: 0;
}

.template-download-section .template-download-name {
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  margin: 0 0 4px 0;
  color: var(--color-accent-4);
}

.template-download-section .template-download-description-item {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  color: var(--color-accent-4);
  margin: 0;
  opacity: 0.85;
}

.template-download-section .template-download-button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--color-accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.template-download-section .template-download-button img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Tablet and up */
@media only screen and (min-width: 768px) {
  .template-download-section {
    --banner-padding: 140px 16px;
  }

  .template-download-section .template-download-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .template-download-section .template-download-list.single-item {
    grid-template-columns: 1fr;
  }

  .template-download-section .template-download-link {
    padding: 24px;
    gap: 24px;
  }
}

/* Desktop and up */
@media only screen and (min-width: 1280px) {
  .template-download-section .template-download-title {
    font-size: 45px;
  }
}
