/* --- MODERN MEMBERS PAGE STYLING --- */

:root {
  --bg-dark: #222831;
  --card-bg: rgba(57, 62, 70, 0.6);
  --accent: #00adb5; /* Teal Neon */
  --text-light: #eeeeee;
  --text-dim: #b2b2b2;
}

body {
  background-color: var(--bg-dark) !important;
  font-family: "Poppins", sans-serif !important;
  color: var(--text-light);
  overflow-x: hidden;
}

/* --- Page Title & Breadcrumbs --- */
.homeBg {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.homeBg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.homeContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.homeContent h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 173, 181, 0.5);
}

.homeContent p {
  color: var(--accent);
  font-weight: 500;
}

/* --- Section Dividers --- */
.widget-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 50px 0 30px 0;
  border-left: 5px solid var(--accent);
  padding-left: 15px;
  color: var(--text-light);
  display: inline-block;
}

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.memYear {
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 40px auto 20px auto;
  background: #2d333b;
  padding: 8px 30px;
  border-radius: 50px;
  width: fit-content;
  border: 1px solid var(--accent);
  box-shadow: 0 0 10px rgba(0, 173, 181, 0.2);
}

.line_hr {
  border-color: var(--accent);
  opacity: 0.2;
  margin: 50px 0;
}

/* --- GRID SYSTEM --- */
.members-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

/* --- MEMBER CARD --- */
.member-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: row;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  height: 236px;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 173, 181, 0.15);
  border-color: var(--accent);
}

/* Left Side: Photo */
.card-img-wrapper {
  width: 40%;
  position: relative;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.member-card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

/* Right Side: Details */
.card-details {
  width: 60%;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.card-details h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-light);
  line-height: 1.3;
}

.card-details h2 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Social Icons */
.social-box {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Icon Specific Hover Colors */
.social-icon.linkedin:hover {
  background: #0077b5;
  color: white;
  box-shadow: 0 0 15px rgba(0, 119, 181, 0.5);
}
.social-icon.instagram:hover {
  background: #e1306c;
  color: white;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.5);
}
.social-icon.github:hover {
  background: #333;
  color: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.social-icon.phone:hover {
  background: #25d366;
  color: white;
}

/* Hidden Labels (Keep your HTML logic but hide text) */
.social-container h3 {
  display: none;
}

.fa {
  background-color: transparent;
}

/* --- RESPONSIVE --- */
@media only screen and (max-width: 768px) {
  .members-grid {
    flex-direction: column;
    align-items: center;
  }

  .member-card {
    flex-direction: column;
    max-width: 350px;
    text-align: center;
    height: 430px;
  }

  .card-img-wrapper {
    width: 100%;
    height: 300px;
  }

  .card-details {
    width: 100%;
    align-items: center;
  }

  .card-details h1 {
    font-size: 1.4rem;
  }

  .social-box {
    justify-content: center;
  }
}
