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

/* General Styles */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  scroll-behavior: smooth;
}

.team-page {
  padding: 2% 4% 2% 4%;
  background-image: url("../images/pexels-blaque-x.jpg");
  background-size: cover;
  background-attachment: scroll;
  margin: 0 auto;
}

/* Team Member Navigation Bar */
.team-member-nav {
  background-color: transparent;
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.team-member-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.team-member-nav ul li {
  display: inline-block;
}

.team-member-nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: transparent;
  width: fit-content;
}

.team-member-nav ul li a:hover {
  background-color: rgba(0, 158, 219, 0.7);
  color: #fff;
}

.team-member-nav ul li a.active {
  background-color: rgba(0, 158, 219, 0.7);
  color: #fff;
}

@media (max-width: 768px) {
  .team-member-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .team-member-nav ul li a {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Team Leader Section */
.team-leader {
  text-align: center;
  margin-bottom: 40px;
}

.team-leader h2 {
  font-size: 2rem;
  color: #d8dadc;
  margin-bottom: 20px;
}

.leader-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.leader-card {
  background-color: #a4a4a478;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  flex: 1;
  max-width: 300px;
}

.leader-photo {
  height: 285px;
  margin-bottom: 15px;
}

.leader-info h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 4px 3px 9px #0000006e;
}

.leader-info p {
  font-size: 1rem;
  color: #dadada;
}

/* Sub Team Leaders Section */
.sub-team-leaders {
  margin-bottom: 40px;
}

.sub-team-leaders h2 {
  font-size: 2rem;
  color: #d0d5dbdb;
  margin-bottom: 20px;
  text-align: center;
}

.sub-leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.sub-leader-card {
  background-color: #94929270;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

.sub-leader-photo {
  /* width: 120px; */
  height: 310px;
  /* border-radius: 50%; */
  margin-bottom: 15px;
}

.sub-leader-info h3 {
  font-size: 1.25rem;
  color: #ec7c18;
  margin-bottom: 10px;
}

.sub-leader-info p {
  font-size: 1rem;
  color: #dcdcdcfa;
}

/* Team Members Section */
.team-members {
  margin-bottom: 40px;
}

.team-members h2 {
  font-size: 2rem;
  color: #ffffffbf;
  margin-bottom: 20px;
  text-align: center;
}

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

.member-card {
  background-color: #6563637d;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

.member-photo {
  /* width: 100px; */
  height: 250px;
  /* border-radius: 50%; */
  margin-bottom: 15px;
}

.member-info h3 {
  font-size: 1.25rem;
  color: #e67e22;
  margin-bottom: 10px;
}

.member-info p {
  font-size: 1rem;
  color: #dfdcdcd1;
}

/* Parallax Effect */
.team-page {
  background-image: url("../images/pexels-blaque-x.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Overlay to improve readability */
.team-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* Adjust opacity as needed */
  z-index: -1;
}

/* Ensure content is above the overlay */
.team-leader,
.sub-team-leaders,
.team-members {
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {

  .leader-card,
  .sub-leader-card,
  .member-card {
    padding: 15px;
  }

  .leader-container {
    flex-direction: column;
    align-items: center;
  }

  .leader-card {
    max-width: 100%;
  }

  .leader-photo {
    width: 95px;
    height: 117px;
  }

  .sub-leader-photo {
    width: 90px;
    height: 115px;
  }

  .member-photo {
    width: 90px;
    height: 115px;
  }
}

@media (max-width: 480px) {
  .sub-leaders-grid,
  .members-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.team-member-page-title {
  font-family: "AkiraExpanded";
  color: white;
  font-size: 2em;
  text-align: center;
  padding: 31px;

  text-shadow: 0 1px 0 hsl(174, 5%, 80%), 0 2px 0 hsl(174, 5%, 75%),
    0 3px 0 hsl(174, 5%, 70%), 0 4px 0 hsl(174, 5%, 66%),
    0 5px 0 hsl(174, 5%, 64%), 0 6px 0 hsl(174, 5%, 62%),
    0 7px 0 hsl(174, 5%, 61%), 0 8px 0 hsl(174, 5%, 60%),
    0 0 5px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.2),
    0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.2),
    0 10px 10px rgba(0, 0, 0, 0.2), 0 20px 20px rgba(0, 0, 0, 0.3);
}