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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #c5c5c5;
  margin: 0;
  padding: 0;
}

.faculty-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #cdcdcd;
}

.faculty-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #000;
}

.faculty-section h2::after {
  content: "";
  display: block;
  width: 25%;
  max-width: 80px;
  min-width: 40px;
  height: 4px;
  background: linear-gradient(90deg, blue, red);
  margin: 15px auto 0;
  border-radius: 2px;
}

.faculty-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.faculty-card {
  background-color: #151414;
  border-radius: 15px;
  padding: 48px 24px 36px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  cursor: pointer;
  transform: translateY(0);
  transition: all 0.3s ease-in-out;
  position: relative;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.faculty-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.faculty-card h3 {
  font-size: 1.3rem;
  color: #bd9f67;
  margin-bottom: 8px;
  margin-top: 20px;
}

.faculty-card p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 15px;
}

.faculty-card img {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid #79b4a2;
  transition: all 0.3s ease-in-out;
  margin-bottom: 15px;
}

.faculty-card:hover img {
  border-radius: 60%;
  transform: scale(1.08);
  border-color: #bd9f67;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: auto;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  color: aqua;
  background-color: rgba(0, 255, 255, 0.1);
}

/* Team Section Styles */
.team-section {
  padding: 60px 20px;
  text-align: center;
}

.team-section h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #000;
}

.team-section h1::after {
  content: "";
  display: block;
  width: 25%;
  max-width: 80px;
  min-width: 40px;
  height: 4px;
  background: linear-gradient(90deg, blue, red);
  margin: 15px auto 0;
  border-radius: 2px;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.member {
  background-color: #151414;
  border-radius: 15px;
  padding: 48px 24px 36px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  cursor: pointer;
  transform: translateY(0);
  transition: all 0.3s ease-in-out;
  position: relative;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.member:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.member img {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  object-fit: cover;
   object-position: top;
  border: 3px solid #79b4a2;
  transition: all 0.3s ease-in-out;
  margin-bottom: 15px;
}

.member:hover img {
  border-radius: 60%;
  transform: scale(1.06);
  border-color: #bd9f67;
}

.member-name {
  font-size: 1.2rem;
  color: #bd9f67;
  margin-bottom: 8px;
  margin-top: 10px;
}

.member-position {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
}

.links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: auto;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.08);
}

.links a:hover {
  color: aqua;
  background-color: rgba(0, 255, 255, 0.1);
}

.team-section-old {
  display: none;
  padding: 60px 20px;
  text-align: center;
}

.team-section-old.active {
  display: block;
}

.team-section-old .previous-team-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #000;
  position: relative;
}

.team-section-old .previous-team-title::after {
  content: "";
  display: block;
  width: 25%;
  max-width: 80px;
  min-width: 40px;
  height: 4px;
  background: linear-gradient(90deg, blue, red);
  margin: 15px auto 0;
  border-radius: 2px;
}

.previous-team-section {
  max-width: 500px;
  /* margin: 60px auto 100px; */
  margin: 60px auto 20px;
  margin-bottom: 50px;
}

.previous-team-section h2{
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000;
    text-align: center;
}

.previous-team-section h2::after {
  content: "";
  display: block;
  width: 50%;
  max-width: 80px;
  min-width: 40px;
  height: 4px;
  background: linear-gradient(90deg, blue, red);
  margin: 15px auto 0;
  border-radius: 2px;
}

.previous-team-accordion {
  background-color: #151414;
  padding: 0 4px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.previous-team-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  font-size: 1.05rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s ease-in-out;
}

.previous-team-accordion summary::-webkit-details-marker {
  display: none;
}

.previous-team-accordion summary i {
  font-size: 1.1rem;
  transition: transform 0.25s ease-in-out;
  color: #bd9f67;
}

.previous-team-accordion summary:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.previous-team-accordion[open] summary {
  background-color: rgba(189, 159, 103, 0.08);
}

.previous-team-accordion[open] summary i {
  transform: rotate(-180deg);
}

.previous-team-options {
  padding: 0 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: accordionFade 0.25s ease-in-out;
}

@keyframes accordionFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.previous-team-link {
  color: #bd9f67;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 15px;
  transition: color 0.2s ease-in-out;
}

.previous-team-link::before {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
}

.previous-team-link:hover {
  color: #fff;
}
