html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

main {
    flex: 1; 
}

.main-footer {
    background: #155FE8;
    color: #fff;
    text-align: center;
    padding: 16px 0;
    width: 100%;
    font-size: 15px;
    letter-spacing: 0.5px;
    margin-top: auto;
    z-index: 10;
    font-weight: 500;
}

/* --- Header --- */
.header-section {
    background: #155FE8;
    padding-top: 10px;
    padding-bottom: 24px;
    position: relative;
    text-align: center;
    z-index: 1;
    box-shadow: 4px 4px 8px grey;
    box-shadow: -4px -4px -8px grey;
}

.header-section h1,
.header-section p {
    padding-top: 10px;
    color: #fff;
    margin: 0;
}

/* --- Logo --- */
.logo {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 150px;
    height: auto;
    z-index: 10;
}

/* --- Topnav --- */
.topnav {
  background-color: #155FE8;
  display: flex;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
  z-index: 10;
  gap: 10px;
}

.topnav a {
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 20px;
  display: inline-block;
  border-bottom: 1px solid transparent;
}

.topnav a:hover {
  background-color: black;
  border-bottom: 1px solid #fff;
  border-radius: 4px;
}

.topnav a.icon {
    display: none;
}
/* === DROPDOWN DESKTOP === */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  padding: 10px;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-top: 3px solid #1976d2;
  z-index: 20;
  border-radius: 4px;
}

@media screen and (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .dropdown:hover .dropdown-content {
    display: grid; /* aktifkan grid */
  }
}

.dropdown-content a {
  color: #000;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #e3f2fd;
}

/* === SUBMENU === */
.dropdown-sub {
  position: relative;
}

.dropdown-sub > a {
  position: relative;
  padding-right: 14px; /* ruang untuk panah */
}

/* tambahkan ikon panah ke kanan */
.dropdown-sub > a::after {
  content: "▶";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #1976d2;
}

/* posisi submenu */
.dropdown-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%; /* muncul ke samping kanan */
  background-color: #fff;
  border-left: 3px solid #1976d2;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 25;
  border-radius: 4px;
}

.dropdown-submenu a {
  padding: 10px 14px;
  display: block;
  color: #000;
}

.dropdown-submenu a:hover {
  background-color: #e3f2fd;
}

/* tampil saat hover di desktop */
@media screen and (min-width: 769px) {
  .dropdown-sub:hover .dropdown-submenu {
    display: block;
  }
}


/* === MOBILE STYLING === */
@media screen and (max-width: 768px) {
  .topnav.responsive {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    background: #155FE8;
  }

  .topnav a.icon {
    display: block; /* HAMBURGER MUNCUL */
  }

  .icon {
    position: fixed;
    right: 16px;
    top: 8px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    z-index: 3000;
  }

    .header-section {
        padding-top: 50px;
    }

  /* Sembunyikan semua menu by default */
  .topnav a:not(.icon),
  .dropdown {
    display: none;
    width: 100%;
    text-align: left;
  }

  /* Saat hamburger diklik */
  .topnav.responsive a,
  .topnav.responsive .dropdown {
    display: block;
  }

  /* Dropdown & Submenu di mobile */
  .dropdown-content,
  .dropdown-submenu {
    position: static;
    display: none;
    background: #fff;
    color: #000;
    padding-left: 20px;
    border-left: 3px solid #1976d2;
  }

  .dropdown.open > .dropdown-content {
    display: block;
  }

  .dropdown-sub.open > .dropdown-submenu {
    display: block;
  }

  /* Panah submenu */
  .dropdown-sub > a::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #1976d2;
    transition: transform 0.3s ease;
  }

  .dropdown-sub.open > a::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

/* --- Gambar --- */
.plant-image {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
}

























