* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* overflow-x: hidden; */
}

body{
    overflow-x: hidden;
    background-color:rgb(235, 243, 248);
    font-family: "nunito";
}

:root{
    --main: rgb(32, 32, 124);
    --secondshade:rgb(203, 232, 241);
    --gray: rgb(112, 110, 110);
    --orange: orange;
}

nav{
    /* position: relative; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding-right: 20px ;
    height: 80px ;
    /* border-bottom: 1px solid var(--main); */
    box-shadow: 0px 4px 6px  rgba(0, 0, 0, 0.1);
    cursor: pointer;
    /* overflow-y: hidden; */
   /* position: sticky;
    top: 0;  */
    z-index: 1000;

}

.logo{
    /* width: 21%; */
    display: flex;
    align-items: center;

}

.logoh{
    color: var(--main);
    font-family: "nunito";
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}

.imlo{
    display: flex;
    align-items: center;
    
 
}

#nav-list-items{
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 1300;

}

#nav-list-items li {
    list-style: none;
  
}

#nav-list-items li a{
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--main);
    font-family: "nunito";
    font-weight: 700;
    transition: color 0.3s ease;

}

#nav-list-items li a:hover {
    color: var(--orange);
}

/* 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;
    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: var(--orange);
    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);
    display: none;
}
 
/* portal */
.line{
    width: 35px;
    height: 4px;
    background-color:var(--orange);
    display: grid;
    margin-bottom: 5px;
    position: relative;
}

.line2{
    width: 65px; 
}

.two{
    display: flex;
    margin-top: 5px;
    margin-left: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    position: relative;
}

.two > .twospan {
    margin-left: 20px;
    margin-top: 5px;
} 

.about {
    margin-left: 5%;
    margin-right: 5%;
    position: relative;
    
}

 .two{
    color: #fff;
    font-size: 1rem;
    font-family: "nunito";
    margin-top: 2rem;

}



.student-login h3{
    font-size: 2rem;
    font-family: "nunito";
    margin-bottom: 1rem;
}

.form-heading {
    text-align: center;

}

.student-login{
    position: relative;
}

.student-login ul{
    margin-right: 2rem;
    position: relative;
    margin-left: 1.6rem;
}

.student-login li{
    font-size: 1.2rem;
    /* margin-left: 2rem; */
    margin-bottom: 5px;
    line-height: 1.7rem;
    position: relative;
    color: #fff;
    list-style-type: circle;

}

/* .icon-list{
    display: grid;
    grid-template-columns: 1fr 1fr;
} */

.student-login img{
    width: 10rem;
    display: block;
  margin-left: auto;
  margin-right: auto;
    
}

.form-group{
    text-align: center;
    margin-bottom: 2rem;
}

.input-container {
    position: relative;
    width: 80%;
    margin: 0 auto 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    cursor: pointer;
}

.portal form{
    /* box-shadow: 0 0px 1px rgba(0, 0, 0, 0.5); */
    padding-bottom: 0.2rem;

}

.portal{
    /* margin-bottom: rem; */
    /* box-shadow: 1px 2px 2px 2px rgba(32,32,124, 0.18); */
    background-color: #fff;
    /* border-radius: 1.7rem; */
    /* padding: 2rem 2rem; */
    margin-top: 0.2rem;
}



.form-selection{
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.form-selection h3{
    font-size: 1.4rem;
    font-family: "nunito";
}

.student {
    color: var(--main);
    font-weight: 900;
     font-family: "nunito";
    /* font-size: 5.3rem; */
    /* border-bottom: 2px solid var(--orange); */
}

.image-card{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    
}

.image-card::before{
    content: '';
    background-image: url(winsschool/IMG_5886.JPG);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 1;
    filter: brightness(0.5);

}

/* .texts{
    position: relative;
} */


.application{
    /* background-image: url(winsschool/IMG_5374.JPG); */
    background-repeat: no-repeat;
    background-size: cover ;

}

/* .form-group input{
    width: 80%;
    padding: 1rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-family: sans-serif;
    margin-bottom: 1.5rem;
    background-color: rgb(243, 242, 242);
    border: none;
    outline: none;
} */

.form-group input {
    width: 100%;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-family: "nunito";
    background-color: rgb(243, 242, 242);
    border: 2px solid transparent;
    outline: none;
    transition: border-color 0.3s, padding-top 0.3s;
}

.form-group input:focus {
    border-color: rgb(32, 32, 124);
    padding-top: 1.5rem;
}

.form-group label {
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--gray);
    pointer-events: none;
    transition: all 0.3s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: rgb(32, 32, 124);
}

.form-group input::placeholder {
    color: transparent;
}

.form-group button{
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
    padding: 0.6rem;
    border: none;
    border-radius: 2rem;
    font-size: 1.5rem;
    color: #fff;
    background-color: var(--main);

}

/* 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);
}



  /* Fade-in Animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }















/* mediaqueries */
@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;
       z-index: 1000;
   }
  
  #nav-list-items li {
       padding: 20px;
       z-index: 1100;

   }

   #nav-list-items li a {
       color:var(--main);
       font-family: "nunito";
       
   }

    /* 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 (min-width: 700px){  
       
       #logo{
           /* width: 20vh; */
           
           /* height: 125px; */
          
           image-rendering: crisp-edges;
       }

      
       /* portal */

       .portal {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* margin: 1rem 3rem; */
        /* padding: 2rem 5rem; */
       }

       .form{
        margin-top: 5rem ;
    }
    

     
}

@media only screen and (min-width: 968px){
   
    
    #logo{
        width: 7rem;
       
        /* height: 125px; */
       max-width: 150px;
        image-rendering: crisp-edges;
    }

}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .modal-content {
      width: 90%;
      padding: 15px;
    }
  }