.hero-section {
  position: relative;
  min-height: 300px;  /* minimum height, adjusts naturally if content grows */
  height: auto;       /* let content define height */
  background: url('/assets/rem/images/hero_house.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;  /* stack content vertically */
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 20px;   
  padding: 60px 20px; 
  text-align: center;       /* center text on small screens */
  box-sizing: border-box;
}
.hero-section2 {
  position: relative;
  min-height: 300px;  /* minimum height, adjusts naturally if content grows */
  height: auto;       /* let content define height */
  background: url('/assets/rem/images/hero_house2.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;  /* stack content vertically */
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 20px;   
  padding: 60px 20px; 
  text-align: center;       /* center text on small screens */
  box-sizing: border-box;
}
.hero-text-box {
    background-color: rgba(240, 248, 255, 0.5); /* semi-transparent aliceblue */
                                                 
    text-align: center;                  
}
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem; /* adjust for your layout */
    color: green;
}
.services-section h2 {
    font-weight: 700;
    color: #2c3e50;
}

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card i {
    color: #198754; /* green accent */
}

.service-card h5 {
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 5px;
}

.service-card p {
    font-size: 0.9rem;
    color: #6c757d;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 80px 20px;
    min-height: 400px;       /* taller section on larger screens */
  }
   .hero-text-box {
        padding: 15px;
        max-width: 95%;                        /* almost full width on mobile */
    }
}

.hero-section h4 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.hero-section p {
  font-size: 1rem;
  max-width: 700px;  /* prevent text from stretching too wide */
}

