.portal-service .portal-service-hero {
  background: linear-gradient(155deg, #f5f9ff 18%, #ddf2f4 100%) !important;
  padding-bottom: clamp(30px, 5vw, 70px);
}

.portal-service .portal-service-hero .breadcrumbs,
.portal-service .portal-service-hero p {
  color: #34536c;
}

.portal-service .portal-service-hero a:not(.button) {
  color: #075b70;
}

.portal-service .portal-service-hero .button {
  background: linear-gradient(110deg, #006789, #00736c);
  color: #fff;
}

.portal-service-hero-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
}

.portal-service .portal-service-lead h1 {
  margin: 0;
  color: #10274a;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.05;
}

.portal-service-lead > p {
  max-width: 64ch;
  margin-block: 16px 20px;
}

.portal-service-lead .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.portal-service-link,
.portal-service-related a {
  color: #075b70;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-service-hero figure {
  margin: 0;
}

.portal-service-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 42px #12274922;
}

.portal-service .portal-service-layout {
  gap: clamp(24px, 4vw, 50px);
}

.portal-service-content {
  min-width: 0;
  line-height: 1.72;
}

.portal-service-content :is(h2, h3),
.portal-service-workflow {
  scroll-margin-top: 145px;
}

.portal-service-content h2 {
  font-size: clamp(1.48rem, 2.65vw, 2.25rem);
  line-height: 1.18;
  margin: 1.65em 0 .55em;
}

.portal-service-content h3 {
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  line-height: 1.35;
}

.portal-service-content > :is(p, ul, ol) {
  max-width: 74ch;
}

.portal-service-content > :is(ul, ol) {
  padding-inline-start: 1.4em;
}

.portal-service-content > figure {
  margin: 34px 0;
}

.portal-service-content figure img {
  display: block;
  border-radius: 18px;
  width: 100%;
  height: auto;
}

.portal-service-content figcaption {
  color: #47617e;
  font-size: .86rem;
  padding-top: 9px;
}

.portal-service-workflow {
  padding: clamp(20px, 4vw, 40px);
  background: #eef8fa;
  border: 1px solid #c8e5e9;
  border-radius: 22px;
}

.portal-service-workflow h2 {
  margin: 0 0 20px;
}

.portal-service-workflow ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.portal-service-workflow li {
  border-inline-start: 3px solid #0c8291;
  border-radius: 8px;
  background: #fff;
  padding: 15px;
}

.portal-service-workflow li h3 {
  margin: 0 0 7px;
}

.portal-service-workflow li p {
  margin: 0;
  font-size: .92rem;
}

.portal-service-related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 32px;
  padding-block: 19px;
  border-block: 1px solid #d3e2ef;
}

.portal-service .portal-service-sidebar {
  padding: 0 3px 3px;
  background: none;
  border: 0;
}

@media (min-width: 851px) {
  #main .portal-service-layout.tt365-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 24vw, 332px) !important;
  }

  #main .portal-service-sidebar.tt365-sidebar {
    top: 138px;
    max-height: calc(100dvh - 150px);
  }
}

@media (max-width: 850px) {
  .portal-service-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-service .portal-service-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    margin-top: 24px;
  }

  #main .portal-service-sidebar :is(.ota-demo-card, .flightagg-platform-cta) {
    display: block;
    margin: 0;
  }

  #main .portal-service-sidebar :is(.ota-demo-card strong, .ota-demo-kicker) {
    display: block;
    margin-bottom: 12px;
  }
}

@media (max-width: 540px) {
  .portal-service-workflow ol,
  .portal-service .portal-service-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}
