/* === GENERAL BODY === */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #ffffff, #f5f5f5);
  color: #333;
}

/* === WRAPPER === */
.premix-wrapper {
  max-width: 1200px;
  margin: 1px auto 10px;
  padding: 120px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* === SECTION LAYOUT === */
.premix-section,
.premix-info-grid,
.plant-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: flex-start;
  margin-top: 1px;
}




.premix-info,
.plant-column {
  flex: 1;
  min-width: 380px;
  max-width: 500px;
  
}
.premix-map {
  flex: 1;
  min-width: 380px;
  max-width: 500px;
  text-align: center;
  position: relative;
  border: 2px solid #b90000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

  /* ✨ Tambahan baru */
  margin-top: 90px; /* ubah ikut keperluan, contoh 70px */
}

.premix-map img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #fff;
}

/* === TITLE === */
.premix-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  border-top: 4px solid #b90000;
  padding-top: 12px;
  display: flex;
  align-items: center;
}

.premix-title i,
.premix-title span {
  color: #b90000;
  margin-right: 10px;
}

/* === MAP PIN === */
.map-pin {
  position: absolute;
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 12px;
  border-radius: 8px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  font-weight: bold;
  z-index: 5;
}




.pin-kulai {
  top: 80%;
  left: 65%;
}

.pin-pagoh {
  top: 50%;
  left: 30%;
}

.map-label {
  margin-top: 8px;
  font-weight: bold;
  font-size: 14px;
  color: #003b6f;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
}
.plant-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}


/* === PLANT BOX === */
.plant-box {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: none; /* ❌ remove red line */
}

.plant-box:hover {
  transform: translateY(-5px);
}

.plant-box h3 {
  margin-bottom: 5px;
  color: #b90000; /* highlight tajuk */
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}

.plant-box p {
  margin: 5px 0;
  line-height: 1.6;
  font-size: 15px;
  color: #333;
}

/* === PLANT GALLERY === */
.plant-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}

.plant-gallery figure {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  position: relative;
}

.plant-gallery figure:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.plant-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.plant-gallery figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  padding: 8px;
  text-align: center;
}

.plant-gallery-title {
  font-size: 24px;
  font-weight: 700;
  color: #003366;
  margin-top: 60px;
  margin-bottom: 20px;
  border-left: 5px solid #b90000;
  padding-left: 12px;
}

/* === EXTRA TEXT === */
.premix-extra {
  margin-top: 40px;
}

.extra-title {
  font-size: 28px;
  color: #b90000;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.premix-extra p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

/* === PRODUCT LIST === */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 30px;
  padding: 0;
  list-style: none;
  margin-top: 20px;
}

.product-list li {
  position: relative;
  padding-left: 20px;
}

.product-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  color: #b90000;
  font-size: 14px;
}

/* === ZOOM MODAL === */
.zoomable {
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zoomable:hover {
  transform: scale(1.02);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  animation: zoomIn 0.3s ease;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  /* ✅ Kurangkan padding wrapper untuk skrin kecil */
  .premix-wrapper {
    padding: 40px 20px;
  }

  /* ✅ Tajuk lebih kecil dan susun menegak jika ada ikon */
  .premix-title {
    font-size: 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* ✅ Kurangkan padding dalam kotak loji */
  .plant-box {
    padding: 20px;
  }

  /* ✅ Gambar loji fleksibel di skrin kecil */
  .plant-photo {
    height: auto;
    max-height: 220px;
  }

  /* ✅ Gambar dalam galeri lebih kecil */
  .plant-gallery img {
    height: 160px;
  }

  /* ✅ Modal zoom lebih sesuai untuk telefon */
  .modal-content {
    max-width: 95%;
    max-height: 70vh;
  }

  /* ✅ Map juga boleh rapat ke atas */
  .premix-map {
    margin-top: 40px;
  }

  /* ✅ Saiz teks dalam pin lebih kecil */
  .map-pin {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* ✅ Susun label peta lebih kemas */
  .map-label {
    font-size: 12px;
    text-align: center;
  }

  /* ✅ Product list spacing lebih kemas */
  .product-list {
    gap: 8px 20px;
  }

  .product-list li {
    font-size: 14px;
  }
}
