/* ================================================================
   ECON Tech — Success Stories Slider
   Used on all 5 industry pages.
   ================================================================ */

#success-stories {
  padding: 64px 0;
  background: var(--gray-100);
  overflow: hidden;
}

.ss-header {
  text-align: center;
  margin-bottom: 36px;
}

.ss-header h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  line-height: 1.2;
}

.ss-header h2 span { color: var(--red); }

/* ── Slider wrapper ── */
.ss-slider { position: relative; overflow: hidden; }

.ss-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.ss-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  min-height: 320px;
}

/* ── Slide content (left) ── */
.ss-content {
  padding: 28px 48px 28px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.ss-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(223,8,8,0.10);
  padding: 5px 12px;
  border-radius: 4px;
  width: fit-content;
}

.ss-content h3 {
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.ss-content p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.65;
  margin: 0;
}

.ss-metrics {
  display: flex;
  gap: 24px;
  margin-top: 4px;
}

.ss-metric span {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
}

.ss-metric p {
  font-size: 12px;
  color: var(--gray-light);
  margin: 6px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.ss-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  padding: 10px 22px;
  border-radius: 6px;
  width: fit-content;
  margin-top: 8px;
  transition: background var(--transition), transform var(--transition);
}

.ss-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* ── Slide image panel (right) ── */
.ss-image {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.ss-img-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Color themes per slide type */
.ss-img-predictive  { background: #1a2d4d; border-bottom: 4px solid #0084ff; }
.ss-img-quality     { background: #2d1a1a; border-bottom: 4px solid #ff8c00; }
.ss-img-traceability{ background: #1a2d2d; border-bottom: 4px solid var(--red); }
.ss-img-energy      { background: #1a2a1a; border-bottom: 4px solid #22c55e; }
.ss-img-oee         { background: #1a1a2d; border-bottom: 4px solid #a855f7; }

.ss-img-predictive::before {
  content: '';
  position: absolute; right: 0; bottom: 0;
  width: 55%; height: 55%;
  background: radial-gradient(ellipse at 80% 90%, rgba(0,132,255,0.30) 0%, transparent 70%);
}

.ss-img-quality::before {
  content: '';
  position: absolute; right: 0; bottom: 0;
  width: 55%; height: 55%;
  background: radial-gradient(ellipse at 80% 90%, rgba(255,140,0,0.30) 0%, transparent 70%);
}

.ss-img-traceability::before {
  content: '';
  position: absolute; right: 0; bottom: 0;
  width: 55%; height: 55%;
  background: radial-gradient(ellipse at 80% 90%, rgba(223,8,8,0.30) 0%, transparent 70%);
}

.ss-img-energy::before {
  content: '';
  position: absolute; right: 0; bottom: 0;
  width: 55%; height: 55%;
  background: radial-gradient(ellipse at 80% 90%, rgba(34,197,94,0.30) 0%, transparent 70%);
}

.ss-img-oee::before {
  content: '';
  position: absolute; right: 0; bottom: 0;
  width: 55%; height: 55%;
  background: radial-gradient(ellipse at 80% 90%, rgba(168,85,247,0.30) 0%, transparent 70%);
}

.ss-img-tag {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 4;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ss-img-insight {
  position: absolute;
  bottom: 28px; left: 26px; right: 26px;
  z-index: 4;
  font-family: var(--font-head);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Navigation ── */
.ss-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 44px;
}

.ss-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(28,29,41,0.18);
  background: none;
  color: rgba(28,29,41,0.5);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.ss-arrow:hover {
  border-color: var(--red);
  color: var(--white);
  background: rgba(223,8,8,0.15);
}

.ss-dots { display: flex; gap: 8px; }

.ss-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(28,29,41,0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.ss-dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ss-slide {
    grid-template-columns: 1fr;
  }
  .ss-content { padding: 40px 0 32px; }
  .ss-image   { min-height: 260px; border-radius: 10px; }
}

@media (max-width: 600px) {
  .ss-metrics { gap: 16px; }
  .ss-metric span { font-size: 22px; }
}
