/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f4f6fb;
    color: #1b2642;
    line-height: 1.6;
}

/* BANNER */
.team-banner {
    background-image: linear-gradient(rgba(7,16,41,0.62), rgba(7,16,41,0.62)),
        url(../assets/banners/teambanner-Bv8EbNYM.jpg);
    background-size: cover;
    background-position: center;
    height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 185px;
}

.team-banner h1 {
    color: #ffffff;
    letter-spacing: 2px;
    font-size: 2.1rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* MAIN SECTION */
.team-section {
    max-width: 1200px;
    margin: 40px auto 70px;
    padding: 0 20px;
}

/* GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* CARD */
.team-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.14);
}

/* IMAGE CONTAINER */
.team-photo-placeholder {
    width: 100%;
    height: 260px;
    flex-shrink: 0;
    overflow: hidden;
    background: #eef0f7;
}

/* AVATAR FALLBACK */
.team-photo-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dde3f0;
}

.team-photo-avatar svg {
    width: 90px;
    height: 90px;
    opacity: 0.7;
}

/* IMAGE */
.team-photo-placeholder img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* TEXT AREA */
.team-meta {
    padding: 16px;
    text-align: center;
}

.team-name {
    font-size: 1rem;
    font-weight: 700;
    color: #101f41;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: #f08b24;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

a.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

a.social-btn.linkedin {
  background-color: #0077b5;
  color: #ffffff;
}

a.social-btn.linkedin:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,119,181,0.45);
}

a.social-btn i {
  display: block;
  line-height: 1;
  pointer-events: none;
}

/* TABLET */
@media (max-width: 900px) {

    .team-banner {
        height: 300px;
        padding-top: 160px;
    }

    .team-banner h1 {
        font-size: 1.8rem;
    }

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

    .team-photo-placeholder {
        height: 220px;
    }

    .team-photo-placeholder img {
        height: 220px;
    }
}

/* MOBILE */
@media (max-width: 600px) {

    .team-banner {
        height: 250px;
        padding-top: 130px;
    }

    .team-banner h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .team-photo-placeholder {
        height: 180px;
    }

    .team-photo-placeholder img {
        height: 180px;
    }

    .team-name {
        font-size: 0.85rem;
    }

    .team-role {
        font-size: 0.75rem;
    }

    .team-meta {
        padding: 12px;
    }
}

/* VERY SMALL PHONES */
@media (max-width: 360px) {

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-photo-placeholder {
        height: 200px;
    }

    .team-photo-placeholder img {
        height: 200px;
    }
}
