
.hero-section {
    margin-top: -220px;
    height: 100vh; /* Full viewport height */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */

  }

/* Overlay effect for the hero image */
.hero-overlay {
    position: absolute;
    background-image: url('https://charlotte.glidden.co.nz/css/sm-hero-background.jpeg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark overlay for text visibility */
    z-index: 1;
}

/* Hero content styling with limited height */

.hero-content-img {
    position: absolute;
    bottom: 320px; /* Position a bit above the bottom */
    left: 0px;
    width: auto;
    transform: translateX(-0%);
    max-height: calc(42vh - 10px);
    color: #ee537f;
    z-index: 2;
    overflow-y: auto; /* Allows scrolling if text content is too large */
}



.hero-content {
    position: absolute;
    bottom: 0px; /* Position a bit above the bottom */
    left: 50%;
    transform: translateX(-50%);
    max-height: calc(100vh - 150px); /* Ensure content doesn’t exceed viewport, adjust as needed */
    width: 100%;
    background-color: #283924ec; /* Dark green background */
    padding: 100px;
    color: #ee537f;
    z-index: 2;
    overflow-y: auto; /* Allows scrolling if text content is too large */
}
/* Hero title styling */
.hero-title {
    font-family: 'Raleway', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    color: inherit; /* Inherit color from parent */
}

@media  (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-content {
        padding: 30px;
        height: 260px;
        overflow-x: hidden;
        overflow-y: hidden;

    }
    .hero-subtext {
        height: 105px;
    }
  }




/* Hero subtext styling with margin adjustments */
.hero-subtext {
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 10px;
    font-size: 1rem;
    color: inherit; /* Inherit color from parent */
    margin-bottom: 10px; /* Add some bottom margin to create space */
}







@media screen and (min-width: 1366px){
    .hero-content-img{
        width: auto;
        transform: translateX(-0%);
        max-height: calc(42vh - 10px);
    }
}

@media screen and (min-width: 1365px){
    .hero-content-img{
        width: auto;
        transform: translateX(-0%);
        max-height: calc(42vh - 10px);
    }
}
@media screen and (max-width: 990px){
    .hero-content-img{
        transform: translateX(-0%);
        max-height: calc(45vh - 10px); 
    }
    
    
}
@media screen and (max-width: 918px){
    .hero-content-img{
        transform: translateY(-21%);
        max-height: calc(40vh - 10px); 
    }
}
@media screen and (max-width: 883px){
    .hero-content-img{
        transform: translateY(-30%);
        max-height: calc(37vh - 10px);
    }
}
@media screen and (max-width: 767px){
    .hero-content-img{
        transform: translateY(-30%);
        max-height: calc(37vh - 10px);
    }
}