

/* CARD */
.team-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: 0.4s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.12);
}

/* FLOAT IMAGE */
.team-image {
  float: left;
  width: 320px;
  margin: 0 35px 25px 0;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.team-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
  transition: transform 0.5s ease;
}

.team-image:hover img {
  transform: scale(1.08);
}

/* CONTENT */
.team-content h3 {
  color: var(--primary-blue);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.team-content h4 {
  color: var(--accent-red);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* INFO BOX */
.info-box {
  background: #f8f9ff;
  /*border-left: 4px solid var(--primary-blue);*/
  padding: 18px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.info-box p,
.info-box h5 {
  margin-bottom: 10px;
  color: #444;
  line-height: 1.8;
  font-size: 15px;
}

/* LINKS */
.info-box a {
  /*color: #fff;*/
  font-weight: 600;
  text-decoration: none;
}

.info-box a:hover {
  /*color: #fff;*/
}

/* FULL PROFILE */
.profile-btn {
  display: inline-block;
  margin-top: 15px;
  background: var(--primary-blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.profile-btn:hover {
  background: var(--accent-red);
  color: #fff;
}

/* DESCRIPTION */
.team-description p {
  color: #444;
  line-height: 1.9;
  font-size: 15px;
  text-align: justify;
  margin-bottom: 18px;
}

/* PROJECT LIST */
.project-list {
  margin-top: 20px;
  padding-left: 18px;
}

.project-list li {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #444;
}

.project-list b {
  color: var(--primary-blue);
}

/* CLEAR FIX */
.team-content::after {
  content: "";
  display: block;
  clear: both;
}

/* RESPONSIVE */
@media(max-width:991px){

  .team-image {
    float: none;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 30px;
  }

  .team-content h3,
  .team-content h4 {
    text-align: center;
  }

  .profile-btn {
    display: table;
    margin: 20px auto 0;
  }
}

@media(max-width:576px){

  .team-card {
    padding: 25px;
  }

  .team-content h3 {
    font-size: 26px;
  }

  .team-content h4 {
    font-size: 18px;
  }
}