/* =====================================================
   SED Pill-Style Team Section
====================================================== */
.sed-team-section {
  background: #0d0e1a;
  padding: 100px 0 110px;
}
@media (max-width: 991px) {
  .sed-team-section { padding: 70px 0 80px; }
}

.sed-team-section .sed-team-title {
  text-align: center;
  margin-bottom: 60px;
}
.sed-team-section .sed-team-title h2 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .sed-team-section .sed-team-title h2 { font-size: 30px; }
}
.sed-team-section .sed-team-title p {
  color: #9093a6;
  font-size: 16px;
  margin: 0;
}

.sed-team-track {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding: 0 40px 24px;
  scrollbar-width: none;
}
.sed-team-track::-webkit-scrollbar { display: none; }

.sed-team-pill {
  position: relative;
  width: 155px;
  height: 380px;
  min-width: 155px;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  background: #1e2035;
}
.sed-team-pill:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
}
.sed-team-pill:nth-child(even) {
  margin-top: 55px;
}

/* Photo */
.sed-team-pill > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}
.sed-team-pill:hover > img {
  transform: scale(1.07);
}

/* Initial-letter avatar fallback */
.sed-pill-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #252840;
  color: #3ccfcf;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -1px;
}

/* Overlay */
.sed-pill-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 14px 22px;
  background: linear-gradient(
    to top,
    rgba(6, 7, 20, 0.97) 0%,
    rgba(6, 7, 20, 0.7) 50%,
    transparent 100%
  );
  border-radius: 0 0 100px 100px;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.sed-team-pill:hover .sed-pill-overlay {
  transform: translateY(0);
}

/* Name */
.sed-pill-overlay .sed-pill-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.08s, transform 0.35s ease 0.08s;
}

/* Role/designation */
.sed-pill-overlay .sed-pill-role {
  color: #3ccfcf;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  display: block;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.16s, transform 0.35s ease 0.16s;
}

/* Social icons row */
.sed-pill-social-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.24s, transform 0.35s ease 0.24s;
}

/* Reveal all children on hover */
.sed-team-pill:hover .sed-pill-overlay .sed-pill-name,
.sed-team-pill:hover .sed-pill-overlay .sed-pill-role,
.sed-team-pill:hover .sed-pill-overlay .sed-pill-social-row {
  opacity: 1;
  transform: translateY(0);
}

/* Social icon buttons */
.sed-pill-social-row a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  transition: background 0.28s ease, color 0.28s ease;
  text-decoration: none;
}
.sed-pill-social-row a:hover {
  background: #3ccfcf;
  color: #0d0e1a;
}

/* Responsive */
@media (max-width: 576px) {
  .sed-team-pill {
    width: 128px;
    min-width: 128px;
    height: 315px;
  }
  .sed-team-track { gap: 10px; padding: 0 16px 16px; }
}
