.team-ultra-1{
  direction: rtl;
  padding: 54px 0 64px;
  background: var(--color-white);
  overflow: hidden;
}

.team-wrap{
  position: relative;
}

/* هدر */
.team-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.team-tag{
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    background: var(--color-secondary);
    width: 40rem;
    padding: 1.4rem;
}


/* دکمه‌های ناوبری */
.team-nav{
  display: flex;
  gap: 10px;
}

.team-btn{
  width: 38px;
  height: 34px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  transition: .2s ease;
}

.team-btn.is-primary{
  background: var(--color-primary);
  color: var(--color-white);
}

.team-btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* اسلایدر */
.team-slider{
  overflow: hidden;
  position: relative;
}

.team-track{
  display: flex;
  gap: 26px;
  direction: ltr;            /* برای حرکت اسلاید با transform راحت‌تر */
  will-change: transform;
  transform: translate3d(0,0,0);
  transition: transform .35s ease;
  padding: 8px 2px;
}

/* کارت */
.team-card{
    flex: 0 0 auto;
    width: 300px;
    display: flex;
    height: 400px;
    background: var(--color-secondary);
    box-shadow: var(--box-shadow);
    clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 0 100%);
    padding: 14px;
    justify-content: space-between;
    position: relative;
    flex-direction: column;
}

/* قاب سفید تصویر با گوشه مورب */
.team-media{
  height: 250px;
  clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 0 100%);
}

.team-media img{
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* متن پایین */
.team-info{
  text-align: right;
  
}

.team-role{
  color: var(--color-primary);
  background: var(--color-white);
  font-size: 12.5px;
  padding: 10px 10px;
  font-weight: 700;
}

.team-name{
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 10px;
}
.team-card,
.team-media img,
.team-role,
.team-name {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-card:hover .team-media img {
    transform: scale(1.15);
    filter: contrast(1.1);
}

.team-card:hover .team-role {
    background: var(--color-primary);
    color: var(--color-white);
    padding-right: 20px;
}

.team-card:hover .team-name {
    background: var(--color-white);
    color: var(--color-primary);
    padding-right: 20px;
}
/* ریسپانسیو */
@media (max-width: 1100px){
  .team-card{ width: 220px; }
}
@media (max-width: 820px){
  .team-card{ width: 210px; }
}
@media (max-width: 520px){
  .team-card{ width: 78vw; }
}
