/* Hero with Content - Base Styles */
.hero-with-content {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Content overlay - now outside hero container */
.hero-with-content + .container .content-overlay {
    background: #FFFFFF;
    padding: 2.5rem;
    margin-top: -150px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    width: 100%;
    position: relative;
    z-index: 10;
    display: block;
}

/* Fix for content elements inside overlay */
.content-overlay .frame {
    display: block !important;
    width: 100%;
}

.content-overlay h1,
.content-overlay h2,
.content-overlay h3,
.content-overlay h4,
.content-overlay h5,
.content-overlay h6,
.content-overlay p {
    display: block;
    width: 100%;
}

/* Responsive Max Heights */
/* XL - Extra Large Desktop (≥ 1440px) */
@media screen and (min-width: 90em) {
    .hero-with-content {
        height: 640px;
    }
}

/* LG - Large Desktop (1180px - 1439px) */
@media screen and (max-width: 89.9375em) and (min-width: 73.75em) {
    .hero-with-content {
        height: 540px;
    }
}

/* MD - Medium/Tablet Landscape (768px - 1179px) */
@media screen and (max-width: 73.6875em) and (min-width: 48em) {
    .hero-with-content {
        height: 480px;
    }
    
    .hero-with-content + .container .content-overlay {
        padding: 2rem;
        margin-top: -130px;
    }
}

/* SM - Small/Tablet Portrait (568px - 767px) */
@media screen and (max-width: 48em) and (min-width: 35.5em) {
    .hero-with-content {
        height: 400px;
    }
    
    .hero-with-content + .container .content-overlay {
        padding: 1.5rem;
        margin-top: -100px;
    }
}

/* XS - Extra Small/Mobile (< 568px) */
@media screen and (max-width: 35.5em) {
    .hero-with-content {
        height: 320px;
    }
    
    .hero-with-content + .container .content-overlay {
        padding: 1.25rem;
        margin-top: -80px;
    }
}

/* Content inside overlay */
.content-overlay > * {
    margin-bottom: 1rem;
}

.content-overlay > *:last-child {
    margin-bottom: 0;
}
