* {
  user-select: none;
  box-sizing: border-box;
  scrollbar-width: auto;
  scrollbar-color: #002244 silver;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0 !important;
  background-color: white;
  color: #112A5C;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
}

*::-webkit-scrollbar {
  width: 16px;
}

*::-webkit-scrollbar-track {
  background: silver;
}

*::-webkit-scrollbar-thumb {
  background-color: #112A5C;
}

.p {
  font-size: 22px;
  color: #112A5C;
}

.a {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.t {
  font-size: clamp(2rem, 6vw, 70px);
  color: #112A5C;
  text-align: center;
  margin-top: 140px !important;
  font-weight: 900;
}

h1 {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  padding: .2em;
  margin: 0;
  font-weight: 900;
  text-align: center;
  border-bottom: #002244 solid 5px;
}

/* TEAM GRID */
.team-section {
  padding: 60px 5vw;
}

.team-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 90px;
}


/* TEAM MEMBER */
.team-member {
  height: auto;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}



.team-member h3,
.team-member p {
  text-align: center;
  margin: 0;
  color: #06294E;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.team-member h3 {
  font-size: clamp(24px, 4vw, 54px);
  font-weight: 900;
  margin-bottom: 5px;
  border-bottom: #112A5C solid 1px;
  padding-bottom: 10px;
}

.team-member p {
  font-size: clamp(16px, 2.5vw, 36px);
  color: #112A5C;
  font-weight: 900;
  padding-top: 5px;
}

@media screen and (max-width: 1024px) {
  .team-grid {
    gap: 80px;
  }

  .team-member {
    min-height: 200px;
  }

  .t {
    margin-top: 6vh;
  }
}

/* =============== MOBILE =============== */
@media screen and (max-width: 768px) {
  body {
    overflow-y: auto;
  }

  .team-section {
    padding: 40px 20px;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 50px !important; /* consistent vertical spacing */
  }

  .team-member {
    width: 90%;
    max-width: 350px;
    min-height: 180px; /* all cards same height */
    padding: 25px;
  }

  .team-member h3 {
    font-size: 28px;
  }

  .team-member p {
    font-size: 20px;
  }

  .t {
    font-size: 36px;
    margin-top: 60px;
  }
}

@media screen and (max-width: 480px) {
  .team-grid {
    gap: 40px !important;
  }

  .team-member {
    width: 100%;
    max-width: 320px;
    min-height: 180px;
  }

  .t {
    font-size: 30px;
  }

  .team-member h3 {
    font-size: 24px;
  }

  .team-member p {
    font-size: 18px;
  }
}