.migration-showcase-page .migration-bottom-cta-grid {
  grid-template-columns: 330px minmax(0, 1fr);
}

.migration-showcase-page .migration-bottom-cta-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 28px;
  padding-right: 0;
}

.migration-showcase-page .migration-bottom-cta-action .button {
  width: auto;
  min-width: 250px;
  max-width: 330px;
  min-height: 52px;
  padding: 13px 24px;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.25;
}

@media (max-width: 1180px) {
  .migration-showcase-page .migration-bottom-cta-grid {
    grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .migration-showcase-page .migration-bottom-cta-grid {
    grid-template-columns: 1fr;
  }

  .migration-showcase-page .migration-bottom-cta-action {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    margin-top: 24px;
  }

  .migration-showcase-page .migration-bottom-cta-action .button {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

/* Keep every process icon equally prominent and easier to scan. */
html body.case-detail-page.migration-showcase-page .migration-process-section .migration-process-icon-shell {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 16px;
  border: 1px solid rgba(202, 146, 58, 0.34);
  border-radius: 18px;
  background: linear-gradient(145deg, #fffdf9, #f7f9fd);
  box-shadow:
    0 12px 26px rgba(16, 42, 86, 0.1),
    inset 0 1px 0 #ffffff;
}

html body.case-detail-page.migration-showcase-page .migration-process-section .migration-process-icon-shell .process-icon,
html body.case-detail-page.migration-showcase-page .migration-process-section .migration-process-icon-shell .tool-logo {
  width: 50px !important;
  height: 50px !important;
  margin: 0 !important;
}

html body.case-detail-page.migration-showcase-page .migration-process-section .migration-process-icon-shell .process-icon {
  color: #0b2a68;
  filter: none;
}

html body.case-detail-page.migration-showcase-page .migration-process-section .migration-process-icon-shell .process-icon .icon-line {
  stroke-width: 3.5;
}

/* Project Outcome: compact horizontal summary with an even benefit grid. */
html body.case-detail-page.migration-showcase-page .migration-key-section .migration-key-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(26px, 2.4vw, 34px) !important;
  align-items: start !important;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-key-grid > * {
  grid-column: 1 !important;
  width: 100%;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-key-card {
  display: grid !important;
  grid-template-columns: minmax(190px, 0.62fr) minmax(300px, 1.25fr) minmax(320px, 1fr);
  grid-template-areas:
    "label title proof"
    "label copy proof";
  column-gap: clamp(28px, 3vw, 52px);
  row-gap: 10px;
  min-height: 0 !important;
  padding: clamp(24px, 2.3vw, 34px) !important;
  align-items: center;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-outcome-label {
  grid-area: label;
  align-self: center;
  margin: 0 !important;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-key-card h2::after {
  margin: 16px 0 0 !important;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-outcome-title {
  grid-area: title;
  align-self: end;
  margin: 0 !important;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.14;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-key-card > p:not(.migration-outcome-label) {
  grid-area: copy;
  align-self: start;
  max-width: 640px;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-outcome-proof {
  grid-area: proof;
  width: 100%;
  margin: 0 !important;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-benefit-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(18px, 1.8vw, 26px) !important;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-benefit-row > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-areas:
    "icon heading"
    "icon copy";
  column-gap: 16px;
  row-gap: 9px;
  min-height: 148px !important;
  height: auto !important;
  padding: 24px 24px !important;
  align-content: center !important;
  justify-items: start;
  text-align: left;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-benefit-icon {
  grid-area: icon;
  align-self: center;
  width: 54px !important;
  height: 54px !important;
  margin: 0 !important;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-benefit-row h3 {
  grid-area: heading;
  min-height: 0 !important;
  margin: 0 !important;
  align-items: end;
  justify-content: flex-start;
  text-align: left;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-benefit-row p {
  grid-area: copy;
  max-width: none;
  text-align: left;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-outcome-quote {
  position: relative;
  margin: 0 !important;
  padding: 16px 24px !important;
  color: #40516c;
  background: #f7f9fd;
  border: 1px solid rgba(16, 42, 86, 0.1);
  border-radius: 10px;
  text-align: left;
}

html body.case-detail-page.migration-showcase-page .migration-key-section .migration-outcome-quote::before,
html body.case-detail-page.migration-showcase-page .migration-key-section .migration-outcome-quote::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 1100px) {
  html body.case-detail-page.migration-showcase-page .migration-key-section .migration-key-card {
    grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
    grid-template-areas:
      "label title"
      "label copy"
      "proof proof";
  }

  html body.case-detail-page.migration-showcase-page .migration-key-section .migration-outcome-proof {
    margin-top: 10px !important;
  }

  html body.case-detail-page.migration-showcase-page .migration-key-section .migration-benefit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  html body.case-detail-page.migration-showcase-page .migration-key-section .migration-key-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "copy"
      "proof";
    row-gap: 14px;
  }

  html body.case-detail-page.migration-showcase-page .migration-key-section .migration-key-card h2::after {
    margin-top: 14px !important;
  }

  html body.case-detail-page.migration-showcase-page .migration-key-section .migration-benefit-row {
    grid-template-columns: 1fr !important;
  }

  html body.case-detail-page.migration-showcase-page .migration-key-section .migration-benefit-row > div {
    min-height: 132px !important;
    padding: 22px 20px !important;
  }
}

/* Tracking-review CTA: full content width and a calm, left-led composition. */
html body.case-detail-page.migration-showcase-page main.cs-case
  > .migration-bottom-cta
  > .migration-bottom-cta-grid.container {
  width: min(100% - 72px, 1410px) !important;
  max-width: 1410px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 12px;
  background: #fbfcfe !important;
  box-shadow: none !important;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  grid-template-areas:
    "title action"
    "intro action"
    "benefits benefits";
  gap: 12px clamp(36px, 5vw, 80px);
  padding: clamp(30px, 3.2vw, 46px) !important;
  align-items: center;
  text-align: left;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-copy h2 {
  grid-area: title;
  max-width: 720px;
  margin: 0 !important;
  font-size: clamp(30px, 3vw, 44px);
  text-align: left;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-copy > p {
  grid-area: intro;
  max-width: 720px;
  margin: 0 !important;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-benefits {
  grid-area: benefits;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 20px 0 0 !important;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 42, 86, 0.1);
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-benefits span {
  justify-content: flex-start;
  padding: 0 clamp(20px, 2.5vw, 40px);
  text-align: left;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-benefits span:first-child {
  padding-left: 0;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-action {
  grid-area: action;
  display: grid;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  align-content: center;
  justify-items: stretch;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-action .button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 54px;
  padding: 13px 22px;
  font-size: 16px;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-action p {
  justify-content: flex-start;
  margin: 0 !important;
  text-align: left;
}

@media (max-width: 900px) {
  html body.case-detail-page.migration-showcase-page main.cs-case
    > .migration-bottom-cta
    > .migration-bottom-cta-grid.container {
    width: min(100% - 40px, 1410px) !important;
  }

  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "intro"
      "benefits"
      "action";
  }

  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-action {
    max-width: 360px;
    margin-top: 10px !important;
  }
}

@media (max-width: 640px) {
  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-copy {
    padding: 26px 22px !important;
  }

  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-benefits {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-benefits span,
  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-benefits span:first-child {
    padding: 0;
    border: 0;
  }

  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-action {
    max-width: none;
  }
}

/* Bring the CTA into the same visual language as the other case studies. */
html body.case-detail-page.migration-showcase-page main.cs-case
  > .migration-bottom-cta
  > .migration-bottom-cta-grid.container {
  display: grid;
  grid-template-columns: clamp(240px, 24vw, 330px) minmax(0, 1fr) !important;
  gap: 0;
  overflow: hidden;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-photo {
  display: block;
  width: 100%;
  min-height: 100% !important;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-photo::after {
  background:
    linear-gradient(90deg, transparent 58%, rgba(251, 252, 254, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 24, 70, 0.03), rgba(7, 24, 70, 0.1));
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-photo img {
  width: 100%;
  height: 100%;
  min-height: 100% !important;
  object-fit: cover;
  object-position: 48% center;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-action .button {
  color: #0b1d4f !important;
  background: linear-gradient(135deg, #fffdf8 0%, #f3e5c8 100%) !important;
  border: 1px solid rgba(189, 141, 66, 0.68) !important;
  box-shadow: 0 8px 20px rgba(72, 55, 28, 0.08) !important;
}

html body.case-detail-page.migration-showcase-page .migration-bottom-cta-action .button:hover,
html body.case-detail-page.migration-showcase-page .migration-bottom-cta-action .button:focus-visible {
  color: #071846 !important;
  background: linear-gradient(135deg, #fffaf0 0%, #ecd8af 100%) !important;
  border-color: rgba(166, 116, 37, 0.82) !important;
  box-shadow: 0 10px 24px rgba(72, 55, 28, 0.12) !important;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  html body.case-detail-page.migration-showcase-page main.cs-case
    > .migration-bottom-cta
    > .migration-bottom-cta-grid.container {
    grid-template-columns: 1fr !important;
  }

  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-photo {
    height: 230px;
    min-height: 230px !important;
    border-radius: 12px 12px 0 0;
  }

  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-photo img {
    min-height: 230px !important;
    object-position: center 48%;
  }
}

@media (max-width: 640px) {
  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-photo {
    height: 190px;
    min-height: 190px !important;
  }

  html body.case-detail-page.migration-showcase-page .migration-bottom-cta-photo img {
    min-height: 190px !important;
  }
}
