/* =========================
   TEAM PAGE
========================= */

.team-page {
  background: #eaf3f0;
}


/* =========================
   HERO
========================= */

.team-hero {

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding-top: 160px;
  padding-bottom: 50px;

}

.team-hero-container {

  max-width: 1100px;
  margin: auto;
  padding-left: 20px;
  padding-right: 20px;

}

.team-hero h1 {

  font-size: 52px;
  margin-bottom: 20px;
  color: black;
  font-weight: 700;

}

.team-subtitle {

  font-size: 20px;
  max-width: 620px;
  line-height: 1.6;

}

.team-heading {
  text-align: center;
  margin-bottom: 70px;
  margin-top: 20px;
}

.team-heading h2 {
  font-size: 44px;
  font-weight: 800;
  color: #000;
  display: inline-block;
  position: relative;
}

.team-heading h2::after {
  content: "";
  display: block;
  width: 70%;
  height: 4px;
  background: #e57a2e;
  margin: 14px auto 0 auto; /* <-- vystředění underline */
  border-radius: 2px;
}

.team-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.team-text p {
  font-size: 20px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 25px;
}

/* =========================
   GRID
========================= */

.team-content {
  padding: 120px 0 120px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
}


/* =========================
   CARD
========================= */

.team-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  display: flex;
  flex-direction: column;

  transition: all 0.35s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.team-linkedin{
  display:flex;
  margin: 1px auto 12px;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  background:#0A66C2;
  color:white;
  border-radius:50%;
  text-decoration:none;
  font-size:18px;
  transition:0.2s;
}

.team-linkedin:hover{
  /*background:#004182;*/
  transform:translateY(-2px);
}

/* =========================
   PHOTO
========================= */

.team-photo-wrapper {
  width: 200px;                     /* nebo 180px – ideální velikost pro většinu karet */
  height: 200px;
  margin: 0 auto 20px auto;         /* centrování + mezera pod fotkou */
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  padding: 6px;                     /* tloušťka rámečku */
  box-sizing: content-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.team-photo-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo-wrapper img {
  transform: scale(1.06);
}


/* =========================
   CARD BODY
========================= */

.team-card-body {
  padding: 30px 28px 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
}


/* =========================
   NAME
========================= */

.team-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1f1f1f;
  transition: color 0.3s ease;
}

.team-card:hover .team-name {
  color: #3a7d6c;
}


/* =========================
   ROLE
========================= */

.team-role {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}


/* =========================
   BIO
========================= */

.team-bio {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  text-align: center;
}


/* =========================
   RESPONSIVE
========================= */

@media screen and (min-width: 1800px) {
  .team-content {
    padding: 150px 0 120px 0;
  }

  .team-heading h2 {
    font-size: 52px;
  }
}

@media screen and (max-width: 1450px) {
  .team-content {
    padding: 120px 0 120px 0;
  }

  .team-heading h2 {
    font-size: 40px;
  }
}

@media screen and (max-width: 1220px) {
  .team-content {
    padding: 120px 0 120px 0;
  }

  .team-heading h2 {
    font-size: 36px;
  }
}

@media screen and (max-width: 1030px) {
  .team-content {
    padding: 120px 0 120px 0;
  }

  .team-heading {
    margin-top: 10px;
  }

  .team-heading h2 {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  .team-heading {
    margin-top: 10px;
  }

  .team-hero h1 {
    font-size: 38px;
  }

  .team-subtitle {
    font-size: 18px;
  }

  .team-content {
    padding: 60px 0 80px 0;
  }

}

@media (max-width: 576px) {
  .team-heading {
    margin-top: 40px;
  }

  .team-hero {
    padding: 90px 0 60px 0;
  }

  .team-hero h1 {
    font-size: 32px;
  }

}
