/* Templates Page - Simple & Clean Design */

/* Base Styles */
.templates-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background: #fafafa;
}

/* Hero Section */
.templates-hero {
  background: #ffffff;
  color: #1f1f1f;
  padding: clamp(80px, 10vw, 150px) 0px 0px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 2vw, 40px);
  width: 100%;
  min-height: clamp(600px, 50vw, 961px);
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

.templates-hero::before {
  content: '';
  position: absolute;
  width: 511.6px;
  height: 512.58px;
  left: 121.47px;
  top: 205.45px;
  background: linear-gradient(170.47deg, #DEA3FA 3%, #F3CC56 86.29%);
  filter: blur(136.763px);
  transform: matrix(0.2, 0.98, 0.98, -0.2, 0, 0);
  z-index: 1;
}

.templates-hero::after {
  content: '';
  position: absolute;
  width: 593.16px;
  height: 506.31px;
  left: 1041.41px;
  top: 358.65px;
  background: linear-gradient(170.47deg, #DEA3FA 3%, #F3CC56 86.29%);
  filter: blur(136.763px);
  transform: matrix(-0.91, 0.41, 0.42, 0.91, 0, 0);
  z-index: 1;
}

.templates-hero__container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(40px, 8vw, 80px);
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
  position: relative;
  z-index: 2;
}

.templates-hero__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: clamp(24px, 3vw, 32px);
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
}

.templates-hero__visual {
  width: 100vw;
  height: clamp(300px, 25vw, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: clamp(16px, 2vw, 24px);
  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-left: calc(-50vw + 50%);
}

.templates-hero__badge {
  display: inline-block;
  background: transparent;
  color: #1f1f1f;
  padding: clamp(6px, 0.6vw, 8px) clamp(16px, 1.7vw, 24px);
  border-radius: clamp(30px, 3.5vw, 50px);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #1f1f1f;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 0px;
}

.templates-hero__title {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: clamp(1.1, 1.2, 1.3);
  text-align: center;
  color: #1f1f1f;
  margin: 0px;
  max-width: 800px;
}

.templates-hero__subtitle {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  text-align: center;
  color: #1f1f1f;
  margin: 0;
  width: 569px;
  height: 54px;
}

.templates-hero__stats {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.templates-hero__stat {
  text-align: left;
}

.templates-hero__stat-number {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1;
  margin-bottom: 4px;
}

.templates-hero__stat-label {
  font-size: clamp(12px, 1vw, 14px);
  color: #666666;
  font-weight: 400;
}

.templates-hero__buttons {
  width: 456px;
  height: 56px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

/* Templates Carousel */
.templates-carousel {
  position: relative;
  width: 2138px;
  height: 296.66px;
  overflow: hidden;
  border-radius: 20px;
}

.templates-carousel__track {
  display: flex;
  gap: 20px;
  animation: templatesCarousel 30s linear infinite;
  width: max-content;
  height: 100%;
}

.template-card {
  /* box-sizing: border-box; */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0px;
  width: 336.33px;
  height: 296.66px;
  background: #FFFFFF;
  border: 1px solid #D8DBDF;
  border-radius: 10px;
  flex: none;
  order: 1;
  flex-grow: 1;
  cursor: default;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: none;
}

.template-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 162.66px;
  z-index: 1;
}

.template-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card__content {
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 336.33px;
  height: 134px;
  background: #FFFFFF;
  border-top: 1px solid #EAEEF4;
  padding: 24px;
  gap: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 0;
}

.template-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 27px;
}

.template-card__icon {
  width: 24px;
  height: 24px;
  flex: none;
  order: 0;
  flex-grow: 0;
  background: none;
}

.template-card__icon img {
  width: 24px;
  height: 24px;
  background: none;
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.template-card__title {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  color: #1F1F1F;
  margin: 0;
  flex: 1;
  height: 27px;
}

.template-card__description {
  font-family: 'Helvetica Neue', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #666666;
  margin: 0;
  width: 288.33px;
  height: 48px;
  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  padding: 0px;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  /* white-space: nowrap; */
}


/* Carousel Animation */
@keyframes templatesCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .templates-hero {
    padding: 80px 0px 0px;
    min-height: auto;
  }
  
  .templates-hero__container {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
  }
  
  .templates-hero__visual {
    height: 300px;
    order: -1;
  }
  
  .template-card {
    width: 280px;
    height: 250px;
  }
  
  .templates-hero__stats {
    justify-content: center;
  }
  
  .templates-hero__buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .template-card {
    width: 240px;
    height: 220px;
  }
  
  .templates-carousel__track {
    gap: 15px;
  }
}

/* Featured Templates Section */
.templates-featured {
  padding: 80px 0;
  background: #fff;
}

.templates-featured__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.templates-featured__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}

.templates-featured__subtitle {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 50px;
}

.templates-featured__grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.template-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.template-card__image {
  height: 200px;
  overflow: hidden;
}

.template-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card--large .template-card__image {
  height: 250px;
}

.template-card__content {
  padding: 25px;
}

.template-card__icon {
  /* width: 40px;
  height: 40px;
  background: rgba(245, 158, 11, 0.1); */
  
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.template-card__title {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: #1f1f1f;
}

.template-card__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 20px;
}

.template-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.template-card__feature {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.template-card__btn {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease;
}

.template-card__btn:hover {
  background: #d97706;
}

/* Industry Categories Section */
.templates-categories {
  padding: 80px 0;
  background: #f8fafc;
}

.templates-categories__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.templates-categories__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}

.templates-categories__subtitle {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 50px;
}

.templates-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

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

.category-card__image {
  height: 200px;
  overflow: hidden;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__content {
  padding: 25px;
  text-align: center;
}

.category-card__icon {
  width: 50px;
  height: 50px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.category-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0f172a;
}

.category-card__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 20px;
}

.category-card__btn {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}

.category-card__btn:hover {
  background: #f59e0b;
  color: #fff;
}

/* Service Categories Section */
.templates-services {
  padding: 80px 0;
  background: #fff;
}

.templates-services__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.templates-services__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}

.templates-services__subtitle {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 50px;
}

.templates-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-template-card {
  background: #f8fafc;
  padding: 25px;
  border-radius: 16px;
  text-align: left;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

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

.service-template-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.service-template-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0f172a;
}

.service-template-card__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 20px;
}

.service-template-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-template-card__features li {
  padding: 5px 0;
  color: #374151;
  position: relative;
  padding-left: 20px;
}

.service-template-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-weight: bold;
}

/* Template Benefits Section */
.templates-benefits {
  padding: 80px 0;
  background: #f8fafc;
}

.templates-benefits__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.templates-benefits__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}

.templates-benefits__subtitle {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 50px;
}

.templates-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

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

.benefit-card__icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0f172a;
}

.benefit-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* CTA Section */
.templates-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%);
  color: #fff;
  text-align: center;
}

.templates-cta__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.templates-cta__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.templates-cta__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.templates-cta__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.templates-cta__btn {
  display: inline-block;
  padding: 18px 36px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0.2px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 180px;
  text-align: center;
}

.templates-cta__btn--primary {
  background: #fff;
  color: #f59e0b;
}

.templates-cta__btn--primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.templates-cta__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.templates-cta__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .templates-hero__container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .templates-hero__title {
    font-size: 2.5rem;
  }
  
  .templates-hero__stats {
    justify-content: center;
  }
  
  .templates-featured__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .template-card--large {
    grid-column: span 1;
  }
  
  .templates-categories__grid {
    grid-template-columns: 1fr;
  }
  
  .templates-services__grid {
    grid-template-columns: 1fr;
  }
  
  .templates-benefits__grid {
    grid-template-columns: 1fr;
  }
  
  .templates-cta__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .templates-cta__btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .templates-hero,
  .templates-featured,
  .templates-categories,
  .templates-services,
  .templates-benefits,
  .templates-cta {
    padding: 60px 0;
  }
  
  .templates-hero__title,
  .templates-featured__title,
  .templates-categories__title,
  .templates-services__title,
  .templates-benefits__title,
  .templates-cta__title {
    font-size: 2rem;
  }
  
  .templates-hero__subtitle,
  .templates-featured__subtitle,
  .templates-categories__subtitle,
  .templates-services__subtitle,
  .templates-benefits__subtitle,
  .templates-cta__subtitle {
    font-size: 1rem;
  }
  
  .templates-hero__stats {
    flex-direction: column;
    gap: 20px;
  }
} 