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

body {
  background: #f8fafc;
  color: #1e293b;
}

/* HERO */
.team-hero {
  min-height: 340px;
  height: clamp(340px, 42vh, 460px);
  background: url("https://images.pexels.com/photos/4145193/pexels-photo-4145193.jpeg") center/cover no-repeat;
  position: relative;
}

.team-hero .overlay {
  background: rgba(15, 23, 42, 0.72);
  height: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.team-hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  line-height: 1.25;
}

.team-hero p {
  font-size: clamp(15px, 2vw, 19px);
  margin-top: 14px;
  max-width: 720px;
  opacity: 0.95;
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
}

/* INTRO */
.team-intro {
  padding: 60px 24px 30px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.team-intro h2{
  font-size:38px;
  margin-bottom:20px;
}

.team-intro p{
  font-size:18px;
  line-height:1.7;
  max-width:900px;
  margin:auto;
}

/* TEAM GRID */
.team-section{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:35px;
  padding:70px 10%;
}

.team-card{
  background:white;
  padding:30px;
  border-radius:20px;
  text-align:center;
  box-shadow:0 15px 35px rgba(0,0,0,.15);
  transition:.3s;
}

.team-card:hover{
  transform:translateY(-12px);
}

.team-card img{
  width:160px;
  height:160px;
  object-fit:cover;
  border-radius:50%;
  margin-bottom:15px;
  box-shadow:0 10px 25px rgba(0,0,0,.2);
}

.team-card h3{
  font-size:22px;
  margin-bottom:5px;
  color:#003366;
}

.role{
  font-weight:600;
  color:#555;
  margin-bottom:8px;
}

.qualification{
  font-size:15px;
  color:#777;
}

/* Legacy footer rules removed */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00c2cb;
  color: #050a0f;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 10px 30px rgba(0,194,203,0.3);
  transition: 0.3s;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* =========================================================
   TEAM CARDS V2 — Luxury Mentor & Faculty Cards
   Device-friendly 3-column / 2-column / 1-column responsive grid
   ========================================================= */

.team-section-v2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 40px 24px 80px;
  max-width: 1220px;
  margin: 0 auto;
  align-items: start;
}

.team-card-v2 {
  flex: 0 1 calc(33.333% - 20px);
  min-width: 320px;
  max-width: 380px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(27, 20, 100, 0.08);
  box-shadow: 0 12px 34px rgba(27, 20, 100, 0.07);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (max-width: 1100px) {
  .team-card-v2 {
    flex: 0 1 calc(50% - 16px);
    max-width: 440px;
  }
}

@media (max-width: 680px) {
  .team-section-v2 {
    gap: 22px;
    padding: 20px 16px 50px;
  }
  .team-card-v2 {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

.team-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(27, 20, 100, 0.14);
}

/* Header Banner */
.tc-banner {
  height: 120px;
  background: linear-gradient(135deg, #181156 0%, #2A1D7A 50%, var(--accent, #4C3FE0) 100%);
  position: relative;
  overflow: hidden;
}

.tc-banner::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

/* Avatar with Verified Badge */
.tc-avatar-wrap {
  width: 140px;
  height: 140px;
  margin: -70px auto 14px;
  position: relative;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 10px 28px rgba(27, 20, 100, 0.15);
}

.tc-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  display: block;
  transition: transform 0.4s ease;
}

.team-card-v2:hover .tc-avatar-wrap img {
  transform: scale(1.05);
}

.tc-verified-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10B981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Card Body */
.tc-body {
  padding: 0 26px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tc-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: #EEF2FF;
  color: var(--accent, #4C3FE0);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.tc-name-inline {
  font-size: 21px;
  font-weight: 700;
  color: #161636;
  margin: 0 0 6px;
  font-family: 'Poppins', sans-serif;
}

.tc-qual-inline {
  font-size: 13.5px;
  font-weight: 500;
  color: #5C5C7A;
  margin-bottom: 14px;
  line-height: 1.5;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}

.expertise-tags span {
  display: inline-block;
  background: #F4F6FC;
  color: #383B56;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(27, 20, 100, 0.05);
}

/* Explore / Toggle Button */
.tc-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F0F2FA;
  color: #1E1656;
  border: 1px solid #DCE0F2;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  align-self: center;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

.tc-explore i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.tc-explore:hover {
  background: var(--accent, #003366);
  color: #ffffff;
  border-color: var(--accent, #003366);
  box-shadow: 0 6px 18px rgba(0, 51, 102, 0.22);
  transform: translateY(-2px);
}

.team-card-v2.expanded .tc-explore {
  background: var(--accent, #003366);
  color: #ffffff;
  border-color: var(--accent, #003366);
  box-shadow: 0 4px 14px rgba(0, 51, 102, 0.2);
}

.team-card-v2.expanded .tc-explore i {
  transform: rotate(180deg);
}

/* Expandable Details */
.tc-details {
  max-height: 0;
  overflow: hidden;
  text-align: left;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
  padding: 0 10px;
  opacity: 0;
}

.team-card-v2.expanded .tc-details {
  max-height: 1200px;
  padding: 20px 10px 12px;
  opacity: 1;
  border-top: 1px solid #EEF0F8;
  margin-top: 16px;
}

.tc-details h4 {
  margin: 10px 0 6px;
  font-size: 14.5px;
  font-family: 'Poppins', sans-serif;
  color: #161636;
}

.tc-details h5 {
  margin: 12px 0 6px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #161636;
}

.tc-details p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #5C5C7A;
  margin: 0 0 10px;
}

.tc-details ul {
  margin: 0 0 10px 18px;
  padding: 0;
  color: #5C5C7A;
  font-size: 13px;
  line-height: 1.6;
}

.tc-mentor-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10B981;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 12px;
  transition: all 0.2s ease;
}

.tc-mentor-wa:hover {
  background: #059669;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.28);
}

/* Modal styles */
.team-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.team-modal.show {
  display: block;
}

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 26, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.team-modal-content {
  position: relative;
  width: 90%;
  max-width: 820px;
  margin: 5% auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.team-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  transition: background 0.2s ease;
}

.team-modal-close:hover {
  background: rgba(0, 0, 0, 0.15);
}

.team-modal-body {
  display: flex;
  gap: 28px;
  padding: 34px;
}

.team-modal-left img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27, 20, 100, 0.12);
}

.team-modal-right h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #161636;
  font-family: 'Poppins', sans-serif;
}

.modal-qualification {
  color: var(--accent, #4C3FE0);
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.modal-note {
  font-weight: 600;
  color: #666;
  margin-bottom: 12px;
  font-size: 14px;
}

.modal-bio {
  color: #444;
  line-height: 1.7;
  font-size: 14px;
}

@media (max-width: 768px) {
  .team-section-v2 {
    grid-template-columns: 1fr;
    padding: 40px 5%;
  }
  .team-modal-body {
    flex-direction: column;
    align-items: center;
    padding: 24px;
  }
  .team-modal-left img {
    width: 180px;
    height: 180px;
  }
}

