/* Templates Section */
.templates {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.template-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.template-slider {
  width: 100%;
  overflow: hidden;
}

.template-track {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.template-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.2s ease;
}

.scroll-button:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scroll-button.prev {
  left: -20px;
}

.scroll-button.next {
  right: -20px;
}

.scroll-button svg {
  width: 24px;
  height: 24px;
  color: #4b5563;
}

.template-card {
  flex: 0 0 300px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.template-card:hover {
  transform: translateY(-5px);
}

.template-image {
  flex: 1;
  height: 400px;
  overflow: hidden;
}

.template-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.template-card h3 {
  background: var(--glass-bg);
  margin: 0;
  padding: 0.75rem;
  text-align: center;
  backdrop-filter: blur(8px);
  font-size: 1rem;
  font-weight: 500;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
