* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* overflow-x: hidden; */
}

/* h2{
    font-family: "poppins", sans-serif;
} */



body{
    overflow-x: hidden;
    font-family: "nunito";
    font-weight: 500; 
}

:root{
    --main: rgb(32, 32, 124);
    --secondshade:rgb(203, 232, 241);
    --gray: rgb(112, 110, 110);
    --orange: orange;
}

html{
    scroll-behavior: smooth;
}

nav{
    /* position: relative; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding-right: 20px ;
    height: 80px ;
    box-shadow: 0 0 1px 1px rgba(32,32,124, 0.18);
    /* overflow-y: hidden; */
    cursor: pointer;
    /* position: fixed; */
    z-index: 1000;
}

.logo{
    /* width: 21%; */
    display: flex;
    align-items: center;

}
/* #logo{
    width: 20vm;
    min-width:50px;
   max-width: 150px;
    image-rendering: crisp-edges;
} */

.logoh{
    color: var(--main);
    font-family: "nunito";
    font-weight: 800;
    text-align: center;
}


/* .logo, .logoh {
    display: flex;
    
} */

.imlo{
    display: flex;
    align-items: center;
    
  
}

/* Base styles for dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
  }
  
  /* Dropdown content (hidden by default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }
  
  /* Dropdown content links */
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  /* Show dropdown content on hover */
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* Optional: Hover effect for dropdown links */
  .dropdown-content a:hover {
    background-color: #f1f1f1;
  }
  

#nav-list-items {
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 1001;
    
}

#nav-list-items li {
    list-style: none;
}

#nav-list-items li a{
    text-decoration: none;
    font-size: 0.7rempx;
    color: var(--main);
    font-family: "nunito";
    font-weight: 700;
    transition: color 0.3s ease;
}

#nav-list-items li a:hover {
    color: var(--orange);
}

.nav-link.active {
    color: #fff; /* White text */
    background-color: var(--orange); /* Orange background */
    border-radius: 5px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    text-decoration: none;
    font-size: 1rem;
    color: var(--main);
    font-family: "nunito";
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px; /* Space between text and icon */
    transition: color 0.3s ease;
}

.dropbtn:hover {
    color: var(--orange);
}

/* Dropdown Icon */
.dropdown-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg); /* Rotate when dropdown is active */
}

/* Dropdown Content */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1400;
    min-width: 150px;
    text-align: left;
    overflow: hidden;
}

.dropdown-content a {
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    font-size: 1rem;
    font-family: "nunito";
    font-weight: 400;
    color: var(--main);
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1500;
}



/* Show Dropdown When Active */
.dropdown.active .dropdown-content {
    display: block;
}


/* Enroll Now Button */
.enroll-now-desktop {
    display: block;
}

.enroll-now-mobile {
    display: none;
}

.enroll-btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: rgb(99, 99, 179);;
    color: #fff !important;
    font-family: "nunito";
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    overflow: hidden;
}

/* Sliding Orange Effect */
.enroll-btn::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--orange);
    animation: slide-color 3s infinite;
    z-index: -1;
}

.enroll-btn:hover::before {
    top: 0;
    animation: none;
}

.enroll-btn:hover {
    background-color: rgb(233, 92, 41);
    color: #fff;
}

@keyframes slide-color {
    0% {
        top: 100%;
    }
    50% {
        top: 50%;
    }
    100% {
        top: 0;
    }
}


.icon {
    font-size: 35px;
    color: var(--main);
    /* padding-right: 10px; */
    display: none;
}

 /* my sliding image */
/* Carousel container takes up the full screen */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    /* z-index: -1; */
    
}

/* Carousel images in a row */
.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    /* overflow: hidden; */
}

/* Each slide takes up the full width and height of the viewport */
.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
}

/* Ensure images fill the entire slide area without stretching */
.carousel-images img {
    width: 100%;
    height: 100vh;
    object-fit: cover; 
   /* Scales image to fill, maintaining aspect ratio */
}

/* Full-size overlay with centered text */
.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    /* text-align: center; */
    padding: 20%;
    box-sizing: border-box;
    padding-left:30px ;
}

/* .carousel-caption h2,
.carousel-caption p {
    margin: 0;
    padding: 0;
} */

.carousel-caption h2{
    font-size: 2rem;
    font-family: "nunito";
    font-weight: 800;
    margin-bottom: 1rem;
    color: rgb(182, 182, 230);
}

.carousel-caption p {
    font-size: 1.2rem;
    font-family: "nunito";
    font-weight: 400;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

#readmore{
    display: flex;
    margin-top: 30px;
    gap: 7px;
    /* text-align: left; */
    
}

.readmore{
    padding: 13px;
    font-size: 1rem;
    font-family: "nunito";
    border: none;
    font-weight: 600;
    cursor: pointer;
    

}

.readmore a {
    text-decoration: none
    
}


.readmore-first{
    background-color: rgb(99, 99, 179);
    color: #fff;
    text-decoration: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/* cards */

.card{
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr ;
    margin-bottom: 2rem;

}

.cards {
    /* border: 1px solid; */
    text-align: center;
    background-color: var(--secondshade);
    margin: 15px;
    margin-bottom: 1.2rem;
    /* border-radius: 20px; */
    overflow-y: hidden;
    transition: .5s;
    transition: 500ms ease-in;
    box-shadow: 0 3px 0 rgba(0,0,0,0.1);
}
.cards:hover {
    background-color: var(--orange);
    /* color: #fff !important; */
    transform: rotate(-4deg);
}

.cards:hover p{
    color: #fff;
}

.cards:hover i{
    color: #fff;
}

.cards:hover h2{
    color: #fff;
}


/* .card:hover ~ .cards{
    z-index: 1;
    transform: translate(60px);
} */

/* .cards >.card-icons,p:hover{
    color: #fff;
} */

.card-icons {
    color: var(--orange);
    font-size: 36px;
    /* font-size: 3rem; */
    padding-top: 1.5rem; 
    overflow: hidden;
}
/* .card-icons:hover, .cards h2:hover, .card .cards p:hover {
    color: #fff;
} */

.cards h2{
    font-size: 1.5rem;
    margin-top: 1.5rem;
    font-family: sans-serif;
    color: var(--main);
}

.cards p {
    margin-top: 1.2rem;
    font-size: 1.2rem;
    padding-bottom: 1.5rem;
    font-family: "nunito";
    color: black;
}

/* .line::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    border: 3px solid --main;
    width: 60%;
    
} */


/* about us */
.line{
    width: 35px;
    height: 4px;
    background-color:var(--orange);
    display: grid;
    margin-bottom: 5px;
}

.line2{
    width: 65px; 
}


.two{
    display: flex;
    margin-top: 5px;
    margin-bottom: 1rem;
    align-items: center;
}

.two > .twospan {
    margin-left: 20px;
    margin-top: 5px;
} 

.about {
    margin-left: 5%;
    margin-right: 5%;
    
}

.about-image{
    width: 100%;
    padding-bottom: 1.7rem;
}

.about-image img{
    width: 100%;
}

.about h2{
    color: var(--main);
    font-size: 1.7rem;
    font-family: "nunito";
    font-weight: 800;
}

.about p{
    font-family: "nunito";
    font-weight: 400;
    font-size: 1.2rem;
}

.about ul{
    margin-left: 2rem;
    font-size: 1.3rem;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}
.about li{
    font-family: "nunito";
    font-weight: 400;
    line-height: 1.7rem;



}
.about button{
    padding: 0.6rem;
    background-color: var(--orange);
    font-family: "nunito";
    font-weight: 800;
    font-size: 1.2rem;
    border: none;
}

.about a{
    text-decoration: none;
    color: #fff;
    font-family: "nunito";
}

.about-second-text{
    margin-top: 0.8rem ;
    color: var(--main);
    font-weight: 700;
    font-family: "nunito";
    font-size: 1.3rem;

}

/* gallery */

/* .facilities{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    
} */


.gallery{
    margin-left: 5%;
    margin-right: 5%;
    overflow-x: hidden;
    
}


.gallery .two{
    
    text-align: center!important;
    margin-top: 3rem;
    color:var(--main);
    margin-bottom: 2rem;
    
    
}



.gallery .two h2{
    font-size: 2rem;
    font-family: "nunito";
    /* text-align: center; */
    margin-left: 3rem;
    
}

/* Flexbox Gallery */
.gallery-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 10px;
}

.gallery-item {
    flex: 1 1 calc(50% - 50px); /* Each image takes 25% of the width minus the gap */
    max-width: 600px; /* Limit the maximum width for better scaling */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: auto; /* Maintain the natural aspect ratio */
    border-radius: 8px;
}

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 0;
    font-family: "nunito";
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


/* .facilities-img{
    width: 100%;
    position: absolute;
}

#facilities-container{
    border: 2px solid black;
    width: 10%;
} */


/* .facilities p {
    border: 1px solid black;
    width: 13rem;
    text-align: center;
    padding: 0.9rem 0.9rem;
    font-size: 1.4rem;
    background-color: var(--orange);
    color: #fff;
    font-weight: 700;
    font-family: sans-serif;
    position: relative;
    bottom: 20%;
    right: 0;
    bottom:0px;
    top: 50px;
    left: 176px;
    box-shadow: 0 0 0 0.15;
} */


/* quicklinks */

.footer-section{
    background-image: url(winsschool/bluebackground3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding-left: 1.5rem;
    margin-top: 4rem;
    /* display: flex; */
}

.footer-section h2{
    color: #fff;
    margin-bottom: 1rem;
    padding-top: 3rem;
}


.icon-text {
    display: flex;
    gap: 0.5em;
    align-items: center;
    margin-bottom: 0.8rem;

}

.icon-text i{
    color: var(--orange);
    font-weight: 800;
    font-size: 0.8rem;
    font-family: "nunito";
}


.icon-text a{
    text-decoration: none;
    color: #fff;
    font-family: sans-serif;
    
}

.contact-icon{
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;

}

.contact-icon i{
    color: var(--orange);
}

.contact-icon p{
    color: #fff;
    font-family: "nunito";
    
}

.brands {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 2rem;
}

.brands i {
    margin-right: 0.2rem;
    border: 1px solid black;
    padding: 10px;
    border-radius: 50%;
    background-color: var(--main);
    
}

/* footer */
footer{
    display: flex;
    margin-top: 3rem;
    color: #fff;
    font-size: 1rem;
    font-family: nunito;
    padding-bottom: 2rem;
    align-items: center;
}

footer a{
    text-decoration: none;
    color: #fff;

}


.rightsreserved, footer i{
    color: rgb(184, 180, 180);
}


/* scroll Arrow */

.back-to-top{
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--main);
    border-radius: 50%;
    padding: 0.5rem;
    text-decoration: none;
    transition: 0.2s ease-out;
}

.back-to-top.show {
   display: inline-flex;
}


.back-to-top i{
    color: #fff;
    font-size: 1.7rem;
    transition: 0.2s ease-out;
}

.back-to-top:hover {
background-color: var(--orange);
}

.back-to-top:hover i{
    transform: translateY(-4px);
}


/* Animation Keyframes */
@keyframes slideUp {
    from {
        transform: translateY(70px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Initially hide elements */
.animate {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Add this class to make the element visible with animation */
.animate.show {
    opacity: 1;
    transform: translateY(0);
}













/* media queries */

@media only screen and (max-width: 900px){
    #nav-list-items {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        text-align: center;
        gap: 0;
        overflow: hidden;
        transition: all, 0.7s ease-out;
        
    }

    #nav-list-items li {
        padding: 20px;

    }

    #nav-list-items li a {
        color:var(--main);
        font-family: sans-serif;
        
    }

     /* Hide Desktop Enroll Now */
     .enroll-now-desktop {
        display: none;
    }

    /* Show Mobile Enroll Now */
    .enroll-now-mobile {
        display: block;
        color:#fff;
    }

   .icon {
    display: block;
   }  


   #logo{
       width: 5rem;
   }
    
   .dropdown-content {
    left: auto; /* Remove left alignment */
    right: 5rem; /* Align dropdown to the right */
}
}


@media only screen and (max-width: 600px) {
    .facilities p {
        font-size: 1.2rem; /* Adjust text size for smaller screens */
        padding: 8px;
    }
}


@media only screen and (min-width: 700px){

    .card {
    
        display: grid;
        grid-template-columns: repeat(2,1fr);
       }
   
       #logo{
           /* width: 7rem; */
           /* min-width:50px; */
           /* height: 125px; */
          /* max-width: 150px; */
           image-rendering: crisp-edges;
       }
   

       .footer-section{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        padding: 1% 5%;
       }

       footer{
        padding-bottom: 1rem;
        margin-top: 2rem;
       }
}




@media only screen and (min-width: 968px){
    .card {
    
     display: grid;
     grid-template-columns: repeat(4,1fr);
     padding: 0% 7% ;
    }

    .cards{
        padding: 5%;
    }


    #logo{
        width: 7rem;
        /* min-width:50px; */
        /* height: 125px; */
       max-width: 150px;
        image-rendering: crisp-edges;
    }

    .carousel-caption{
        padding-right: 30%;
    }

    .about{
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0% 3% ;
        gap: 4%;
    }

    .gallery {
        padding: 0% 2% ;
    }
    

}

@media only screen and (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(50% - 16px); /* 2 columns on smaller screens */
    }
}

@media only screen and (max-width: 480px) {
    .gallery-item {
        flex: 1 1 100%; /* Single column on very small screens */
    }
}

