/* ==================== GLOBAL ==================== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f8f6;
  color: #222;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

/* ==================== HEADER ==================== */
.site-header {
  background: #006b3c;
  color: white;
  padding: 10px 0 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
}

.header-inner img {
  height: 70px;
}

.site-title {
  text-align: center;
}

.site-title h1 {
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;
  font-weight: bold;
}

.site-title .tagline {
  margin: 0;
  font-size: 14px;
  color: #dfffe9;
}

/* ==================== NAVIGATION ==================== */
.main-nav {
  background: #004d26;
}

.main-nav .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 4px;
  transition: 0.2s;
}

.main-nav a:hover {
  background: #009a60;
}

/* Dropdown wrapper */
.dropdown {
  position: relative;
}

/* Dropdown menu */
.dropdown-content {
  display: none; /* default disembunyikan */
  position: absolute;
  background: #ffffff; /* putih */
  min-width: 180px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  border-radius: 5px;
  right: 0;
}

/* Item dropdown */
.dropdown-content a {
  color: #006b3c !important;  /* hijau gelap biar langsung terlihat */
  padding: 10px 12px;
  display: block;
  text-decoration: none;
  font-weight: 600;
}

/* Hover efek */
.dropdown-content a:hover {
  background: #009a60; 
  color: #fff !important;
}

/* Saat kursor hover dropdown, tampilkan menu */
.dropdown:hover .dropdown-content {
  display: block;
}


/* ==================== SLIDER ==================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 92%;
  max-width: 1200px;
  margin: 15px auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  background: #fff;
}

.slider-container {
  display: flex;
  width: 300%;
  animation: slide 18s infinite ease-in-out;
}

.slide {
  flex: 1;
}

.slide img {
  width: 100%;
  height: auto;              /* <<< ubah dari 270px ke auto */
  max-height: 400px;         /* <<< batas maksimal supaya tidak tinggi berlebih */
  object-fit: contain;       /* <<< ubah dari cover ke contain */
  border-radius: 10px;
  display: block;
  margin: 0 auto;            /* tengah otomatis */
  background: #000;          /* latar belakang hitam agar pas */
}

/* Animasi tetap */
@keyframes slide {
  0% { transform: translateX(0); }
  33% { transform: translateX(-100%); }
  66% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}


/* ==================== MAIN CONTENT ==================== */
.main-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  margin: 20px auto;
  width: 100%;
  max-width: 1200px;
}

/* ==================== KOLOM KIRI ==================== */
.left-column section {
  background: #fff;
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.left-column h2 {
  color: #006b3c;
  border-bottom: 3px solid #006b3c;
  padding-bottom: 6px;
  margin-top: 0;
}

/* --- BERITA TERBARU --- */
.berita-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.berita-item img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.berita-text p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.btn-selengkapnya {
  display: inline-block;
  margin-top: 10px;
  background: #006b3c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-selengkapnya:hover {
  background: #009a60;
}

/* --- FOTO KEGIATAN --- */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.foto-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s;
}

.foto-card img:hover {
  transform: scale(1.05);
}

/* --- TENTANG KAMI --- */
.tentang-kami p {
  color: #333;
  line-height: 1.6;
}

/* ==================== KOLOM KANAN ==================== */
.right-column section {
  background: #fff;
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.right-column h2 {
  color: #006b3c;
  border-bottom: 3px solid #006b3c;
  padding-bottom: 6px;
  margin-top: 0;
}

/* --- PENGUMUMAN --- */
.pengumuman ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pengumuman li {
  padding: 8px 0;
  border-bottom: 1px solid #e0eee7;
}

.pengumuman a {
  color: #006b3c;
  text-decoration: none;
  font-weight: 600;
}

.pengumuman a:hover {
  text-decoration: underline;
}

/* --- FOTO KEGIATAN KANAN --- */
.foto-kanan .foto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.foto-kanan img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

/* --- VIDEO KEGIATAN --- */
.video-item {
  margin-top: 15px;
}

.video-item video,
.video-item iframe {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* ==================== FOOTER ==================== */
footer {
  background: #004d26;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
  border-top: 5px solid #006b3c;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }


  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .main-nav .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .berita-item {
    flex-direction: column;
  }

  .slide img {
    height: 220px;
  }

  .hero-slider {
    width: 100%;
    border-radius: 10px;
  }
}
.social-icons a {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  opacity: 0.8;
  color: #00ffcc; /* warna hijau muda saat hover */
}

/* ==================== TAMBAHAN ==================== */
aside {
  margin-left: 15px; /* geser kanan sedikit agar sejajar slider */
}

@media (max-width: 900px) {
  aside {
    margin-left: 0; /* di HP biar tetap rapi */
  }
}
