body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
}

.kop-surat {
  background-color: #004d00;
  color: white;
  padding: 20px;
}

.kop-container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.kop-logo {
  width: 90px;
  height: auto;
  object-fit: contain;
}

.kop-text h1 {
  margin: 0;
  font-size: 36px;
  text-transform: uppercase;
  color: white;
}

.kop-text p {
  margin-top: 10px;
  font-size: 16px;
  color: #ffcc00;
  font-weight: bold;
}

.sticky-nav {
  background-color: #002200;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

section {
  padding: 20px;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
  height: 500px;
  margin-bottom: 20px;
}

.galeri-sambutan {
  display: flex;
  width: max-content;
  transition: transform 1s ease-in-out;
}

.galeri-sambutan img {
  height: 500px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 10px;
}

.judul-besar {
  font-size: 24px;
  font-weight: bold;
  color: #004d00;
}

.berita-terbaru {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.berita-kolom {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.berita-item {
  display: flex;
  gap: 10px;
  background-color: #f7f7f7;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
}

.alumni-slider {
  margin-top: 40px;
  background-color: #e9ffe8;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
  position: relative;
  height: 300px;
}

.slider-foto {
  display: flex;
  width: max-content;
  transition: transform 1s ease-in-out;
}

.alumni-img {
  height: 300px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 10px;
}

footer {
  background-color: #004d00;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* BUNGKUS dropdown agar inline dengan menu lainnya */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Sembunyikan isi dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #004d00;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 6px;
  z-index: 999;
}

/* Tampilkan saat hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Link di dalam dropdown */
.dropdown-content a {
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-weight: normal;
}

/* Hover efek submenu */
.dropdown-content a:hover {
  background-color: #006600;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 4px;
  z-index: 2;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nav-btn:hover {
  opacity: 1;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.slider-wrapper, .alumni-slider {
  position: relative;
}

/* ======= RESPONSIVE FIXES ======= */
@media (max-width: 768px) {
  .kop-container { gap: 10px; }
  .kop-logo { width: 55px; }
  .kop-text h1 { font-size: 20px; line-height: 1.2; }
  .kop-text p { font-size: 12px; }

  .dropdown { position: relative; }
  .dropdown-content {
    position: static;
    display: none;
    margin-top: 4px;
    background-color: #003300;
    border-radius: 6px;
    box-shadow: none;
  }
  .dropdown.open .dropdown-content { display: block; }

  .slider-wrapper { height: 200px; }
  .galeri-sambutan img { height: 200px; }

  .berita-terbaru { flex-direction: column; gap: 14px; }
  .berita-kolom { flex: 1 1 100%; gap: 10px; }

  .alumni-slider { height: 200px; padding: 14px; }
  .alumni-img { height: 200px; }

  footer { padding: 14px; font-size: 14px; }
}

@media (max-width: 420px) {
  .kop-text h1 { font-size: 18px; }
  nav a { margin: 6px 8px; font-size: 13px; }
  .slider-wrapper { height: 160px; }
  .galeri-sambutan img, .alumni-img { height: 160px; }
}

@media (max-width: 768px) {
  .sticky-nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow-x: visible !important;
    padding: 8px 4px;
    gap: 4px 8px;
  }
  .sticky-nav a,
  .sticky-nav .dropdown {
    flex: 0 0 auto !important;
    margin: 6px 8px;
    font-size: 14px;
  }
}

.jam-digital {
  font-size: 18px;
  background: #004d00;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid #ffcc00;
  text-align: center;
  margin-bottom: 6px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.countdown-sholat {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.flagcounter-box {
  display: inline-block;
  border: 2px solid #004d00 !important;
  border-radius: 6px !important;
  padding: 4px;
  background: white;
}

.flagcounter-img {
  display: block;
  border-radius: 4px;
}

.sholat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  text-align: center;
  font-size: 14px;
}

.sholat-grid div {
  background: #fff;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #cce0cc;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.sholat-grid div br + * {
  font-weight: bold;
}

.widget-box {
  margin-bottom: 18px;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.konten-utama {
  flex: 3;
  min-width: 60%;
}
.sidebar-widget {
  flex: 1;
  background-color: #f3fff3;
  padding: 15px;
  border-radius: 8px;
  min-width: 250px;
}

/* ==== FIX THUMBNAIL BERITA ==== */
.berita-item {
  align-items: flex-start !important;
}

.berita-item img,
.berita-img {
  width: 120px !important;
  height: 90px !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 6px !important;
  padding: 2px !important;
  flex-shrink: 0 !important;
}

/* === BINGKAI KONTEN UTAMA === */
.konten-utama {
  max-width: 900px;
  margin: 20px auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .konten-utama {
    padding: 15px;
    margin: 10px;
  }
}


/* === FIX GAMBAR BERITA === */
/* Sembunyikan featured image */
#gambar-berita {
  display: none !important;
}

/* Atur semua gambar di dalam isi berita agar responsif */
#isi-berita img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 10px auto;
  border-radius: 6px;
}


/* === MOBILE NAV & DROPDOWN FIX === */
@media (max-width: 768px) {
  .sticky-nav {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 4px;
  }

  .sticky-nav a,
  .sticky-nav .dropdown {
    display: inline-block;
    margin: 6px 8px;
    font-size: 14px;
  }

  /* Hanya dropdown yang menurun */
  .dropdown-content {
    position: static !important;
    width: 100% !important;
    display: none;
    margin-top: 4px;
    background-color: #003300;
    border-radius: 6px;
    box-shadow: none;
  }
  .dropdown.open .dropdown-content {
    display: block !important;
  }

  .dropdown-content a {
    display: block;
    padding: 10px;
    border-top: 1px solid #004d00;
  }
}