/* Services Page hero with gradient background*/
.servicesHero {
  width: 100%;
  height: 30vh;
  padding-top: 10vh;
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #60A5FA 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

/* Top two section styling for each main service */
.customLIMS,
.customLIMS2 {
  width: 100%;
  height: 45vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
}

.customLIMS  { background-color: white; }
.customLIMS2 { background-color: #F9FAFB; }

/* Images for each service in top two sections */
.imageDiv {
  flex: 0 0 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image1 {
  max-width: 100%;
  max-height: 25vh;
  border-radius: 8px;
}

.textDiv {
  flex: 1;
}

/* Integrations section */
.aboutIntegrations { 
  background-color: #F9FAFB; 
}

/* Title for the overall integrations section */
.sectionTitle {
  font-size: 2rem;
  font-weight: 600;
  color: #1E40AF;
}

/* Subtitle for the integrations section as a whole */
.integrations-subtitle {
  font-size: 1rem;
  color: #374151;
}

/* Each integration image styling */
.integration-logos img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.integration-logos img:hover,
.integration-logos .clickable-logo:hover,
.integration-logos .clickable-logo.active {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

.integration-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Integration image, text, and labels at the top */
.integration-img-container {
  flex: 0 0 30%;
}

.integration-img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.integration-text {
  flex: 1;
}

.integration-text h3 {
  margin-bottom: 0.5rem;
}

.integration-text p {
  line-height: 1.6;
}

.integration-labels {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.integration-labels .clickable-logo {
  position: relative;
  padding: 0 1rem;
  font-weight: 600;
  color: #1E40AF;
  cursor: pointer;
  transition: color 0.2s;
}

.integration-labels .clickable-logo:not(:first-child)::before {
  content: "|";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-100%, -50%);
  color: #6B7280;
}

.integration-labels .clickable-logo.active {
  color: #3B82F6;
}

.integration-labels .clickable-logo:hover {
  color: #2563EB;
}

/* Mobile Optimization */
@media (max-width: 769px) {
  .servicesHero {
    height: 20vh;
    padding-top: 7vh;
  }

  .servicesHero .ContactHeroText h1 {
    font-size: 1.75rem;
  }

  .integration-img {
    margin-left: 7.5vw;
  }

  .customLIMS {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 1.5rem;
  }

  .customLIMS .imageDiv,
  .customLIMS .textDiv {
    flex: none;
    width: 100%;
  }

  .customLIMS .textDiv {
    padding-top: 1rem;
  }

  .customLIMS2 {
    flex-direction: column-reverse;
    text-align: center;
    height: auto;
    padding: 1.5rem;
  }

  .customLIMS2 .imageDiv,
  .customLIMS2 .textDiv {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .customLIMS2 .textDiv {
    padding-top: 1rem;
  }

  .integration-content {
    flex-direction: column;
    gap: 1rem;
  }

  .integration-img-container {
    padding-right: 7.5vw;
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
    display: flex;
  }

  .integration-img {
    height: 40vh;
    width: auto;
  }

  .integration-text {
    width: 75%;
    display: flex;
    flex-direction: column;
    font-size: x-small;
  }

  .integration-labels {
    gap: 0.25rem;
  }

  .integration-labels .clickable-logo {
    font-size: small;
    padding: 0 0.5rem;

  }

  .integration-head {
    font-size: medium;
  }

  .integration-logos {
    justify-content: center;
    gap: 1rem;
  }

  .integration-logos img {
    max-height: 40px;
  }
}

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

  .customLIMS {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 1.5rem;
  }

  .customLIMS2 {
    flex-direction: column-reverse;
    text-align: center;
    height: auto;
    padding: 1.5rem;
  }

  .customLIMS .imageDiv,
  .customLIMS .textDiv,
  .customLIMS2 .imageDiv,
  .customLIMS2 .textDiv {
    flex: none;
    width: 100%;
  }

  .customLIMS .textDiv,
  .customLIMS2 .textDiv {
    padding-top: 1rem;
  }
}

@media screen and (min-width: 600px) and (max-width: 950px) and (orientation: landscape) {
  .servicesHero {
    width: 100%;
    height: 55vh;
    padding-top:20vh;
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #60A5FA 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
  }

  .customLIMS,
  .customLIMS2 {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
  }
}

@media screen and (max-width: 599px) and (orientation: landscape) {
  .servicesHero {
    width: 100%;
    height: 55vh;
    padding-top: 19vh;
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #60A5FA 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
  }

  .customLIMS,
  .customLIMS2 {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
  }
}
