/* General styles for responsiveness */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 1630px){
    .threeimg{
        display: none;
    }
    .indeximages img{
        width: 600px;
        height: 300px;
        margin-bottom: 30px;
    
    }
    .feedbacks{
        margin-top: 170px;
    }
} 


/* Styles for screens up to 1197px */
@media (max-width: 1197px) {

    .middle ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 130px;
        background: #8ba4e8;
        width: 300px;
        padding: 20px 0;
        border: 1px solid black;
        border-radius: 5px;
        text-align: center;
    }

    .middle ul.active {
        display: flex;
    }

    .middle ul li a {
        color: rgb(0, 0, 0);
        padding: 10px 30px;
        width: 100%;
        text-decoration: none;
        font-size: 18px;
        transition: 0.3s;
    }

    .middle ul li a:hover {
        color: rgb(0, 0, 0);
        background-color: rgb(255, 255, 255);
        width: 100%;
        border-radius: 5px;
    }

    .menu-icon {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: white;
    }
    .menu-icon{
        margin-left: 100%;
    }

    .bg1 {
        background: url(./Assets/website.gif);
        min-height: 70vh;
        width: 100%;
        position: relative;
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    .javaright{
        display: none;
    }

    .leftjava h1{
        text-align: center;
    }

    .about{
        margin-top: -10%;
        margin-left: -5%;
    }
    .about p{
        font-size: 18px;
        width: 112%;
        margin: auto;
    }
    .about h2{
        text-align: center;
        margin-left: 15%;
    }   
    .about h3{
        text-align: center;
        margin-top: -19%;
        margin-left: 15%;
    }

    .leftabout{
        font-size: 18px;
        width: 100%;
    }

    .container1{
        top: 130%;
        width: 90%;
        margin-left: -5%;
    }

}

@media(max-width:1422px){
    .oneimg, .twoimg{
        width: 500px;
        height: 300px;
        padding-bottom: 70px;
    }
}


@media(max-width:1290px){
    .oneimg{
        display: none;
    }
    .twoimg img{
        width: 400px;
        height: 450px;
        padding-bottom: 70px;
    }
}

/* Styles for screens up to 1024px */
@media (max-width: 1024px) {
    .card1 {
        flex: 1 1 calc(50% - 40px);
    }

    .coursesbox1 {
        flex-direction: column;
        text-align: center;
    }


    .footer {
        flex-direction: column;
        text-align: center;
    }
    .menu-icon{
        margin-left: 100%;
    }
    
}

@media (max-width: 900px) {
    .bg1 {
        background: url(./Assets/website.gif);
        background-size: cover;
        background-position: center;
    }

    .social button {
        display: none;
    }


    .coursesbox1{
        margin-bottom: 70px;
    }
    .bg10{
        min-height: 140vh;
    }

    .coursesbox{
        margin-bottom: 0px;
    }
    .twoimg{
        display: none;
    }


    
}

@media(max-width:800px){
    .courseslist{
        grid-template-columns: repeat(2, 1fr);
    }
    .javacontainer {
        padding: 15px;
    }

    .javabtnn,
    .btnjava {
        width: 100%;
    }

    .formjava {
        width: 90%;
    }
    .main1{
        width: 91%;
    }
    .about h3{
        margin-top: -30%;
    }
    .feedbacks img{
        width: 400px; /* Image width */
        height: 20vh; /* Image height */
        object-fit: cover; 
    }

}

@media(max-width:900px){

    .feedbacks img{
        width: 400px; /* Image width */
        height: 100vh; /* Image height */
        padding-top: 200px;
        object-fit: cover; 
    }

}

@media (max-width: 767px) {
    .about {
        margin-top: -500px; /* Provide proper spacing */
        max-width: 95%;
        text-align: left; /* Better readability on small screens */
    }
    .bglogo::before{
        width: 550px; 
        height: 750px;
        top: 35%;
    }
    .banner-text1 p{
        font-size: 17px;
    }
    .leftabout p{
        font-size: 17px;
    }
    .points1 ul li{
        font-size: 16px;
        margin-top: -0.3%;
    }


}


@media (max-width: 600px) {

    .courseslist{
        grid-template-columns: repeat(1, 1fr);
    }

    .card1 {
        flex: 1 1 100%;
    }

    .middle ul {
        width: 50%;
        right: 20px;
    }

    .footer {
        text-align: center;
    }

    .quicklinks ul {
        text-align: center;
    }
    .lastpara{
        display: none;
    }

}


@media (max-width: 576px) {
    .footer {
        flex-direction: column;
    }

    .social button {
        display: none;
    }
    .coursesbox1{
        margin-bottom: 0;
    }
    .container1{
        margin-top: -35%;
    }
    .marquee-container{
        margin-bottom: 40px;
    }  

}


@media (max-width: 400px) {
    .middle ul {
        width: 100%;
    }

    .middle ul li a {
        font-size: 16px;
        padding: 10px 15px;
    }

    .menu-icon {
        font-size: 25px;
    }
    .banner-text1 p{
        font-size: 13px;
    }
    .banner-text1 h1{
        font-size: 19px;
    }
    .leftabout p{
        font-size: 15px;
    }
    .points1 ul li{
        font-size: 14px;
        margin-top: -0.3%;
    }

    .container1{
        margin-top: 40%;
        text-align:justify;
        width: 100%;

    }
    .box{
        height: 100vh;
    }
    .marquee-container{
        margin-bottom: 40px;
        margin-top: 20px;
    }
    .feedbacks img {
        width: 500px;
        height: 35vh; 
    }
    .swiper{
        width: 100%;
        top: 0;
        height: 90vh;
        margin: auto;
        overflow: hidden;
    }
    .slide-text h2{
        font-size: 20px;
    }
}


@media (max-width: 390px) {
    .sidel {
        margin-left: -5%;
    }

    .social button {
        display: none;
    }

    .middle ul {
        left: -1%;
    }

    .menu-icon {
        padding-left: 10px;
        margin-left: -5%;
    }

    .quicklinks ul {
        text-align: center;
    }
}


@media (max-width: 768px) {
    .banner {
        height: 60vh;
    }


    .banner-text h1 {
        font-size: 1.8rem;
    }

    .banner-text p {
        font-size: 1rem;
    }
    .snowflake{
        animation-duration: 10s, 10s; 
    }

    .swiper {
        width: 95%;
        height: 250px;
    }
    .slide-text {
        font-size: 14px;
        padding: 10px;
        width: 80%;
    }
}

/* Responsive for mobile devices */
@media (max-width: 480px) {
    .banner {
        height: 40vh;
    }


    .banner-text h1 {
        font-size: 1.5rem;
    }

    .banner-text p {
        font-size: 0.9rem;
    }
    .lastbutone{
        display: none;
    }

    
}




@media (max-width: 1024px) {
    .banner {
        height: 80vh;
    }

    .banner-text2 {
        width: 85%;
        max-width: 700px;
    }

    .banner-text2 h1 {
        font-size: 1.8rem;
    }

    .banner-text2 p,
    .points ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 75vh;
    }

    .banner-text2 {
        width: 90%;
        max-width: 600px;
    }

    .banner-text2 h1 {
        font-size: 1.6rem;
    }

    .banner-text2 p,
    .points ul li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 65vh;
    }

    .banner-text2 {
        width: 95%;
        max-width: 90%;
    }

    .banner-text2 h1 {
        font-size: 1.4rem;
    }
    .banner-text2 p{
        margin-top: -10px;
    }

    .points ul li {
        display: none;

    }
}




@media (max-width: 1197px) {
    .contactus {
        flex-direction: column; /* Stack items */
        align-items: center; /* Center elements */
        height: 1200px;
    }

    .map {
        width: 100%;
        max-width: 100%;
        height: 300px;
        min-height: 300px; 
    }

    .map iframe {
        width: 100%;
        height: 350px; /* Ensure visibility */
        display: block;
    }

    .form-container {
        width: 90%;
        margin: auto;
        height: 100vh;
        max-width: 100%;
    }

    .contactus{
        height:1200px;
    } 
}

@media (max-width: 768px) {
    .contactus {
        flex-direction: column;
    }

    .map {
        order: -1; /* Moves map to the top */
    }

    .map iframe {
        height: 250px;
    }

    .form-container {
        margin-top: -10%;
        width: 100%;
        margin-left: -3%;
        margin-bottom: -60%;
    }
    .form-container::before {
        width: 450px; 
        height: 750px;
        top: 38%;
    } 
    .contactus{
        height:990px;
    } 
}

@media (max-width: 600px) {
    .map iframe {
        height: 200px;
    }

    .form-container {
        margin-top: -25%;
        width: 100%;
        margin-left: -3%;
        margin-bottom: -60%;
    }

    .form-container input,
    .form-container textarea {
        padding: 8px;
        font-size: 14px;
    }

    .form-container button {
        font-size: 14px;
    }
    .form-container::before {
        width: 450px; 
        height: 750px;
        top: 38%;
    }        
    .contactus{
        height:830px;
    }   
}

@media(max-width:490px){
    .form-container {
        margin-top: -25%;
        width: 100%;
        margin-left: -5%;
        margin-bottom: -60%;
    }

    .form-container input,
    .form-container textarea {
        padding: 8px;
        font-size: 14px;
    }

    .form-container button {
        font-size: 14px;
    }
    .form-container::before {
        width: 350px; 
        height: 750px;
        top: 38%;
    }        
    .contactus{
        height:900px;
    } 
    .bglogo::before{
        width: 450px; 
        height: 750px;
        top: 40%;
    }
    .marquee-container{
        margin-top: 40px;
    }  

}
@media (max-width: 399px){
    .form-container {
        margin-top: -25%;
        width: 100%;
        margin-left: -5%;
        margin-bottom: -60%;
    }

    .form-container input,
    .form-container textarea {
        padding: 8px;
        font-size: 14px;
    }

    .form-container button {
        font-size: 14px;
    }
    .form-container::before {
        width: 350px; 
        height: 750px;
        top: 38%;
    }        
    .contactus{
        height:900px;
    } 
    .bglogo::before{
        width: 450px; 
        height: 750px;
        top: 45%;
    }
}
@media (max-width: 370px){
    .map{
        margin-left: -11%;
    }
    .form-container {
        margin-top: -25%;
        width: 100%;
        margin-left: -5%;
        margin-bottom: -60%;
    }

    .form-container input,
    .form-container textarea {
        padding: 8px;
        font-size: 14px;
    }

    .form-container button {
        font-size: 14px;
    }
    .form-container::before {
        width: 450px; 
        height: 750px;
        top: 18%;
    }        
    .contactus{
        height:900px;
    } 
    .bglogo::before{
        width: 400px; 
        height: 750px;
        top: 45%;
    }
    .banner-text1 p{
        font-size: 13px;

    }
    .leftabout p{
        font-size: 15px;
    }
    .points1 ul li{
        font-size: 14px;
        margin-top: -0.3%;
    }

    .container1{
        margin-top: 130%;
        text-align:justify;
        width: 100%;

    }
    .box{
        height: 100vh;
    }
    .marquee-container{
        margin-bottom: 40px;
        margin-top: 20px;
    }
    .feedbacks img {
        width: 500px;
        height: 35vh; 
    }
    .swiper{
        width: 100%;
        top: 0;
        height: 90vh;
        margin: auto;
        overflow: hidden;
    }
    .slide-text h2{
        font-size: 20px;
    }
}