/* Bagian Navbar */
*,html {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: aliceblue;
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-burger {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 150px;
  z-index: 1000;
  background-color: rgba(240, 248, 255, 0.219);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  padding: 1rem;
}

.menu-icon{
  display: none;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.Logo{
  display: flex;
  align-items: center;
  gap: 6px;
}

.Gambar{
  display: flex;
  text-align: center;
}

.Gambar img {  
  width: 50px;
}

nav ul li a{
  text-decoration: none;
  font-family: 'Times New Roman', Times, serif;
  color: black;
  font-weight: 600;
  padding: 10px 25px;
  transition: all;
  transition-duration: 0.5s;
  border-bottom: 1px solid rgba(165, 42, 42, 0);
}

nav ul li a:hover{
  color: brown;
  border-bottom: 1px solid brown;
}

/* Bagian Judul */
.pembuka {
  background-image: url('gambar\ pembuka.jpg');
  background-size: cover;
  background-position: center;
  height: 80vh;
  position: relative;
  color: white;
}

.judulpembuka {
  background-color: rgba(0,0,0,0.5);
  height: 100%;
  width: 100%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pembuka h1 {
  font-size: 4rem;
  font-weight: bold;
}

.search-box {
  display: flex;
  align-items: center;
  max-width: 300px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  backdrop-filter: blur(5px);
}

.search-input {
  border: none;
  padding: 10px 15px;
  outline: none;
  flex: 1;
  font-size: 16px;
  border-radius: 25px 0 0 25px;
  background-color: transparent;
  color: white;
}

.search-button {
  background-color: transparent;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #f0f0f0;
}

/* main-artikel */
main {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  padding-top: 80px;
  gap: 20px;
  justify-content: center;
}

.Pembungkus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  width: calc(100% - 320px);
}

.kotak {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 10px;
}

.kotak img {
  width: 100%;
  border-radius: 6px;
}

.kotak h2 {
  font-size: 1.2em;
  margin-top: 10px;
}

.kotak p {
  margin: 10px 0;
}

.kotak .penulis {
  font-size: 0.9em;
  color: #666;
}

.kotak button {
  background: #d4903f;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.kotak button:hover {
  color: brown;
}

.sidebar {
  position: relative;
  width: 100%;
  max-width: 300px;
  background-color: #fff;
  padding: 20px 15px;
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.item-baru {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.item-baru img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.teks h4 {
  font-size: 0.9rem;
  margin: 0;
  color: #222;
}

.teks p {
  font-size: 0.75rem;
  color: #666;
  margin: 5px 0 0;
}

/* Footer */
.pembungkus-footer {
  background-color: #666; 
  padding: 40px;
  color: #fff;
}

.isi-footer {
  display: flex;
  gap: 40px;
  font-family: 'Times New Roman', Times, serif;
}

.kolom-footer {
  flex: 1;
  min-width: 200px;
}

.kolom-footer.tengah {
  text-align: center;
}

.kolom-footer.kanan {
  text-align: right;
}

.logo-rumah {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-rumah img {
  width: 70px;
}

.judul-footer h2 {
  margin: 0;
}

.judul-footer h3 {
  color: #f0c674;
  margin: 0;
}

.penjelasan {
  margin-top: 10px;
  max-width: 300px;
}

.kolom-footer h4 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
}

.kolom-footer ul {
  list-style: none;
  padding: 0;
}

.kolom-footer li {
  margin-bottom: 6px;
}

.kolom-footer a {
  color: #ddd;
  text-decoration: none;
}

.kolom-footer a:hover {
  color: brown;
}

/* Responsive */
@media (max-width: 1024px) {
  .Pembungkus {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .sidebar {
    max-width: 100%;
    margin-top: 20px;
  }

  .isi-footer {
    flex-direction: column;
    text-align: flex-start;
    gap: 20px;
  }

  .kolom-footer.tengah,
  .kolom-footer.kanan {
    text-align: left;
  }
}

@media only screen and (max-width: 768px) {
  .sembunyikan {
    display: none;
  }

  .menu-icon {
    display: block;
    cursor: pointer;
  }

  .menu-burger li {
    margin: 10px;
  }
  
  .Pembungkus {
    grid-template-columns: repeat(1, 1fr);
    width: 100%;
  }

   .sidebar {
    max-width: 100%;
    margin-top: 20px;
  }

  .isi-footer {
    flex-direction: column;
    text-align: flex-start;
    gap: 20px;
  }

  .kolom-footer.tengah,
  .kolom-footer.kanan {
    text-align: left;
  }
}