html, body {
  overflow-x: hidden;
  margin-bottom: 0;
  padding: 0;
}

.benefits-section {
  width: 100%;
  background: #ffffff;
  padding: 30px 5% 60px;
  font-family: 'Outfit', sans-serif;
}



.benefits-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  align-items: center;
  width: 100%;
  max-width: 1140px;
  margin: auto;
}

/* Left Image Grid */
.image-grid-box {
  display: grid;

  gap: 20px;
  width: 100%;
  max-width: 490px;
  padding: 10px;
  border: 3px dashed #f4c10f;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.grid-img {
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Right Benefit List */
.benefits-list {
  max-width: 500px;
  flex: 1;
}

.benefits-list h3 {
  font-size: 45px;
  margin-bottom: 24px;
  color: #1A2C53;
}

.benefits-list h3 span {
  color: #f4c10f;
}

.benefits-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
  color: #1A2C53;
}

.benefits-list .icon {
  background: #1A2C53;
  padding: 12px;
  border-radius: 50%;
  font-size: 16px;
  color: #f4c10f;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ✅ Responsive Fixes */
@media screen and (max-width: 576px) {
  .benefits-container {
    flex-direction: column;
      margin-bottom: 0 !important;
  }

  .benefits-list {
    max-width: 100%;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 3;
  }

  .benefits-list h3 {
    font-size: 26px;
    text-align: center;
    order: 1;
  }

  .benefits-list ul {
    order: 2;
    padding-left: 0;
  }

  .image-grid-box {
    
    max-width: 100%;
  }

  .grid-img {
    height: 160px;
  }

  .benefits-section {
    padding-bottom: 0px !important;
     margin-bottom: 0 !important;
  }
  

  .benefits-container {
    margin-bottom: 0 !important;
  }
  .benefits-list h3 {
  order: -1; /* Move heading to the top */
  font-size: 26px;
  margin-bottom: 16px;
  width: 100%;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  order: 3;
}

.image-grid-box {
  order: 2;
}

.benefits-list ul {
  order: 4;
}

}





@media screen and (max-width: 576px) {

  .benefits-container {
    flex-direction: column;
    position: relative;
  }

  .benefits-list {
    order: 3;
    padding: 0 10px;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .benefits-list h3 {
    font-size: 26px;
    text-align: center;
 
      margin-top: 60px;
    position: absolute;
    top: -50px; /* Adjust as needed to bring above image */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
  }

  .image-grid-box {
   
    max-width: 100%;
    margin-top: 90px; /* create space for heading */
  }

  .grid-img {
    height: 200px;
    width: 100%;
    align-items: center;
    
  }

  .benefits-section {
    padding-bottom: 0px !important;
  }

  .benefits-container {
    margin-bottom: 0 !important;
  }
}



/* ipads */
@media screen and (min-width: 577px) and (max-width: 1024px) {
  .benefits-container {
    flex-direction: column;
    padding: 20px;
    gap: 30px;
  }

  .image-grid-box {
    max-width: 80%;
    margin: 0 auto;
  }

  .grid-img {
    height: 300px;
  }

  .benefits-list {
    max-width: 100%;
    padding: 0 15px;
 
  }

  .benefits-list h3 {
    font-size: 32px;
  }
}
