/* =========================================================
   HI-INFOTECH STUDENT SUCCESS STORIES
   Elementor classes: hi-stories-section, hi-stories-grid, hi-story-card,
   hi-story-tag, hi-story-stars, hi-story-quote, hi-story-person,
   hi-story-avatar, hi-story-name, hi-story-role, hi-stories-cta
   Content (photos, names, quotes, tags) is edited in Elementor.
   Palette: navy #0A1A33 / blue #1E6BFF / cyan #00C2FF / amber #FFB020
   ========================================================= */

/* ---------- Section backdrop ---------- */
.hi-stories-section{position:relative;overflow:hidden;isolation:isolate}
.hi-stories-section::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(600px 340px at 50% 0%,rgba(30,107,255,.08),transparent 70%),
    radial-gradient(420px 320px at 96% 70%,rgba(255,176,32,.08),transparent 70%),
    radial-gradient(420px 320px at 4% 80%,rgba(0,194,255,.08),transparent 70%);
}

/* ---------- Grid ---------- */
.hi-stories-grid{width:100%}

/* ---------- Card ---------- */
.hi-story-card{
  position:relative;isolation:isolate;
  transition:transform .55s var(--hi-ease,cubic-bezier(.22,1,.36,1)),
             box-shadow .55s var(--hi-ease,cubic-bezier(.22,1,.36,1)),
             border-color .45s;
}
/* large soft quote mark */
.e-con.hi-story-card::before{
  content:"\201C";position:absolute;z-index:-1;pointer-events:none;
  top:-18px!important;right:22px!important;left:auto!important;bottom:auto!important;
  width:auto!important;height:auto!important;display:block;border-radius:0;mix-blend-mode:normal;
  font:700 150px/1 Georgia,"Times New Roman",serif;
  background:linear-gradient(135deg,#1E6BFF,#00C2FF);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  opacity:.10;transition:opacity .5s,transform .6s var(--hi-ease,cubic-bezier(.22,1,.36,1));
}
/* accent line on bottom edge */
.e-con.hi-story-card::after{
  content:"";position:absolute;pointer-events:none;
  left:0!important;right:0!important;bottom:0!important;top:auto!important;
  width:auto!important;height:3px!important;display:block;
  background:linear-gradient(90deg,#00C2FF 0%,#1E6BFF 50%,#FFB020 100%);
  transform:scaleX(0);transform-origin:left center;
  transition:transform .6s var(--hi-ease,cubic-bezier(.22,1,.36,1));
}
.hi-story-card:hover{
  transform:translateY(-8px);
  border-color:rgba(30,107,255,.35)!important;
  box-shadow:0 30px 60px -28px rgba(30,107,255,.5)!important;
}
.e-con.hi-story-card:hover::before{opacity:.18;transform:translateY(-4px) rotate(-4deg)}
.e-con.hi-story-card:hover::after{transform:scaleX(1)}

/* ---------- Outcome tag (pill with dot) ---------- */
.hi-story-tag .elementor-heading-title{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 13px 7px 11px;border-radius:999px;
  background:rgba(255,176,32,.12);border:1px solid rgba(255,176,32,.32);
}
.hi-story-tag .elementor-heading-title::before{
  content:"";width:7px;height:7px;border-radius:50%;flex:none;
  background:#FFB020;box-shadow:0 0 0 0 rgba(255,176,32,.55);
  animation:hiStoryDot 2.4s ease-out infinite;
}
@keyframes hiStoryDot{
  0%{box-shadow:0 0 0 0 rgba(255,176,32,.55)}
  70%,100%{box-shadow:0 0 0 7px rgba(255,176,32,0)}
}

/* ---------- Stars ---------- */
.hi-story-stars .elementor-heading-title{display:inline-block;text-shadow:0 2px 8px rgba(255,176,32,.35)}

/* ---------- Quote ---------- */
.hi-story-quote p{margin:0}
.hi-story-quote{width:100%}

/* ---------- Person row ---------- */
.hi-story-person{margin-top:auto}
.hi-story-avatar{flex:0 0 auto!important;width:auto!important;max-width:none!important}
.hi-story-avatar .elementor-widget-container{
  position:relative;border-radius:50%;padding:3px;
  background:linear-gradient(135deg,#1E6BFF,#00C2FF 55%,#FFB020);
  transition:transform .5s var(--hi-ease,cubic-bezier(.22,1,.36,1));
}
.hi-story-avatar img{
  display:block;width:58px!important;height:58px!important;max-width:none;
  object-fit:cover;border-radius:50%!important;border:3px solid #fff;
}
.hi-story-card:hover .hi-story-avatar .elementor-widget-container{transform:scale(1.06)}
.hi-story-name .elementor-heading-title,
.hi-story-role .elementor-heading-title{margin:0}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .e-con.hi-story-card::before{font-size:130px;top:-14px!important}
}
@media (max-width:767px){
  .e-con.hi-story-card::before{font-size:110px;right:16px!important;top:-10px!important}
  .hi-story-avatar img{width:52px!important;height:52px!important}
  /* no hover lift on touch screens */
  .hi-story-card:hover{transform:none}
}
@media (hover:none){
  .hi-story-card:hover{transform:none}
  .e-con.hi-story-card::after{transform:scaleX(1);opacity:.85}
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion:reduce){
  .hi-story-card,.e-con.hi-story-card::before,.e-con.hi-story-card::after,
  .hi-story-avatar .elementor-widget-container{transition:none!important}
  .hi-story-tag .elementor-heading-title::before{animation:none}
  .hi-story-card:hover{transform:none}
}
