/* Ensure the body takes the full height */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* style="background: url('bathroom.jpg') no-repeat center center/cover;" */

/* Header styling */
.section1 {
    position: relative; /* Ensure the overlay and content are positioned correctly */
    width: 100%;
    height: 83vh;
    z-index: 5; /* Ensure section1 has a lower z-index */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed to reduce brightness */
    z-index: 1;
}

.image1 {
    height: 100%;
    position: relative;
    z-index: 2; /* Ensure the content is above the overlay */
    color: white;
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0); /* Optional: add a semi-transparent background to the text */
    padding: 20px;
    border-radius: 10px;
    padding: 30vh 5vw 30vh;
}

.image1 .contentImage{
    position: absolute;
    top: 0vh;
    left: 0;
    color: ivory;
    width: 100%;
    height: 100%;
    padding: 10% 15% 4% 15%;
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center;
    
}
.contentImage h3{
    font-size: 1.9rem;
}
.contentImage p{
    font-size: 1rem;
    text-align: justify;
}
.contentImage ul{
    font-size: 1rem;
    text-align: justify;
    line-height: 2rem;
}

/* Section 2 */
#section2 {
    height: max-content;
    padding-top: 5vh;
    padding-bottom: 5vh;
}

.itemLeft {
    display: grid;
    grid-template-columns: 30vw 50vw;
    gap: 6vw;
    grid-template-rows: 1fr;
    padding: 10vh 7vw;
    justify-content: end; /* Aligns the content to the end of the grid container */
}

.itemRight {
    display: grid;
    grid-template-columns: 50vw 30vw;
    gap: 6vw;
    grid-template-rows: 1fr;
    padding: 10vh 7vw;
    justify-content: start; /* Aligns the content to the start of the grid container */
}

.section2 img {
    min-width: 200px;
    width: 30vw;
    border-radius: 10%;
}

.section2 .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5vh;
}

.itemLeft .text {
    text-align: right; /* Right-align text for .itemLeft */
}

.itemRight .text {
    text-align: left; /* Left-align text for .itemRight */
}

.divider {
    width: 90vw;
    border: none;
    border-top: 1px solid black;
    margin: 2vh auto; /* Adjust as needed */
}

/* screen bigger than 1550px */
@media screen and (min-width: 1550px) {
    .image1 .contentImage{
        position: absolute;
        top: 0vh;
        left: 0;
        color: ivory;
        width: 100%;
        height: 100%;
        padding: 10% 15% 4% 15%;
        background-color: rgba(0, 0, 0, 0.3);
        text-align: center;
        
    }
    .contentImage h3{
        font-size: 2.6rem;
    }
    .contentImage p{
        padding-top: 3vh;
        font-size: 1.2rem;
        text-align: justify;
    }
    .contentImage ul{
        font-size: 1.2rem;
        text-align: justify;
    }
  }


  /* DISPLAY WIDTH: < 600px */
@media screen and (max-width: 600px){
    .itemLeft,.itemRight{
        display: flex;
        flex-direction: column;
        gap: 6vh;
        padding: 7vh 10vw;
        justify-content: center;
    }
    .section2 img{
        min-width: 50vw;
        left: 50%;
        transform: translateX(30%);
    }
    .section2 .text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 5vh;
        order:1;
    }
    .section2 .text p{
        text-align: justify;
    }
  }

  /* Width < 500px */

  @media screen and (max-width:500px) {
    .section1{
        height: max(100vh,650px);
    }
    .contentImage h3{
        padding-top: 50px;
        font-size: min(8vw,1.5rem);
    }
    .contentImage p{
        font-size: min(6vw,1rem);
        padding-bottom: 30px;
    }
    .text h2{
        font-size: min(8vw,1.5rem);
    }
    .text p{
        font-size: min(6vw,1rem);

    }
    .divider{
        width: 80vw;
    }
    
  }