/* =====================================
   UCDML LEADERSHIP – UPDATED PREMIUM
===================================== */

#ucdml-leadership{
  padding: 90px 16px;
  background: linear-gradient(180deg,#ffffff,#f4fffb);
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Container */
.ucdml-leadership-wrap{
  max-width: 1400px; /* wider layout */
  margin: auto;
}

/* Title */
.ucdml-leadership-title{
  text-align: center;
  margin-bottom: 60px;
}

.ucdml-leadership-title h4{
  font-size: 13px;
  letter-spacing: 2px;
  color: #1ec6c6;
  margin-bottom: 6px;
}

.ucdml-leadership-title h2{
  font-size: 38px;
  font-weight: 800;
  color: #003436;
  margin-bottom: 12px;
}

.ucdml-leadership-title p{
  max-width: 780px;
  margin: auto;
  line-height: 1.7;
  color: #5f6f73;
}

/* Rows */
.ucdml-leadership-row{
  display: flex;
  gap: 36px; /* more breathing space */
  margin-bottom: 36px;
}

.ucdml-leadership-row.row-3{
  justify-content: space-between;
}

.ucdml-leadership-row.row-2{
  justify-content: center;
}

/* Card */
.ucdml-leadership-card{
  width: 100%;
  max-width: 400px;   /* ⬅️ card width increased */
  background: #ffffff;
  border-radius: 22px;
  padding: 40px 28px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;

  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.05);

  position: relative;
  transition: transform 0.35s ease,
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

/* Hover */
.ucdml-leadership-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 32px 60px rgba(30,198,198,0.18);
  border-color: rgba(30,198,198,0.55);
}

/* Bottom accent line */
.ucdml-leadership-card::after{
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 4px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(90deg,#1ec6c6,#6fffd8);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ucdml-leadership-card:hover::after{
  opacity: 1;
}

/* Image */
.ucdml-leadership-card img{
  width: 165px;
  height: 165px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;

  border: 2px solid rgba(30,198,198,0.25); /* ⬅️ thinner before hover */
  background: #ffffff;

  transition: transform 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

/* Image hover (still clear) */
.ucdml-leadership-card:hover img{
  transform: scale(1.035);
  border-color: rgba(30,198,198,0.55); /* stronger on hover */
  box-shadow: 0 0 0 6px rgba(30,198,198,0.10);
}

/* Text */
.ucdml-leadership-card h3{
  font-size: 22px;
  font-weight: 700;
  color: #003436;
  margin-bottom: 6px;
}

.ucdml-leadership-card span{
  font-size: 14.5px;
  line-height: 1.6;
  color: #5c6b6e;
}

/* Mobile */
@media (max-width: 900px){
  .ucdml-leadership-row{
    flex-direction: column;
    align-items: center;
  }

  .ucdml-leadership-row.row-3,
  .ucdml-leadership-row.row-2{
    justify-content: center;
  }

  .ucdml-leadership-card{
    max-width: 440px;
  }
}

@media (max-width: 480px){
  #ucdml-leadership{
    padding: 60px 14px;
  }

  .ucdml-leadership-card img{
    width: 140px;
    height: 140px;
  }

  .ucdml-leadership-title h2{
    font-size: 28px;
  }
}
