.team__section {
  padding-top: 40px;
  padding-bottom: 40px;
  background: var(--body);
}

.project__head {
  position: relative;
  margin-bottom: 3.5rem;
}
.project__head .common__sub {
  font-size: 1.1rem;
  color: var(--blue);
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.project__head h4 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.project__head h4::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--base));
  border-radius: 2px;
  margin: 14px auto 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  justify-items: center;
}

@media (max-width: 1199px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 991px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 575px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.team-card {
  background: var(--bg1);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s cubic-bezier(.21,1.02,.73,1.01), box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 340px;
  width: 100%;
  border: 2px solid transparent;
  z-index: 1;
}
.team-card::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  z-index: -1;
  border-radius: 1.7rem;
  background: linear-gradient(120deg, var(--blue), var(--base));
  opacity: 0.18;
  transition: opacity 0.2s;
}
.team-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 12px 36px 0 rgba(0,141,210,0.18);
  border-color: var(--blue);
}
.team-card:hover::before {
  opacity: 0.38;
}

.team-card-accent {
  width: 48px;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--base));
  border-radius: 3px;
  margin: 0 auto 1.2rem auto;
}

.team-card-img-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.2rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--blue);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px 0 rgba(0,141,210,0.10);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.team-card:hover .team-card-img-wrap {
  box-shadow: 0 6px 24px 0 rgba(0,141,210,0.22);
  border-color: var(--base);
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.team-card:hover .team-card-img {
  transform: scale(1.07) rotate(-2deg);
}

.team-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 0.15rem;
  letter-spacing: 0.5px;
  font-family: "Kanit", sans-serif;
}

.team-card-role {
  /* font-size: 1.05rem; */
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.7rem;
  font-family: "Kanit", sans-serif;
  letter-spacing: 0.2px;
}

.team-card-bio {
  font-size: 0.97rem;
  color: var(--mtitle);
  margin-bottom: 1.1rem;
  min-height: 38px;
  font-family: "Kanit", sans-serif;
}

.team-card-socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
}

.team-card-socials a {
  color: var(--blue);
  font-size: 1.3rem;
  background: var(--white);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px 0 rgba(0,141,210,0.08);
}
.team-card-socials a:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px 0 rgba(0,141,210,0.18);
  transform: scale(1.18) rotate(-8deg);
}

@media (max-width: 1199px) {
  .team__section {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .team-card {
    padding: 2rem 1rem 1.5rem 1rem;
    max-width: 100%;
  }
  .team-card-img-wrap {
    width: 100px;
    height: 100px;
  }
  .team-card-name {
    font-size: 1.1rem;
  }
  .team-card-role {
    font-size: 0.98rem;
  }
  .team-card-socials a {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}
@media (max-width: 991px) {
  .team__section {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .team-card-img-wrap {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 575px) {
  .team-grid {
    gap: 1rem;
  }
  .team-card {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .team-card-img-wrap {
    width: 60px;
    height: 60px;
  }
  .team-card-bio {
    min-height: 0;
  }
}

/* Founder Highlight Section */
.founder-highlight-section {
  background: linear-gradient(90deg, var(--bg1) 60%, var(--blue) 100%);
  padding-top: 48px;
  padding-bottom: 48px;
  margin-bottom: 0;
}
.founder-highlight-card {
  /* display: flex; */
  align-items: flex-start;
  gap: 2.2rem;
  background: rgba(255,255,255,0.04);
  border-radius: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0,141,210,0.10);
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.founder-highlight-img-wrap {
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  overflow: hidden;
  /* border: 6px solid var(--blue); */
  background: var(--white);
  box-shadow: 0 4px 24px 0 rgba(0, 141, 210, 0.13);
  margin-top: 0.5rem;
  margin-right: 1.5rem;
  float: left;
  display: block;
  shape-outside: inset(0);
  -webkit-shape-outside: inset(0);
  margin-bottom: 1rem;
}
.founder-highlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-highlight-content {
  flex: 1;
  min-width: 0;
  /* overflow: hidden; */
  display: block;
}
.founder-highlight-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--title);
  margin-bottom: 0.2rem;
  font-family: "Kanit", sans-serif;
}
.founder-highlight-role {
  /* font-size: 1.3rem; */
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 1.1rem;
  font-family: "Kanit", sans-serif;
}
.founder-highlight-bio {
  font-size: 1.08rem;
  color: var(--mtitle);
  line-height: 1.7;
  font-family: "Kanit", sans-serif;
  text-align: justify;
}
.founder-highlight-socials {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.founder-highlight-socials a {
  color: var(--blue);
  font-size: 1.5rem;
  background: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px 0 rgba(0,141,210,0.08);
}
.founder-highlight-socials a:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px 0 rgba(0,141,210,0.18);
  transform: scale(1.15) rotate(-8deg);
}
@media (max-width: 991px) {
  .founder-highlight-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 2rem 1.2rem;
  }
  .founder-highlight-img-wrap {
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  overflow: hidden;
  /* border: 6px solid var(--blue); */
  background: var(--white);
  box-shadow: 0 4px 24px 0 rgba(0, 141, 210, 0.13);
  margin-top: 0.5rem;
  margin-right: 1.5rem;
  float: left;
  display: block;
  shape-outside: inset(0);
  -webkit-shape-outside: inset(0);
  margin-bottom: 1rem;
}
  .founder-highlight-content {
    width: 100%;
    display: block;
  }
  .founder-highlight-name {
    font-size: 1.5rem;
  }
  .founder-highlight-bio {
    font-size: 0.98rem;
  }
  .founder-highlight-socials a {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}
@media (max-width: 575px) {
  .founder-highlight-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .founder-highlight-card {
    padding: 1.2rem 0.2rem;
    gap: 1.2rem;
  }
  .founder-highlight-img-wrap {
    display: none;
    width: 150px;
    height: 150px;
    border-width: 3px;
  }
} 