/* Media Section */
#media {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust height */
  background: url('../images/CleaningBannner/Cleaning\ Banner.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* left-align text */
  
  color: #fff;
  overflow: hidden;
}

#media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1); /* overlay */
}

#media .media-text {
  position: relative; /* keeps text above overlay */
  padding: 0 60px; /* space from left edge */
  max-width: 600px;
  z-index: 1;
}

#media h2 {
  font-size: 65px;
  margin-bottom: 20px;
  line-height: 1.1; /* reduced line spacing */
  color: #fff;
}

/* ✅ Green rectangle bar for <p> */
#media p {
  display: inline-block;
  background: #ffffff; /* dark green */
  color: #008e38;
  font-size: 22px;
  padding: 10px 20px;
  /*border-radius: 6px; /* soft corners */
  margin: 0; /* remove extra spacing */
}

/* Responsive */
@media (max-width: 768px) {
  #media {
    height: 50vh;
    justify-content: center;
    text-align: center;
    width: 100%;
    overflow-x: hidden; 
  }

  #media h2 {
    font-size: 42px;
    line-height: 1.1; /* reduced line spacing */
  }

  #media p {
    font-size: 16px;
    padding: 8px 16px;
  }
}



/* Extra small screens (480px) */
@media (max-width: 480px) {
  #media {
    height: 40vh;                 /* shorter height for tiny screens */
    justify-content: center;       /* center text */
    text-align: center;
    
  }

  #media .media-text {

    max-width: 100%;              /* full width */
  }

  #media h2 {
    font-size: 28px;              /* smaller heading */
    line-height: 1.2;             /* adjusted line spacing */
    margin-bottom: 15px;
  }

  #media p {
    font-size: 14px;              /* smaller paragraph text */
    padding: 6px 12px;            /* smaller padding */
  }
}
