/* Additional custom CSS for mobile responsiveness */
/*.image4 {
    width: 100%;
    max-width: 250px;
    height: 50%;
}*/

.nav-button {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* Removes border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Changes cursor to pointer on hover */
}

.partners {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.last {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
}

.input-BMI {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
}

.button-calc {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #0056b3;
}

/* Ensure the form looks good on small screens */
.calculator {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .calculator {
        padding: 15px;
        max-width: 100%;
    }
}

/* Tablet Screens */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
    }

    .navigate {
        flex-wrap: wrap;
        text-align: center;
    }

    .sub {
        flex-direction: column;
        margin: 20px auto;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .service-home {
        width: 90%;
        margin: 10px auto;
        height: auto;
    }
}

/* Mobile Screens */
@media screen and (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .anchor {
        font-size: 16px;
        margin: 5px;
    }

    .sub-head1,
    .sub-head2,
    .sub-head3 {
        width: 90%;
        margin: 15px auto;
        height: auto;
    }

    figcaption {
        font-size: 14px;
    }

    .footer {
        padding: 20px;
    }

    

    .bg-img{
        
    }
}