/* =========================================================
   DigitalShri – Tech Stack (Elementor widget "DS Tech Stack")
   Brand colours only: #851CF2 / #1E51F1 / #17181C / #F38218 (+ white).
   Columns and gap can be changed in Elementor: Style → Grid.
   ========================================================= */
.ds-ts {
  --ts-primary: #851CF2;
  --ts-text: #17181C;
  --ts-muted: rgba(23, 24, 28, 0.72);
  --ts-line: rgba(133, 28, 242, 0.12);
  font-family: "Montserrat", sans-serif;
  color: var(--ts-text);
  padding: 60px 24px; /* top/bottom adjustable in Elementor: Style → Spacing */
  box-sizing: border-box;
}
.ds-ts *, .ds-ts *::before, .ds-ts *::after { box-sizing: border-box; }
.ds-ts-inner { max-width: 1240px; margin: 0 auto; }

/* ---------- Heading ---------- */
.ds-ts .ds-ts-title {
  margin: 0 auto 14px;
  max-width: 960px;
  text-align: center;
  font-family: inherit;
  font-size: var(--ds-h2-size, 40px); /* global H2 scale */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ts-text);
}
.ds-ts .ds-ts-title span { color: var(--ts-primary); }
.ds-ts .ds-ts-intro {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ts-muted);
}

/* ---------- Grid (default 4 / 2 / 1; Elementor's Columns setting overrides) ---------- */
.ds-ts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

.ds-ts-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--ts-line);
  box-shadow: 0 14px 34px rgba(23, 24, 28, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ds-ts-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(133, 28, 242, 0.16);
}

.ds-ts .ds-ts-card-title {
  margin: 0;
  padding: 16px 20px;
  background: var(--ts-primary);
  color: #FFFFFF;
  text-align: center;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.ds-ts-list {
  list-style: none;
  margin: 0;
  padding: 8px 18px 12px;
}
.ds-ts .ds-ts-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 2px;
  border-bottom: 1px solid var(--ts-line);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ts-text);
}
.ds-ts .ds-ts-item:last-child { border-bottom: none; }

.ds-ts-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ts-primary);
}
.ds-ts-icon svg { width: 20px; height: 20px; fill: currentColor; }
.ds-ts-icon i { font-size: 19px; }
.ds-ts .ds-ts-logo { width: 26px; height: 26px; object-fit: contain; display: block; }
.ds-ts-text { min-width: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .ds-ts { padding: 50px 24px; }
  .ds-ts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .ds-ts { padding: 40px 16px; }
  .ds-ts-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .ds-ts .ds-ts-card-title { font-size: 17px; padding: 14px 16px; }
  .ds-ts .ds-ts-item { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-ts-card { transition: none !important; }
}
