/* =========================================================
   DigitalShri – Team & Steps (Elementor widget "DS Team & Steps")
   Team image in a violet → charcoal box + eyebrow, heading, numbered steps,
   icon feature list (1–3 columns) and an orange button. Brand colours only.
   ========================================================= */

.elementor-widget-ds-team-steps { width: 100%; }

.ds-ts {
  --ts-gap: 60px;
  --ts-img-1: #851CF2;
  --ts-img-2: #17181C;
  --ts-num-w: 44px;
  --ts-icon: #851CF2;
  --ts-icon-box: 34px;
  padding: 80px 24px;
  font-family: "Montserrat", sans-serif;
  color: #17181C;
  box-sizing: border-box;
}
.ds-ts *, .ds-ts *::before, .ds-ts *::after { box-sizing: border-box; }

.ds-ts .ts-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--ts-gap);
  max-width: 1320px;
  margin: 0 auto;
}
.ds-ts.ts-img-right .ts-media { order: 2; }

/* ---------- Image ---------- */
.ds-ts .ts-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--ts-img-1) 0%, var(--ts-img-2) 100%);
}
.ds-ts .ts-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.ds-ts.ts-fit-contain .ts-img { object-fit: contain; }
.ds-ts.ts-gray .ts-img { filter: grayscale(1); }

/* ---------- Content ---------- */
.ds-ts .ts-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.ds-ts .ts-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 16px;
  border-radius: 50px;
  background-color: rgba(133, 28, 242, 0.08);
  color: #851CF2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ds-ts .ts-eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #F38218;
}
.ds-ts .ts-title {
  margin: 0 0 18px;
  padding: 0;
  color: #17181C;
  font-family: "Montserrat", sans-serif;
  font-size: var(--ds-h2-size, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.ds-ts .ts-title span { color: #851CF2; }
.ds-ts .ts-text {
  margin: 0 0 28px;
  color: rgba(23, 24, 28, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

/* numbered steps */
.ds-ts .ts-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.ds-ts .ts-step {
  display: grid;
  grid-template-columns: var(--ts-num-w) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
}
.ds-ts .ts-num {
  color: #851CF2;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}
.ds-ts .ts-step-text {
  color: #17181C;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
}
.ds-ts .ts-note {
  margin: 0 0 24px;
  padding-left: calc(var(--ts-num-w) + 14px);
  color: #17181C;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

/* icon feature list */
.ds-ts .ts-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  width: 100%;
  margin: 0 0 30px;
  padding: 20px 22px;
  border: 1px solid rgba(133, 28, 242, 0.14);
  border-radius: 16px;
  background-color: rgba(133, 28, 242, 0.04);
  list-style: none;
}
.ds-ts .ts-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
}
.ds-ts .ts-f-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: var(--ts-icon-box);
  height: var(--ts-icon-box);
  border-radius: 10px;
  background-color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(133, 28, 242, 0.12);
  color: var(--ts-icon);
  font-size: calc(var(--ts-icon-box) * 0.44);
}
.ds-ts .ts-f-icon i { color: inherit; font-size: inherit; }
.ds-ts .ts-f-icon svg { width: calc(var(--ts-icon-box) * 0.44); height: calc(var(--ts-icon-box) * 0.44); fill: var(--ts-icon); }
.ds-ts .ts-f-text {
  color: #17181C;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* button */
.ds-ts .ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border: 2px solid transparent;
  border-radius: 50px;
  background-color: #F38218;
  color: #FFFFFF;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(243, 130, 24, 0.3);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.ds-ts .ts-btn:hover,
.ds-ts .ts-btn:focus-visible {
  background-color: #851CF2;
  color: #FFFFFF;
  transform: translateY(-2px);
  outline: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .ds-ts { --ts-gap: 40px; padding: 60px 24px; }
  .ds-ts .ts-inner { grid-template-columns: minmax(0, 1fr); }
  .ds-ts.ts-img-right .ts-media { order: 0; }
  .ds-ts .ts-media { min-height: 440px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .ds-ts { --ts-gap: 32px; --ts-num-w: 32px; padding: 48px 16px; }
  .ds-ts .ts-media { min-height: 320px; border-radius: 18px; }
  .ds-ts .ts-text { font-size: 15px; }
  .ds-ts .ts-num { font-size: 32px; }
  .ds-ts .ts-step-text { font-size: 15px; }
  .ds-ts .ts-features { padding: 18px; }
  .ds-ts .ts-btn { width: 100%; padding: 15px 20px; }
}
