/* styles.css */
.why-choose-us {
    text-align: center;
    margin-top: 70px;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.choose-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.background-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    transform: translateY(-50%);
}

.gray-box {
    width: 270px;
    height: 270px;
    background-color: rgb(233, 233, 233);
    border-radius: 10px;
   
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gray-box img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.gray-box h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gray-box p {
    font-size: 1rem;
    color: black;
    text-align: center;
}

/* Adjustments for tablets and smaller desktops */
@media (max-width: 1165px) {
    .overlay {
        top: 30%;
    }

    .background-image {
        height: 440px;
    }

    .gray-box {
        width: 220px;
        height: 220px;
    }

    .gray-box h2 {
        font-size: 1rem;
    }

    .gray-box img {
        width: 40px;
        height: 40px;
    }

    .gray-box p {
        font-size: 0.9rem;
    }
}

/* Adjust for medium screens (768px to 1024px) */
/* @media (max-width: 1024px) {
    .gray-box {
        margin-top: 25%;
        width: 220px;
        height: 220px;
    }

    .gray-box h2 {
        font-size: 1.1rem;
    }

    .gray-box p {
        font-size: 0.95rem;
    }
} */

/* Adjust for tablets and small devices */
@media (max-width: 1024px) {
    .overlay {
        top: 30%;
    }

    .background-image {
        height: 380px;
    }

    .gray-box {
        width: 160px;
        height: 160px;
    }

    .gray-box h2 {
        font-size: 0.9rem;
    }

    .gray-box img {
        width: 35px;
        height: 35px;
    }

    .gray-box p {
        font-size: 0.8rem;
    }
}

/* Adjust for mobile */
@media (max-width: 680px) {
    
    .background-image {
      height: 480px;
    }
  
    .overlay {
      flex-direction: row;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
      /* margin-top: 20%; */
      margin-top: -10%;
      
    }
  
    .gray-box {
    
      width: 150px;
      height: 150px;
    }
  
    .gray-box h2 {
      font-size: 0.8rem;
    }
  
    .gray-box img {
      width: 30px;
      height: 30px;
    }
  
    .gray-box p {
      font-size: 0.8rem;
    }
  }

/* Adjust for very small mobile screens */
@media (max-width: 360px) {
    h2 {
        font-size: 1.5rem;
    }

    .background-image {
        height: 400px;
    }

    .overlay {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .gray-box {
        width: 120px;
        height: 120px;
        margin-top: -5%;
    }

    .gray-box h2 {
        font-size: 0.7rem;
    }

    .gray-box img {
        width: 25px;
        height: 25px;
    }

    .gray-box p {
        font-size: 0.6rem;
    }
}
@media (max-width: 300px) {
    h2 {
        font-size: 1.5rem;
    }

    .background-image {
        height: 400px;
    }

    .overlay {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        top: 30%;
    }

    .gray-box {
        width: 120px;
        height: 120px;
       
    }

    .gray-box h2 {
        font-size: 0.7rem;
    }

    .gray-box img {
        width: 25px;
        height: 25px;
    }

    .gray-box p {
        font-size: 0.6rem;
    }
}
