/* ============================================
   EXPERT SOLUTIONS
   ============================================ */

.expert-solutions {
  background: #fff;
}

.expert-grid {
  margin-bottom: 28px;
}

.expert-copy {
  max-width: 900px;
}

.expert-copy h2 {
  margin: 0 0 6px;

  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 700;

  color: var(--navy-950);
}

.expert-copy p {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.45;
  color: #777;

}


/* ============================================
   SERVICES GRID
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 7px;
}


/* ============================================
   SERVICE CARD
   ============================================ */

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 450px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #b9ddff;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(15, 80, 140, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 8px 20px rgba(15, 80, 140, 0.13);
}


/* ============================================
   CARD IMAGE
   ============================================ */

.service-card__image {
  width: 100%;
  height: 220px;

  overflow: hidden;

  flex-shrink: 0;

  background: #eef4f8;
}

.service-card__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.04);
}


/* ============================================
   CARD BODY
   ============================================ */

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}

/* .service-card h3 {
    margin: 0 0 7px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    line-height: 1.25;
    font-weight: 600;
    color: var(--navy-950);
} */

.service-card p {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.35;
  color: #777;
  padding: 0px 0px 20px 0px;
}

/* ============================================
   LEARN MORE BUTTON
   ============================================ */

.service-card .link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  align-self: center;

  margin-top: auto;
  padding: 6px 13px;

  min-width: 80px;

  background: #0879f9;
  color: #fff;

  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;

  text-decoration: none;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.service-card .link-arrow:hover {
  background: #0568dc;
  color: #fff;

  transform: translateY(-1px);
}

.service-card .link-arrow span {
  margin-left: 4px;

  font-size: 0.8rem;
  line-height: 1;
}

/* ============================================
   Partners
============================================ */

.partners-section {
  background: #fff;
  padding: 50px 0 60px;
}

.partners-section h2 {
  text-align: left;
  margin-bottom: 34px;
  color: var(--navy-900);
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: 600;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 55px;
  row-gap: 55px;
  align-items: center;
}

.partner-logo {
  padding: 0;
  margin: 0 0 -3px 0;
  line-height: 100%;
  border-radius: 7px;
  overflow: hidden;
}

.partner-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 202px;
  object-fit: contain;
  image-rendering: auto;

  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.partner-logo:hover img {
  transform: scale(1.46);
}

/* ============================================
   CLIENT REVIEWS
   ============================================ */

.client-reviews {
  background: #fff;
}

.client-reviews h2 {
  margin: 0 0 84px;

  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  line-height: 1.2;
  font-weight: 700;

  color: var(--navy-950);
}


/* ============================================
   CAROUSEL
   ============================================ */

.reviews-carousel {
  position: relative;

  width: 100%;

  display: flex;
  align-items: center;

  padding: 0 50px;
}


/* ============================================
   VIEWPORT
   ============================================ */

.reviews-viewport {
  width: 100%;
  overflow: hidden;
}


/* ============================================
   TRACK
   ============================================ */

.reviews-track {
  display: flex;

  gap: 40px;

  transition: transform 0.6s ease-in-out;

  will-change: transform;
}


/* ============================================
   REVIEW CARD
   ============================================ */

.review-card {
  position: relative;

  flex: 0 0 calc((100% - 40px) / 2);

  width: calc((100% - 40px) / 2);

  min-height: 372px;

  margin: 0;
  padding: 32px 34px;

  box-sizing: border-box;

  background: #fff;

  border: 1px solid #b9ddff;
  border-radius: 4px;

  box-shadow:
    0 2px 8px rgba(15, 80, 140, 0.08);

  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 8px 20px rgba(15, 80, 140, 0.12);
}


/* ============================================
   REVIEW HEADER
   ============================================ */

.review-card__header {
  display: flex;
  align-items: center;

  margin-bottom: 8px;
}


/* ============================================
   AVATAR
   ============================================ */

.review-avatar {
  position: relative;

  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  margin-right: 18px;

  background-color: #3d4249;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  clip-path: polygon(50% 0%,
      100% 25%,
      100% 75%,
      50% 100%,
      0% 75%,
      0% 25%);

  overflow: hidden;
}

/* Blue accent underneath avatar */
.review-avatar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: #00a8ff;
  z-index: 2;
}

.review-avatar img {
  position: relative;
  z-index: 1;

  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================
   REVIEWER INFORMATION
   ============================================ */

.review-person {
  display: flex;
  flex-direction: column;

  gap: 5px;

  min-width: 0;
}


.review-person strong {
  margin: 0;

  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;

  font-weight: 700;

  color: #777;
}


.review-person span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.3;

  color: #888;
}


/* ============================================
   REVIEW TEXT
   ============================================ */

.review-card p {
  margin: 0;

  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.43;

  color: #777;
}


/* ============================================
   CAROUSEL ARROWS
   ============================================ */

.reviews-arrow {
  position: absolute;
  top: 50%;

  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 31px;
  height: 31px;

  padding: 0;

  border: 2px solid #00a8ff;
  border-radius: 50%;

  background: #fff;

  color: #00a8ff;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.reviews-arrow span {
  display: block;

  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;

  margin-top: -2px;
}


.reviews-arrow:hover {
  background: #00a8ff;
  color: #fff;

  transform: translateY(-50%) scale(1.08);
}


.reviews-arrow--prev {
  left: 14px;
}


.reviews-arrow--next {
  right: 14px;
}


/* ============================================
   DESKTOP CARD SIZING
   ============================================ */

@media (min-width: 901px) {

  .reviews-viewport {
    width: 100%;
  }

  .review-card {
    min-height: 372px;
  }
}


/* ============================================
   TABLET
   ============================================ */

@media (max-width: 900px) {

  .client-reviews h2 {
    margin-bottom: 45px;
  }

  .reviews-carousel {
    padding: 0 42px;
  }

  .reviews-track {
    gap: 20px;
  }

  .review-card {
    flex: 0 0 100%;
    width: 100%;

    min-height: 320px;

    padding: 25px;
  }

  .reviews-arrow--prev {
    left: 5px;
  }

  .reviews-arrow--next {
    right: 5px;
  }
   .case-studies {
    min-height: auto;
    padding: 55px 0 70px;
  }

  .case-studies__intro {
    margin-bottom: 40px;
  }

  .case-grid {
    grid-template-columns: 1fr !important;

    max-width: 650px;
    margin: 0 auto;

    gap: 30px;
  }

  .case-card {
    min-height: auto;
  }
}


/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 600px) {

  .client-reviews h2 {
    font-size: 1.55rem;
    margin-bottom: 35px;
  }

  .reviews-carousel {
    padding: 0 30px;
  }

  .review-card {
    min-height: 300px;

    padding: 22px 20px;
  }

  .review-card__header {
    margin-bottom: 14px;
  }

  .review-avatar {
    width: 55px;
    height: 55px;

    flex-basis: 55px;

    margin-right: 13px;
  }

  .review-person strong {
    font-size: 0.95rem;
  }

  .review-person span {
    font-size: 0.68rem;
  }

  .review-card p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .reviews-arrow {
    width: 28px;
    height: 28px;
  }

  .reviews-arrow span {
    font-size: 19px;
  }

  .reviews-arrow--prev {
    left: 0;
  }

  .reviews-arrow--next {
    right: 0;
  }
   .case-studies {
    min-height: auto;

    padding: 35px 0 50px;
  }

  /* Remove/reduce diagonal background effect on mobile */
  .case-studies::after {
    height: 25%;
  }

  .case-studies__intro {
    margin: 0 0 25px;
  }

  .case-studies h2 {
    margin: 0 0 10px;

    font-size: 1.5rem;
    line-height: 1.2;
  }

  .case-studies .lead {
    width: 100%;
    max-width: none;

    margin: 0;

    font-size: 0.85rem;
    line-height: 1.5;
  }


  /* One card per row */
  .case-grid {
    display: grid;

    grid-template-columns: 1fr !important;

    width: 100%;
    max-width: none;

    gap: 22px;

    margin: 0;
  }


  /* Card */
  .case-card {
    display: flex;
    flex-direction: column;

    width: 100%;

    min-height: 0;

    margin: 0;

    overflow: hidden;

    background: #fff;

    border-radius: 5px;
  }


  /* Image now participates in normal document flow */
  .case-card__image {
    position: relative;

    top: auto;
    left: auto;

    width: 100%;
    height: 200px;

    flex-shrink: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    clip-path: polygon(
      0 0,
      100% 0,
      100% 85%,
      0 100%
    );
  }


  /* Content immediately below image */
  .case-card__body {
    position: relative;

    padding: 18px 18px 22px;
  }

  .case-card h3 {
    margin: 0 0 8px;

    font-size: 1.1rem;
    line-height: 1.3;
  }

  .case-card p {
    margin: 0;

    font-size: 0.82rem;
    line-height: 1.5;
  }
}

/* ============================================
   CASE STUDIES
   ============================================ */

.case-studies {
  position: relative;
  min-height: 700px;
  padding: 76px 0 110px;
  overflow: hidden;
  background: linear-gradient(90deg,
      #092452 0%,
      #071b48 45%,
      #05013d 100%);
}


/* ============================================
   WHITE DIAGONAL LOWER AREA
   ============================================ */

.case-studies::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 43%;
  background: #fff;
  clip-path: polygon(0 42%,
      100% 0,
      100% 100%,
      0 100%);
  z-index: 0;
}


/* ============================================
   CONTENT ABOVE BACKGROUND
   ============================================ */

.case-studies .wrap {
  position: relative;
  z-index: 2;
}


/* ============================================
   INTRO
   ============================================ */

.case-studies__intro {
  max-width: 1160px;

  margin: 0 auto 84px;
}


.case-studies h2 {
  margin: 0 0 14px;

  color: #fff;

  font-family: var(--font-display);

  font-size: clamp(2rem, 3vw, 2.35rem);

  font-weight: 700;

  line-height: 1.15;
}


.case-studies .lead {
  width: auto;
  max-width: 1160px;

  margin: 0;

  color: #fff;

  font-size: 1.05rem;

  line-height: 1.45;
}


/* ============================================
   CASE GRID
   ============================================ */

.case-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 35px;

  max-width: 1160px;

  margin: 0 auto;
}


/* ============================================
   CASE CARD
   ============================================ */

.case-card {
  position: relative;

  min-height: 480px;

  overflow: hidden;

  margin: 0;

  background: #fff;

  border: 1px solid #b9ddff;

  border-radius: 5px;

  box-shadow:
    0 3px 12px rgba(15, 80, 140, 0.10);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.case-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 10px 26px rgba(15, 80, 140, 0.16);
}


/* ============================================
   CASE CARD IMAGE
   ============================================ */

.case-card__image {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 255px;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  /*
    Diagonal lower edge:
    left side is lower,
    right side is higher,
    matching screenshot.
  */
  clip-path: polygon(0 0,
      100% 0,
      100% 76%,
      0 100%);

  transition:
    transform 0.45s ease;
}


.case-card:hover .case-card__image {
  transform: scale(1.025);
}


/* ============================================
   CASE STUDY IMAGES
   ============================================ */

.case-photo-a .case-card__image {
  background-image:
    url("../images/case-practitioner-specialist-nurse.jpg");

  background-position: center center;
}


.case-photo-b .case-card__image {
  background-image:
    url("../images/case-young-female-technician.jpg");

  background-position: center center;
}


/*
   If your existing project already uses these
   classes as background images, you can instead
   use:

   .case-photo-a .case-card__image {
       background-image: url("../images/your-image.jpg");
   }

   .case-photo-b .case-card__image {
       background-image: url("../images/your-image.jpg");
   }
*/

/* ============================================
   CASE CARD BODY
   ============================================ */

.case-card__body {
  position: relative;

  z-index: 2;

  padding:
    262px 23px 25px;
}


.case-card h3 {
  margin: 0 0 10px;
  color: #06134a;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
}


.case-card p {
  margin: 0;
  color: #777;
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.35;
}

/* ============================================
   Solutions
   ============================================ */

.solution-form-section {
  padding: 50px 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 10px;
}

/* Alternate image/content sides */
.solution-grid.reverse {
  direction: rtl;
}

.solution-grid.reverse>* {
  direction: ltr;
}

/* Image */
.solution-image {
  width: 100%;
  height: 650px;
  overflow: hidden;
  border-radius: 12px;
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Content */
.solution-content {
  max-width: 600px;
}

.solution-content h2 {
  margin-bottom: 20px;
}

.solution-content p {
  margin-bottom: 25px;
  line-height: 1.7;
}


.cta-band {
  background: #f7f9fc;
  padding: 80px 0;
  overflow: hidden;
}

.cta-grid {
  max-width: 100%;
  /* margin:auto; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.cta-content {
  margin: auto;
}

.cta-content h2 {
  color: #001b5e;
  margin-bottom: 20px;
}

.cta-content p {
  color: #666;
  max-width: 480px;
  margin-bottom: 35px;
}

.cta-images {
  position: relative;
  height: 430px;
}

.hero-image {
  width: 900px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 900px) {

  /* Solutions */
  .solution-form-section {
    padding: 40px 0;
  }

  .solution-grid {
    gap: 35px;
    margin-bottom: 40px;
  }

  .solution-image {
    height: 420px;
  }

  .solution-content h2 {
    font-size: 1.5rem;
  }

  .solution-content p {
    font-size: 0.95rem;
  }

  /* Partners */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 35px;
    row-gap: 35px;
  }

  .partner-logo {
    height: 110px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .service-card {
    min-height: 280px;
  }
}


/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {

  /* Solutions */
  .solution-form-section {
    padding: 30px 0;
  }

  .solution-grid,
  .solution-grid.reverse {
    display: grid;
    grid-template-columns: 1fr;

    direction: ltr;

    gap: 18px;

    margin-bottom: 35px;
  }

  .solution-grid:last-child {
    margin-bottom: 0;
  }

  .solution-image {
    width: 100%;
    height: auto;

    overflow: hidden;

    border-radius: 8px;
  }

  .solution-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
  }

  .solution-content {
    width: 100%;
    max-width: none;
  }

  .solution-content h2 {
    margin: 0 0 10px;

    font-size: 1.3rem;
    line-height: 1.25;
  }

  .solution-content p {
    margin: 0 0 15px;

    font-size: 0.9rem;
    line-height: 1.5;
  }
  .cta-band {
    padding: 35px 0;
  }

  .cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Image first */
  .cta-images {
    order: 1;

    position: relative;

    width: 100%;
    height: auto;
  }

  .hero-image {
    width: 100%;
    height: auto;
  }

  .hero-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
  }

  /* Content directly below image */
  .cta-content {
    order: 2;

    width: 100%;

    margin: 0;
  }

  .cta-content h2 {
    margin: 0 0 10px;

    font-size: 1.4rem;
    line-height: 1.3;
  }

  .cta-content p {
    max-width: none;

    margin: 0 0 20px;

    font-size: 0.9rem;
    line-height: 1.5;
  }
}


/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */

@media (max-width: 600px) {

  /* Expert Solutions */
  .expert-copy h2 {
    font-size: 1.55rem;
  }

  .expert-copy p {
    font-size: 0.75rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    min-height: 300px;
  }

  .service-card__image {
    height: 140px;
  }

  .service-card__body {
    padding: 15px;
  }

  .service-card h3 {
    font-size: 0.9rem;
  }

  .service-card p {
    font-size: 0.72rem;
  }
}


/* ============================================
   RESPONSIVE - EXTRA SMALL MOBILE
   ============================================ */

@media (max-width: 520px) {

  /* Partners */
  .partners-section {
    padding: 40px 0;
  }

  .partners-section h2 {
    margin-bottom: 25px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);

    column-gap: 20px;
    row-gap: 25px;
  }

  .partner-logo {
    height: 90px;
    padding: 10px;
  }

  .partner-logo img {
    max-height: 65px;
  }
}


/* ============================================
   RESPONSIVE - VERY SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {

  /* Solutions */
  .solution-form-section {
    padding: 20px 0;
  }

  .solution-grid,
  .solution-grid.reverse {
    gap: 14px;

    margin-bottom: 28px;
  }

  .solution-image {
    border-radius: 5px;
  }

  .solution-content h2 {
    margin-bottom: 8px;

    font-size: 1.15rem;
    line-height: 1.25;
  }

  .solution-content p {
    margin-bottom: 12px;

    font-size: 0.84rem;
    line-height: 1.5;
  }
  .cta-band {
    padding: 25px 0;
  }

  .cta-grid {
    gap: 15px;
  }

  .cta-content h2 {
    margin-bottom: 8px;

    font-size: 1.2rem;
  }

  .cta-content p {
    margin-bottom: 15px;

    font-size: 0.84rem;
  }
}
