/* Dark Team Section Styles */
.team-dark-section {
  background-color: #1e1e24; /* Dark sleek background */
  color: #f1f1f1;
  padding: 80px 0;
  font-family: 'Open Sans', sans-serif;
}

.team-dark-section h2.section-title {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-dark-section .intro-text {
  color: #a0a0a5;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Showcase Card (Left Side) */
.team-showcase-card {
  background-color: #2a2a32;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.team-showcase-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  pointer-events: none;
}

.team-showcase-card .image-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 30px auto;
  border-radius: 16px;
  overflow: hidden;
  /* Red offset accent effect */
  box-shadow: 10px 10px 0px 0px #e52d27;
  transition: all 0.3s ease;
}

.team-showcase-card .image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.team-showcase-card .team-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.team-showcase-card .team-role {
  color: #a0a0a5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.team-showcase-card .separator {
  width: 40px;
  height: 3px;
  background-color: #e52d27;
  margin: 0 auto 20px auto;
}

.team-showcase-card .team-desc {
  color: #b3b3b8;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
  padding: 0 10px;
}

.team-showcase-card .social-links a {
  color: #ffffff;
  background-color: #383842;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 16px;
}

.team-showcase-card .social-links a:hover {
  background-color: #e52d27;
  transform: translateY(-3px);
}

/* Thumbnail Grid (Right Side) */
.team-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.team-thumb-card {
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.team-thumb-card .thumb-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.team-thumb-card:hover .thumb-img-wrapper {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.team-thumb-card.active .thumb-img-wrapper {
  border-color: #e52d27;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(229,45,39,0.2);
}

.team-thumb-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  filter: grayscale(40%);
  transition: all 0.3s ease;
}

.team-thumb-card:hover img,
.team-thumb-card.active img {
  filter: grayscale(0%);
}

.team-thumb-card .thumb-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.team-thumb-card.active .thumb-name {
  color: #e52d27;
}

/* Responsiveness */
@media (max-width: 991px) {
  .team-showcase-card {
    margin-bottom: 50px;
  }
  .team-thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .team-thumbnails {
    grid-template-columns: 1fr;
  }
}

/* Fade animation for swapping content */
.fade-in {
  animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
