/* =========================================================
   V35.2 Cases PRO
   ========================================================= */

.v35-cases-pro{
  position:relative;
  overflow:hidden;
}

.v35-cases-pro::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 10%, rgba(0,229,255,.12), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(255,90,95,.10), transparent 34%);
  pointer-events:none;
}

.v35-cases-pro .container{
  position:relative;
  z-index:1;
}

.v35-cases-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:34px;
}

.v35-case-card{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  padding:22px;
  min-height:280px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(180deg, rgba(15,18,32,.96), rgba(8,10,18,.98));
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 24px 80px rgba(0,0,0,.32);
  transition:.25s ease;
  text-align:center;
}

.v35-case-card::before{
  content:"";
  position:absolute;
  inset:-45%;
  background:
    radial-gradient(circle at 22% 28%, rgba(0,229,255,.18), transparent 36%),
    radial-gradient(circle at 76% 34%, rgba(255,90,95,.18), transparent 38%),
    radial-gradient(circle at 50% 82%, rgba(255,122,24,.13), transparent 40%);
  opacity:.52;
  filter:blur(18px);
  pointer-events:none;
}

.v35-case-card:hover{
  transform:translateY(-8px) scale(1.018);
  border-color:rgba(0,229,255,.42);
  box-shadow:0 32px 95px rgba(0,0,0,.44), 0 0 34px rgba(0,229,255,.15);
}

.v35-case-card > *{
  position:relative;
  z-index:1;
}

.v35-case-icon{
  width:76px;
  height:76px;
  border-radius:26px;
  margin:0 auto 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:42px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.13);
}

.v35-case-card h3{
  margin:0 0 8px;
  font-size:22px;
}

.v35-case-card p{
  margin:0 0 16px;
  color:#cbd5e1;
  line-height:1.55;
  font-size:14px;
}

.v35-case-list{
  display:grid;
  gap:7px;
  margin:16px 0 18px;
}

.v35-case-list span{
  display:block;
  color:#e5e7eb;
  font-size:13px;
}

.v35-case-link{
  display:inline-flex;
  padding:10px 14px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#00E5FF,#6C63FF);
  font-size:13px;
  font-weight:700;
}

@media(max-width:900px){
  .v35-cases-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:640px){
  .v35-cases-grid{
    grid-template-columns:1fr;
  }

  .v35-case-card:hover{
    transform:none;
  }
}

/* =========================================================
   V35.8 Cases Enterprise
   ========================================================= */

.v358-cases-toolbar{
  max-width:860px;
  margin:30px auto 4px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
}

.v358-cases-search{
  width:100%;
  max-width:560px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:15px 18px;
  outline:none;
  font-size:15px;
  box-shadow:0 18px 55px rgba(0,0,0,.22);
  transition:.22s ease;
}

.v358-cases-search:focus{
  border-color:rgba(0,229,255,.48);
  box-shadow:
    0 0 0 4px rgba(0,229,255,.08),
    0 0 28px rgba(0,229,255,.13);
}

.v358-cases-count{
  white-space:nowrap;
  color:#e5e7eb;
  border-radius:999px;
  padding:14px 16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  font-weight:800;
  font-size:14px;
}

.v358-cases-grid{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.v358-case-card{
  min-height:320px;
}

.v358-case-card p,
.v358-case-card .v35-case-list span{
  text-align:center;
}

@media(max-width:1180px){
  .v358-cases-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media(max-width:860px){
  .v358-cases-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .v358-cases-toolbar{
    flex-direction:column;
  }

  .v358-cases-count{
    width:100%;
    max-width:560px;
    text-align:center;
  }
}

@media(max-width:560px){
  .v358-cases-grid{
    grid-template-columns:1fr;
  }

  .v358-case-card{
    min-height:auto;
  }
}

/* =========================================================
   V35.8.1 Cases Marquee
   Compact running demo cards
   ========================================================= */

.v358-cases-enterprise{
  overflow:hidden;
}

.v358-cases-enterprise .container{
  max-width:1280px;
}

.v358-cases-grid{
  display:flex !important;
  grid-template-columns:none !important;
  gap:14px;
  width:max-content;
  margin-top:24px;
  animation:v358CasesMarquee 75s linear infinite;
}

.v358-cases-enterprise:hover .v358-cases-grid{
  animation-play-state:paused;
}

.v358-case-card{
  flex:0 0 220px;
  min-height:245px !important;
  padding:16px !important;
}

.v358-case-card .v35-case-icon{
  width:58px;
  height:58px;
  border-radius:20px;
  font-size:32px;
  margin-bottom:12px;
}

.v358-case-card h3{
  font-size:18px;
  margin-bottom:6px;
}

.v358-case-card p{
  font-size:12px;
  line-height:1.45;
  margin-bottom:10px;
}

.v358-case-card .v35-case-list{
  gap:4px;
  margin:10px 0 12px;
}

.v358-case-card .v35-case-list span{
  font-size:11px;
}

.v358-case-card .v35-case-link{
  padding:8px 11px;
  font-size:12px;
}

.v358-cases-toolbar{
  margin-bottom:12px;
}

.v358-cases-search:focus ~ .v358-cases-grid,
.v358-cases-enterprise.searching .v358-cases-grid{
  animation:none !important;
}

@keyframes v358CasesMarquee{
  from{
    transform:translateX(0);
  }
  to{
    transform:translateX(-50%);
  }
}

@media(max-width:768px){
  .v358-cases-grid{
    width:100%;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    animation:none !important;
    padding-bottom:12px;
  }

  .v358-case-card{
    flex:0 0 78vw;
    scroll-snap-align:center;
  }
}
