
@media (max-width:1700px){
    /* Removed unnecessary margin overrides */
}

@media (max-width:1100px){
    /* Cleaned up layout adjustments */
    .big-deal .container{
        margin-top: 4rem; /* Reasonable margin */
    }
    .latest-news .article-wrapper{
        flex-direction:column;
    }
    .latest-news .article-wrapper .card:nth-child(1){
        margin-right:0;
        margin-bottom:2rem;
    }

    .moti-image{
        width: 100%;
        height: auto;
        display: flex;
    }
}


@media(max-width:465px){
    .moti-image{
        width: 100%;
        height: auto;
    }
}

@media (max-width:991px){
    /* Topbar responsive: stack content on smaller screens */
    header.topbar .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    header.topbar .icons {
        margin-bottom: 0.5rem;
    }
    header.topbar .auth {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap; 
    }
    
    header.hero{
        border-bottom: 25px solid transparent; /* Fix spacing */
        flex-direction: column;
        padding-top: 2rem;
        height: auto; 
    }
    
    header.hero .hero-image {
        position: static; 
        margin-top: 2rem;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    /* Header Info Section Responsive */
    section.py-3 .row > div {
        text-align: center !important;
        margin-bottom: 1rem !important; /* Reduced bottom margin */
        justify-content: center !important;
    }
    
    section.py-3 .row {
        flex-direction: column;
    }

    /* Font size adjustments for mobile header to prevent breaking */
    section.py-3 h5.fs-6 {
        font-size: 1.1rem !important;
        font-weight: bold;
    }
    section.py-3 img.img-fluid {
        max-height: 70px !important; /* Slightly smaller logo on mobile */
    }

    .container{
        max-width: 100%;
        padding: 0 20px;
    }
    
    section.our-services{
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 3rem;
    }

    .moti-image{
        width: 100%;
        height: auto;
    }

    section.our-services .service-card{
        margin-top: 2rem;
        height: auto;
    }

    
    .about-meal .about-meal-wrap img{
        width: 100%;
    }
    .about-meal .about-meal-wrap h2{
        font-size: 1.5rem;
        margin-top: 1rem;
        text-align: center;
    }
    .about-meal .about-meal-wrap p{
        font-size: 1rem;
        text-align: justify;
    }
    .about-meal .about-meal-wrap{
        font-size: 1rem;
        text-align: center;
        flex-direction: column;
    }
    
    /* Keep slider buttons visible if possible, or style dots */
    /* .top-products .slider-btn{
        display:none!important;
    } */
    
    footer{
        margin-top: 0px;
    }
    footer.copyright{
        margin-top: 0;
    }
    footer .instagram-api .post-wrap > div{
        width:calc(1/2*100% - (1 - 1/3)*10px);
    }

    .valve-showcase {
    padding: 60px 0;
}
}

@media (max-width:768px){ 
    section.top-products .machine-slider .machine-card h2{
        font-size: 1.1rem;
    }
    .about-meal .about-meal-wrap{
        font-size: 0.875rem;
        flex-direction: column;
    }
    .about-meal .about-meal-wrap img{
        width:100%;
        margin-bottom: 1rem;
    }
    
    .big-deal .container{
        margin-top: 3rem;
    }
    
    section.contact-us{
        flex-direction: column;
        height: auto; /* Flexible height */
        padding-bottom: 2rem;
    }
    
    section.contact-us .map{
        align-items: center;
        width: 100%;
        height: 300px;
        margin-top: 2rem;
    }
    
    section.our-services{
        margin-top: 0;
    }
    section.our-services .card-wrapper{
        flex-direction:column;
    }
    section.our-services .card-wrapper .service-card{
        margin-bottom:1rem;
    }
    footer{
        margin-top: 0;
        padding-top: 3rem;
    }
    footer .container{
        flex-direction: column;
    }
    footer .box{
        text-align: center; /* Center footer on mobile usually looks better */
        margin-right:0;
        margin-bottom:2rem;
    }
    footer .box:nth-child(3) h3{
        text-align: center;
    }
    footer .box:nth-child(3) > div{
        display:block;
    }
}

@media( max-width:576px){
    header.hero .hero-image img{
        max-height: 250px; /* Limit height on small screens */
    }
    
    header.hero{
        margin-top: 0;
    }
    
    .about-meal .about-meal-wrap{
        font-size: 0.875rem;
    }
    
    section{
        margin-top: 0;
        padding: 3rem 0;
    }
    
    section.big-deal .timer > div{
        height: 80px;
        width: 80px;
        margin-right:0.50rem;
        margin-bottom: 1rem;
    }
    
    section.big-deal{
        margin-top: 0;
        height: auto;
        padding: 0 0;
    }
    
    section.subscribe .container{
        flex-direction: column;
        padding:0.50rem;
    }
    
    section.contact-us{
        margin-top: 0;
    }
    
    section.contact-us .map{
        margin-left: 0;
        margin-right: 0;
    }
    
    footer.copyright{
        margin-top: 0;
    }

    /* Smallest screens specific adjustments if needed */
    @media(max-width:375px){
        header.hero h1 {
            font-size: 1.8rem;
        }
    }
}
