/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* background-image is set by inline style or directly through referencing assets to keep it modular */
  background-image: url(../../image/samuel-regan-asante-fOTLCnPdOnk-unsplash\ \(1\).jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: rgba(1, 1, 1, 0.8);
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(0deg, rgba(1, 1, 3, 1) 8%, rgba(255, 255, 255, 0) 25%);
}

.hero .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
  border-radius: 30px;
  position: relative;
  z-index: 10;
}

.hero .content h1 {
  font-size: 3em;
  color: var(--text);
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  line-height: 1.2;
}

.hero .content h1 span {
  color: var(--primary);
}

.hero .content p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  font-weight: 400;
  color: var(--text);
  text-shadow: 1px 1px 3px rgba(1, 1, 1, 0.5);
}

.hero .botton-baca {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--bg);
  border-radius: 10px;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero .botton-baca:hover {
  background-color: var(--primary);
}

/* --- HOME SECTIONS --- */
.update-time {
  display: flex;
  justify-content: space-between;
  margin: 1rem 7%;
  align-items: center;
  gap: 15px;
}

.update-title {
  display: flex;
  gap: 20px;
  align-items: center;
}

.update-clock {
  background-color: black;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.judul-genre {
  margin: 30px 7% 10px;
}

.container-genre {
  margin: 0 7%;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-bottom: 20px;
}
/* --- RESPONSIVE HOME --- */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh; /* Reduced height on mobile */
    padding-top: 80px;
  }

  .hero .content {
    padding: 1rem 4%;
  }

  .hero .content h1 {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .hero .content p {
    font-size: 0.9rem;
    margin-top: 0.8rem;
  }

  .hero .botton-baca {
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
    margin-top: 1.5rem;
  }

  .update-time, .judul-genre, .container-genre {
    margin-left: 4%;
    margin-right: 4%;
  }

  .update-time {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 450px) {
  .hero {
    min-height: 50vh; /* Even smaller for small phones */
  }

  .hero .content h1 {
    font-size: 1.5rem;
  }

  .hero .content p {
    font-size: 0.8rem;
  }
}
