/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

.program-detail.hidden {
  display: none;
}

.hidden-testimonies {
  display: none;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
#testimoni{
  text-align: justify;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #e5e5f7;
  background: 
  radial-gradient(#e0e0e0 1px, transparent 1px) 0 0 / 20px 20px,
  linear-gradient(180deg, #fffce1, #ffffff);
  background-repeat: repeat;
}

.wave-section {
  background: #f5faff;
  clip-path: ellipse(100% 80% at 50% 0%);
  padding: 4rem 2rem 2rem 2rem;
}

/* ===== HEADER ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  height: 50px;
}

.logo:hover {
  height: 50px;
  background-color: rgb(243, 252, 255);
  border-radius: 10px;

}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #007bff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Gaya dasar tombol umum */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  text-align: center;
  transition: background 0.3s ease;
  min-height: 44px; /* ✅ tinggi minimum tombol (aksesibilitas) */
  white-space: nowrap; /* ✅ agar tidak wrap teks */
}

.btn:hover{
    outline: 3px solid rgb(213, 213, 213);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* agar tetap bisa turun kalau benar-benar sempit */
  justify-content: center;
  margin-top: 1rem;
}

.btn-primary {
  background: #007bff;
}
.btn-primary:hover {
  background: #0056b3;

}


.btn-w {
  background: #25D366;
}
.btn-w:hover {
  background: #1ebf5f;
}



.btn-daftar {
  background: #4caf50;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-daftar:hover {
  background: #388e3c;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem;
  max-width: 1200px;
  margin: auto;
  background: #ffffff;
  clip-path: ellipse(100% 80% at 60% 50%);
  padding: 4rem 2rem 2rem 2rem;
}

.hero-text {
  flex: 1 1 600px;
  padding-right: 2rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

#tentang{
  text-align: justify;
  font-size: 14px;
}

.hero-text p {
  margin-bottom: 1.5rem;
}

.hero-image {
  flex: 1 1 200px;
  

}

.images {
  max-width: 250px;
  height: auto;
  border-radius: 8px;
    background-size: cover;
}


.program-detail .brosur {
  width: auto;
  height:100px;
  margin-top: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.toggle-btn {
  margin-top: auto;
  align-self: center; /* supaya tombol tetap rata tengah */
  background: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-btn:hover {
  background: #0056b3;
  outline: 3px solid rgb(213, 213, 213);
}


/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.8);
  max-width: 1200px;
  margin: auto;
}

.feature {
  background: whitesmoke;
  text-align: center;
  padding: 1rem 1rem;
  border-radius: 8px;
}

.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.8);
  max-width: 800px;
  margin: auto;
  align-items: stretch;
  grid-auto-flow: row dense;
}

.program.expand {
  grid-column: 1 / -1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 2rem;
  transition: all 0.3s ease;
}

.program-detail {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}


.program {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 0.8rem;
  margin: auto;
  min-height: 300px;
  background: rgba(244, 244, 255, 0.9);
  border-radius: 10px;
  transition: all 0.3s ease;
}


.program p{
  font-size: 14px;
  text-align: justify;
}

.program > img {
  max-height: 50px;
  max-width:100px;
  margin:auto;
  margin-top:0;
  margin-bottom: 1rem;
}

.feature img {
  height: 80px;
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: #1e88e5;
}

.feature p {
  font-size: 14px;
}

/* ===== SECTION GENERAL ===== */
section {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: auto;
  background: rgba(254, 253, 253, 0.9);
  border-radius: 10px;
  margin-bottom: 2rem;

  
}

section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #1e88e5;
  border-bottom: 2px solid #1e88e5;
  padding-bottom: 0.5rem;
  
}

blockquote {
  background: #ffffff;
  border-left: 4px solid #1e88e5;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 5px;
}



.map-container {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
}

footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  background-color: transparent;
  color: #333;
  border: none;
}


.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: #25D366;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  display: none; /* default: hidden */
}

.floating-cta:hover {
  background-color: #1ebf5f;
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
  z-index: 1000;
  background: white;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #f9f9f9;
    margin-top: 1rem;
    position: absolute;
    top: 100%;
    right: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 180px;
    border-radius: 6px;
    z-index: 999;
  }

  .nav-menu.show {
    display: block;
  }

  .nav-menu a {
    padding: 0.75rem 1rem;
    width: 100%;
    border-bottom: 1px solid #eee;
    color: #333;
    text-align: left;
    text-decoration: none;
    font-weight: normal;
  }

    .nav-menu a:hover {
    background-color: #f0f0f0;
  }
  
  .floating-cta {
    display: block; /* hanya muncul di mobile */
  }

  .cta {
    display: none; /* sembunyikan versi desktop-nya di mobile */
  }
}


@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }

    .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-cta .btn {
    flex: 1 1 auto; /* biar tombol bisa mengecil & tetap sejajar */
    min-width: 130px; /* jaga biar gak terlalu kecil */
    text-align: center;
  }
  section h2 {
    font-size: 1.5rem;
  }

  .hero-text h1{
    font-size: 16px;
  }
  .hero-text p,
  .program p,
  .feature p {
    font-size: 0.9rem;
  }

  .hero-image img {
    max-width: 200px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .program-detail .brosur {
    height: auto;
    max-width: 100%;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .navbar {
    padding: 1rem;
  }

  .programs,
  .features {
    padding: 1rem;
    gap: 1rem;
  }

  .program {
    min-height: auto;
    padding: 1rem 0.5rem;
  }

  .feature img,
  .program > img {
    height: 60px;
  }
    .floating-cta {
    display: block; /* hanya muncul di mobile */
  }

  .cta {
    display: none; /* sembunyikan versi desktop-nya di mobile */
  }
}



