/* Wahaj team corrections — only this section. All source animations preserved. */
#nxr-team .nxr-team-title {
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:clamp(58px,4.4vw,76px)!important;
  width:min(100%,1180px)!important;
  max-width:100%!important;
  margin-inline:auto!important;
  padding-inline:clamp(16px,2.5vw,30px)!important;
  box-sizing:border-box!important;
  direction:rtl!important;
}
#nxr-team .nxr-team-title h2,
#nxr-team .nxr-team-title h2 span {
  font-family:Cairo,Tahoma,sans-serif!important;
  font-size:clamp(33px,4.1vw,65px)!important;
  font-weight:800!important;
  line-height:1.35!important;
  letter-spacing:0!important;
  word-spacing:normal!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  box-sizing:border-box!important;
}
#nxr-team .nxr-team-title h2 span {
  font-weight:750!important;
  font-style:italic;
}
#nxr-team .nxr-team-title > .line_1 {
  display:block!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  width:100%!important;
  height:auto!important;
}
#nxr-team .nxr-team-title > .middle-line,
#nxr-team .nxr-team-title > .last-line {
  width:100%!important;
  min-height:clamp(58px,6vw,96px)!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:clamp(12px,2vw,28px)!important;
  direction:rtl!important;
  box-sizing:border-box!important;
}
#nxr-team .nxr-team-title > .middle-line h2,
#nxr-team .nxr-team-title > .last-line h2 {
  flex:0 1 auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}
/* Keep decorative original artwork, but constrain it to the actual text row. */
#nxr-team .nxr-team-title .middle-line .img-wrapper {
  display:block!important;
  flex:0 0 108px!important;
  width:108px!important;
  max-width:108px!important;
  height:76px!important;
  max-height:76px!important;
  padding:0!important;
  margin:0!important;
  position:relative!important;
  overflow:visible!important;
}
#nxr-team .nxr-team-title .middle-line .img-wrapper .item-img {
  width:54px!important;
  height:66px!important;
  max-height:66px!important;
  position:absolute!important;
  top:6px!important;
  border-radius:7px!important;
}
#nxr-team .nxr-team-title .middle-line .img-wrapper .item-img:nth-child(1) {
  left:6px!important; z-index:3!important;
}
#nxr-team .nxr-team-title .middle-line .img-wrapper .item-img:nth-child(2) {
  left:26px!important;top:9px!important;z-index:2!important;
}
#nxr-team .nxr-team-title .middle-line .img-wrapper .item-img:nth-child(3) {
  left:44px!important;z-index:1!important;
}
#nxr-team .nxr-team-title .middle-line .img-wrapper img {
  width:100%!important;height:100%!important;object-fit:cover!important;
}
#nxr-team .nxr-team-title .last-line .img-pair-1 {
  display:flex!important;
  flex:0 0 112px!important;
  width:112px!important;
  max-width:112px!important;
  height:72px!important;
  max-height:72px!important;
  overflow:visible!important;
  justify-content:center!important;
  align-items:center!important;
  padding:0!important;margin:0!important;
  position:relative!important;
}
#nxr-team .nxr-team-title .last-line .img-pair-1:before {display:none!important}
#nxr-team .nxr-team-title .last-line .img-pair-1 .item-img {
  flex:0 0 65px!important;width:65px!important;height:65px!important;
  overflow:hidden!important;border-radius:50%!important;
  transform:none!important;min-width:0!important;
}
#nxr-team .nxr-team-title .last-line .img-pair-1 .item-img:nth-child(2) {
  margin:0 0 0 -22px!important;
}
#nxr-team .nxr-team-title .last-line .img-pair-1 img {
  width:100%!important;height:100%!important;object-fit:cover!important;
}
/* Original card intro sequence still animates the same _3 / _2 / _4 selectors. */
@media (min-width:992px) {
  #nxr-team .nxr-team-feed-area{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(14px,1.6vw,24px)!important;
    max-width:1120px!important;
    width:100%!important;
    margin-inline:auto!important;
    direction:ltr!important;
    justify-content:center!important;
    align-items:center!important;
  }
  #nxr-team .nxr-team-item._3{
    grid-column:2!important;grid-row:1!important;
    position:relative!important;
    z-index:3!important;
  }
  #nxr-team .nxr-team-item._2{
    grid-column:3!important;grid-row:1!important;
    position:relative!important;
    z-index:2!important;
  }
  #nxr-team .nxr-team-item._4{
    grid-column:1!important;grid-row:1!important;
    position:relative!important;
    z-index:2!important;
  }
  #nxr-team .nxr-team-item .nxr-team-inner {
    width:100%!important;max-width:360px!important;margin-inline:auto!important;
  }
}
/* Below desktop: prioritize readable Arabic and maintain existing team cards. */
@media (max-width:991px) {
  #nxr-team .nxr-team-title {gap:clamp(44px,6vw,64px)!important;}
  #nxr-team .nxr-team-title h2,
  #nxr-team .nxr-team-title h2 span{
    font-size:clamp(25px,4.6vw,43px)!important;
    line-height:1.48!important;
  }
  #nxr-team .nxr-team-title .middle-line .img-wrapper,
  #nxr-team .nxr-team-title .last-line .img-pair-1 {display:none!important;}
  #nxr-team .nxr-team-title > .middle-line,
  #nxr-team .nxr-team-title > .last-line{min-height:0!important;}
}
@media (max-width:575px) {
  #nxr-team .nxr-team-title{
    gap:52px!important; padding-inline:18px!important;
  }
  #nxr-team .nxr-team-title h2,
  #nxr-team .nxr-team-title h2 span{
    font-size:clamp(26px,6.9vw,34px)!important;
    line-height:1.48!important;
  }
  #nxr-team .nxr-team-title > .middle-line,
  #nxr-team .nxr-team-title > .last-line {
    flex-wrap:wrap!important;gap:0!important;
  }
  #nxr-team .nxr-team-feed-area {max-width:100%!important;}
}

/* Small screens: keep all three profiles identifiable without a hover device. */
@media (max-width:991px) {
 #nxr-team .nxr-team-item .nxr-team-inner .item-text {
   visibility:visible!important;opacity:1!important;
   z-index:4!important;
 }
 #nxr-team .nxr-team-item .nxr-team-inner:before {
   opacity:.68!important;
 }
}
