/* Ruwad Al-Sham - Team section two-per-row layout
   يجعل بطاقات فريق العمل بطاقتين جنب بعض على الشاشات الكبيرة */
.team-section .team-grid,
section.team-section .team-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:28px !important;
  align-items:stretch !important;
  width:100% !important;
  max-width:1180px !important;
  margin:0 auto !important;
}

.team-section .team-card,
section.team-section article.team-card{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:center !important;
  gap:0 !important;
  width:100% !important;
  min-width:0 !important;
  height:100% !important;
  padding:26px 22px !important;
  border-radius:28px !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;
}

.team-section .team-photo-wrap,
section.team-section .team-photo-wrap{
  width:min(220px, 100%) !important;
  max-width:220px !important;
  min-width:0 !important;
  margin:0 auto 18px !important;
  padding:8px !important;
  border-radius:24px !important;
}

.team-section .team-photo,
section.team-section .team-photo{
  width:100% !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,
html[dir="rtl"] .team-section .team-content,
html[dir="ltr"] .team-section .team-content{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  padding:0 !important;
  text-align:center !important;
}

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

.team-section .team-content h3,
section.team-section .team-content h3{
  margin:0 0 8px !important;
  color:#fff !important;
  font-weight:900 !important;
  font-size:clamp(1.7rem, 2.5vw, 2.35rem) !important;
  line-height:1.25 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  text-align:center !important;
}

.team-section .team-position,
section.team-section .team-position{
  margin:0 0 14px !important;
  color:#f4c76d !important;
  font-weight:900 !important;
  font-size:clamp(1rem, 1.4vw, 1.2rem) !important;
  line-height:1.65 !important;
  text-align:center !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
}

.team-section .team-content p,
section.team-section .team-content p{
  margin:0 !important;
  color:rgba(255,255,255,.84) !important;
  font-size:1rem !important;
  line-height:1.95 !important;
  text-align:center !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  max-width:46ch !important;
  margin-inline:auto !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:980px){
  .team-section .team-grid,
  section.team-section .team-grid{
    grid-template-columns:1fr !important;
  }
}

@media (max-width:640px){
  .team-section .team-card,
  section.team-section article.team-card{
    padding:22px 18px !important;
  }

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

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