.services {

  position: relative;
  background-image: url('../assets/images/services/background.jpg');
  /* background-size: auto 150vh; */
  background-size: auto 200vh;
  background-position: center top;
  /* background-repeat: no-repeat; */
  padding: 4rem 2rem;
  color: #fff;

  /* overflow: hidden; */
}

.services-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 112, 120, 0.85);
  z-index: 1;
}

.services-content {
  position: relative;
  z-index: 2;
}

.services h2 {
  font-size: clamp(2.2rem, 9vw, 15rem);
  text-align: center;
  margin-bottom: 4rem;
}

/* Accordion (What We Do) */
.accordion {
  /* max-width: 1250px; */
  max-width: 1600px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.accordion-button {
  background: none;
  border: none;
  color: #fff;
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  cursor: pointer;
  outline: none;
  /* transition: background 0.2s ease; */
  transition: background 1s ease;
  position: relative;
}

.accordion-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Arrow Indicator */
.accordion-button::after {
  content: "\25BC";
  position: absolute;
  right: 1rem;
  font-size: clamp(1.2rem, 4vw, 2rem);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-button::after {
  content: "\25B2";
}

/* Accordion Content with Slide Animation */
.accordion-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /* gap: 1rem; */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;

  /* margin: 1rem; */
  margin-right: 1rem;
  margin-left: 1rem;

  /* background-color: pink; */
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  opacity: 1;
}

.accordion-text {
  flex: 1;
  /* padding-right: 1rem; */

  /* background-color: purple; */
}

.accordion-text p {
  text-align: left;
  font-size: clamp(0.8rem, 2vw, 1.5rem);
  line-height: 1.5;
  margin: 1vh;

  /* background-color: blue; */
}

.accordion-image {
  /* flex: 0.5; */
  text-align: center;
  /* background-color: green; */
}

.accordion-image img {

  /* max-width: 250px; */
  max-width: 45vw;
  height: auto;
  display: block;
  margin: 1vh;
  /* padding-left: 50px; */

  /* background-color: pink; */

  /* width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 3vh; */
}

@media (min-width:1950px) {
  .accordion-image img {
    max-width: 35vw;
  }
}

@media (max-width: 900px) {

  /* .services {
    
    background-size: auto 180vh;
    background-position: center top;
  } */

  .accordion-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .accordion-image {
    /* Ensure image is on top */
    order: -1; 
    /* margin-bottom: 1rem; */
  }

  .accordion-image img {
    /* padding: 0; */
    /* max-width: 100px; */
    max-width: 50vw;
  }
/* 
  .accordion-text {
    padding-right: 0; 
  } */

  .accordion-button {
    font-size: 1.25rem;
  }
}