/* ==========================================================================
   Team Section Styles
   ========================================================================== */

/* Team Section */
.team {
  padding: 3rem 0;
  background: #000000;
}

.team .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-header {
  text-align: center;
  margin-bottom: 4rem;
}

.team-label {
  font-size: 12px;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.team-title {
  font-size: 2.6rem;
  font-weight: 100;
  line-height: 56px;
  color: #ffffff;
  margin: 0;
  padding:0 4.75em;
  letter-spacing: -0.02em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.team-card {
  border-radius: 15px;
  background-color: #ffffff;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
  height: auto;
}

/* Collapsed state - smaller card */
.team-card[data-expanded="false"] {
  height: 450px;
}

/* Expanded state - taller card */
.team-card[data-expanded="true"] {
  height: auto;
  min-height: 550px;
}

.team-member-image {
  width: 100%;
  height: 320px;
  border-radius:  16px 16px 0px 0px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #0d0d0d;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.team-member-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0px 15px;
}

.team-member-info {
  flex: 1;
}

.team-member-name {
  font-size: 19px;
  font-weight: 400;
  color: #0c0c0c;
  margin: 0 0 8px 0;
  line-height: 21px;
  letter-spacing: -0.3px;
}

.team-member-role {
  font-size: 12px;
  color: #999999;
  line-height: 1.4;
  margin: 0;
  font-weight: 300;
}

/* Description always present but positioned based on card state */
.team-member-description {
  transition: all 0.4s ease;
  overflow: hidden;
  margin: 0;
}


.team-member-description p {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0;
  padding: 15px;
  transition: opacity 0.4s ease;
}

/* Collapsed state - description hidden within card bounds */
.team-card[data-expanded="false"] .team-member-description {
  max-height: 0;
  padding: 0;
}

.team-card[data-expanded="false"] .team-member-description p {
  opacity: 0;
  padding: 0 15px;
}

/* Expanded state - description visible within expanded card */
.team-card[data-expanded="true"] .team-member-description {
  max-height: 215px;
  padding: 0;
}

.team-card[data-expanded="true"] .team-member-description p {
  opacity: 1;
  padding: 15px;
}

.linkedin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  background-color: #eae9e4;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: #ffffff;
}

.linkedin-link svg:hover {
  color: #0077b5;
}

.linkedin-link svg {
  width: 20px;
  height: 20px;
  color:#000000;
}

.view-more-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  color: #1c57f8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-more-button .plus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 20px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.view-more-button .button-text {
  font-size: 14px;
  color: #1c57f8;
}

/* Team Section Mobile */
@media (max-width: 768px) {
  .team {
    padding: 2rem 0;
  }

  .team-card{
    height: 425px;
  }

  .team-title {
    font-size: 1.3rem;
    padding: 0 1.5rem;
    line-height: 30px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    padding: 0 20px;
  }

  .team-card {
    width: 100%;
  }

  .team-member-image {
    height: 280px;
  }
}