@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(to right, #FFFBDE, rgb(255, 255, 255));
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(125deg, #D1E9F6, #a3d4f7);
  border-radius: 12px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #4682A9;
}

nav {
  z-index: 999;
  width: 100%;
  height: 10vh;
  position: fixed;
  top: 0;
  background: linear-gradient(135deg, #D1E9F6, #a3d4f7);
  box-shadow: 0 4px 20px rgba(0.1, 0, 0, 0.1);
  border-bottom-left-radius: 50% 20%;
  border-bottom-right-radius: 50% 20%;
}

.nav-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo {
  color: #131212;
  font-size: 2rem;
  font-weight: bold;
}

.logo span {
  color: #4682A9;
  text-shadow: 0 0 10px #91C8E4;
}

.hamburg,
.cancel {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 15px;
  color: #131212;
  opacity: 0;
  pointer-events: none;
  font-size: clamp(2rem, 0.5rem + 3vw, 3rem);
}

.nav-container .links {
  display: flex;
}

.nav-container .links a {
  position: relative;
  font-size: 1.1rem;
  color: #131212;
  margin: 0 20px;
  text-decoration: none;
  font-weight: 550;
  transition: 0.3s linear;
}

.nav-container .links a::before {
  position: absolute;
  content: "";
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #4682A9;
  transition: 0.2s linear;
}

.nav-container .links a:hover::before {
  width: 100%;
}

.nav-container .links a:hover {
  color: #4682A9;
}

.nav-container .links a.active {
  color: #4682A9;
}

.nav-container .links a.active::before {
  width: 100%;
}


.dropdown {
  z-index: 100;
  position: absolute;
  top: 0;
  transform: translateY(-500px);
  width: 100%;
  height: auto;
  backdrop-filter: blur(4px) brightness(40%);
  box-shadow: 0 0 20px #131212;
  transition: 0.2s linear;
}

.dropdown .links a {
  display: flex;
  color: #f1f1f1;
  text-decoration: none;
  justify-content: center;
  padding: 15px 0;
  align-items: center;
  transition: 0.2s linear;
}

.dropdown .links a:hover {
  background-color: #91C8E4;
}

.artikel-section {
  padding-top: 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.artikel-card {
  background: #D1E9F6;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.artikel-card:hover {
  transform: translateY(-5px);

}

.artikel-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.artikel-content {
  padding: 30px;
}

.artikel-content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #333;
}

.artikel-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.artikel-content a {
  color: #4682A9;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.artikel-content a:hover {
  color: #22557a;
  text-decoration: underline;
}

.detail-artikel {
  max-width: 800px;
  margin: 100px auto 40px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.4s ease-in-out;
}

.detail-artikel img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.artikel-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.judul {
  font-size: 2rem;
  color: #22557a;
  margin-bottom: 20px;
}

.deskripsi {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  background: #4682A9;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.back-link:hover {
  background: #35698a;
}

.footer {
  background-color: #4682A9;
  color: #f1f1f1;
  padding: 30px 20px;
  text-align: center;
  margin-top: 100px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer .logo {
  font-size: 2.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  position: relative;
  animation: floatLogo 2.5s ease-in-out infinite;
}

.footer .logo span {
  color: #91C8E4;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-menu li a {
  color: #f1f1f1;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-menu li a:hover {
  color: #FFFBDE;
}

footer .copyright {
  font-size: 0.85rem;
  color: #e1e1e1;
  margin-top: 10px;
}

/* Optional: floating animation for logo */
@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}



@media (max-width:968px) {
  body {
    overflow-y: visible;
  }

  .logo {
    position: absolute;
    top: 16px;
    left: 15px;
    font-size: 1.5rem;
  }

  .nav {
    z-index: 999;
  }

  .nav-container .links {
    display: none;
  }

  .hamburg,
  .cancel {
    opacity: 1;
    pointer-events: visible;
  }

  .cancel {
    display: block;
    color: white;
  }
}

@media (max-width: 768px) {

  .footer-container {
    padding: 10px;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .footer .logo {
    margin-bottom: 30px;
  }
}


@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}