body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(-45deg, #d9ffeb, #f0fff8, #d5ff58, #d9ffeb);
  background-size: 400% 400%;
  animation: bgFlow 20s ease infinite;
  color: #333;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
}

.hero-image img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  min-height: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: floatImage 6s ease-in-out infinite;
}


/* Container untuk bagian non-hero */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* === HERO SECTION === */
.template-hero {
  width: 100%;
  padding: 60px 0px;
   background: linear-gradient(-45deg,  #d9ffeb, #f0fff8, #d5ff58, #d9ffeb);
  background-size: 400% 400%;
  animation: heroFlow 16s ease infinite;
  position: relative;
  z-index: 1;
}


.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-text {
  flex: 1 1 500px;
  min-height: 280px;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #1a1a1a;
}

.hero-text p {
  font-size: 18px;
  color: #444;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-image {
  flex: 1 1 500px;
  text-align: center;
  align-self: center;
}

.hero-image img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  min-height: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: #005c46;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #004737;
}

/* === TEMPLATE LIST === */
.template-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding-top: 20px;
}

.template-card {
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  background: white;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.template-card img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
}

.template-card h3 {
  margin-bottom: 12px;
}

.btn-secondary {
  display: inline-block;
  padding: 8px 18px;
  background: transparent;
  border: 2px solid #005c46;
  color: #005c46;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #005c46;
  color: white;
}


@keyframes bgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}


@media (max-width: 768px) {

 .template-hero {
    padding-bottom: 0px !important;
        text-align: center;
  }
 .container {
    padding: 136x;
    margin-top: -250px;
  }

  .content {
    margin: 0 10px;
  
  }
  .template-list-section,
  .template-list {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero-text h1 {
    font-size: 26px;
    line-height: 1.4;
  }

  .hero-text p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-image {
    display: none; /* ❌ Gambar disembunyikan di HP */
  }

  .btn-primary {
    font-size: 16px;
    padding: 10px 20px;
  }

  .template-card {
    padding: 16px;
  }

  .template-card img {
    border-radius: 8px;
  }

  .template-card h3 {
    font-size: 18px;
  }

  .btn-secondary {
    font-size: 14px;
    padding: 8px 16px;
  }
}

