*{
    text-decoration: none;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    width: 100%;
    height: 100vh;
}
.imgslider{
    width:100%;
    height:37.5rem;
    background-image: url("img1.jpg");
    background-size: 100% 100%;
    animation: changeImage 120s ease-in-out infinite;
}

.player{
    aspect-ratio: 16/9;
    width: 80%;
}

@keyframes changeImage{
    0%{
        background-image: url("img1.jpg");
    }

    20%{
        background-image: url("img8.jpg");
    }

    40%{
        background-image: url("img6.jpg");
    }

    60%{
        background-image: url("img3.jpg");
    }

    80%{
        background-image: url("img2.jpg");
    }

    100%{
        background-image: url("img21.jpg");
    }
    
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    text-align: center;
    transition: background-color 0.4 ease-in-out;
    position: fixed;
    height: 3rem;
    width: 100%;
    z-index:2;
}

nav{
    height: 5rem;
    width: 100%;
}

label.logo{
    color: white;
    font-size: 2.1875rem;
    line-height: 4rem;
    font-weight: bold;
    padding-right: 10rem; 
}

.logo:hover{
    text-shadow: 0.1rem 0.1rem 0.5rem rgb(0, 0, 0);
}

nav ul{
    float:right;
    margin-right: 1.25rem;
}

nav ul li{
    display: inline-block;
    line-height: 2rem;
    margin: 0 0.3125rem;
}

nav ul li a{
    color: white;
    font-size: 1.0625rem;
    text-transform: uppercase;
    padding: 7px 13px;
    border-radius: 0.1875rem;
    background: #25642a;
    transition: color 0.4s ease-in-out;
    font-weight: bold;
}

header.scrolled nav a{
    color: rgb(0, 0, 0)
}

 .navbar  a:hover{
    color:#004b0a;
    background: #ffffff;
    transition: .5s;
}

.checkbtn{
    font-size: 1.875rem;
    color: white;
    float: right;
    line-height: 5rem;
    margin-right: 2.5rem;
    cursor: pointer;
    display: none;
}

#check{
    display: none;
}

@media(max-width:858px){
    .checkbtn{
     display: block;
    }
    header{
     position: fixed;
     width: 100%;
     z-index: 2;
    }
    ul{
     position: fixed;
     width: 100%;
     height: 100vh;
     background-color: #004b0a;
     top:4rem;
     left: -120%;
     text-align: center;
     transition: all .5s;
     z-index: 2;
    }
    
    nav ul li{
     display: block;
     margin: 3.125rem 0;
     line-height: 1.875rem;
    }
    nav ul li a{
     font-size: 1.25rem;
    }
    a:hover, a.active{
     background: none;
     color: #00ff22;
    }
    #check:checked~ul{
     left: 0;
    }
 }

@media(max-width:952px){
    label.logo{
        font-size: 1.875rem;
        padding-left: 2.7rem;
    }

    nav ul li a{
        font-size: 1rem;
    }
}

@media(max-width:768px)
{  
.navdiv li a{
  padding: 0.2rem;
}
label.logo{
  font-size: 1.5rem;
}
.navdiv li{
  display: block;
}
.navdiv{
  display: block;
}
header {
    padding: 0.5rem 0.9375rem;
}
}

@media(max-width:480px)
{  
label.logo {
  font-size: 1rem;
  padding-left: 1rem; 
}
.checkbtn i{
    font-size: 1.5rem;
}
header{
    padding: 0.3125rem 0.625rem;
}
}

@media(max-width:380px)
{  
label.logo {
  font-size: 0.7rem;
}

.checkbtn i{
    font-size: 1rem;
}

}

main {
    text-align: center;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    bottom: 0;
    width: 100%;
}

.welcome-section {
    text-align: center;
    padding: 3.125rem 1.25rem;
}

.welcome-section h2 {
    margin-bottom: 1.25rem;
    font-size: 2rem;
}

.cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: #23ff78;
}

.card {
    background: rgb(255, 255, 255);
    padding: 1.25rem;
    border-radius: 0.625rem;
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
    width: 18.75rem;
    margin-bottom: 1.25rem;
    margin-top: 1.25rem;
}

.card h3 {
    color: #00ca4e;
}

.about-section {
    padding: 1.25rem;
    text-align: center;
}

.about-section .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    margin-bottom:1.25rem;
}

.about-content p{
    text-align: left;
    font-size: 1rem;
}

.about-section .about-image {
    width: 100%;
    border-radius: 0.625rem;
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
}

.about-section .about-image1 {
    width: 50%;
    border-radius: 0.625rem;
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
}

.slider{
    overflow: hidden;
}

.slider figure{
    position: relative;
    width: 500%;
    margin:0;
    left:0;
    animation: slider 20s infinite;
}

.slider figure img{
    float: left;
    width: 20%;
}

@keyframes slider {
    0%{
        left: 0;
    }

    20%{
        left: 0;
    }

    25%{
        left:-100%
    }
    45%{
        left:-100%;
    }

    50%{
        left:-200%
    }

    70%{
        left:-200%
    }

    95%{
        left: -300%
    }

    100%{
        left: -400%
    }
}

.why-choose-us {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 2.5rem 1.25rem;
    transition: all 0.7s linear;
}

.why-choose-us .numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.875rem;
}

.number-item h2 {
    font-size: 2rem;
    margin: 0;
}

.number-item p {
    font-size: 1rem;
}

.campus-tour {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.campus-tour h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9375rem;
}

.gallery img {
    width: 15.625rem;
    height: 12.5rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.gallery img:hover{
    width: 18.75rem;
    height:15.625rem;
    border-radius: 6.25rem;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    width: 94%;
    padding: 0.625rem;
    box-shadow: 0 0 0.1875rem rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.gallery-room {
    flex-basis: 32.7%;
    margin-bottom: 0.375rem;
    padding: 0.2rem;
    opacity: 0.7;
    cursor: pointer;
}

.gallery-room:hover {
    opacity: 1;
}

.gallery-room img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox {
    position: fixed;
    display: none;
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    overflow: auto;
    top: 0;
    left: 0;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    width: 65%;
    height: 58%;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    border: 6px solid white;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lightbox-content img:hover {
    transform: scale(1.05);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5625rem;
    top: 45%;
    cursor: pointer;
    font-size: 1.5rem; /* For better visibility */
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}


button{
    font-size: 0.9375rem;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    padding: 0.7em 2em;
    border: 0.1875rem solid #4CAF50;
    border-radius: 0.125rem;
    margin-top: 1.25rem;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16)
      0 3px 6px rgba(0, 0, 0, 0.1);
    color: #4CAF50;
    text-decoration: none;
    transition: 0.3s ease all;
    z-index: 1;  
}

button:before {
transition: 0.5s all ease;
position: absolute;
top: 0;
left: 50%;
right: 50%;
bottom: 0;
opacity: 0;
content: '';
background-color: #4CAF50;
z-index: -1;
}

button:hover, button:focus {
color: white;
}

button:hover:before, button:focus:before {
transition: 0.5s all ease;
left: 0;
right: 0;
opacity: 1;
}

button:active {
transform: scale(0.9);
}

.teacher-browser {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.teacher-browser h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.teacher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.teacher img {
    width: 12.5rem;
    height: 12.5rem;
    object-fit: cover;
    border: 0.25rem solid #009e3d
}

.teacher-browser img:hover{
    width: 13.75rem;
    height: 13.75rem;
    box-shadow: 0.3rem 0.3rem 1rem black;
    border: 0.25rem solid #00ff22;
}

.convenience {
    background-color: #23ff78;
    padding: 2.5rem 1.25rem;
}

.convenience h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.875rem;
}

.feature-item i{
    color:#00ca4e;
}

.feature-item {
    max-width: 18.75rem;
    text-align: center;
    padding: 1.25rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    color: #00ca4e;
}

.feature-item p {
    font-size: 0.875rem;
    color: #555;
}

.features .feature-item:hover{
    box-shadow: 0.4rem 0.4rem 1rem black;
}
  
.container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background-color: #23ff78;
  }

.container i{
    color:#00ca4e;
}

  i{
    font-size: 1.875rem;
    color: #00ca4e;
  }
  
  .card {
    background-color: #fff;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0.25rem 0.5rem rgba(0,0,0,0.1);
    width: 18.75rem; 
    margin-left: 2.5rem;
    margin-right: 2.5rem;
  }
  
  .card img {
    width: 6.25rem;
    height: 6.25rem;
  }
  
  .card h3 {
    margin-top: 1rem;
    color:#00ca4e;
  }
  
  .card p {
    margin-top: 1rem;
  }

  .cards .card:hover{
    box-shadow: 0.4rem 0.4rem 1rem black;
  }

  .container .card:hover{
    box-shadow: 0.4rem 0.4rem 1rem black;
  }

  .social-icons {
    display: flex;
    justify-content:center;
    margin-top: 1.875rem;
    margin-bottom: 1.875rem;
  }

  .social-icons a{
    margin-left:0.625rem;
    margin-right:0.625rem;
  }

  .social-icons i:hover{
    opacity: 0.5;
  }

  .social i:hover{
    opacity: 0.5;
  }

  .container-contact {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background-color: #ffffff;
  }

  i{
    font-size: 1.875rem;
    color: #ffffff;
  }

  .welcome-section i{
    color: #00ca4e;
  }
  
 .container-contact .card {
    background-color: #00ca4e;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0.25rem 0.5rem rgba(0,0,0,0.1);
    width: 18.75rem; 
    margin-left: 2.5rem;
    margin-right: 2.5rem;
  }
.container-contact .card:hover{
    box-shadow: 0.4rem 0.4rem 1rem #02ff63;   
}

.container-contact i:hover{
    color: black;  
}

  .container-contact h3 {
    color: white;
  }

  .container-footer{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.9375rem;
  }

  .container-footer h3{
    color: #00dd55;
  }

  .container-logo img{
    height: 4.685rem;
    width: 4.685rem;
  }

  .social a{
    margin: 0.625rem;
  }

  .updates-main p{
    text-align: left;
  }
.container-footer i{
    color: #00ca4e;
}



.typewriter{
    display: flex;
    justify-content: center;
}
.typewriter h2{
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.0625rem solid;
    animation: typing 3s steps(21) forwards, blink 1s step-end infinite;
}

@keyframes typing {
    from{
        width: 0;
    }

    to{
        width: 100%;
    }
}

@keyframes blink {
    50%{
        border-color: transparent;
    }
}

@media(max-width:767px){
    .gallery-container{
        width: 100%;
    }
    .gallery-room{
        flex-basis: 49.80%;
        margin-bottom: 0.1875rem;
    }
    .lightbox-content{
        width: 80%;
        height: 60%;
        margin: 15% auto;
    }
}

@media(max-width:480px){
    .gallery-room{
        flex-basis: 100%;
        margin-bottom: 0.0625rem;
    }
    .lightbox-content{
        width: 90%;
        margin: 1.25rem auto;
    }
}