/* ── Team section ── */
#team.team-area.style-two {
  background: var(--sdg-slate-50) !important;
  padding: 100px 0 !important;
}

#team .dreamit-section-title h5 {
  color: var(--sdg-red) !important;
}

#team .dreamit-section-title h5::before {
  background: var(--sdg-red) !important;
}

#team .team-eyebrow-accent {
  position: relative;
  display: inline-block;
  color: var(--sdg-red) !important;
}

#team .team-eyebrow-accent::after {
  content: "";
  position: absolute;
  left: -12px;
  top: -16px;
  background: url(../images/resource/section1.png);
  width: 63px;
  height: 63px;
  display: inline-block;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

#team .dreamit-section-title::after {
  display: none !important;
}

#team .dreamit-section-title h1 {
  color: var(--sdg-dark);
}

#team .dreamit-section-title h1 span.color2 {
  background: var(--sdg-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Carousel slides — equal-height row */
#team .team-list.owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

#team .team-list .owl-item {
  display: flex;
  align-items: stretch;
  float: none;
  height: auto !important;
}

#team .team-slide {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  padding: 8px 4px 32px;
}

/* Member cards */
#team .team-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 450px;
  height: 100%;
  margin-bottom: 0;
  text-align: center;
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(48, 128, 255, 0.15);
  box-shadow:
    0 10px 30px rgba(48, 128, 255, 0.08),
    0 4px 12px rgba(162, 28, 175, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#team .team-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 15px 40px rgba(48, 128, 255, 0.14),
    0 8px 20px rgba(251, 44, 54, 0.08);
}

#team .team-card--blue {
  border-color: rgba(48, 128, 255, 0.22);
}

#team .team-card--purple {
  border-color: rgba(162, 28, 175, 0.2);
}

#team .team-card--red {
  border-color: rgba(251, 44, 54, 0.2);
}

#team .single-team-thumb {
  overflow: hidden;
  flex-shrink: 0;
}

#team .single-team-thumb img {
  width: 100%;
  height: 260px;
  min-height: 260px;
  max-height: 260px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.3s ease;
}

#team .team-card:hover .single-team-thumb img {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
  transform: scale(1.03);
}

#team .team-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 160px;
  padding: 22px 18px 24px !important;
  background: #ffffff !important;
  border-radius: 0 !important;
}

#team .team-title {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#team .team-title h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  padding-bottom: 12px;
  position: relative;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

#team .team-title h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  border-radius: 1px;
}

#team .team-card--blue .team-title h3 {
  color: var(--sdg-blue-dark);
}

#team .team-card--blue .team-title h3::after {
  background: var(--sdg-blue);
}

#team .team-card--purple .team-title h3 {
  color: var(--sdg-purple);
}

#team .team-card--purple .team-title h3::after {
  background: var(--sdg-purple);
}

#team .team-card--red .team-title h3 {
  color: var(--sdg-red);
}

#team .team-card--red .team-title h3::after {
  background: var(--sdg-red);
}

#team .team-text {
  width: 100%;
  min-height: 84px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 auto;
}

#team .team-text p {
  color: var(--sdg-muted) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* Owl dots — match portfolio / testimonials (SDG pill style) */
#team .team-list .owl-dots {
  text-align: center !important;
  margin: 28px 0 0 !important;
  padding: 0;
  line-height: 1;
}

#team .team-list .owl-dot {
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 6px !important;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
  transition: none;
}

#team .team-list .owl-dot.active {
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
}

#team .team-list .owl-dot span {
  display: block;
  width: 28px;
  height: 5px;
  border-radius: 5px;
  margin: 0;
  background: rgba(48, 128, 255, 0.25) !important;
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

#team .team-list .owl-dot.active span,
#team .team-list .owl-dot:hover span {
  width: 35px;
  background: var(--sdg-blue) !important;
  transform: scale(1.05);
}

@media (max-width: 991px) {
  #team .team-card {
    min-height: 420px;
  }

  #team .single-team-thumb img {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }
}

@media (max-width: 575px) {
  #team .team-card {
    min-height: 460px;
  }

  #team .single-team-thumb img {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
  }
}
