* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: #CCE9FB;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  color: #333;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hero-slider button img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.hero-slider button:hover img {
  transform: scale(1.2);
}

.hero-slider .prev {
  left: 20px;
  transform: translateY(-50%) rotate(180deg);
}

.hero-slider .next {
  right: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  padding-left: 20px;
  z-index: 5;
  position: relative;
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.logo p {
  font-family: 'Inknut Antiqua', serif;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
}

.navbar {
  width: 80%;
  margin: 20px auto 0;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  z-index: 5;
}

.nav-links {
  list-style: none;
  display: inline-flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-family: 'Alatsi', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #EC764E;
  position: relative;
}

.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #EC764E, #86432C);
  border-radius: 2px;
}


section h2 {
  padding-top: 10px;
  padding-left: 20px;
  font-size: 28px;
}

.card-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10px;
  z-index: 1;
}

.card-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0 60px;
  scrollbar-width: none;
}

.card-scroll::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 auto;
  width: 300px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  margin-left: 10px;
  opacity: 0; /* awalnya hilang */
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;

}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card img {
  width: 100%;
  height: 180px;
  border-radius: 15px 15px 0 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card a {
  text-decoration: none;
  color: inherit; 
  display: block;
}

.card a h3 {
  padding: 10px;
  font-family: Arial;
  color: #474747;
}


.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


.card-prev,
.card-next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.card-prev img,
.card-next img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.card-prev:hover img,
.card-next:hover img {
  transform: scale(1.2);
}

.card-prev {
  left: 5px;
  transform: translateY(-50%) rotate(180deg);
}

.card-next {
  right: 5px;
}


section h4 {
position: relative;
z-index: 2;
margin-top: -50px;
margin-left: 20px;
margin-bottom: 20px;
}

section h4 a{
  color: #1c4dee;
  text-decoration: none;
}

/* FOOTER */
.footer {
  background: rgba(76, 96, 109, 1);
  padding: 10px 10px 20px;
  font-family: Arial, sans-serif;
  color: #ffffff;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3,
.footer h4 {
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
}

.footer-about p,
.footer-contact p {
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 5px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #EC764E;
}

.footer-bottom {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
  font-size: 14px;
}




@media (max-width: 992px) {
  .logo img {
    width: 50px;
    height: 50px;
  }

  .logo p {
    font-size: 20px;
  }

  .navbar {
    width: 90%;
    padding: 10px;
  }

  .card {
    width: 260px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }

  .logo {
    justify-content: center;
    padding: 10px 0;
  }

  .navbar {
    width: 65%;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  section h2 {
    font-size: 24px;
    text-align: center;
  }

  .card {
    width: 230px;
  }

  .footer-container {
    text-align: center;
  }
}


@media (max-width: 480px) {
  .hero {
    height: 50vh;
  }

  .logo p {
    font-size: 18px;
  }

  .card {
    width: 200px;
  }
}
