*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;

}


/* header style */
     .home-page .header{
        min-height: 100vh;
        width: 100%;
        background-position: center;
        background-size: cover;
        position: relative;
        animation: headerSlide 12s infinite;
        }

        .nav-btn{
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: rgba(255, 255, 255, 0.547);
            border: none;
            padding: 12px 16px;
            cursor: pointer;
            z-index: 10;
            border-radius: 6px;
            font-size: 18px;
            transition: 0.3s;
            }
            
            .nav-btn:hover{
            background-color: rgba(0, 0, 0, 0.8);
            }
            
            .prev-btn{
            left: 15px;
            }
            
            .next-btn{
            right: 15px;
            }

        @keyframes headerSlide {
            0%{
            background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)), url(./images/frontpage.jpeg);
            }
            50%{
            background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)), url(./images/librarystaff1.JPG);
            }
            100%{
            background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)), url(./images/librarystaff2.JPG);
            }
            150%{
            background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)), url(./images/librarystaff3.JPG);
            }
            }

/* Logo Container */
.logo-container{
    display: flex;
    flex-direction: column; /* puts text below logo */
    align-items: center;
    text-decoration: none;
    margin-right: 30px;
}

/* Logo Image */
.logo-img{
    width: 50px;      /* adjust as needed */
    height: auto;      /* keeps proportions */
    object-fit: contain;
    display: block;
}

/* Logo Text */
nav a{
    display: block;
    margin-top: 5px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    text-decoration: none;
}


/* navbar styles*/

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

nav img{
    width: 50px;
    height: 50px;
    margin-top: 30px;


}

.nav-links{
    flex: 1;
    text-align: right;

}


.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;

}


.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;

}

.header nav .nav-links ul li ul{
    position: absolute;
    left: 0;
     top: 40px; 
    width: 200px;
    background:rgba(210, 210, 205, 0.275);
    /* border-radius: 30px; */
     display: none; 

}

.header nav .nav-links ul li ul li{
    width: 80%;
    border-top: 1px solid rgba(0, 0, 0, .1);


}



.header nav .nav-links ul li ul li ul{
    left: 200px;
    top: 0;

}


.header nav .nav-links ul li ul li ul li ul{
    left: 200px;
    top: 0;
}




.header nav .nav-links ul li:focus-within> ul,
.header nav .nav-links ul li:hover>  ul{
    display: initial;
}



.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s; 

}


.nav-links ul li:hover::after{
    width: 100%;
}



/* text box styles */

.text-box h1 {
    animation: fadeInUp 1.5s ease-out;
}

.text-box p {
    animation: fadeInUp 2s ease-out;
}

.text-box .hero-btn {
    animation: fadeInUp 2.5s ease-out;
    transition: 0.4s;
}

.text-box .hero-btn:hover {
    transform: scale(1.08);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    margin-top: 50px;
}


.text-box h1{
    font-size: 40px;

}

.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}

.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: green;
    position: relative;
    cursor: pointer;
}


/* hero btn styles */

.hero-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;

}

nav.fa{
    display: none;

}








/* media query starts here */


@media(max-width: 700px){

    .text-box h1{
        font-size: 15px;
    }

    .nav-links ul li{
        display: block;

    }

    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;

    }

    .nav-links ul{
        padding: 10px;
    }


    .nav-links{
        position: absolute;
        background: #006633;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;


    }



}




/* resources  session*/


.resources{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}



h1{
    font-size: 30px;
    font-weight: 600;

}


p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10PX;
}


.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;

}


.course-clo{
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}



h3{
    text-align:center ;
    font-weight: 600;
    margin: 10px 0;

}


.course-clo:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0,0 ,0.2 );
}


@media(max-width:700px){
    .row{
        flex-direction: column;

    }

}

.VisionandMission-col p{
    padding: 0;
    font-size: 20px;

}


.VisionandMission-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: center;

}

.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}


.VisionandMission{
    width: 80%;
    max-width: 1200px;
    margin: auto;
    margin-top: -70px;
    margin-bottom: -70px;
    text-align: center;
    padding: 100px 20px;
    }

/* 
.VisionandMission-col{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background-color: grey;

} */


.VisionandMission-col{
flex-basis: 48%;
background: #fff3f3;
border-radius: 10px;
margin-bottom: 5%;
padding: 25px 20px;
box-sizing: border-box;
transition: 0.5s;
text-align: center;
font-size: 30px;
}

.VisionandMission .row{
    display: flex;
    justify-content: space-around;
    gap: 30px;
    align-items: stretch;
    }
    
    @media(max-width:700px){
    .VisionandMission{
    width: 95%;
    padding: 50px 15px;
    }}

/* library department*/

.welcome{
    padding: 15px 40px;
    font-size: 20px;
    line-height: 30px;
    text-align: justify;
}

.dou-library{
    width: 80%;
    margin: auto;
    margin-top: 0px;
    text-align: center;
    padding-top: 0px;

}


.depament-col{
    flex-basis: 32px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    
    
   
    
}

.depament-col img{
    width: 270px;
    display: block;
    border-radius: 10px;



}

.layer{
    background: transparent;
    border-radius: 10px;
    height: 100%;
    width:270px;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5;
    

}

.layer:hover{
    background:rgba(226, 0, 0, 0.4) ;

}


.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;


}


.Facilities-col p{
    padding: 0;

}


.Facilities-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;

}

.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}


.Facilities{
    width:80% ;
    margin: auto;
    text-align: center;
    padding-top: 100px;

}

.Facilities-col{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;

}

.Facilities-col img{
    width: 100%;
    border-radius: 10px;
    

}

/* Testimonials Slider */
.testimonials {
    width: 80%;
    margin: auto;
    margin-top: -200px;
    text-align: center;
    padding: 80px 0;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    background: #f5f5f5;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: fade 0.8s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slide p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-style: italic;
}

.testimonial-slide h3 {
    margin-top: 20px;
    color: #006633;
}

.slider-dots {
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background: #006633;
}

@keyframes fade {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

@media (max-width: 768px) {
    .testimonial-slide {
        padding: 25px;
    }

    .testimonial-slide p {
        font-size: 16px;
    }
}

/* feedback */

.feedback{
    width:80%;
    margin:50px auto;
    text-align:center;
    margin-top: -100px;
}

.feedback-form{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:20px;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:5px;
    font-size:16px;
    box-sizing:border-box;
}

.feedback-form button{
    align-self:center;
    cursor:pointer;
}

.submit-container{
    text-align:center;
    margin-top:20px;
    
}

.submit-btn{
    padding:12px 35px;
    font-size:16px;
    cursor:pointer;
}

.about-text{
    padding: 30px 50px; 
}
.about-text h4{
    font-size: 25px;
}

.about-text p{
    font-size: 20px;
    line-height: 30px;
    text-align: justify;
}


@media(max-width : 700px){


    .testimonial-col img{
        
        margin-left:0px;
        margin-right: 15px;
       
    }

}


/* call to action */

.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),url(./images/dou.jpeg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;


}

.cta h1{
    color: #fff;
    margin-bottom: 40px;
    padding: 0;


}

@media(max-width: 700px){
    .cta h1{
        font-size: 24px;
        
    }
}




/* footer */

.footer{
    width: 100%;
    text-align: center;
    padding: 30px 0;
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;

}

footer{
    background:#180066;
    color:white;
    text-align:center;
    padding:20px;
}

.foot{
    color: white;
}

.about-text h4{
    text-align: center;
}

.about-text p{
    padding: 20px;
}

#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: #006633;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: 0.3s;
}

#backToTop:hover {
    background-color: #f44336;
    transform: scale(1.1);
}












