@media only screen and (max-width: 1299px) and (min-width: 1200px){

	.location-box.one {

    padding-right: 20px;

    margin-right: 20px;

}

.location-box .content-box .title {

    margin-bottom: 0;

    font-size: 20px;

    font-weight: 700;

    line-height: 20px;

}

	.location-box .content-box .title a {

    color: var(--title-color);

    font-size: 16px;

}

.main-menu > ul > li {

    margin: 0 7px;

}

}
/* --- Tablets and Small Laptops (Max 1199px) --- */
@media (max-width: 1199px) {
    .hero-content7 .title {
        font-size: 50px;
        max-width: 700px;
    }
}

/* --- Small Tablets and Large Phones (Max 991px) --- */
@media (max-width: 991px) {
    /* Maintain vertical impact by forcing a minimum height */
    .nivoSlider, 
    .nivo-main-image {
        height: 550px !important;
    }

    .nivoSlider img {
        height: 100% !important;
        object-fit: cover !important; /* Prevents image stretching */
        object-position: center;
    }

    .hero-content7 .title {
        font-size: 42px;
        max-width: 90%;
    }

    .hero-content7 .p-title {
        font-size: 16px;
        max-width: 85%;
    }
}

/* --- Standard Mobile Devices (Max 768px) --- */
@media (max-width: 768px) {
    .hero-content7 {
        padding: 0 20px;
        margin-top: 0;
    }

    .hero-content7 .title {
        font-size: 34px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-content7 .p-title {
        font-size: 15px;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    /* Stack buttons vertically to fit mobile width */
    .hero-content7 .banner-btn {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .hero-content7 .banner-btn a {
        width: 100%; /* Buttons take full available width on mobile */
        max-width: 260px;
        text-align: center;
        margin-right: 0 !important;
    }

    /* Adjust scroll down position */
    .scroll-down-wrapper {
        bottom: 20px;
    }
}
/* Tablet and Mobile (991px and below) */
@media (max-width: 991px) {
    
    /* 1. Ensure the background section can grow with content */
    .Contact-cc-sec {
        height: auto !important;
        min-height: 100vh; /* Ensures full screen coverage if needed */
        padding: 50px 0 !important;
        display: block !important;
    }

    /* 2. Force the row to stack columns correctly */
    .Contact-cc-sec .row {
        display: flex;
        flex-direction: column; /* Stacks text on top, form on bottom */
        align-items: center;
        margin: 0;
    }

    /* 3. Text Area Fix */
    .cc-desc {
        width: 100% !important;
        max-width: 100%;
        margin-bottom: 30px; /* Space before the form starts */
        padding: 0 15px;
        text-align: center;
    }

    .cc-desc h2 {
        font-size: 28px !important;
        line-height: 1.2;
    }

    /* 4. Form Container Fix */
    .contact-form-new {
        width:  auto!important;
        max-width: 100%;
        margin: 0 auto !important;
        padding: 25px !important;
        position: relative; /* Removes any absolute positioning that causes cutting */
        top: 0 !important;
    }
        .contact-form-new .col-md-6{
            width: 100%;

        }
    /* 5. Prevent long text overflow */
    .cc-desc p {
        font-size: 18px;
        line-height: 1.6;
    }
}

/* Small Mobile (575px and below) */
@media (max-width: 575px) {
    .contact-form-new {
        padding: 20px 15px !important;
    }
    
    .cc-desc h2 {
        font-size: 24px !important;
    }
}
/* --- Small Mobile Devices (Max 480px) --- */
@media (max-width: 480px) {
    .nivoSlider, 
    .nivo-main-image {
        height: 500px !important;
    }

    .hero-content7 .title {
        font-size: 28px;
    }

    /* Optional: Hide scroll down on very small screens to save space */
    .scroll-down-wrapper {
        display: none;
    }
}
@media (max-width: 991px) {
    /* The banner image with negative VW right positioning */
    .banner-img-seven {
        display: none !important;
    }
    
    /* Ensure the slider doesn't expand beyond viewport */
    .nivoSlider, 
    .nivo-main-image {
        width: 100% !important;
        max-width: 100vw !important;
    }


}
/* Tablet */
@media (max-width: 991px) {
    .loasn-sebox-icon img {
        height: 180px;
    }
      /* Hide the global pseudo-backgrounds */
    .milstone-sec:before, .milstone-sec:after {
        display: none !important;
    }

    
    /* Apply background gradients directly to stacked columns for mobile readability */
    /* Select first item in the row */
    .milstone-sec .row > div:nth-child(1) {
        background: linear-gradient(90deg, var(--theme-color2) 0%, var(--theme-color) 100%);
    }
    
    /* Select third item in the row */
    .milstone-sec .row > div:nth-child(3) {
        background: linear-gradient(90deg, var(--theme-color6) 0%, var(--theme-color5) 100%);
    }

    /* Adjust padding for stacked view */
    .milestonebox {
        padding: 40px 15px;
    }

}
@media (max-width: 768px) {
    .scroll-down-wrapper { display: none; }
}
@media (max-width: 767px) {
  .banner-btn {
    margin-top: 30px;
  }
}
@media (max-width: 416px) {
  .banner-btn .btn-style7 {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }
}
/* Mobile */
@media (max-width: 768px) {
.miciboss-icon{
display:none;
}
     .hero-content7 .title {
        font-size: 24px !important; /* Smaller titles on mobile */
        line-height: 1.2;
    }
    
    .hero-content7 .p-title {
        font-size: 14px !important;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit description height on small screens */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .banner-btn a {
        padding: 10px 15px;
        font-size: 12px;
        display: inline-block;
        margin-bottom: 5px;
    }

    /* Center content on mobile if needed */
    .text-left {
        text-align: center !important;
    }

    .loasn-sebox-icon img {
        height: 150px;
    }

    .loasn-sebox {
        padding: 15px;
    }
}