.team-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 4rem 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}
.team-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
}
.team-title h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}
.team-title h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 2px;
}
.team-title p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #555;
    max-width: 600px;
    margin: 1.5rem auto 0;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    max-width: 1300px;
    margin: 0 auto;
}
.team-member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}
.member-img {
    height: 280px;
    position: relative;
    overflow: hidden;
}
.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.team-member:hover .member-img img {
    transform: scale(1.03);
}
.member-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.member-info {
    padding: 1.6rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.member-name {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: #2c3e50;
}
.member-position {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.member-desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}
.member-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 10px;
}
.stat {
    text-align: center;
    flex: 1;
}
.stat-label {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}
.member-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 0.5rem;
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f8fe;
    color: #3498db;
    transition: all 0.25s ease;
    font-size: 1rem;
}
.social-icon:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: #fff;
    transform: translateY(-3px);
}
.team-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 3rem;
    flex-wrap: wrap;
    margin-bottom: 10vh;
    align-items: center;
}
.team-btn {
    padding: 12px 32px;
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}
.team-btn:hover {
    background: rgba(52, 152, 219, 0.1);
}
.team-btn.primary {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.25);
}
.team-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(52, 152, 219, 0.35);
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (min-width: 1600px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
  }
  .member-img {
    height: 320px;
  }
  .team-title h2 {
    font-size: 3rem;
  }
}
@media (min-width: 992px) and (max-width: 1599px) {
  .team-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      padding: 2vh;
  }
}
  .member-img {
    height: 300px;
  }
  .team-title h2 {
    font-size: 2.8rem;
  }
}
@media (max-width: 991px) and (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
  }
  .member-img {
    height: 260px;
  }
  .team-title h2 {
    font-size: 2.4rem;
  }
  .team-title p {
    font-size: 1.05rem;
  }
  .member-name {
    font-size: 1.3rem;
  }
  .member-position {
    font-size: 0.95rem;
  }
}
@media (max-width: 767px) and (min-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .member-img {
    height: 220px;
  }
  .team-title h2 {
    font-size: 2rem;
  }
  .team-title p {
    font-size: 1rem;
  }
  .member-name {
    font-size: 1.2rem;
  }
  .member-position {
    font-size: 0.9rem;
  }
}
@media (max-width: 575px) {
  .team-section {
    padding: 3rem 1rem;
  }
  .team-title h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  .team-title p {
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 1vh;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 2vh;
  }
  .member-img {
    height: 200px;
  }
  .member-info {
    padding: 1.2rem;
  }
  .member-name {
    font-size: 1.1rem;
  }
  .member-position {
    font-size: 0.85rem;
  }
  .member-desc {
    font-size: 0.9rem;
  }
  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .team-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .team-btn {
    width: 80%;
    text-align: center;
  }
}
