.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    margin-bottom: 3.5rem;
}

.hero-bg {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-text-container, .hero-text-container-left {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Vertically centers the text */
    color: white;
}

.hero-text-container {
    right: 0;
    padding: 20px 120px 20px 0px;
    max-width: 46%;
}

.hero-text-container-left {
    padding: 20px 0px 20px 120px;
    left: 0;
    max-width: 46%;
}

.hero-text-container h1, .hero-text-container-left h1{
    font-size: 40px !important;
    font-weight: 400;
    
}

.hero-text-container .subhead, .hero-text-container-left .subhead {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 300;
    margin-top: -1rem;
    margin-bottom: 1.5rem ;
    
}

.hero-text-container p, .hero-text-container-left p{
    font-family: var(--font-heading);
    font-size: 20px;
}

/* Small Desktop (1024px–above) */
@media (min-width: 1024px) {
    .hero-text-container, .hero-text-container-left {
        max-width: 60%;
    }
}

/* Tablet (768px–1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero-text-container, .hero-text-container-left {
        max-width: 70%;
        padding: 20px 40px 20px 50px;
    }
}

/* Mobile (small tablets) */
@media (max-width: 712px) and (max-width: 767px) {
    .hero-text-container-left {
        max-width: 80%;
        padding: 20px 0px 20px 100px;
    }
    
    .hero-text-container {
        right: 0;
        left: 0;
        padding: 20px 0px 20px 100px;
        max-width: 80%;
    }
}

/* Mobile (below 712px) */
@media (max-width: 711px) {
    .hero-text-container, .hero-text-container-left {
        position: static;
        transform: none;
        max-width: 100%;
        padding: 20px;
        text-align: left;
    }
    
    .hero-text-container-left {
        max-width: 90%;
        padding: 40px 0px 20px 20px;
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-bg::before {
          content: "";
          position: absolute;
          inset: 0;
          background: linear-gradient(to left, #052E3100 10%, #052E31 110%);
          pointer-events: none;
          z-index: 1;
    }
    
    .hero-text-container h1, .hero-text-container-left h1 {
        position: relative;
        z-index: 3;
    }
    
    .hero-text-container p, .hero-text-container-left p {
        font-size: 16px;
        position: relative;
        z-index: 3;
    }
}