/* Attorney carousel layout and cards */
/* Container */
.team-section .team-container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0 28px;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  overflow-anchor: none;
}

.team-section .team-container::-webkit-scrollbar {
  display: none;
}

/* Cards */
.team-section .team-card {
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
  overflow-wrap: anywhere;
  background: white;
  padding: 28px 20px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

/* Hover effect */
.team-section .team-card:hover {
  transform: translateY(-8px);
}

/* Name */
.team-section .team-card h3 {
  color: #1e3a8a; /* navy */
  margin-bottom: 15px;
}

/* Bio */
.team-section .team-card .bio {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Credentials */
.credentials h4 {
  margin-bottom: 10px;
  font-size: 15px;
  color: #111;
}

.credentials p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.team-section .team-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

@media (max-width: 950px) {
  .team-section .team-container {
    gap: 20px;
  }

  .team-section .team-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .team-section {
    padding: 60px 12px;
  }

  .team-section .team-container {
    gap: 12px;
  }

  .team-section .team-card {
    flex-basis: calc((100% - 12px) / 2);
    padding: 16px 12px;
  }

  .team-section .team-img {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .team-section .team-card h3 {
    font-size: 16px;
  }

  .team-section .team-card h4 {
    font-size: 14px;
  }
}

