/* Team Members Styling */
.team-members-container {
  margin: 30px auto;
  padding: 30px;
}

/* Minimal Layout */
.team-members-container.minimal-layout {
  margin: 10px auto;
  padding: 10px 0;
}

/* Category Navigation */
.team-category-nav {
  margin-bottom: 30px;
}

/* Desktop Tabs */
.team-category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.team-category-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  background-color: #ffffff;
  border-radius: 8px;
  color: var(--fs-experimental-link-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.team-category-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.team-category-tab:hover::before {
  opacity: 0.05;
}

.team-category-tab.active {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Special styles for junior category tab */
.team-category-tab[data-category="junior"].active {
  background-color: #c4aad7;
  border-color: #c4aad7;
}

.team-category-tab[data-category="junior"]::before {
  background-color: #c4aad7;
}

/* Apply junior color scheme when junior category is active */
body.category-junior .team-category-dot,
.junior-active .team-category-dot {
  background-color: #c4aad7;
}

.team-category-tab span {
  position: relative;
  z-index: 2;
}

.tab-icon {
  font-size: 1.2em;
}

.tab-label {
  font-weight: 500;
}

/* Mobile Dropdown */
.team-category-dropdown {
  display: none;
  width: 100%;
  padding: 12px 40px 12px 15px;
  font-size: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--fs-experimental-link-color);
  appearance: none;
  cursor: pointer;
  margin-bottom: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.team-category-dropdown:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(224, 113, 70, 0.1);
}

/* When junior category is selected in dropdown */
.junior-active .team-category-dropdown:focus {
  border-color: #c4aad7;
  box-shadow: 0 0 0 2px rgba(196, 170, 215, 0.1);
}

.team-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.team-category-dots {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-category-dot {
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.team-category-title {
  font-size: 2.25rem; /* text-4xl */
  color: var(--fs-color-secondary);
  font-weight: 600;
  margin: 0;
  padding: 0;
}

/* Team members filter bar */
.team-members-filter {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.team-members-search {
  position: relative;
  flex-grow: 1;
  margin-right: 15px;
  min-width: 200px;
}

.team-members-search input {
  width: 100%;
  padding: 10px 15px 10px 40px !important;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 16px;
  color: var(--fs-experimental-link-color);
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.team-members-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(224, 113, 70, 0.1);
}

/* Junior category search input focus style */
.junior-active .team-members-search input:focus {
  border-color: #c4aad7;
  box-shadow: 0 0 0 2px rgba(196, 170, 215, 0.1);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 40%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}

.search-input {
  padding-left: 30px;
}

.team-members-specialty-filter,
.team-members-location-filter {
  position: relative;
  margin-left: 10px;
}

.specialty-select,
.location-select {
  appearance: none;
  padding: 10px 40px 10px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 16px;
  background-color: #ffffff;
  color: var(--fs-experimental-link-color);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.specialty-select:focus,
.location-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(224, 113, 70, 0.1);
}



/* Junior category specialty/location select focus style */
.junior-active .specialty-select:focus,
.junior-active .location-select:focus {
  border-color: #c4aad7;
  box-shadow: 0 0 0 2px rgba(196, 170, 215, 0.1);
}

.team-members-count {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: var(--fs-color-secondary);
}

/* Team Members Grid */
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns, 4), 1fr);
  gap: 20px;
  position: relative;
  transition: opacity 0.3s ease;
}

.team-members-grid.loading {
  opacity: 0.5;
  pointer-events: none;
}

.team-members-grid.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(224, 113, 70, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

/* Junior category loading indicator */
.junior-active .team-members-grid.loading::after {
  border: 3px solid rgba(196, 170, 215, 0.1);
  border-top-color: #c4aad7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.team-member-card {
  position: relative;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Remove vertical dividers as they don't match the new design */
.team-member-card:not(.third-in-row):not(:last-child)::after {
  display: none;
}

.team-member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%; /* Circular images */
  overflow: hidden;
  background-color: #e0e0e0;
  margin: 20px auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-member-info {
  padding: 10px 15px 20px;
  flex-grow: 1;
  text-align: center;
}

.team-member-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: var(--fs-experimental-link-color);
}

.team-member-position {
  font-size: 0.95rem;
  color: var(--fs-color-secondary);
  margin-bottom: 15px;
  line-height: 1.4;
}

.team-member-specialties {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.team-member-specialty {
  font-size: 0.8rem;
  color: var(--fs-color-secondary);
  background-color: rgba(55, 112, 91, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

.team-member-specialty-details {
  margin-top: 0.5rem;
  font-size: 0.875rem; /* text-sm */
}

.team-member-degree strong,
.team-member-experience strong,
.team-member-specialty-details strong {
  display: inline;
  font-weight: 700;
  margin-right: 0.25rem;
}

/* Profile link styling */
.team-member-name-link {
  color: var(--fs-experimental-link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-member-name-link:hover {
  color: var(--fs-experimental-link-color-hover);
}

.team-member-link {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.team-member-link:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.team-member-actions {
  margin-top: auto;
  text-align: center;
  padding: 0 15px 20px;
}

.team-member-profile-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

/* Junior team member profile button */
.junior-member .team-member-profile-btn,
.junior-active .team-member-profile-btn {
  background-color: #c4aad7;
}

.team-member-profile-btn:hover {
  background-color: var(--fs-color-secondary);
}

/* Junior team member profile button hover */
.junior-member .team-member-profile-btn:hover,
.junior-active .team-member-profile-btn:hover {
  background-color: #b397c6; /* Slightly darker shade for hover */
}

/* Diamond dividers */
.diamond-divider {
  position: absolute;
  top: 50%;
  right: -17px; /* Position outside the card */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.diamond {
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  transform: rotate(45deg);
  margin-bottom: 4px;
}

/* Hide diamond dividers as they don't match the new design */
.diamond-divider {
  display: none;
}

/* Empty State */
.team-members-empty {
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  margin-top: 20px;
}

.team-members-empty p {
  color: var(--fs-experimental-link-color);
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .team-members-grid {
    grid-template-columns: repeat(min(var(--grid-columns, 4), 3), 1fr);
  }

  .team-members-filter {
    flex-direction: column;
  }

  .team-members-search {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (max-width: 992px) {
  .team-members-grid {
    grid-template-columns: repeat(min(var(--grid-columns, 4), 2), 1fr);
  }
}

@media (max-width: 768px) {
  .team-members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .team-member-image {
    width: 100px;
    height: 100px;
  }

  .team-member-name {
    font-size: 1rem;
  }

  .team-member-position {
    font-size: 0.85rem;
  }

  .team-member-specialty {
    font-size: 0.7rem;
  }

  .team-category-title {
    font-size: 1.8rem;
  }

  .team-category-tabs {
    display: none;
  }

  .team-category-dropdown {
    display: block;
  }

  .team-members-container {
    padding: 20px 15px;
  }
}

@media (max-width: 576px) {
  .team-members-grid {
    grid-template-columns: 1fr;
  }

  .team-member-image {
    width: 120px;
    height: 120px;
  }
}

/* Slider Styles */
.team-members-slider-container {
  padding: 40px 0;
  position: relative;
}

.team-members-slider-container .swiper {
  padding: 20px 10px 50px 10px;
}

.team-members-slider-container .swiper-button-next,
.team-members-slider-container .swiper-button-prev {
  color: var(--primary-color);
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  top: 45%;
}

.team-members-slider-container .swiper-button-next:after,
.team-members-slider-container .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

.team-members-slider-container .swiper-pagination-bullet-active {
  background: var(--primary-color);
}

.team-members-slider-container .swiper-slide {
  height: auto;
  display: flex;
}

.team-members-slider-container .team-member-card {
  width: 100%;
}

/* Weekly Schedule Styling */
.etizen-weekly-schedule {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.etizen-weekly-schedule li {
  display: flex;
  justify-content: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.etizen-weekly-schedule li:last-child {
  border-bottom: none;
}

.etizen-weekly-schedule .day-label {
  font-weight: 600;
  width: 100px;
  color: #334155;
}

.etizen-weekly-schedule .day-time {
  color: #64748b;
}

.etizen-weekly-schedule .schedule-closed {
  color: #ef4444;
  font-weight: 500;
  font-style: italic;
}
