/* =========================================================
   DigitalShri – Roadmap (Elementor widget "DS Roadmap")
   Same design as the homepage "A Measurable Roadmap…" section.
   Outer spacing comes from the Elementor container around the widget.
   ========================================================= */

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

.ds-rm {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  color: #17181C;
  box-sizing: border-box;
}
.ds-rm *, .ds-rm *::before, .ds-rm *::after { box-sizing: border-box; }

/* Columns */
.ds-rm .ds-rm-content,
.ds-rm .ds-rm-media {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px;
}
.ds-rm .ds-rm-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ds-rm .ds-rm-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ds-rm .ds-rm-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Badge */
.ds-rm .ds-rm-badge {
  align-self: flex-start;
  display: inline-block;
  max-width: 100%;
  padding: 0 30px;
  border-radius: 25px;
  background: #EEEEEE;
  color: #1E51F1;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
}

/* Heading (global H2 scale 40 / 34 / 28) */
.ds-rm .ds-rm-title {
  margin: 0;
  padding: 0;
  color: #17181C;
  font-family: "Montserrat", sans-serif;
  font-size: var(--ds-h2-size, 40px);
  font-weight: 700;
  line-height: 1.2;
}
.ds-rm .ds-rm-title span { color: #F38218; }

/* Text */
.ds-rm .ds-rm-text {
  margin: 0;
  color: #17181C;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

/* Step cards */
.ds-rm .ds-rm-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr; /* all cards in a row grid get the same height */
  gap: 20px;
}
.ds-rm .ds-rm-card {
  padding: 10px;
  border: 1px solid #BBBBBB;
  border-radius: 10px;
  background: transparent;
}
.ds-rm .ds-rm-card-title {
  margin: 0 0 10px;
  padding: 0;
  color: #851CF2;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}
.ds-rm .ds-rm-card-desc {
  margin: 0;
  color: #17181C;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.ds-rm .ds-rm-card-sub { font-weight: 700; color: #17181C; }

/* Button (same look as the site-wide button, editable from the Style tab) */
.ds-rm .ds-rm-action { display: flex; }
.ds-rm .ds-rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background-color: #F38218;
  color: #FFFFFF;
  border: 2px solid #F38218;
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}
.ds-rm .ds-rm-btn:hover,
.ds-rm .ds-rm-btn:focus-visible {
  background-color: #17181C;
  color: #FFFFFF;
  border-color: #F38218;
  text-decoration: none;
}

/* ---------- Small tablet (≤900px): stack the columns ---------- */
@media (max-width: 900px) {
  .ds-rm { flex-direction: column; }
  .ds-rm .ds-rm-content,
  .ds-rm .ds-rm-media { flex: 0 0 auto; width: 100%; }
  .ds-rm .ds-rm-media img { max-width: 560px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .ds-rm .ds-rm-cards { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
}
