* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: calibri;
}

body {
  background: #e6f0dc;
}

/* Navbar */
.navbar {
  width: 100%;
  background: rgb(85, 136, 59, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.navbar .logo {
  color: white;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
}

/* Menu kanan */
.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.navbar .desktop-menu li a {
  text-align: right;
}

.navbar ul li {
  position: relative;
  margin-left: 20px;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  transition: 0.3s;
}

.navbar ul li a:hover {
  background: #c1e899;
  border-radius: 5px;
  color: black;
}

/* Dropdown */
.navbar ul li ul {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: rgb(85, 136, 59,0.4);
  list-style: none;
  padding: 10px 0;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar ul li ul li {
  width: 180px;
}

.navbar ul li ul li a {
  color: #ffffff;
  display: block;
  padding: 8px 15px;
  text-align: left !important;
}

.navbar ul li ul li a:hover {
  background: #c1e899;
  color: black;
}

.navbar ul li:hover ul {
  display: block;
}

/* Search bar */
.search-box {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
}

.search-icon {
  display: none;
  cursor: pointer;
  font-size: 20px;
  color: white;
  margin-right: 10px;
}

/* Cart icon */
.cart-icon {
  margin-left: 20px;
  color: white;
  text-decoration: none;
  font-size: 24px;
  transition: 0.3s;
}

.cart-icon:hover {
  color: #c1e899;
}

/* Hamburger and Mobile Menu */
.menu-toggle {
  position: absolute;
  left: -9999px;
}

.hamburger {
  display: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.mobile-menu {
  display: none;
}

#menu-toggle:checked ~ .hamburger ~ .mobile-menu {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(85, 136, 59, 0.4);
}

.mobile-menu ul li {
  margin: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

.mobile-menu ul li a:hover {
  background: #c1e899;
  color: black;
}

/* Dropdown in mobile */
.mobile-menu ul li ul {
  display: none;
  position: static;
  background: rgb(85, 136, 59,0.4);
  list-style: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.mobile-menu ul li:hover ul {
  display: block;
}

.mobile-menu ul li ul li a {
  padding: 8px 20px;
}

/* Dropdown for the main menu in mobile */
.mobile-menu > ul > li > a {
  cursor: pointer;
}

/* Media Responsive */
@media screen and (max-width: 600px) {
  .desktop-menu {
    display: none !important;
  }

  .hamburger {
    display: block !important;
  }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(85, 136, 59, 0.4);
  z-index: 2000;
}

  .mobile-menu > ul {
    display: block;
    padding: 0;
    margin: 0;
  }

  .mobile-menu > ul > li {
    display: block;
    width: 100%;
  }

  .mobile-menu > ul > li > ul {
    display: none;
  }

  .mobile-menu > ul > li.open > ul {
    display: block;
  }

  .search-box input {
    width: 120px;
    padding: 4px 6px;
  }

  .search-icon {
    display: inline;
  }
}

.mobile-menu ul li:hover ul {
  display: block;
}

.mobile-menu ul li ul li a {
  padding: 8px 20px;
}
/* Media Responsive */
/* Tablet */
@media screen and (max-width: 992px) {
  .card {
    width: 47%;
    margin: 0 1.5% 20px;
  }
}

/* Footer */
.footer {
  width: 100%;
  background-color: rgb(85, 136, 59,0.4);
  color: white;
  text-align: left;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: normal;
}

.footer p {
  margin: 0;
  font-family: calibri;
}
/* Bagian video full screen */
    .hero {
      position: relative;
      height: 100vh; /* full screen tinggi */
      overflow: hidden;
    }

    .hero video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover; /* biar video penuh */
      z-index: -1; /* taruh video di belakang */
    }

    /* Teks di atas video */
    .hero-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white;
      text-align: center;
      font-size: 36px;
      font-weight: bold;
      text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    }

    /* Konten di bawah video */
    .content {
      padding: 50px;
      background: #f5f5f5;
      font-size: 18px;
      line-height: 1.6;
    }

/* Profile Section */
.profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 20px;
  background: #f5f5f5;
  max-width: 1200px;
  margin: 50px auto 0px auto; /* Set bottom margin to 0 for minimal spacing to products */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-text {
  flex: 1;
  padding-right: 20px;
}

.profile-text h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.profile-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
}

.profile-image {
  flex: 1;
  text-align: center;
}

.profile-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.products {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  background: #e6f0dc;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  color: #55883b;
  margin-bottom: 30px;
  text-align: center;
}

.cards-container {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.card {
  width: 30%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 90%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin: 0 auto;
  display: block;
}

.card p {
  margin: 15px 0 0 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.card {
  text-decoration: none;
}

/* Responsive for small screens */
@media screen and (max-width: 768px) {
  .products {
    flex-direction: column;
    align-items: center;
  }

  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 80%;
    margin: 10px 0;
  }
}

/* Advertisement Section */
.advertisement {
  background: linear-gradient(to right, #55883b, #3e5d27);
  color: white;
  text-align: center;
  padding: 50px 20px;
  margin: 20px 0;
}

.advertisement-banner h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.advertisement-banner p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.advertisement .btn {
  background-color: white;
  color: #55883b;
  border: none;
}

.advertisement .btn:hover {
  background-color: #c1e899;
  color: black;
}

/* Contact Section */
.contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 50px 20px 100px 20px; /* Added bottom padding for spacing from footer */
  background: #f9f9f9;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info {
  flex: 1;
  padding-right: 20px;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 10px;
}

.contact-map {
  flex: 1;
  text-align: center;
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Button style for "Lihat Produk" */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #55883b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #3e5d27;
}

/* Responsive for contact section */
@media screen and (max-width: 768px) {
  .contact {
    flex-direction: column;
  }

  .contact-info {
    padding-right: 0;
    margin-bottom: 20px;
    text-align: left; /* Align text left on small screens */
  }

  .contact-map {
    text-align: center; /* Center map on small screens */
  }

  .contact-map iframe {
    height: 250px;
    margin: 0 auto; /* Center iframe */
    display: block;
  }
}

/* Admin Page Styles */
.admin-content {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 50px;
  margin-bottom: 50px;
}

.admin-content h1 {
  text-align: center;
  color: #55883B;
  margin-bottom: 30px;
  font-size: 32px;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-table th,
.product-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  color: black;
}

.product-table th {
  background-color: #55883b;
  color: white;
  font-weight: bold;
}

.product-table tr:hover {
  background-color: #f5f5f5;
}

.btn-edit,
.btn-delete {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 5px;
}

.btn-edit {
  background-color: #4CAF50;
  color: white;
}

.btn-edit:hover {
  background-color: #45a049;
}

.btn-delete {
  background-color: #f44336;
  color: white;
}

.btn-delete:hover {
  background-color: #da190b;
}

/* Responsive for admin table */
@media screen and (max-width: 768px) {
  .product-table {
    font-size: 14px;
  }

  .product-table th,
  .product-table td {
    padding: 10px;
  }

  .admin-content {
    padding: 20px 10px;
  }
}
