/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Body */
body {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* isi penuh layar */
}

main, section {
  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: 50px;
  margin-right: 10px;
}

header .judul h1 {
  font-size: 16px;
  margin-bottom: 4px;
}

header .judul p {
  font-size: 12px;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}
/* Hero */
.hero {
  background: linear-gradient(to right, #2ecc71, #27ae60);
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.hero h2 {
  font-size: 28px;
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.dropdown-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 12px;
  margin-left: 5px;
  cursor: pointer;
}
.dropdown-content, .dropdown-subcontent {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #28a745;
  min-width: 180px;
  z-index: 1000;
}
.dropdown-content li a, .dropdown-subcontent li a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
}
.dropdown-content li a:hover, .dropdown-subcontent li a:hover {
  background: #1f8027;
}
.dropdown-content.show, .dropdown-subcontent.show {
  display: block;
}

/* Section Persyaratan Nikah */
.persyaratan {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.persyaratan h2 {
  font-size: 26px;
  color: #28a745;
  margin-bottom: 40px;
}

.triangle-container {
  max-width: 700px;
  margin: 0 auto;
}

.triangle-container .top {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.triangle-container .bottom {
  display: flex;
  justify-content: space-between;
}

.triangle-container .item {
  width: 290px;
  text-align: center;
}

.triangle-container .item img {
  width: 100%;
  max-width: 290px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.triangle-container .item h3 {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

/* Hover effect */
.triangle-container .item:hover img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .triangle-container .bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}


footer {
  text-align: center;
  background: linear-gradient(90deg, #28a745, #218838);
  color: white;
  padding: 20px 10px;
  margin-top: auto;   /* dorong footer ke paling bawah */
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

footer p {
  margin: 5px 0;
  font-size: 14px;
}

footer .footer-links {
  margin-top: 8px;
}

footer .footer-links a {
  margin: 0 8px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

footer .footer-links a:hover {
  color: #ffe600;
}

/* Dropdown hover */
.dropdown:hover > .dropdown-content {
  display: block;
}

/* Submenu hover */
.dropdown-content li.dropdown:hover > .dropdown-subcontent {
  display: block;
  left: 120px;
  top: 0;
}

/* Buang style tombol panah */
.dropdown-toggle {
  display: none;
}

/* Dropdown langsung di navbar */
nav ul > li.dropdown:hover > .dropdown-subcontent {
  display: block;
  top: 100%;
  left: 0;
}

/* Submenu dalam dropdown (turun ke bawah, bukan ke samping) */
.dropdown-subcontent li.dropdown:hover > .dropdown-subcontent {
  display: block;
  position: absolute;
  top: 100%;  /* turun ke bawah dari parent */
  left: 0;    /* sejajar kiri dengan parent */
}