/* =========================================================
   DigitalShri – Service Tabs (Elementor widget "DS Service Tabs")
   Selectors are prefixed with .ds-st so the Elementor kit's global
   button/heading styles can't override them.
   ========================================================= */
.ds-st {
  --st-primary: #851CF2;
  --st-secondary: #1E51F1;
  --st-text: #17181C;
  --st-accent: #F38218;
  --st-dark: #17181C;
  --st-muted: rgba(23, 24, 28, 0.72);
  --st-border: rgba(133, 28, 242, 0.16);
  --st-panel: rgba(133, 28, 242, 0.05);
  font-family: "Montserrat", sans-serif;
  color: var(--st-text);
  padding: 60px 24px; /* top/bottom adjustable in Elementor: Style → Spacing */
  box-sizing: border-box;
}
.ds-st *, .ds-st *::before, .ds-st *::after { box-sizing: border-box; }
.ds-st-inner { max-width: 1240px; margin: 0 auto; }

/* ---------- Heading ---------- */
.ds-st .ds-st-title {
  margin: 0 auto 14px;
  max-width: 900px;
  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(--st-text);
}
.ds-st .ds-st-title span { color: var(--st-primary); }
.ds-st .ds-st-intro {
  margin: 0 auto;
  max-width: 640px;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  color: var(--st-muted);
}

/* ---------- Tab cards ---------- */
.ds-st-tablist {
  display: grid;
  /* as many tabs per row as fit (4, 5 or 6 on desktop); 2 per row below 900px */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 40px 0 24px;
}
.ds-st .ds-st-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 1.5px solid var(--st-border);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--st-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.ds-st .ds-st-tab:hover { border-color: rgba(133, 28, 242, 0.45); transform: translateY(-2px); }
.ds-st .ds-st-tab:focus-visible { outline: 3px solid var(--st-primary); outline-offset: 2px; }
.ds-st .ds-st-tab.is-active {
  border-color: var(--st-primary);
  box-shadow: 0 10px 28px rgba(133, 28, 242, 0.16);
}
.ds-st-tab-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(133, 28, 242, 0.08);
  color: var(--st-primary);
  transition: background 0.25s ease, color 0.25s ease;
}
.ds-st-tab-icon svg { width: 18px; height: 18px; fill: currentColor; }
.ds-st-tab-icon i { font-size: 18px; }
.ds-st .ds-st-tab.is-active .ds-st-tab-icon { background: var(--st-primary); color: #FFFFFF; }
.ds-st-tab-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ds-st-tab-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--st-text); }
.ds-st-tab-sub { font-size: 13px; line-height: 1.4; color: var(--st-muted); }

/* ---------- Panel ---------- */
.ds-st-stage { position: relative; }
.ds-st-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 56px 64px;
  border-radius: 24px;
  background: var(--st-panel);
  animation: dsStFade 0.4s ease both;
}
.ds-st-panel[hidden] { display: none; }
.ds-st-panel:focus-visible { outline: 3px solid var(--st-primary); outline-offset: 3px; }

.ds-st .ds-st-panel-title {
  margin: 0 0 18px;
  font-family: inherit;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--st-text);
}
.ds-st .ds-st-panel-title span { display: block; color: var(--st-primary); }
.ds-st .ds-st-desc, .ds-st .ds-st-desc p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--st-muted);
}
.ds-st .ds-st-desc p + p { margin-top: 12px; }
.ds-st .ds-st-btn { margin-top: 28px; gap: 10px; }
.ds-st .ds-st-btn svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.ds-st .ds-st-btn:hover svg { transform: translateX(4px); }

/* ---------- Tab image (shown as uploaded) ---------- */
.ds-st-visual { display: flex; justify-content: center; }
.ds-st .ds-st-img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 20px;
}
/* Elementor placeholder, only while no image is chosen */
.ds-st .ds-st-img.is-placeholder {
  aspect-ratio: 600 / 480;
  object-fit: cover;
  background: rgba(133, 28, 242, 0.08);
}

/* ---------- Prev / next arrows ---------- */
.ds-st .ds-st-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--st-border);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--st-text);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(23, 24, 28, 0.12);
  transform: translateY(-50%);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ds-st .ds-st-arrow svg { width: 20px; height: 20px; }
.ds-st .ds-st-arrow:hover, .ds-st .ds-st-arrow:focus-visible { background: var(--st-primary); border-color: var(--st-primary); color: #FFFFFF; outline: none; }
.ds-st .ds-st-arrow--prev { left: -24px; }
.ds-st .ds-st-arrow--next { right: -24px; }
@keyframes dsStFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Large tablet ---------- */
@media (max-width: 1280px) {
  .ds-st .ds-st-arrow--prev { left: 8px; }
  .ds-st .ds-st-arrow--next { right: 8px; }
  .ds-st-panel { padding: 56px 72px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .ds-st { padding: 50px 24px; }
  .ds-st-panel { grid-template-columns: 1fr; gap: 36px; padding: 44px 72px; }
  .ds-st-visual { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 900px) {
  .ds-st-tablist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .ds-st { padding: 40px 16px; }
  .ds-st-tablist { gap: 10px; margin: 28px 0 18px; }
  .ds-st .ds-st-tab { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .ds-st-tab-icon { width: 38px; height: 38px; }
  .ds-st-tab-title { font-size: 14.5px; }
  .ds-st-tab-sub { font-size: 12px; }
  .ds-st-panel { padding: 28px 20px; gap: 28px; border-radius: 20px; }
  .ds-st .ds-st-btn { width: 100%; }

  /* Arrows sit inside the panel, under the image: bottom-left and bottom-right */
  .ds-st-panel { padding-bottom: 84px; } /* room for the arrows */
  .ds-st .ds-st-arrow {
    top: auto;
    bottom: 20px;
    width: 44px;
    height: 44px;
    transform: none;
  }
  .ds-st .ds-st-arrow--prev { left: 20px; }
  .ds-st .ds-st-arrow--next { right: 20px; }

}

@media (prefers-reduced-motion: reduce) {
  .ds-st-panel { animation: none !important; }
  .ds-st .ds-st-tab, .ds-st .ds-st-arrow, .ds-st .ds-st-btn svg { transition: none !important; }
}
