.our-services {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
background-color: #F5F5F5;
width: 100%;
max-width: 100%;
padding: 50px 0 80px 0;
box-sizing: border-box;
overflow-x: hidden;
}
.our-services h1 {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  width: 100%;
  flex-basis: 100%;
}
.service-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.service-card-image {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-card-content {
  padding: 25px;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-content h2 {
  color: #333;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.service-card-content p {
  color: black;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex: 1;
}

.learn-more-btn {
  margin-top: auto;
}

.learn-more-btn a {
  color: #FF6600;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.learn-more-btn a:hover {
  color: #FF6600;
}
@media screen and (max-width: 799px) {
  .our-services h1 {
    font-size: 26px;
   padding: 20px 0px 30px 0px;
  }
  .our-services {
    padding: 20px 20px 10px 20px;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .service-card {
    margin-bottom: 20px;
  }

}


@media screen and (min-width: 800px) {
 
  .our-services h1 {
    width: 100%;
    text-align: center;
    font-size: 40px;
    font-weight: bold;
 
   
  }
  .our-services:not(.other-services-row) {
    padding: 50px 50px 100px 50px;
    justify-content: flex-start;
    gap: 50px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
 
  .our-services:not(.other-services-row) .service-card {
    width: calc((100% - 100px) / 3);
    max-width: calc((100% - 100px) / 3);
    min-width: calc((100% - 100px) / 3);
    max-height: 480px;
    margin-bottom: 0;
    border-radius: 8px;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  
  /* Constrain cards to max width to prevent more than 3 per row */
  @media screen and (min-width: 1500px) {
    .our-services:not(.other-services-row) {
      padding-left: calc((100% - 1400px) / 2);
      padding-right: calc((100% - 1400px) / 2);
    }
  }
  
  /* For Other Services section - show 4 cards, scroll for rest */
  .our-services.other-services-row {
  
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    gap: 0;
    padding: 50px 0 50px 0;
  }
  
  .our-services.other-services-row h1 {
    width: 100%;
    flex-basis: 100%;
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    padding: 0 0 50px 0;
    margin: 0;
    display: block;
  }

  @media screen and (max-width: 799px) {
    .our-services.other-services-row {
      padding: 40px 20px 20px 20px;
    }
    .our-services.other-services-row h1 {
      padding: 20px 0 20px 0;
    }
    .our-services.other-services-row .service-cards-wrapper {
      padding: 0 20px;
      scroll-padding-left: 20px;
    }
  }
  
  .our-services.other-services-row .service-cards-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
    overflow-x: auto;
    padding: 0 30px;
    scroll-padding-left: 50px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .our-services.other-services-row .service-card {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    flex-shrink: 0;
    height: auto;
  }
  
  .our-services.other-services-row .service-card-image {
    height: 220px;
    width: 100%;
  }
  
  .our-services.other-services-row .service-card-content {
    padding: 25px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
  }
  
  .our-services.other-services-row .service-card-content h2 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .our-services.other-services-row .service-card-content p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
  }
  
  .our-services.other-services-row .learn-more-btn {
    margin-top: auto;
  }

  .service-card-image {
    height: 280px;
  }

  .service-card-content {
    padding: 30px;
  }

  .service-card-content h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .service-card-content p {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .learn-more-btn a {
    font-size: 15px;
  }
}


