/* ===== Teams Section ===== */
.teams-section {
  background: #ffffff;
  padding: 80px 0 60px;
  font-family: 'Be Vietnam Pro', sans-serif;
}
.teams-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.teams-header {
  text-align: center;
  margin-bottom: 52px;
}
.teams-title {
  font-size: 56px;
  font-weight: 500;
  color: #0d1222;
  line-height: 1.25;
  margin-bottom: 16px;
  text-align: center;
}
.teams-title-highlight {
  color: inherit;
}
.teams-subtitle {
  font-size: 17px;
  color: #6b7280;
  margin: 0;
}

/* Cards Row */
.teams-cards-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  position: relative;
  width: 100%;
}
.teams-cards-row::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f1f3f7;
  z-index: 1;
}

/* Toggle Cards */
.team-card {
  background: transparent;
  padding: 16px 20px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  flex: 1;
  max-width: 200px;
  min-width: 140px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Icon box base */
.team-card-icon {
  width: 72px;
  height: 72px;
  background: transparent;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: brightness(0) saturate(100%) invert(67%) sepia(11%) saturate(541%) hue-rotate(182deg) brightness(89%) contrast(88%); /* This approximates the #9ca3af gray */
}

/* Active card State */
.team-card.active .team-card-icon {
  background: #4755ff;
  box-shadow: 0 10px 25px rgba(71, 85, 255, 0.25);
}
.team-card.active .team-card-icon img {
  filter: brightness(0) invert(1); /* Pure White */
}


/* Label Styling */
.team-card-label {
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  padding-bottom: 24px;
  transition: all 0.3s;
}
.team-card.active .team-card-label {
  color: #0d1222;
  font-weight: 700;
}

.team-card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 3;
}
.team-card-progress-bar {
  height: 100%;
  width: 0%;
  background: #4755ff;
  border-radius: 4px;
  transition: width 0.05s linear;
}

/* Unified Blue Indicator for ALL tabs */
.team-card[data-tab] .team-card-progress-bar {
  background: #4755ff;
}

/* Content Panel */
.teams-content-panel {
  position: relative;
  min-height: 340px;
}
.team-panel {
  display: none;
  animation: teamFadeIn 0.4s ease;
}
.team-panel.active {
  display: block;
}
@keyframes teamFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.team-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  border-radius: 32px;
  padding: 64px;
  background: #ffffff;
  border: 1px solid rgb(212, 224, 237);
  box-shadow: rgba(71, 103, 136, 0.04) 0px 4px 5px 0px, rgba(71, 103, 136, 0.03) 0px 8px 15px 0px, rgba(71, 103, 136, 0.06) 0px 15px 30px 0px;
}
/* Unified white backgrounds for all teams */
.team-panel .team-panel-inner {
  background: #ffffff !important;
  border-color: 2px solid rgb(212, 224, 237)!important;
}

.team-panel-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.team-panel-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #0b3558;
  line-height: 1.3;
  margin-bottom: 14px;
}
.team-panel-desc {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 0;
}
.team-panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  background: #4755ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.team-panel-btn:hover {
  background: #3444e8;
  transform: translateY(-2px);
  color: #fff;
}
.team-panel-btn span {
  font-size: 18px;
}

.team-panel-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}
.team-panel-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .team-panel-inner {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }
  .team-panel-image {
    order: -1;
  }
  .teams-title {
    white-space: normal;
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .teams-cards-row {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: calc(100% + 40px);
    margin-left: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .teams-cards-row::-webkit-scrollbar {
    display: none;
  }
  .teams-cards-row::after {
    width: 200%;
  }
  .team-card {
    min-width: 120px;
    flex: 0 0 auto;
    padding: 12px 10px 0;
  }
  .team-card-icon {
    width: 56px;
    height: 56px;
  }
  .team-card-icon svg {
    width: 24px;
    height: 24px;
  }
  .team-card-label {
    font-size: 14px;
    padding-bottom: 16px;
  }
}
@media (max-width: 640px) {
  .teams-section {
    padding: 50px 0;
  }
}
