/* Timeline adjustments */
.timeline-item h3{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1rem;
}

/* Thumbnail Image */
.training-thumb{
  width:50px;
  height:50px;
  object-fit:cover;
  border-radius:8px;
  cursor:pointer;
  border:2px solid #ccc;
  transition: transform 0.2s ease;
}

.training-thumb:hover{
  transform:scale(1.1);
  border-color:#333;
}

/* Modal Lightbox */
.modal{
  display:none;
  position:fixed;
  z-index:1000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background-color:rgba(0,0,0,0.85);
  overflow:auto;
  padding-top:60px;
  display:none;
}

.modal-content{
  margin:auto;
  display:block;
  max-width:80%;
  max-height:80%;
  border-radius:15px;
}

#caption{
  margin:auto;
  display:block;
  text-align:center;
  color:#fff;
  padding:10px 0;
  font-size:1rem;
}

.close{
  position:absolute;
  top:20px;
  right:35px;
  color:#fff;
  font-size:40px;
  font-weight:bold;
  cursor:pointer;
}

.close:hover{
  color:#ff5555;
}

/* Modal Lightbox */
.modal{
  display:none;
  position:fixed;
  z-index:1000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background-color:rgba(0,0,0,0.85);
  overflow:auto;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0px; /* مساحة حوالي الصورة */
  box-sizing:border-box;
}

.modal-content{
  max-width:90%;
  max-height:90%;
  object-fit:contain; /* مهم جداً عشان الصورة كلها تظهر */
  border-radius:15px;
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
}

#caption{
  margin-top:10px;
  text-align:center;
  color:#fff;
  font-size:1rem;
}

.close{
  position:absolute;
  top:20px;
  right:35px;
  color:#fff;
  font-size:40px;
  font-weight:bold;
  cursor:pointer;
}

.close:hover{
  color:#ff5555;
}

.timeline-item .training-content {
  display: flex;
  justify-content: space-between; /* الاسم على الشمال، الأيقونة على اليمين */
  align-items: center;
  margin-bottom: 5px;
}

.cert-icon {
  width: 40px;
  height: 50px;
  cursor: pointer;
  transition: transform 0.2s;
}

.cert-icon:hover {
  transform: scale(1.2); /* تكبير خفيف عند المرور */
}

#trainingModal {
  display: none; /* يخلي المودال مخفي أولًا */
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
  display: none; /* مهم جدًا */
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top:20px;
  right:20px;
  font-size: 30px;
  color:white;
  cursor:pointer;
}
