.diklat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.diklat-item {
  background: #ffffff;
  border: 1px solid #d0e2f2;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(52, 80, 160, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 28%;
  transition: transform 0.2s ease-in-out;
}

.diklat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(52, 80, 160, 0.2);
}

.diklat-item h3 {
  color: #3450a0;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.diklat-item p {
  margin: 6px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.diklat-item strong {
  color: #3450a0;
}

.diklat-item img {
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 8px;
  object-fit: cover;
  max-height: 200px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  margin: 2px 4px 6px 0;
  background-color: #e8f0fe;
  color: #1a237e;
  border: 1px solid #c5d3f3;
}

.badge.metode-online {
  background-color: #e1f5fe;
  color: #0277bd;
  border: 1px solid #81d4fa;
}
.badge.metode-offline {
  background-color: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffcc80;
}

.diklat-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  margin-top: 8px;
}
.diklat-status.aktif {
  background-color: #e1f5ea;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.diklat-status.nonaktif {
  background-color: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.modal-diklat {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
  overflow-y: auto;
  padding: 200px 20px;
  box-sizing: border-box;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 960px;
  margin: auto;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  max-height: 70vh;        
  overflow-y: auto;           
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

.modal-thumbnail {
  text-align: center;
  margin-bottom: 20px;
}
.modal-thumbnail img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-content p {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
}
.modal-thumbnail {
  text-align: center;
  margin-bottom: 20px;
}

.modal-thumbnail img {
  max-height: 800px !important;
  height: 100%;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: inline-block;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 12px;
  font-size: 15px;
  align-items: center;
}

.info-row > div {
  flex: 1 1 30%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-body-flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}

.modal-thumbnail {
  flex: 1 1 280px;
  max-width: 320px;
  text-align: center;
}

.modal-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.modal-info {
  flex: 2 1 400px;
}

.modal-info h2 {
  margin-top: 0;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 12px;
}

.info-row > div {
  flex: 1 1 30%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-content p {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .modal-body-flex {
    flex-direction: column;
  }
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-detail,
.btn-daftar {
  background: #3450a0;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-link {
  background: #25D366;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s;
}

.diklat-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.diklat-meta-bar .left {
  font-size: 14px;
}

.diklat-meta-bar .right {
  display: flex;
  gap: 10px;
  font-size: 14px;
}


.btn-detail:hover {
  background: #2c4690;
}
.btn-daftar:hover {
  background: #1ebe5d;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #3450a0;
  font-size: 14px;
}

.filter-field {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.3s ease;
}

.filter-field:focus {
  border-color: #3450a0;
  outline: none;
}

.filter-group-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.full-width {
  width: 100%;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .filter-group-row {
    flex-direction: column;
  }
}
