/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-top: 70px;
  background: #f9f9f9;
}

main {
  flex: 1;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #28a745;
  padding: 10px 20px;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  width: 45px;
  margin-right: 10px;
  border-radius: 5px;
}

header .judul h1 {
  font-size: 16px;
  line-height: 1.2;
}

header .judul p {
  font-size: 12px;
}

/* NAVBAR */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul li {
  position: relative;
  margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  display: block;
}

nav ul li a:hover {
  background: #1f8027;
  border-radius: 5px;
}

/* DROPDOWN */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #28a745;
  border-radius: 5px;
  list-style: none;
  min-width: 200px;
  z-index: 1000;
}

nav ul li:hover > ul {
  display: block;
}

/* SUBMENU (KE SAMPING) */
nav ul li ul li ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #28a745;
  border-radius: 5px;
  min-width: 200px;
}

nav ul li ul li:hover > ul {
  display: block;
}

/* KHUSUS FORM NIKAH KE BAWAH */
.dropdown-content li.dropdown:hover > .dropdown-subcontent {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
}

.dropdown-subcontent {
  background: #28a745;
  border-radius: 5px;
  padding: 5px 0;
  min-width: 200px;
}

.dropdown-subcontent li a {
  color: #fff;
  padding: 10px 15px;
  display: block;
}

.dropdown-subcontent li a:hover {
  background: #1f8027;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  user-select: none;
}

/* HERO */
.hero {
  background: linear-gradient(to right, #2ecc71, #27ae60);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.hero h2 {
  font-size: 28px;
}

/* VISI MISI */
.visi-misi {
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.visi-misi h3 {
  font-size: 22px;
  color: #28a745;
  margin-bottom: 15px;
}

.visi p, .misi ol {
  color: #444;
  line-height: 1.8;
  text-align: justify;
}

/* FOOTER */
footer {
  text-align: center;
  background: #28a745;
  color: white;
  padding: 20px;
  margin-top: auto;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav.active {
    display: block;
    background: #28a745;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    padding: 10px 20px;
  }

  .visi-misi {
    grid-template-columns: 1fr;
  }
}

