* {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #f4f8fb;
  color: #333;
}
header {
  background-color: rgb(44, 177, 249);
  display: flex;
  justify-content: space-between;
  padding: 20px 60px;
  align-items: center;
  color: #fff;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.8rem;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  position: relative;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.nav-list li a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}
.nav-list li a:hover::after,
.nav-list li a:active::after {
  width: 100%;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #1b86f9;
    width: 100%;
    padding: 1rem;
    z-index: 999;
    border-radius: 10px;
  }
  .nav-list.open {
    display: flex;
  }
  .nav-list li {
    margin: 0.5rem 0;
  }
  .nav {
    margin-top: 0.5rem;
  }
}
.judul {
  padding: 10px;
}
.sidebar {
  background-color: #fff;
  padding: 1rem;
  margin: 0;
  gap: 2rem;
  display: inline-flex;
}

.navsidebar li {
  list-style: none;
  justify-content: center;
  padding: 3px;
}
.navsidebar li a {
  text-decoration: none;
  border-left: 5px solid #4717f4;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  font-weight: bold;
  background-color: white;
  padding: 3px;
  margin: 1px;
}
.navsidebar li a:hover {
  background-color: rgb(57, 86, 248);
  color: #fff;
  padding: 1px 2px;
  margin: 1px;
}
.card:hover {
  transform: translateX(6px);
}
.containerGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}
/*------sosmed share-----*/
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
  }
  .share-buttons {
    display: flex;
    gap: 1px;
    flex-wrap: wrap; /* Memungkinkan tombol berpindah baris di layar kecil */
  }
}
.share-button {
  display: inline-block;
  padding: 5px 5px;
  text-decoration: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  text-align: center;
}

/* Media query untuk layar kecil (ponsel) */
@media (max-width: 768px) {
  .share-buttons {
    flex-direction: column; /* Tombol menjadi kolom pada layar kecil */
    width: 100%;
  }

  .share-button {
    width: 100%;
  }
}

.sosmed {
  text-align: center;
  background-color: #fff;
  width: 100%;
  height: 30%;
}
.tombolSosmed {
  padding-left: 30px;
}
