
section {
  display: flex;
  justify-content: center;

}
#section-header {
  background: #0B1A63;
  
  min-height: 300px;
  position: relative;
}
.page-title{
  color: #FFF;
  position: absolute;
  bottom: 30%;
}

.work-team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px;
}

.work-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}

.work-card:hover {
  transform: translateY(-5px);
}

.card-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
}

.card-body {
  margin-top: 12px;
  flex-grow: 1;
}

.card-body ul {
  padding-left: 18px;
  margin: 0;
}

.card-body li {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.4;
}

.card-footer {
  margin-top: 15px;
}

.card-footer a {
  color: #007bff;
  font-weight: 500;
  text-decoration: none;
}

.card-footer a:hover {
  text-decoration: underline;
}


/*  */
/* Background overlay */
.custom-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal box */
.modal-dialog {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 700px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.25s ease-out;
  max-height: 80vh;          /* batasi tinggi modal */
  display: flex;
  flex-direction: column;    /* susun vertikal */

}

/* Close button */
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #000;
}

/* Title */
.modal-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px !important;
  text-align: center;
  color: #333;

  flex-shrink: 0; /* jangan ikut terpotong saat scroll */
  
}

/* Body */
.modal-body {
  font-size: 16px;
  color: #444;

  flex: 1;                   /* isi body memenuhi sisa ruang */
  overflow-y: auto;          /* scroll hanya di body */
  min-height: 0;             /* biar flex bisa shrink */

}
.modal-body ul {
  padding-left: 20px;
}
.modal-body li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Animasi */
@keyframes fadeIn {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}





@media (max-width: 768px) {

  #section-header {
    min-height: 250px;
  }
  .page-title{
    bottom: 25% !important;

  }



}