/* Ruwad Al-Sham - Final Team layout fix
   يجعل أعضاء فريق العمل تحت بعض بدل 3 أعمدة ضيقة */
.team-section .team-grid,
section.team-section .team-grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:26px !important;
  width:100% !important;
  max-width:1120px !important;
  margin:0 auto !important;
  align-items:stretch !important;
  position:relative !important;
  z-index:2 !important;
}

.team-section .team-card,
section.team-section article.team-card{
  display:grid !important;
  grid-template-columns:minmax(220px,260px) minmax(0,1fr) !important;
  grid-template-areas:"photo content" !important;
  align-items:center !important;
  gap:30px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow:visible !important;
  padding:28px !important;
  border-radius:30px !important;
  text-align:start !important;
  background:linear-gradient(135deg, rgba(19,17,12,.96), rgba(4,4,4,.92)) !important;
  border:1px solid rgba(244,199,109,.34) !important;
  box-shadow:0 24px 70px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

html[dir="rtl"] .team-section .team-card,
html[dir="rtl"] section.team-section article.team-card{
  grid-template-areas:"content photo" !important;
  direction:rtl !important;
}

html[dir="ltr"] .team-section .team-card,
html[dir="ltr"] section.team-section article.team-card{
  grid-template-areas:"photo content" !important;
  direction:ltr !important;
}

.team-section .team-photo-wrap,
section.team-section .team-photo-wrap{
  grid-area:photo !important;
  width:240px !important;
  max-width:240px !important;
  min-width:0 !important;
  margin:0 auto !important;
  justify-self:center !important;
  align-self:center !important;
  flex:0 0 auto !important;
  border-radius:24px !important;
  padding:8px !important;
}

.team-section .team-photo,
section.team-section .team-photo{
  width:100% !important;
  height:auto !important;
  aspect-ratio:4/5 !important;
  object-fit:cover !important;
  display:block !important;
  border-radius:18px !important;
}

.team-section .team-content,
section.team-section .team-content{
  grid-area:content !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  padding:0 !important;
  text-align:start !important;
}

html[dir="rtl"] .team-section .team-content,
html[dir="rtl"] section.team-section .team-content{
  text-align:right !important;
}

html[dir="ltr"] .team-section .team-content,
html[dir="ltr"] section.team-section .team-content{
  text-align:left !important;
}

.team-section .team-kicker,
section.team-section .team-kicker{
  display:inline-flex !important;
  align-items:center !important;
  margin:0 0 10px !important;
  color:#f4c76d !important;
  font-weight:900 !important;
  font-size:.95rem !important;
  letter-spacing:0 !important;
}

.team-section .team-content h3,
section.team-section .team-content h3{
  margin:0 0 10px !important;
  padding:0 !important;
  max-width:100% !important;
  color:#fff !important;
  font-weight:900 !important;
  font-size:clamp(1.75rem, 3.2vw, 2.9rem) !important;
  line-height:1.25 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
  text-align:inherit !important;
}

.team-section .team-position,
section.team-section .team-position{
  margin:0 0 14px !important;
  max-width:100% !important;
  color:#f4c76d !important;
  font-weight:900 !important;
  font-size:clamp(1.05rem, 1.6vw, 1.35rem) !important;
  line-height:1.65 !important;
  text-align:inherit !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
}

.team-section .team-content p,
section.team-section .team-content p{
  margin:0 !important;
  max-width:78ch !important;
  color:rgba(255,255,255,.84) !important;
  font-size:1.03rem !important;
  line-height:2.05 !important;
  text-align:inherit !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
}

.team-section .team-card:hover,
section.team-section article.team-card:hover{
  transform:translateY(-4px) !important;
  border-color:rgba(244,199,109,.6) !important;
}

@media (max-width:900px){
  .team-section .team-card,
  section.team-section article.team-card,
  html[dir="rtl"] .team-section .team-card,
  html[dir="rtl"] section.team-section article.team-card,
  html[dir="ltr"] .team-section .team-card,
  html[dir="ltr"] section.team-section article.team-card{
    grid-template-columns:1fr !important;
    grid-template-areas:"photo" "content" !important;
    gap:18px !important;
    padding:22px 18px !important;
    text-align:center !important;
  }

  .team-section .team-content,
  section.team-section .team-content,
  html[dir="rtl"] .team-section .team-content,
  html[dir="rtl"] section.team-section .team-content,
  html[dir="ltr"] .team-section .team-content,
  html[dir="ltr"] section.team-section .team-content{
    text-align:center !important;
  }

  .team-section .team-photo-wrap,
  section.team-section .team-photo-wrap{
    width:min(240px, 82vw) !important;
    max-width:240px !important;
  }

  .team-section .team-content h3,
  section.team-section .team-content h3{
    font-size:clamp(1.65rem, 8vw, 2.35rem) !important;
  }
}
