.page-render-body {
    min-height: 350px;
}


.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px; /* Ensure sufficient height */
    display: flex;
    align-items: flex-end; /* Changed from center to flex-end */
    width: 100%;
    padding: 3rem 0;
    height: 450px;
}

    .hero-section .hero-content {
        position: relative; /* Changed from absolute */
        width: 100%;
        padding-bottom: 10px; /* 10px margin from bottom */
    }

    /* avoid fixed height on headings so content flows on small screens */
    .hero-section h1 {
        height: auto !important;
        line-height: 1.1;
        margin: 0;
        padding: 0;
        word-break: break-word;
    }

    .hero-content .row {
        margin: 0;
    }

/* tune font sizes across breakpoints */
@media (max-width: 576px) {
    .hero-section {
        min-height: 300px;
        height: 300px;
        padding: 1.5rem 0;
    }

        .hero-section h1 {
            font-size: 1.75rem;
        }
    
    .hero-content {
        padding-bottom: 10px;
    }
    
    .hero-btn {
        font-size: 0.875rem !important;
        padding: 8px 16px !important;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .hero-section {
        min-height: 350px;
        height: 350px;
        padding: 2rem 0;
    }

        .hero-section h1 {
            font-size: 2.5rem;
        }
}

@media (min-width: 992px) {
    .hero-section {
        min-height: 500px;
        height: 500px;
        padding: 3.5rem 0;
    }

        .hero-section h1 {
            font-size: 3.5rem;
        }
}

/* Remove the conflicting mobile styles */
@media (max-width: 768px) {
    .hero-section {
        background-size: cover; /* Changed from 85vw 60vw */
        background-position: center center;
    }
    
    .page-render-body {
        margin-bottom: 0 !important; /* Reset negative margin */
    }
}
