* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

h1,h2,h3,h4,h5,h6{
    font-family: 'poppins', sans-serif;
}

p,a,input,label,textarea,span,ul,li{
    font-family: 'poppins', sans-serif;
}

/* CHANGE: new wrapper for banner + hero to control layout (desktop absolute vs mobile flow) */
.banner-wrapper {
    width: 100%;
    position: relative; /* so absolute hero on desktop is positioned relative to this */
}


/* Top Banner Section (for blood pressure page) */
.blood-pressure {
    position: relative;
    height: 50vh;
    background: url(../../images/06_Measurement/blood-banner.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

/* Top Banner Section (for SMI) */
.smi {
    position: relative;
    height: 50vh;
    background: url(../../images/06_Measurement/smi-banner.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

/* Top Banner Section (for Leg Muscle Score) */
.leg-muscle {
    position: relative;
    height: 50vh;
    background: url(../../images/06_Measurement/leg-muscle-banner.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

/* Top Banner Section (for Body Composition Index) */
.body-composition {
    position: relative;
    height: 50vh;
    background: url(../../images/06_Measurement/body-banner.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}


/* CHANGE */
/* Baseline hero content styles (mobile-friendly baseline).
   Desktop absolute overlap will be restored in the desktop media query. */
   .business-hero-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    max-width: 600px;
    color: white;
    margin: 0 auto 40px; /* baseline spacing for stacking on mobile */
    box-sizing: border-box;
}

.business-hero-content h1 {
    font-size: 2rem;
    line-height: 2.2rem;
    margin-bottom: 1.5rem;
    
}


.business-hero-content p {
    font-weight: 300;
    line-height: 1.6;
}


/* Content Placeholder Section */
.business-content-container{
    margin: 40px;
}

.business-content-row {
    padding-top: 40px;
    margin: 40px auto;
    max-width: 1200px;
    text-align: start;
}

.business-content-row h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 40px;
}

.business-content-row p {
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
}

.business-content-row img {
    width: 1000px;
    margin-bottom: 40px;
}



/* Body Composition Index Style */
.row { 
    margin: 0 auto;
    max-width: 1200px;
}


/* Left sidebar styles */
.sidebar-button {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: white;
    color: #005587;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.sidebar-button:hover {
    background-color: #d3ecfb;
}

.sidebar-button img {
    width: 44px;
    margin-right: 10px;
}
/* CHANGE */
/* MOBILE: style the dropdown select used for the sidebar on small screens */
.mobile-sidebar {
    padding: 8px 12px;
}

.mobile-sidebar .form-select {
    width: 100%;
    padding: .5rem .75rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #233b55;
}

/* optional: make the select visually consistent with sidebar buttons */
.mobile-sidebar .form-select option {
    color: #000;
}

/* MOBILE: style the dropdown select used for the sidebar on small screens */
.mobile-sidebar {
    padding: 8px 12px;
}

/* Slightly larger font size for better legibility in the mobile dropdown */
.mobile-sidebar .form-select {
    width: 100%;
    padding: .5rem .75rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #233b55;

    /* UPDATED: increased font size slightly */
    font-size: 1.3rem;
    line-height: 1.4;
}

/* ensure option text matches select font size on mobile */
.mobile-sidebar .form-select option {
    font-size: inherit;
    color: #000;
}


/* Right Content area styles */
.content-area {
    padding: 30px;
}

.content-area img {
    width: 800px;
    margin-bottom: 40px;
}
.content-subtitle {
    font-size: 20px;
    font-weight: 600;
}

.content-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 40px;
}

.content-text {
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
}




/* ===== DESKTOP: restore desktop behavior (overlap) =====
   Keep the original absolute positioning values here so desktop looks exactly like.
*/
@media (min-width: 769px) {
    /* ensure wrapper is relative for absolute placement */
    .banner-wrapper {
        position: relative;
    }

    .business-landing-hero {
        height: 50vh;
        margin-bottom: 40px;
    }

    /* absolute hero on desktop */
    .business-hero-content {
        position: absolute;
        bottom: 0;
        left: 15%;
        right: 15%;
        background: rgba(0, 0, 0, 0.8);
        padding: 2rem;
        max-width: 600px;
        color: white;
        margin: 0;
        z-index: 10;
        box-sizing: border-box;
    }

    .business-hero-content h1 {
        font-size: 2rem;
    }

    .business-hero-content p {
        font-weight: 300;
        line-height: 1.6;
    }
}


/* ===== MOBILE: behavior - hero stacks BELOW banner ===== */
@media (max-width: 768px) {
    /* mobile: make background-attachment scroll so it behaves correctly on mobile */
    
    .markets-landing-hero,
    .body-composition,
    .smi,
    .leg-muscle,
    .blood-pressure {
        background-attachment: scroll;
    }

    
    .markets-landing-hero,
    .body-composition,
    .smi,
    .leg-muscle,
    .blood-pressure {
        height: 300px;
        margin-bottom: 0; /* remove bottom spacing so hero appears directly after banner */
    }


    /* normal flow - hero sits below banner */
    .business-hero-content {
        position: static; /* important: remove absolute so it stacks */
        height: auto;
        left: auto;
        right: auto;
        bottom: auto;
        max-width: none;
        width: calc(100% - 40px);
        margin: 16px 20px;
        padding: 1.25rem;
        box-sizing: border-box;
    }

    .business-hero-content h1 {
        font-size: 1.5rem;
    }

    .business-hero-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .business-content-row img{
        padding-top: 1.5rem;
        max-width: 400px;
    }

    /* Body Composition Index Style */
    .sidebar-button {
        padding: 10px;
        font-size: 14px;
    }
    
    .content-area {
        padding: 20px;
        margin-top: 20px;
    }

    .content-area img {
        width: 400px;
    }
    /* Body Composition Index Style */
}