
.alhcs-wrap{width:100%;display:flex;justify-content:var(--alhcs-justify,flex-end);;margin-top:var(--alhcs-top-gap,0px);}
.alhcs-viewport{
  position:relative;
  width:min(100%, var(--alhcs-max-width,1200px));
  height:var(--alhcs-height,190px);
}
.alhcs-card{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:var(--alhcs-radius,28px);
  border:var(--alhcs-border-width,2px) solid var(--alhcs-border,#7c3aed);
  box-sizing:border-box;
  background: radial-gradient(120% 140% at 60% 30%, var(--alhcs-bg2,#140a2b) 0%, var(--alhcs-bg1,#070a16) 45%, var(--alhcs-bg3,#0b0d12) 100%);
}
/* المضمون المتحرك داخل البطاقة (نص فقط) */
.alhcs-mover{
  position:absolute;
  /* استخدم padding كهوامش داخلية حتى لا يلمس النص الإطار (خصوصاً عند الوقف) */
  top: calc(var(--alhcs-pad-y,26px) + 12px);
  right: var(--alhcs-pad-x,34px);
  bottom: var(--alhcs-pad-y,26px);
  left: var(--alhcs-pad-x,34px);

  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;

  will-change:transform,opacity;
  transform:translateX(0) translateY(0);
  opacity:1;
}
.alhcs-title{
  margin:0;
  font-size:var(--alhcs-title-size,44px);
  color:var(--alhcs-title-color,#fff);
  line-height:1.25;
}
.alhcs-text{
  font-size:var(--alhcs-text-size,20px);
  color:var(--alhcs-text-color,rgba(255,255,255,.85));
  line-height:1.8;
}


/* ===== Mobile portrait safety (avoid clipping) ===== */
@media (max-width: 520px){
  .alhcs-viewport{
    height: max(var(--alhcs-height,190px), 260px);
  }
  .alhcs-title{
    font-size: min(var(--alhcs-title-size,44px), 32px);
  }
  .alhcs-text{
    font-size: min(var(--alhcs-text-size,20px), 16px);
    line-height: 1.65;
  }
  .alhcs-mover{
    right: max(16px, var(--alhcs-pad-x,34px));
    left:  max(16px, var(--alhcs-pad-x,34px));
    top:   max(22px, calc(var(--alhcs-pad-y,26px) + 8px));
    bottom:max(18px, var(--alhcs-pad-y,26px));
  }
}
@media (max-width: 360px){
  .alhcs-viewport{ height: max(var(--alhcs-height,190px), 300px); }
  .alhcs-title{ font-size: 28px; }
  .alhcs-text{ font-size: 15px; }
}
