// main: ../main.scss
/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team {
  .team-member {
    position: relative;
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    border-radius: 8px;
    transition: 0.3s;

    &:hover {
      border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
    }

    .member-img {
      flex: 0 0 200px;
      overflow: hidden;

      img {
        width: 200px;
        height: 100%;
        object-fit: cover;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
      }
    }

    .member-info {
      padding: 25px;
      text-align: left;

      h4 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 5px;
        color: var(--heading-color);
      }

      span {
        font-size: 0.9rem;
        font-weight: 400;
        color: color-mix(in srgb, var(--heading-color), transparent 30%);
        display: block;
        margin-bottom: 15px;
      }

      p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        color: color-mix(in srgb, var(--default-color), transparent 20%);
      }

      .social {
        display: flex;
        gap: 10px;

        a {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          width: 32px;
          height: 32px;
          font-size: 1rem;
          color: var(--heading-color);
          transition: 0.3s;
          border-radius: 4px;
          border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);

          &:hover {
            color: var(--accent-color);
            border-color: var(--accent-color);
            background: color-mix(in srgb, var(--accent-color), transparent 95%);
          }
        }
      }
    }
  }

  @media (max-width: 767px) {
    .team-member {
      flex-direction: column;

      .member-img {
        flex: auto;

        img {
          width: 100%;
          border-radius: 8px 8px 0 0;
        }
      }

      .member-info {
        text-align: center;

        .social {
          justify-content: center;
        }
      }
    }
  }
}