/* Image (About Us) */

.members-photo/*container  */ {
  margin:  auto;
  margin-bottom: 150px;
  text-align: center;
  position: relative;
  max-width: 1300px;
}
.members-photo img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1500px;
  margin: 10px auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.members-photo a {
  background-color: #00629B;
  color: #ffffff;
  padding: 12px 200px; 
  border-radius: 999px;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;

  position: absolute;
  bottom: 14%; /* رفعنا الزر لفوق شوي */
  left: 50%;
  transform: translateX(-50%);
  border: none;
  box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
  transition: all 0.3s ease-in-out;
  z-index: 10;
}

.members-photo a:hover {
  background-color: #0055b8;
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 85, 184, 0.4);
}



/* About IEEE (About Us) */

.newTitle {
  text-align: center;
  margin: 40px auto;
  background-color: #00629B;
  color: white;
  padding: 10px 20px;
  width: 1400px;
  /* max-width: 1400px; */
  /* width: 100%; */
  border-radius: 35px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  margin-top: 100px;
}

.about-IEEE {
  /* background-color: magenta; */
  display: flex;
  margin: 40px;
  gap: 5%;
  justify-content: center;
  align-items: stretch;
  font-size: 18px ;
  margin-top: 100px;

}
.about-IEEE div {
  background-color: #e0ecf8;
  text-align: center;
  padding: 20px;
  width: 600px;
  /* min-height: 200px; */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: default;
  border-radius: 50px;
}
.about-IEEE div:hover {
  transform: scale(1.02);
  background-color: #ecf4fc;
  box-shadow: 0 0 30px rgba(0, 85, 184, 0.5);
}

.about-IEEE div h2 {
  padding-bottom: 10px;
}

/* Meet Our Family (About Us page) */
.teams {
  margin: 20px auto;
  max-width: 1400px;
}
.teamTitle {
  background-color: #f8f8ff;
  color: #0055b8;
  width: 1300px;
  text-align: center;
  margin: 10px auto;
  padding: 10px;
  border-radius: 35px;
  border: solid 2px #0055b8;
}
.team {
  display: flex;
  gap: 75px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 20px auto;
  width: 1350px;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  /* padding: 0 20px; */
}
.team::-webkit-scrollbar {
  display: none;
}
.team-wrapper {
  width: 1400px;
  margin: 0 auto;
  position: relative;
}
.member {
  background-color: #f8f8ff;
  border: solid 2px #0055b8;
  padding: 1%;
  margin: 20px 5px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  min-width: 20%;
  /* flex: 0 0 30%; */
  flex: 0 0 calc(20% - 25px);
  scroll-snap-align: start;
  transition: transform 0.3s ease, border 0.3s ease;
  cursor: default;
  /*  */
  transform-origin: left;
}
.member:hover {
  transform: scale(1.02);
  border: #0077cc solid 2px;
  box-shadow: 0 0 20px rgba(0, 85, 184, 0.5);

}
.member strong {
  display: block;
  font-size: 21px;
  color: #0055b8;
  white-space: nowrap;
  text-overflow: ellipsis;
  /* overflow: hidden; */
  width: 100%;
}
.member img {
  width: 100%;
  border-radius: 20px;
  border: solid 2px #00b8ff;
  object-fit: cover;
  height: 250px;
}
.arrow {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #66dfff, #00b8ff);
  box-shadow: 0 0 6px rgba(0, 136, 255, 0.3);
  border-radius: 50%;
  position: absolute;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: box-shadow 0.3s ease, transform 0.2s ease-in-out;
  z-index: 10;
}
.arrow:hover {
  background: linear-gradient(135deg, #0055b8, #00b8ff);
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.6);
  transform: scale(1.09);
}
.arrow:active {
  background: linear-gradient(135deg, #0055b8, #00b8ff);
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.6);
  transform: scale(0.9);
}
.rightArrow {
  right: -1%;
}
.leftArrow {
  left: -2%;
}
.arrow i {
  /* font-size: 20px;         Smaller size fits better */
  line-height: 1;
  margin: 0;
  position: relative;
  top: 7px; /* Adjust: try 0, 1px, or 2px based on your eye */
}

/* -------- Responsive Design -------- */
@media (max-width: 1200px) {
  .about-IEEE {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .about-IEEE div {
    width: 90%;
    border-radius: 20px;
  }

  .newTitle,
  .teamTitle,
  .team,
  .team-wrapper {
    width: 95%;
  }

  .members-photo a {
    padding: 12px 100px;
  }

  .member strong{
    font-size: 19px;
  }
}
/* -------- Responsive Design -------- */
@media (max-width: 1200px) {
  .about-IEEE {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .about-IEEE div {
    width: 90%;
    border-radius: 20px;
  }

  /* .newTitle,
  .teamTitle,
  .team,
  .team-wrapper {
    width: 95%;
  } */

  .newTitle {
    width: 95%;
  }
  .teamTitle {
    width: 90%;
  }
  .teams {
    width: 90%;
  }
  .member {
    flex: 0 0 calc(32% - 25px);
    min-width: 10%;
  }
  .team-wrapper {
    width: 850px;
    /* width: 83%; */
  }
  .team {
    width: 800px;
    /* width: 90%; */
    gap: 40px;
  }
  .rightArrow {
    right: -5%;
  }
  .leftArrow {
    left: -5%;
  }

  .members-photo a {
    padding: 12px 100px;
  }
}

@media (max-width: 850px) {
  .members-photo {
    margin-bottom: 80px;
  }

  .members-photo a {
    padding: 10px 60px;
    font-size: 1em;
    bottom: 8%;
  }

  .newTitle {
    font-size: 20px;
    padding: 10px;
    margin: 20px auto;
    width: 90%;
  }

  .about-IEEE {
    margin: 20px auto;
  }

  .about-IEEE div {
    font-size: 16px;
    padding: 15px;
  }

  .teamTitle {
    font-size: 20px;
    padding: 8px;
  }

  .team-wrapper {
    width: 600px;
  }

  .team {
    /* gap: 20px;
    width: 100%;
    padding: 0 10px; */
    width: 550px;
    gap: 30px;
  }

  .member {
    /* min-width: 60%; */
    flex: 0 0 calc(50% - 25px);
  }

  .arrow {
    width: 40px;
    height: 40px;
  }

  .arrow i {
    font-size: 18px;
    top: 5px;
  }
}

@media (max-width: 540px) {
  .team-wrapper {
    width: 400px;
  }
  
  .team {
      width: 400px;
      gap: 30px;
    }
  
  .member {
    flex: 0 0 calc(50% - 25px);
  }
  
  .member strong {
    font-size: 15px;
  }
  .leftArrow {
    left: -10%;
  }
  .rightArrow {
    right: -10%;
  }
}

@media (max-width: 480px) {
  .members-photo a {
    padding: 10px 30px;
    font-size: 0.95em;
  }

  .newTitle,
  .teamTitle {
    font-size: 18px;
  }

  .member strong {
    font-size: 15px;
  }

  .member img {
    height: 200px;
  }
}
@media (max-width: 375px) {
  .team-wrapper {
    width: 350px;
  }
  .team {
    width: 350px;
  }
  .member img {
    height: 200px;
  }
  .member strong {
    font-size: 12px;
  }
  .member p {
    font-size: 11px;
 }
}

.member {
  position: relative;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.member img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform .35s ease;
}

.member p,
.member strong {
  margin: 8px 0 0;
  position: relative;
  z-index: 2;
}

/* طبقة زرقاء شفافة */
.member::after {
  content: "";
  position: absolute;
  inset: 0;
  background:  rgba(10,102,194,0.25);  /* أزرق لينكدإن شفاف */
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 1;
  border-radius: 16px;
}

/* زر LinkedIn */
.linkedin-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.9);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
}

.linkedin-cta i {
  font-size: 20px;
  color: #0a66c2;
}

.linkedin-cta span {
  color: #0a66c2;
  font-size: 16px;
  letter-spacing: .3px;
}

/* Hover */
.member:hover img {
  transform: scale(1.05); /* بس تكبير خفيف */
}

.member:hover::after {
  opacity: 0.5; /* الطبقة الزرقاء تبين */
}

.member:hover .linkedin-cta {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.linkedin-cta:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

