/* ------------------------------------- */
/* GAYA UMUM UNTUK BODY DAN OVERLAY */
/* ------------------------------------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
  padding-top: 70px;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
}
.overlay.active {
  display: block;
}

/* ------------------------------------- */
/* GAYA UNTUK HEADER DAN TOMBOL MENU */
/* ------------------------------------- */
.menu-toggle {
    font-size: 22px;
    cursor: pointer;
    padding: 8px 10px; 
    background: #1a237e;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    z-index: 1001;
    display: flex;
    flex-direction: column; 
    align-items: center;    
    line-height: 1;         
}

.menu-toggle .menu-text {
    font-size: 10px; 
    font-weight: normal; 
    margin-top: 2px; 
    text-transform: uppercase;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #1a237e;
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.menu-toggle {
  font-size: 22px;
  cursor: pointer;
  padding: 8px 12px;
  background: #1a237e;
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  z-index: 1001;
}
header h1 {
  margin: 0;
  font-size: 24px;
}
header p {
  margin: 5px 0 0 0;
  font-size: 14px;
}

/* ------------------------------------- */
/* GAYA UTAMA UNTUK SIDEBAR */
/* ------------------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: #1a237e;
  color: white;
  padding-top: 60px;
  transition: left 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0,0,0,0.5);
  overflow-y: auto;
}
.sidebar.active {
  left: 0;
}
.sidebar h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #bbdefb;
  font-size: 16px;
}
.sidebar ul {
  list-style-type: none;
  padding: 0;
}
.sidebar ul li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: background 0.3s ease;
  position: relative;
}
.sidebar ul li a:hover {
  background: linear-gradient(to right, #FF0000, #FFFF00, #008000);
}
.sidebar ul li a.active {
  background: #FFD700;
  color: #1a237e;
  font-weight: bold;
}
.sidebar ul li a i {
  margin-right: 10px;
}
.arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}
.sidebar ul .submenu {
  list-style-type: none;
  padding: 0;
  background: #2c3e50;
  display: none;
}
.sidebar ul li.open .submenu {
  display: block;
}
.sidebar ul li.open > a .arrow {
  transform: rotate(90deg);
}
.sidebar ul .submenu li a {
  padding-left: 50px;
  font-size: 14px;
  background: #2c3e50;
}
.sidebar ul .submenu li a:hover {
  background: linear-gradient(to right, #FF0000, #FFFF00, #008000);
}
.sidebar ul .submenu li a.active {
  background: #FFD700;
  color: #1a237e;
  font-weight: bold;
}

/* ------------------------------------- */
/* GAYA UNTUK FOOTER */
/* ------------------------------------- */
footer {
  background: #1a237e;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: relative;
  bottom: 0;
  width: 100%;
}
 
/* ------------------------------------- */
/* GAYA UNTUK KONTEN UTAMA DAN VIDEO */
/* ------------------------------------- */
.main-content {
  padding: 20px;
}
.main-content h2 {
  color: #1a237e;
  margin-top: 0;
}
.main-content p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}
.video-container {
  position: relative !important;
  padding-bottom: 56.25% !important;
  height: 0 !important;
  overflow: hidden !important;
  max-width: 100% !important;
  background: #000;
  margin: 20px 0;
}
.video-container iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* ------------------------------------- */
/* GAYA UNTUK GALERI FOTO (SWIPER CAROUSEL) */
/* ------------------------------------- */
.swiper {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-top: 20px;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.swiper-button-next, .swiper-button-prev {
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* ------------------------------------- */
/* GAYA UNTUK MAINTENANCE PAGE */
/* ------------------------------------- */
.maintenance-container {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
}
.maintenance-container h2 {
  color: #d00000;
  font-size: 24px;
  margin-bottom: 20px;
}
.maintenance-container p {
  font-size: 16px;
  margin-bottom: 10px;
}
.maintenance-container button {
  margin-top: 30px;
  padding: 12px 24px;
  background-color: #FFD700;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.maintenance-container button:hover {
  background-color: #e0b800;
}
.maintenance-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 70px - 45px);
  padding: 20px;
}

/* ------------------------------------- */
/* GAYA UNTUK HALAMAN KJP */
/* ------------------------------------- */
.kjp-container {
  max-width: 500px;
  width: 100%;
  background: #ffffff;
  margin: 40px 20px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.kjp-header {
  text-align: center;
  margin-bottom: 30px;
}
.kjp-header h2 {
  color: #1565c0;
  margin-bottom: 10px;
}
.subjudul {
  font-size: 0.95em;
  color: #555;
  font-style: italic;
}
.kjp-input {
  padding: 10px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.kjp-button {
  padding: 10px 16px;
  background-color: #1565c0;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}
.kjp-button:hover {
  background-color: #0d47a1;
}
.kjp-output {
  margin-top: 30px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.kjp-status {
  font-weight: bold;
  margin-top: 10px;
}
.layak { color: #2e7d32; }
.tidak-layak { color: #c62828; }
.final-ditetapkan { color: #2e7d32; }
.final-tidak { color: #c62828; }
.final-prioritas { color: #f9a825; }
.alasan {
  font-style: italic;
  font-size: 0.9em;
  margin-top: 8px;
  color: red;
}
.catatan {
  margin-top: 30px;
  font-size: 0.85em;
  color: #444;
  border-top: 1px dashed #ccc;
  padding-top: 20px;
}
.catatan ul {
  padding-left: 20px;
  margin-top: 10px;
}

/* ------------------------------------- */
/* MEDIA QUERY UNTUK LAYAR MOBILE */
/* ------------------------------------- */
@media screen and (max-width: 600px) {
  header h1 {
    font-size: 1.2rem;
  }
  .kjp-container {
    max-width: none;
    margin: 20px;
  }
}
/* Untuk layar tablet & lebih lebar */
@media screen and (min-width: 768px) {
  .video-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* ------------------------------------- */
/* TAMBAHAN: PERBESAR FONT MENU DI HP */
/* ------------------------------------- */
@media screen and (max-width: 600px) {
  .sidebar ul li a {
    font-size: 18px;      /* menu utama lebih besar */
    padding: 14px 22px;   /* sedikit lebih longgar */
  }
  .sidebar ul .submenu li a {
    font-size: 16px;      /* submenu lebih besar */
    padding: 12px 30px;
  }
  footer {
    font-size: 16px;      /* samakan dengan menu */
  }
}
/* ------------------------------------- */
/* AKTIFKAN WARNA HOVER JUGA DI MOBILE */
/* ------------------------------------- */
.sidebar ul li a:hover,
.sidebar ul li a:active {
  background: linear-gradient(to right, #FF0000, #FFFF00, #008000);
  color: #fff;
}
/* ------------------------------------- */
/* WARNA TEKAN (ACTIVE) UNTUK MOBILE TOUCH */
/* ------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  .sidebar ul li a:active {
    background: linear-gradient(to right, #FF0000, #FFFF00, #008000) !important;
    color: #fff !important;
    transition: background 0.1s ease;
  }

  .sidebar ul .submenu li a:active {
    background: linear-gradient(to right, #FF0000, #FFFF00, #008000) !important;
    color: #fff !important;
  }
}

