.section-panen {
  width: 100%;
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #0e3579;
  position: relative;
  z-index: 0;
  padding-bottom: 5rem;
  overflow: hidden;
  color: white;
}

.section-panen .container .header-panen h3 {
  font-size: 46px;
  font-weight: 600;
}
.section-panen .container .header-panen h4 {
  font-size: 24px;
  font-weight: 600;
}
.section-panen .container .header-panen {
  display: flex;
  color: #fbc800;
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 2rem;
}

.parent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 50px;
  grid-row-gap: 0px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.panen1, .panen2, .panen3 {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.panen1 img,
.panen2 img,
.panen3 img {
  width: 100%;
  min-height: 700px;
  height: auto;
  object-fit: cover;
  overflow: hidden;
}


/* Menambahkan overlay gradasi */
.panen1::after,
.panen2::after,
.panen3::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #0C2D66, transparent);
  pointer-events: none;
  z-index: 0;
}

.sub-panen {
  position: absolute;
  color: white;
  z-index: 1;
  text-align: justify;
  left: 2rem;
  right: 2rem;
  bottom: 1rem;
  min-height: 25%;
}

.sub-panen h3 {
  font-weight: 600;
  padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .section-panen .container .header-panen {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .section-panen .container .header-panen h3 {
    font-size: 24px;
    font-weight: 600;
  }

  .section-panen .container .header-panen h4 {
    font-size: 14px;
    font-weight: 600;
  }

  .parent {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
    grid-row-gap: 1rem;
  }

  /* Mengatur gambar agar tetap responsif */
  .panen1 img,
  .panen2 img,
  .panen3 img {
    object-fit: cover;
  }

  /* Mengatur agar elemen .sub-panen tidak terpotong */
  .sub-panen {
    left: 1rem;
    right: 1rem;
    min-height: auto;
  }
}

@media (min-width: 1536px) {
  .section-panen {
    width: 100%;
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    background-color: #0e3579;
    position: relative;
    z-index: 0;
    padding-bottom: 5rem;
    overflow: hidden;
    color: white;
  }
}