.hero.hero-layanan {
  height: 75vh ;
  background-image: url('/assets/back1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 250px;
  position: relative;
}

.hero.hero-layanan .hero-content {
  color: white;
  text-align: center;
}




/* layanan.css */

/* SECTION LAYANAN */
/* SECTION LAYANAN */
.layanan-section {
  background-image: none !important;
  background-color: #ffffff !important;
  padding: 80px 20px;
}

/* CONTAINER GRID */
.layanan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD */
.card-layanan {
  display: flex;
  flex-direction: column;
  background: #222526;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.card-layanan:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.3);
}

/* IMAGE */
.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* BODY */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-align: left;
}

.card-body span {
  font-size: 14px;
  font-weight: bold;
  color: #e0e0e0;
  margin-bottom: 5px;
}

.card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.card-body p {
  font-size: 14px;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1; /* biar isi naik ke atas dan button tetap di bawah */
}

/* BUTTON */
.btn-wa {
  margin-top: auto;
  background: #e0e0e0;
  color: #252424;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  width: 50%;
  transition: background 0.3s ease;
}

.btn-wa:hover {
  background: #1f1f1e;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .card-image img {
    height: 160px;
  }

  .card-body h3 {
    font-size: 18px;
  }

  .card-body p {
    font-size: 13px;
  }
}
/* 1. Extra small (smaller than iPhone 5) */
@media (max-width: 319px) {
  .hero.hero-layanan {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: flex-start;
    height: 60vh !important;
    padding: 0 !important;
  }

  .hero.hero-layanan .hero-content {
    padding: 0 15px !important;
    font-size: 13px !important;
    margin-top: 110px;
  }

  .hero.hero-layanan .hero-content h1 {
    font-size: 18px !important;
  }

  .hero.hero-layanan .hero-content p {
    font-size: 12.5px !important;
  }
}

/* 2. Small phones (320 - 374px) */
@media (min-width: 320px) and (max-width: 374px) {
  .hero.hero-layanan {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: flex-start;
    height: 55vh !important;
    padding: 0 !important;
  }

  .hero.hero-layanan .hero-content {
    padding: 0 18px !important;
    margin-top: 110px;
  }

  .hero.hero-layanan .hero-content h1 {
    font-size: 20px !important;
  }

  .hero.hero-layanan .hero-content p {
    font-size: 13px !important;
  }
}

/* 3. Medium phones (375 - 399px) */
@media (min-width: 375px) and (max-width: 399px) {
  .hero.hero-layanan {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: flex-start;
    height: 50vh !important;
    padding: 0 !important;
  }

  .hero.hero-layanan .hero-content {
    padding: 0 20px !important;
    margin-top: 110px;
  }

  .hero.hero-layanan .hero-content h1 {
    font-size: 22px !important;
  }

  .hero.hero-layanan .hero-content p {
    font-size: 13.5px !important;
  }
}

/* 4. Regular phones (400 - 479px) */
@media (min-width: 400px) and (max-width: 479px) {
  .hero.hero-layanan {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: flex-start;
    height: 48vh !important;
    padding: 0 !important;
  }

  .hero.hero-layanan .hero-content {
    padding: 0 24px !important;
    margin-top: 110px;
  }

  .hero.hero-layanan .hero-content h1 {
    font-size: 24px !important;
  }

  .hero.hero-layanan .hero-content p {
    font-size: 14px !important;
  }
}

/* 5. Large phones & small tablets (480 - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
  .hero.hero-layanan {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: flex-start;
    height: 45vh !important;
    padding: 0 !important;
  }

  .hero.hero-layanan .hero-content {
    padding: 0 30px !important;
    margin-top: 110px;
  }

  .hero.hero-layanan .hero-content h1 {
    font-size: 26px !important;
  }

  .hero.hero-layanan .hero-content p {
    font-size: 14.5px !important;
  }
}

/* 6. Tablet vertical (600 - 768px) */
@media (min-width: 600px) and (max-width: 768px) {
  .hero.hero-layanan {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: flex-start;
    height: 42vh !important;
    padding: 0 !important;
  }

  .hero.hero-layanan .hero-content {
    padding: 0 35px !important;
    margin-top: 110px;
  }

  .hero.hero-layanan .hero-content h1 {
    font-size: 28px !important;
  }

  .hero.hero-layanan .hero-content p {
    font-size: 15px !important;
  }
}
