/* ! Template Download */
.templates-dl-section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.dl-section-header {
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.dl-section-title {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 3rem;
  font-weight: bold;
  position: relative;
  animation: fadeInDown 0.6s ease-out;
}

.dl-section-title::after {
  position: absolute;
  left: 0;
  right: 0;
  margin: 5px auto 0;
  content: " ";
  display: block;
  border-bottom: 4px solid var(--primary-color);
  border-radius: 100px;
  width: 80px;
  animation: expandWidth 0.8s ease-out 0.3s backwards;
}

.dl-section-title span {
  background: var(--primary-color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dl-section-subtitle {
  font-size: 1rem;
  color: #666;
  text-align: center;
}

.dl-templates-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  margin-bottom: 2rem;
}

.dl-templates-table tr {
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.2s ease;
}

.dl-templates-table tr:last-child {
  border-bottom: none;
}

.dl-templates-table tr:hover {
  background-color: rgb(245, 245, 245);
}

.dl-templates-table td {
  padding: 20px 30px;
  font-size: 1rem;
}

.download-cell {
  text-align: right;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 1rem;
}

.download-link:hover {
  color: var(--primary-color);
  background-color: rgba(209, 29, 35, 0.05);
}

.download-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  margin-bottom: 0.5rem;
}

/* SVG Download Icon */
.download-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.last-updated {
  text-align: right;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.4s forwards;
}

.go-back-template {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.6s ease-out;
}

.go-back-template a {
  display: block;
  padding: 16px 32px;
  background: var(--primary-color-gradient);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(209, 46, 46, 0.25);
  text-align: center;
  text-decoration: none;
  color: var(--text-color-alt);
}

/* ! Version Section */
.version-section {
  max-width: 1200px;
  animation: fadeInUp 0.4s ease 0.4s forwards;
  opacity: 0;
  margin-bottom: 2rem;
}

.version-section h2 {
  text-align: center;
  color: var(--text-color);
  font-size: 2rem;
  margin-bottom: 3rem;
}

.version-description {
  text-align: center;
  color: var(--text-color-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.version-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.version-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-color);
}

.version-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.version-card h3 {
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.version-number {
  color: var(--text-color-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Go Back BTN */
.go-back-template {
  margin-bottom: 5rem;
  margin-top: 0;
}

.go-back-template i {
  margin-right: 0.5rem;
}

.go-back-template a:hover {
  background: linear-gradient(135deg, var(--primary-hover-color), #b8181d);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(209, 46, 46, 0.35);
}

/* ! Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ! Responsive */
@media (max-width: 768px) {
  .templates-section {
    padding: 60px 5%;
  }

  .templates-table td {
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .download-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .templates-table td {
    padding: 14px 16px;
  }

  .template-size {
    font-size: 0.9rem;
  }

  .download-link {
    gap: 6px;
  }

  .download-icon {
    width: 16px;
    height: 16px;
  }
}
