/* Hero Section */
/* === HERO SECTION === */
.hero {
  position: relative;
  width: 100%;
  height: 85vh; /* dikurangi sedikit biar gak ketimpa card di bawah */
  background: url('/img/backround-utama.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  margin-bottom: 80px; /* jarak aman sebelum card-service */
}

/* Overlay hitam transparan */
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.navbar-toggle  {
  color: white;
}
/* Teks di tengah */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;
  animation: fadeUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(40px);
}
.hero-content img {
width: 160px;
margin-bottom: 20px;
filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
animation: float 3s ease-in-out infinite;
}
.hero-content h1 {
  font-size: 2rem;
  letter-spacing: 1px;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 2rem;
}

/* Tombol CTA */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background: white;
  color: #111;
  transform: scale(1.02);
}

/* Animasi muncul */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsif */
@media (max-width: 768px) {
  .hero {
    height: 70vh; /* biar proporsional di mobile */
    margin-bottom: 60px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}



.card-service {
 position: relative; 
  margin: -120px auto 0; 
  width: 85%;
  width: 85%;
  background: #fff;
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  
  text-align: center;
}

.card-service h2 {
  color: var(--text-dark);
  font-size: 2rem;
  margin-bottom: 40px;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-box {
  background-color: #ffffff;
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 300px;
  padding: 30px 25px;
  display: flex;                 /* supaya bisa atur posisi antar elemen */
  flex-direction: column;        /* susun vertikal */
  justify-content: space-between;/* tombol di bawah */
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  min-height:250px;             /* biar semua box sama tinggi */
}

.service-box img {
  width: 50px;
  margin-bottom: 15px;
}

.service-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-box p {
  font-size: 0.95rem;
  line-height: 1.4;
  flex-grow: 1; /* biar teks fleksibel tapi tombol tetap di bawah */
}

/* Tombol Learn More */
.learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 12px 28px;
  background-color: transparent;
  color: #1e293b;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.learn-more:hover {
  background-color: #17a91c;
  color: white;
  border-color: #00d21c;
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.learn-more:hover .btn-icon {
  transform: translateX(5px);
}


.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(31,90,169,0.3);
}


.service-box:hover .learn-more::after {
  transform: translateX(5px);
}
.btn-learn {
  background: none;
  border: 2px solid #0a5ef5;
  border-radius: 50px;
  padding: 10px 25px;
  color: #0a5ef5;
  font-weight: 600;
  transition: 0.3s;
}

.btn-learn:hover {
  background: #0a5ef5;
  color: #fff;
}

/* My content End */
/* === SECTION WRAPPER === */
.our-services-section {
  width: 100%;
  padding: 80px 6%;
  animation: fadeInUp 3.2s ease forwards;
animation-delay: 0.3s;

}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 60px;
  color: #0f2e4d;
}

/* === ROW STYLE === */
.service-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

/* === IMAGES === */
.service-img {
  width: 58%;
  height: 300px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0px 8px 25px rgba(0,0,0,0.15);
}

/* === TEXT BOX === */
.service-text {
  width: 48%;
}

.service-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #0a3d62;
}

.service-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

/* === BUTTON === */
.service-btn {
  background: #0a5ef5;
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: .3s;
}

.service-btn:hover {
  background: #083bb3;
  transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .service-row,
  .service-row.reverse {
    flex-direction: column;
  }

  .service-img,
  .service-text {
    width: 100%;
  }
}

/* SERVICE II */

.workflow {
  padding: 70px 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  animation: fadeInUp 2.2s ease forwards;
  animation-delay: 0.5s;

}

.wf-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 100px;
}

.wf-sub {
  font-size: 16px;
  color: #666;
  margin-bottom: 50px;
}

.wf-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  max-width: 1200px;
  margin: auto;
}

.wf-item {
    position: relative;
    width: 350px;
    padding: 0 0 25px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dbdbdb;
    box-shadow: 0 4px 15px rgb(68 55 55 / 30%);
    transition: .3s 
ease;
    overflow: visible;
}

.wf-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* GAMBAR */
.wf-item {
  position: relative;   /* penting untuk posisi wf-number */
  width: 350px;
  padding: 0 0 25px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: .3s ease;
  overflow: visible;
}

/* NOMOR POSISI KIRI ATAS */
.wf-number {
 position: absolute;
    top: -18px;
    left: -18px;
    width: 60px;
    height: 59px;
    background: #48d017;
    color: white;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* GAMBAR */
.wf-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 120px;

}

.wf-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  margin-top:20px ;
}

.wf-item p {
  font-size: 14px;
  color: #555;
  padding: 0 20px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .wf-item {
    width: 100%;
    max-width: 360px;
  }
   .hero-news {
    height: 70vh; /* Kurangi tinggi untuk mobile agar tidak terlalu panjang */
  }
  .text-box {
    bottom: 40px; /* Kurangi jarak dari bawah */
    left: 20px; /* Kurangi jarak dari kiri untuk memberikan lebih banyak ruang */
    right: 20px; /* Tambahkan right untuk mencegah teks terlalu dekat dengan tepi kanan */
    max-width: none; /* Hapus max-width agar teks bisa lebih lebar di layar kecil */
    text-align: left; /* Pastikan teks rata kiri */
  }
   .text-box .tag {
    font-size: 0.9rem; /* Kurangi ukuran font tag */
  }
  .text-box h1 {
    font-size: 1.5rem; /* Kurangi ukuran font judul */
    line-height: 1.4; /* Sesuaikan line-height */
  }
  .text-box .date {
    font-size: 0.8rem; /* Kurangi ukuran font tanggal */
  }
  .btn-berita {
    padding: 10px 20px; /* Kurangi padding tombol */
    font-size: 14px; /* Kurangi ukuran font tombol */
  }
  .news-controls {
    bottom: 20px; /* Kurangi jarak dari bawah */
    right: 20px; /* Kurangi jarak dari kanan */
    gap: 8px; /* Kurangi gap antar tombol */
  }
  .news-btn {
    width: 40px; /* Kurangi ukuran tombol */
    height: 40px;
  }
  .news-btn svg {
    width: 18px; /* Kurangi ukuran ikon */
    height: 18px;
  }
}
@media (max-width: 480px) {
.hero-news {
    height: 60vh; /* Kurangi lebih lanjut untuk layar sangat kecil */
  }
  .text-box {
    bottom: 30px;
    left: 15px;
    right: 15px;
  }
  .text-box h1 {
    font-size: 1.3rem; /* Kurangi lagi ukuran judul */
  }
  .btn-berita {
    padding: 8px 16px;
    font-size: 12px;
  }
  .news-controls {
    bottom: 15px;
    right: 15px;
  }
   .news-btn {
    width: 36px;
    height: 36px;
  }
    .news-btn svg {
    width: 16px;
    height: 16px;
  }
}
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-30px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}