/* ---------- Team Carousel [admed_team] ---------- */
.admed-team-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.admed-team-track-wrapper {
  overflow: hidden;
  flex: 1;
}

.admed-team-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.admed-team-card {
  flex: 0 0 calc((100% - 3.75rem) / 4);
  text-align: center;
}

.admed-team-photo {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
}

.admed-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admed-team-photo:hover img {
  transform: scale(1.05);
}

.admed-team-tooltip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(5, 31, 66, 0.95), rgba(5, 31, 66, 0.7) 70%, transparent);
  color: #fff;
  padding: 3rem 1rem 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
  pointer-events: none;
}

.admed-team-photo:hover .admed-team-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.admed-team-tooltip strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.admed-team-tooltip span {
  display: block;
  font-size: 0.78rem;
  color: #e8f5e6;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.admed-team-tooltip p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.admed-team-card h3 {
  font-size: 1rem !important;
  margin-bottom: 0.1rem !important;
  padding-bottom: 0 !important;
  color: var(--navy-dark, #051F42) !important;
}

.admed-team-profession,
.admed-team-role,
.admed-team-function {
  margin: 0 0 0.2rem !important;
  padding: 0 !important;
  line-height: 1.25;
}

.admed-team-profession {
  color: var(--ink-muted, #64748b);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admed-team-role {
  color: var(--orange, #EE7103) !important;
  font-weight: 700;
  font-size: 0.85rem;
}

.admed-team-function {
  color: var(--navy, #2B2E84);
  font-weight: 600;
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.25;
}

.admed-team-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border, #e2e8f0);
  background: var(--white, #ffffff);
  color: var(--navy, #2B2E84);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admed-team-arrow:hover {
  background: var(--navy, #2B2E84);
  color: #fff;
  border-color: var(--navy, #2B2E84);
}

@media (max-width: 1024px) {
  .admed-team-card { flex: 0 0 calc((100% - 2.5rem) / 3); }
}

@media (max-width: 768px) {
  .admed-team-card { flex: 0 0 calc((100% - 1.25rem) / 2); }
  .admed-team-arrow { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
  .admed-team-card { flex: 0 0 100%; }
  .admed-team-arrow { width: 32px; height: 32px; }
}

/* ---------- Team Sections [admed_team view="about" sections="yes"] ---------- */
.admed-team-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.admed-team-section-title {
  font-size: 1.5rem;
  color: var(--navy-dark);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
}

.admed-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.admed-team-grid .admed-team-card {
  flex: none;
  text-align: center;
}

@media (max-width: 1024px) {
  .admed-team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .admed-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .admed-team-grid { grid-template-columns: 1fr; }
}
