/* HealthTech Consulting page-specific styles.
   Shared Home USA components are styled by home-usa.css, which this page also loads. */
.healthtech-consulting .home-usa-process {
  background: #f6f6f6;
}

/* Reference portfolio layout */
.home-usa-portfolio {
  padding: 110px 0 100px;
  border-top: 1px solid #e0e2e5;
}

.home-usa-portfolio__heading {
  margin: 0;
  color: var(--primary-fill);
  font: 700 36px/1.15 'Space Grotesk', sans-serif;
  text-align: center;
}

.home-usa-portfolio__heading + .home-usa-portfolio__list .home-usa-portfolio__item:first-child {
  padding-top: 48px;
}

.home-usa-portfolio__list { border: 0; }

.home-usa-portfolio__item {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  min-height: 650px;
  padding: 84px 0 50px;
  border: 0;
}

.home-usa-portfolio__copy {
  max-width: 350px;
}

.home-usa-portfolio__badge {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.home-usa-portfolio__copy h3 {
  margin-top: 11px;
  font-size: 48px;
}

.home-usa-portfolio__subtitle {
  font-size: 20px;
}

.home-usa-portfolio__copy ul { gap: 20px; font-size: 16px; line-height: 1.5; }

.home-usa-portfolio__divider { margin: 18px 0; }
.home-usa-portfolio__awards-label { font-size: 15px; margin-bottom: 12px; }
.home-usa-portfolio__link { display: none; }

.home-usa-portfolio__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--primary-fill);
  font-family: 'Lexend', sans-serif;
}

.home-usa-portfolio__metric strong {
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.home-usa-portfolio__metric span {
  font-size: 14px;
  line-height: 1.2;
}

.home-usa-portfolio__learn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 34px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: linear-gradient(var(--primary-white), var(--primary-white)) padding-box,
    linear-gradient(192.7deg, #6438f4, #dd68ff) border-box;
  color: var(--primary-fill);
  font: 600 16px/1 'Lexend', sans-serif;
  text-decoration: none;
}

.home-usa-portfolio__learn-more img {
  display: block;
  width: 20px;
  height: 14px;
  object-fit: contain;
}

.home-usa-portfolio__visual {
  align-self: center;
  min-height: 510px;
  margin: 36px calc((100vw - 76vw) / -2) 0 0;
  overflow: visible;
  isolation: isolate;
  background: transparent;
}

.home-usa-portfolio__visual::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 0 0 0 20px;
  background: #f5f6f7;
  clip-path: polygon(31% 0, 100% 0, 100% 100%, 0 100%, 0 34%);
  content: '';
}

.home-usa-portfolio__image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 510px;
  transform: translateX(48px);
}

.home-usa-portfolio__logo {
  z-index: 2;
  left: -38px;
  width: 80px;
  height: 80px;
  padding: 16px;
  border-radius: 14px;
}

.home-usa-portfolio__awards { gap: 14px; }
.home-usa-portfolio__awards img { flex-basis: 110px; width: 110px; height: 110px; }

@media (max-width: 991px) {
  .home-usa-portfolio__container { width: 76%; }

  .home-usa-portfolio__item {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 38px;
    min-height: 500px;
    padding: 60px 0 36px;
  }

  .home-usa-portfolio__copy { max-width: 330px; }
  .home-usa-portfolio__copy h3 { font-size: 38px; }
  .home-usa-portfolio__subtitle { font-size: 17px; }
  .home-usa-portfolio__copy ul { gap: 12px; font-size: 14px; }
  .home-usa-portfolio__visual { min-height: 380px; margin: 24px calc((100vw - 76vw) / -2) 0 0; }
  .home-usa-portfolio__image { max-height: 380px; transform: translateX(28px); }
  .home-usa-portfolio__awards img { flex-basis: 76px; width: 76px; height: 76px; }
  .home-usa-portfolio__learn-more { margin-top: 26px; font-size: 14px; }
}

@media (max-width: 767px) {
  .home-usa-portfolio { padding-bottom: 16px; padding-top: 20px; }
  .home-usa-portfolio__heading { margin-top: 40px; font-size: 28px; }
  .home-usa-portfolio__heading + .home-usa-portfolio__list .home-usa-portfolio__item:first-child { padding-top: 40px; }
  .home-usa-portfolio__item {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 46px 0;
  }

  .home-usa-portfolio__copy { max-width: none; }
  .home-usa-portfolio__visual {
    order: 0;
    min-height: 260px;
    margin: 0;
  }
  .home-usa-portfolio__image { max-height: 260px; transform: none; }
  .home-usa-portfolio__copy h3 { font-size: 34px; }
  .home-usa-portfolio__subtitle { font-size: 16px; }
  .home-usa-portfolio__copy ul { gap: 10px; font-size: 14px; }
  .home-usa-portfolio__logo { display: none; }
  .home-usa-portfolio__awards img { flex-basis: 64px; width: 64px; height: 64px; }
  .home-usa-portfolio__learn-more { margin-top: 24px; padding: 11px 16px; font-size: 14px; }

  .home-usa-site-header .navigation-bar .contact-us-button {
    padding: 9px;
  }

  .home-usa-site-header .navigation-bar .contact-us-button span {
    font-size: 15px;
  }

  .navigation-bar {
    height: 84px;
  }
}

/* HealthTech Consulting landing */

/* Problem statements */
.healthtech-problems {
  padding: 120px 0 120px 0;
  background: #f7f7f8;
}

.healthtech-problems__container {
  width: 76%;
  max-width: none;
  margin: 0 auto;
}

.healthtech-problems h2 {
  margin: 0 0 clamp(48px, 5vw, 56px);
  color: var(--primary-fill);
  font: 700 36px/1.15 'Space Grotesk', sans-serif;
  text-align: center;
}

.healthtech-problems__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 28px);
}

.healthtech-problems__card {
  position: relative;
  display: flex;
  min-height: 574px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.healthtech-problems__card-top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 150px;
}

.healthtech-problems__card-top img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.healthtech-problems__icon {
  position: absolute;
  z-index: 1;
  top: 85px;
  left: 50%;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 22px rgba(16, 26, 42, .12);
  transform: translateX(-50%);
}

.healthtech-problems__icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.healthtech-problems__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 230px clamp(24px, 1.4vw, 28px) 35px;
}

.healthtech-problems__content h3 {
  margin: 0;
  color: var(--primary-fill);
  font: 700 clamp(24px, 1.56vw, 30px) / .98 'Space Grotesk', sans-serif;
  letter-spacing: -.025em;
}

.healthtech-problems__content p {
  margin: 25px 0 21px;
  color: var(--primary-fill);
  font: 300 20px / 1.45 'Lexend', sans-serif;
}

.healthtech-problems__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 86px;
  margin: 0;
  padding: 0 0 50px 0;
  list-style: none;
}

.healthtech-problems__tags li {
  padding: 10px 20px;
  border-radius: 999px;
  background: #EEEEEE;
  color: var(--primary-fill);
  font: 400 18px / 1.25 'Lexend', sans-serif;
  white-space: nowrap;
}

.healthtech-problems__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #d2d4d8;
  color: var(--primary-purple);
  font: 500 18px / 1.25 'Lexend', sans-serif;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.healthtech-problems__link span {
  font-size: 24px;
  line-height: .65;
  text-decoration: none;
}

.healthtech-problems__link:hover {
  color: #4523cf;
}

/* HealthTech consulting services */
.healthtech-services-tabs {
  padding: 110px 0 120px;
  background: #fff;
}

.healthtech-services-tabs__container {
  width: 76%;
  max-width: none;
  margin: 0 auto;
}

.healthtech-services-tabs h2 {
  margin: 0 0 clamp(48px, 5vw, 56px);
  color: var(--primary-fill);
  font: 700 36px/1.15 'Space Grotesk', sans-serif;
  text-align: center;
}

.healthtech-services-tabs__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(20px, 1.75vw, 34px);
  align-items: stretch;
}

.healthtech-services-tabs__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.healthtech-services-tabs__tab {
  min-height: 90px;
  padding: 17px 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #EEEEEE;
  color: var(--primary-fill);
  cursor: pointer;
  font: 700 clamp(20px, 1.9vw, 32px) / 1.15 'Space Grotesk', sans-serif;
  letter-spacing: -.02em;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease;
}

.healthtech-services-tabs__tab.is-active {
  border-color: var(--primary-fill);
  background: #fff;
}

.healthtech-services-tabs__tab:focus-visible {
  outline: 2px solid #6438f4;
  outline-offset: 3px;
}

.healthtech-services-tabs__panels {
  min-width: 0;
  border: 1px solid var(--primary-fill);
  border-radius: 8px;
  background: #fff;
}

.healthtech-services-tabs__panel {
  min-height: 100%;
  padding: clamp(28px, 2.6vw, 50px) clamp(28px, 2.8vw, 54px);
}

.healthtech-services-tabs__panel p {
  margin: 0 0 30px;
  color: var(--primary-fill);
  font: 400 24px / 1.35 'Lexend', sans-serif;
}

.healthtech-services-tabs__panel ul {
  display: grid;
  gap: 20px;
  margin: 0;
  padding-left: 17px;
  color: var(--primary-fill);
}

.healthtech-services-tabs__panel li {
  padding-left: 1px;
  font: 700 24px / 1.25 'Lexend', sans-serif;
}

.healthtech-consulting .healthtech-consulting-hero {
  min-height: 100svh;
  background: var(--primary-fill);
}

.healthtech-consulting .healthtech-consulting-hero .home-usa-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(48px, 10vw, 150px);
  width: 76%;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(122px, 10.3vw, 198px) 0 clamp(36px, 3.75vw, 72px);
}

.healthtech-consulting .healthtech-consulting-hero .home-usa-hero__copy {
  align-self: center;
  max-width: 620px;
}

.healthtech-consulting-hero__eyebrow {
  display: block;
  margin-bottom: 30px;
  color: var(--primary-pink);
  font: 500 24px/1 'Lexend', sans-serif;
}

.healthtech-consulting .healthtech-consulting-hero h1 {
  color: #fff;
  font: 700 clamp(38px, 3.13vw, 60px)/1.06 'Space Grotesk', sans-serif !important;
  letter-spacing: -.025em;
}

.healthtech-consulting .healthtech-consulting-hero .home-usa-hero__copy p {
  max-width: 600px;
  margin-top: 25px;
  color: #fff;
  font: 400 clamp(16px, 1.04vw, 20px)/1.4 'Lexend', sans-serif;
}

.healthtech-consulting .healthtech-consulting-hero .home-usa-button {
  margin-top: 50px;
  padding: 15px 22px;
  border: 2px solid transparent;
  border-radius: 5px;
  background:
    linear-gradient(#101925, #101925) padding-box,
    linear-gradient(100deg, #6438f4, #dd68ff) border-box;
  box-shadow: none;
  font: 500 16px / 1 Lexend, sans-serif;
}

.healthtech-consulting .healthtech-consulting-hero .home-usa-button:hover {
  background:
    linear-gradient(rgba(202, 88, 255, .16), rgba(202, 88, 255, .16)) padding-box,
    linear-gradient(100deg, #6438f4, #dd68ff) border-box;
}

.healthtech-consulting .healthtech-consulting-hero .home-usa-button__arrow {
  width: 14px;
  height: 14px;
  font-size: 20px;
  line-height: .7;
}

.healthtech-consulting-hero__media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.healthtech-consulting-hero__media img {
  display: block;
  width: clamp(375px, 32vw, 615px);
  max-width: 100%;
  height: auto;
}

.healthtech-consulting .healthtech-consulting-hero .healthtech-consulting-hero__awards {
  grid-column: 1 / -1;
}

@media (max-width: 991px) {
  .healthtech-problems__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .healthtech-problems__card { min-height: 547px; }
  .healthtech-services-tabs__layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }

  .healthtech-consulting .healthtech-consulting-hero {
    min-height: 0;
  }

  .healthtech-consulting .healthtech-consulting-hero .home-usa-hero__content {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    min-height: 620px;
    padding-top: 116px;
  }

  .healthtech-consulting-hero__media img { width: min(100%, 330px); }
}

@media (max-width: 767px) {
  .healthtech-problems { padding: 60px 0 60px; }
  .healthtech-problems__container { width: calc(100% - 32px); }
  .healthtech-problems h2 { margin-bottom: 42px; font-size: 28px; }
  .healthtech-problems__grid { grid-template-columns: 1fr; gap: 24px; }
  .healthtech-problems__card { min-height: 0; }
  .healthtech-problems__content { min-height: 497px; padding: 199px 24px 20px; }
  .healthtech-problems__card-top { height: 150px; }
  .healthtech-problems__icon { top: 81px; width: 104px; height: 104px; }
  .healthtech-problems__content h3 { font-size: 27px; }

  .healthtech-services-tabs { padding: 48px 0; }
  .healthtech-services-tabs__container { width: calc(100% - 32px); }
  .healthtech-services-tabs h2 { margin-bottom: 26px; font-size: 28px; }
  .healthtech-services-tabs__layout { grid-template-columns: 1fr; gap: 24px; }
  .healthtech-services-tabs__tab { min-height: 68px; padding: 16px 20px; font-size: 20px; }
  .healthtech-services-tabs__panel { padding: 28px 24px; }
  .healthtech-services-tabs__panel p { font-size: 16px; }

  .healthtech-consulting .healthtech-consulting-hero .home-usa-hero__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: calc(100% - 32px);
    min-height: 0;
    padding: 116px 0 42px;
    row-gap: 38px;
  }

  .healthtech-consulting .healthtech-consulting-hero .home-usa-hero__copy {
    max-width: 540px;
  }

  .healthtech-consulting-hero__eyebrow { font-size: 14px; }
  .healthtech-consulting .healthtech-consulting-hero h1 { font-size: clamp(35px, 10vw, 44px) !important; }
  .healthtech-consulting .healthtech-consulting-hero .home-usa-hero__copy p { font-size: 15px; }
  .healthtech-consulting-hero__media { justify-content: center; }
  .healthtech-consulting-hero__media img { width: min(100%, 390px); }

}

.healthtech-consulting {

  .newsletter-section {
    padding: 140px 20px 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;

    .max-width-controller {
      display: flex;
      flex-direction: column;
      gap: 24px;
      align-items: center;
      max-width: 660px;
      @media screen and (max-width: 767px) {
        gap: 16px;
      }
    }

    .newsletter-actions {
      .primary-button {
        height: 56px;
      }
      @media screen and (max-width: 767px) {
        width: 100%;
        align-items: stretch;
        gap: 16px;

        .primary-button {
          width: 100%;
          max-width: 100%;
          justify-content: center;
        }
      }
    }

    h3 {
      margin: 0 !important;
      font-family: 'Space Grotesk', sans-serif;;
      font-weight: 700;
      font-size: 50px;
      text-align: center;


      @media screen and (max-width: 992px) {
        font-size: 30px;
      }

      @media screen and (max-width: 576px) {
        font-size: 28px;
      }
    }

    @media screen and (max-width: 992px) {
      padding-top: 120px;
      padding-bottom: 150px;
    }

    @media screen and (max-width: 576px) {
      padding-top: 90px;
      padding-bottom: 105px;
    }

    .section-bottom-asset {
      position: absolute;
      left: 50%;
      bottom: -370px;
      width: min(500px, 70vw);
      max-width: 500px;
      transform: translateX(-50%);
      pointer-events: none;
      z-index: -1;
    }

    @media screen and (max-width: 992px) {
      .section-bottom-asset {
        bottom: -320px;
        width: min(440px, 86vw);
      }
    }

    @media screen and (max-width: 576px) {

      .section-bottom-asset {
        bottom: -250px;
        width: min(340px, 96vw);
      }
    }

  }

  .newsletter-form-modal{
    /* Styling for the modal content to match the design */
    .modal-content {
        border: none;
        border-radius: 1rem; /* Rounded corners for the card */
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
        overflow: hidden; /* Ensures child elements respect border-radius */
    }

    /* Setting max-width on the modal dialog */
    .modal-dialog {
          max-width: 550px;
    }

    .modal-body {
        padding: 2.5rem;
    }

    .icon-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 70px;
        height: 70px;
        border-radius: 1.25rem;
        margin: 0 auto 1.5rem auto;
    }

    .icon-wrapper svg {
        width: 36px;
        height: 36px;
        color: #8a2be2; /* Main purple color for the icon */
    }

    .card-title {
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 700;
        color: #0F1825;
    }

    .card-text {
        font-family: 'Lexend', sans-serif;
        color: #0F1825;
        font-size: 14pt;
        line-height: 1.6;
    }

    .btn-custom-outline {
        font-family: 'Lexend', sans-serif;
        color: #0F1825;
        font-weight: 500;
        padding: 0.75rem 1.5rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        background: linear-gradient(white, white) padding-box, linear-gradient(to right, #DD68FF, #6438F4) border-box;
    }

    .btn-gradient {
        font-family: 'Lexend', sans-serif;
        background-image: linear-gradient(to right, #DD68FF, #6438F4);
        color: #ffffff;
        border: none;
        font-weight: 500;
        padding: 0.75rem 1.5rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(100, 56, 244, 0.2);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-close-custom {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        padding: 0;
        line-height: 1;
        z-index: 10; /* Ensure it's above other content */
    }

    .btn-close-custom svg {
        width: 24px;
        height: 24px;
        color: #0F1825;
    }

    .btn-close-custom:hover {
        opacity: 1;
    }

    .button-group .btn {
        text-decoration: none;
    }

    /* Responsive adjustments */
    @media (max-width: 576px) {
        .modal-body {
            padding: 2rem 1.5rem;
        }
    }

    @media (min-width: 576px) {
        .button-group .btn {
            flex: 1;
        }
    }

    .form-controller {
      width: 100%;
      max-width: 640px;

      display: flex;
      flex-direction: column;
      gap: 16px;

      .form-control {
        height: 50px;
        border: 1px solid var(--primary-grey);
        border-radius: 10px !important;
      }

      .primary-button {
        justify-content: center;
        height: 50px;
      }
    }

    h3 {
      margin: 0 !important;
      font-family: "Space Grotesk";
      font-size: 44px;
      font-weight: 700;

      @media screen and (max-width: 992px) {
        font-size: 36px;
      }

      @media screen and (max-width: 576px) {
        font-size: 28px;
      }
    }

    .desc {
      font-size: 20px;
      margin-bottom: 10px;

      @media screen and (max-width: 992px) {
        font-size: 20px;
        width: 100%;
      }

      @media screen and (max-width: 576px) {
        font-size: 16px;
      }
    }

    .newsletter-asset {
      width: 80px;
      height: 80px;
      margin-bottom: 4px;

      @media screen and (max-width: 576px) {
        height: 56px;
        width: 56px;
        margin-bottom: 10px;
      }
    }

    #subscribe-form-loading-image {
      width: 15%;
    }

    @media screen and (max-width: 992px) {
      padding-top: 80px;
      padding-bottom: 80px;
    }

    @media screen and (max-width: 576px) {
      padding-top: 60px;
      padding-bottom: 60px;
    }
  }

}
