* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #111;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 30px 20px;
}

h1 {
  margin-top: 0;
  font-size: 28px;
}

p {
  line-height: 1.6;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn {
  display: inline-block;
  background: #16a34a; /* hijau professional */
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background: #15803d;
}

.back-link {
  display: inl
}

.video-item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
}

.video-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.video-desc {
  font-size: 14px;
  opacity: 0.85;
}

.btn-small {
  padding: 10px 14px;
  border: none;
  cursor: pointer;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* ===============================
   MODULE (COLLAPSE/EXPAND)
=============================== */

.module {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
}

.module-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  background: rgba(0,0,0,0.03);
}

.module-summary::-webkit-details-marker {
  display: none;
}

.module-hint {
  font-weight: normal;
  font-size: 12px;
  opacity: 0.7;
}

/* ruang dalam modul */
.module-body {
  padding: 14px 14px 2px 14px;
}

/* ===============================
   VIDEO LIST + INLINE PLAYER
=============================== */

.video-item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
  flex-wrap: wrap; /* penting untuk inline player */
}

.video-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.video-desc {
  font-size: 14px;
  opacity: 0.85;
}

.btn-small {
  padding: 10px 14px;
  border: none;
  cursor: pointer;
}

.video-inline {
  width: 100%;
  margin-top: 12px;
}

/* Responsive YouTube */
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Mobile friendly */
@media (max-width: 640px) {
  .container {
    padding: 22px 14px;
  }

  .video-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn.btn-small {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 22px;
  }
}
/* ===============================
   NOTICE / UPDATE BOX
=============================== */

.notice {
  border-left: 6px solid #16a34a;
  background: #ffffff;
}

.notice-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.notice-list {
  margin: 0;
  padding-left: 18px;
}

.notice-list li {
  margin-bottom: 6px;
}


/* ===============================
   GLOBAL RESPONSIVE (ALL PAGES)
=============================== */

/* pastikan elemen tak overflow screen */
img, iframe, video {
  max-width: 100%;
  height: auto;
}

/* typography & spacing untuk mobile */
@media (max-width: 640px) {
  .container {
    max-width: 100%;
    padding: 18px 12px;
  }

  .card {
    padding: 16px;
    border-radius: 12px;
  }

  h1 {
    font-size: 22px;
    line-height: 1.25;
  }

  h2 {
    font-size: 18px;
    line-height: 1.25;
  }

  p, li {
    font-size: 15px;
  }

  /* button jadi senang tekan */
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    padding: 24px 16px;
  }

  h1 {
    font-size: 26px;
  }
}

/* ===============================
   PDF VIEWER (AUTO READ)
=============================== */

.pdf-wrap iframe {
  width: 100%;
  border: none;
  border-radius: 12px;
  height: 82vh; /* desktop default */
}

/* mobile: bagi tinggi sesuai skrin */
@media (max-width: 767px) {
  .pdf-wrap iframe {
    height: 75vh;
    border-radius: 10px;
  }
}


