/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

/* === Navbar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 30px;
  height: 30px;
}

.logo span {
  font-weight: bold;
  color: #00434E;
  font-size: 20px;
}

.menu ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.menu ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

.menu ul li a:hover {
  color: #0073e6;
}

.hero {
  position: relative;
  height: 100vh;
  background: url('cover1.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  margin-top: 80px;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0, 67, 78, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-primary,
.btn-outline {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
}

.btn-primary {
  background-color: #00434E;
  color: white;
}

.btn-outline {
  border: 2px solid white;
  color: white;
}

/* === Welcome Section === */
.section-welcome {
  background-color: white;
  text-align: center;
  padding: 60px 5%;
}

.section-welcome h2 {
  font-size: 36px;
  color: #00434E;
  margin-bottom: 20px;
}

.section-welcome p {
  font-size: 16px;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* === Judul Section === */
.section-title {
  background-color: #00434E;
  text-align: center;
  padding: 40px 0;
}

.section-title h2 {
  color: white;
  font-size: 32px;
}

.carousel {
  position: relative;
  overflow: hidden;
  padding: 40px 5%;
  background-color: #f4f9fa;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.card h3 {
  color: #00434E;
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.read-btn {
  background-color: #00434E;
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.read-btn:hover {
  background-color: #007c82;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #00434E;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
}

.nav-btn.left {
  left: 10px;
}

.nav-btn.right {
  right: 10px;
}

@media (max-width: 768px) {
  .carousel-track {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 400px;
  }

  .nav-btn {
    display: none;
  }
}

.card.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 1;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: olive;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.nav-btn.left {
  left: 20px;
}

.nav-btn.right {
  right: 20px;
}

.card-link:hover {
  transform: translateY(-6px);
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 30px 20px;
  text-align: center;
}


