/* === GLOBAL === */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f9f4;
  color: #333;
}

/* === NAVBAR === */
.navbar {
  background-color: #e8f5e9;
  padding: 15px 0;
}

.navbar .container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.nav-logo {
  width: 60px;
  margin-right: 4px;
}

.logo {
  font-size: 1.6em;
  font-weight: bold;
  color: #000;
}

.nav-links {
  display: flex;
  gap: 15px;
  margin-left: auto;
}

.nav-links a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a.active,
.nav-links a:hover {
  text-decoration: underline;
}

/* === HERO SECTION === */
.hero {
  background-color: #fff;
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.small-logos-row {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  opacity: 0.2;
  z-index: 1;
}

.small-logo {
  width: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.hero-content h2,
.hero-content h1,
.hero-content p {
  color: #000;
  margin: 10px 0;
}

/* === MAIN CONTENT === */
.center-content {
  text-align: center;
  padding: 50px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 20px;
}

.card {
  background-color: #e8f5e9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 300px;
}

.card h3 {
  color: #2e7d32;
}

/* === GALLERY === */
.galeri {
  padding: 60px 20px;
  background-color: #e8f5e9;
  text-align: center;
}

.galeri h2 {
  color: #2e7d32;
  font-size: 28px;
  margin-bottom: 30px;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.galeri-grid img {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.galeri-grid img:hover {
  transform: scale(1.05);
}

/* === CONTACT FORM === */
.kontak-table-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.kontak-table {
  width: 100%;
  max-width: 700px;
  border-collapse: collapse;
  background-color: #e8f5e9;
  border: 2px solid #ace1af;
  border-radius: 8px;
  overflow: hidden;
}

.kontak-table th {
  background-color: #93ca96;
  color: white;
  padding: 15px;
  text-align: left;
  width: 30%;
}

.kontak-table td {
  padding: 15px;
}

.kontak-table input,
.kontak-table textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.kontak-table button {
  background-color: #2e7d32;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.kontak-table button:hover {
  background-color: #1b5e20;
}

.kontak-table tr {
  border-bottom: 10px solid #fff;
}

/* === STRUKTUR ORGANISASI === */
.struktur {
  padding: 60px 20px;
  background-color: #fff;
}

.struktur h2 {
  text-align: center;
  color: #2e7d32;
  margin-bottom: 30px;
}

.struktur-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #e8f5e9;
}

.struktur-table td {
  padding: 16px;
  border: 1px solid #ccc;
  vertical-align: middle;
}

.struktur-photo {
  width: 150px;
  text-align: center;
}

.struktur-info h3 {
  margin: 0 0 8px;
  color: #000;
}

.struktur-info p {
  margin: 0;
  font-weight: bold;
  color: #000;
}

.struktur-img {
  width: 120px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.struktur-img:hover {
  transform: scale(1.05);
}

/* === FOOTER === */
footer {
  background-color: #2e7d32;
  color: white;
  text-align: center;
  padding: 20px;
}

footer a {
  color: #a5d6a7;
  text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}
/* === STRUKTUR ORGANISASI: SINGLE-COLUMN TABLE === */
.struktur {
  padding: 60px 20px;
  background-color: #fff;
}

.struktur-table {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #e8f5e9;  /* hijau muda */
}

.struktur-table td {
  padding: 16px;
  border: 1px solid #ccc;
  text-align: center;
  vertical-align: middle;
}

/* Judul Pimpinan */
.struktur-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #2e7d32;
}

/* Foto */
.struktur-photo {
  padding: 8px;
}

.struktur-img {
  width: 140px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.struktur-img:hover {
  transform: scale(1.05);
}

/* Nama & Jabatan */
.struktur-namerole {
  font-size: 1em;
  color: #000;
  line-height: 1.4;
}

.struktur-namerole em {
  display: block;
  font-style: italic;
  margin-top: 4px;
}
/* ==== NAVIGATION DROPDOWN ==== */
/* pastikan .nav-links sudah display:flex */

.dropdown {
  position: relative;
}

.dropdown > a {
  display: block;
  color: white;               /* teks putih seperti nav utama */
  text-decoration: none;
  padding: 0 8px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2e7d32;  /* hijau gelap sesuai nav */
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  min-width: 180px;
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: white;               /* teks putih */
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #1b5e20;  /* hijau lebih gelap saat hover */
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* override link di nav utama agar tetap rapih */
.nav-links a,
.dropdown > a {
  padding: 10px 12px;
  font-weight: bold;
}

.nav-links a.active {
  text-decoration: underline;
}
/* NAV & DROPDOWN: font hitam & uppercase */
.nav-links a,
.dropdown > a,
.dropdown-content a {
  color: #000 !important;         /* paksa jadi hitam */
  text-transform: uppercase;      /* semua huruf jadi besar */
}
/* == NAVBAR DROPDOWN UNTUK “STRUKTUR” == */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown > a {
  /* pastikan tampil uppercase & hitam */
  text-transform: uppercase;
  color: #000;
  font-weight: bold;
  padding: 8px 0;
}

.nav-links .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #e8f5e9;    /* sama dengan navbar */
  min-width: 180px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10;
}

.nav-links .dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: #000;                  /* teks hitam */
  text-transform: uppercase;
  font-weight: normal;
  font-size: 0.85em;
  text-decoration: none;
}

.nav-links .dropdown-content a:hover {
  text-decoration: underline;
}

.nav-links .dropdown:hover .dropdown-content {
  display: block;
}
/* Hilangkan background hijau saat hover di dropdown */
.dropdown-content a:hover {
  background-color: transparent;
}
