@import url('../font/font.css');
*{
    margin: 0;
    padding: 0;
    font-family: "NotoSansGeorgianRegular";
}


.swiper-container {
    width: 100%;
    height: 400px;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
    background-color: #333;
}
#pdfViewer {
    width: 100%;
    height: 600px;
}


.delete-icon {
    color: red;
    cursor: pointer;
    float: right; /* To place the icon on the right side */
    margin-right: 10px;
}


.book-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.book-modal .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.book-modal.hidden {
    display: none; /* Add this class to hide the modal */
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px;
}



.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    
}

.book-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: solid black 1px;
  
}

.book-card:hover {
    transform: scale(1.05);
}

.book-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.book-info {
    padding: 15px;
    text-align: center;
}

.book-title {
    font-size: 18px;
    margin: 10px 0;
}

.book-author {
    font-size: 14px;
    color: #888;
}
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
    padding-top: 50px;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    text-align: center;
}
.hidden {
    display: none;
}

.modal-book-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

.modal-book-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-book-author, .modal-book-description, .modal-book-status {
    font-size: 16px;
    margin-bottom: 10px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    cursor: pointer;
}

.book-status {
    font-size: 14px;
    margin: 5px 0;
    font-weight: bold;
}

.reserve-button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.reserve-button:hover {
    background-color: #45a049;
}



header{
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
header nav{
    width: 90%;
    height: auto;
    display: flex;
    align-items: center;
    gap: 10%;
}
.logo{
    width: 20%;
    height: auto;
}
.logo li{
    list-style-type: none;
    text-decoration: none;
    margin-left: 25px;
}
.logo_li a{
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 15px;
    list-style-type: none;
    text-decoration: none;
    color: #2d746c;
    gap: 7px;
}
.logo_li a img{
    width: 50px;
    height: 25px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.title{
    width: 60%;
    height: auto;
    display: flex;
    justify-content: space-between;
}
.title li {
    list-style-type: none;
    text-decoration: none;
}
.title li a{
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.02em;
    text-align: left;
    color: #2d746c;
    gap: 3px;
    display: flex;
    align-items: center;
}
.title li a img{
    width: 25px;
    height: 25px;
}
.profile{
    width: 20%;
    height: auto;
}
.profile li{
    list-style-type: none;
    text-decoration: none;
    display: flex;
    justify-content: center;
}
.profile li a{
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.02em;
    text-align: left;
        color: #2d746c;
    gap: 3px;
    display: flex;
    align-items: center;
}
.profile li a img{
    width: 25px;
    height: 25px;
}


/* Burger Button */
/* Add this to ensure burger button appears at the correct place */
.burger-btn {
    display:none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute; /* Ensure it's visible on top */
    top: 20px; /* Position it at the top */
    right: 20px; /* Position it at the right */
    z-index: 10; /* Ensure it stays on top of other elements */
}

.burger-btn .bar {
    width: 100%;
    height: 3px;
    background-color: rgb(76, 76, 76);
    border-radius: 10px;
}


/* Sidebar */
.sidebar {
    position: fixed;
    z-index: 5;
    top: 0;
    left: -300px; /* Start hidden outside the view */
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    padding: 20px;
    flex-direction: column;
    justify-content: flex-start;
    display: flex;
}

.sidebar.active {
    left: 0; /* Move the sidebar into view when active */
    display: flex;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    text-decoration: none;
    font-size: 18px;
    color: rgb(76, 76, 76);
    display: flex;
    align-items: center;
}

.sidebar ul li a img {
    margin-right: 10px;
    width: 25px;
    height: 25px;
}

/* Show Sidebar */
.sidebar.active {
    left: 0;
}



/* slider */
.carousel_slider{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    overflow: hidden;
    margin-top: 5%;
}

.carousel {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.book-card{
    min-width: 33%;
    margin: 0; 
    background-color: #ffffff;
    color: rgb(76, 76, 76);
    text-align: center;
    padding: 20px;
    font-size: 24px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}


.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
/* .carus{
    width: 30%;
    height: auto;
}
.carus_div{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}
.carus_img{
    width: 30%;
    height: auto;
    position: absolute;
}
.carus_img img{
    margin-left: 25px;
    margin-top: -70px;
    width: 124px;
    height: 160px;
}
.carus_title{
    display: flex;
    flex-direction: column;
    width: 80%;
    text-align: center;
    height: 125px;
    background-color: #926052;
    color: white;
} */


/* books_page */

.books-section{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.books-container{
    width: 90%;
    height: auto;
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 30px;
    margin-top: 7%;
}
.book-item{
    width: 100%;
    height: auto;
    gap: 10px;
    cursor: pointer;
}
.book-item img{
    width: 100%;
    height: 280px;
    object-fit: cover; 
}
.book-item h4{
    font-family: "NotoSansGeorgianRegular";
    letter-spacing: .17em;
    font-size: 14px;
    color: #6d6e71;
    font-weight: 700;
 
}
.book-item h5{
    font-family: "NotoSansGeorgianRegular";
    letter-spacing: 0.5px;
    font-size: 16px;
    color: black;
    font-weight: 700;

}


/* search_page */

.search_page{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
}
.search-section{
    width: 90%;
    height: auto;

}
.search-bar{
    width: 40%;
    height: auto;
}
.search-bar input{
    width: 100%;
    height: 40px;
    padding-left: 15px;
    margin-left: 65%;
    margin-top: 5%;

}

/* book page */


.book{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
}
.book_div{
    width:70%;
    height: auto;
    display: flex;
    justify-content: center;
    margin-top: 7%;
    gap: 20px;
}
.book_div_left{
    width: 30%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.book_div_left img{
    width: 100%;
    height: auto;
}
.book_div_left button{
    width: 100%;
    cursor: pointer;
    height: 50px;
    background-color: #5985E1;
    font-size: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border: none;
}
.book_div_left button:hover{
    background-color: white;
    color: #5985E1;
}
.book_div_right{
    width: 70%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.book_div_right span{
    letter-spacing: .15em;
    font-family: "NotoSansGeorgianRegular";
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
}
.book_div_right button{
    width: 200px;
    cursor: pointer;
    height: 50px;
    background-color: #cc2d2d;
    font-size: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border: none;
}
.book_div_right h2{
    font-size: 35px;
    line-height: 1.142em;
    font-family: "NotoSansGeorgianRegular";
    font-weight: 500;
    letter-spacing: .01em;
    color: rgb(76, 76, 76);;
}
.book_div_right h5{
    font-size: 16px;
    line-height: 1.142em;
    font-family: "NotoSansGeorgianRegular";
    font-weight: 500;
    letter-spacing: .01em;
    color: black;
}
.book_div_right p{
    font-weight: 400;
    line-height: 28px;
    color: #555;
    font-size: 17px;
    width: 90%;
}



/* profile page */


.profile_main{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
}
.profile_div{
    width: 90%;
    height: auto;
    display: flex;
    justify-content: space-between;
    margin-top: 5%;
}
.profile_div_left{
    width: 30%;
    height: auto;
    display: flex;
    flex-direction: column;
    border-right: solid 1px rgb(76, 76, 76);
    gap: 15px;
}


.profile_div_right h5{
    font-size: 17px;
}
.profile_div_right_main{
    width: 90%;
    height: auto;
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 20px;
    margin-top: 20px;
}
.div_info{
    width: 100%;
    height: auto;
}
.div_info img {
    width: 20px;
    height: 20px;
    position: absolute;
    margin-top: -30px;
    margin-left: 10px;
}
.div_info span{
    position: absolute;
    width: auto;
    height: 20px;
    background-color: #f4f4f4;
    margin-top: -12px;
    margin-left: 20px;
    color: rgb(76, 76, 76);
    font-size: 15px;
    font-family: "NotoSansGeorgianRegular";
}
.div_info input{
    width: 94%;
    height: 40px;
    color: rgb(76, 76, 76);
    background-color: #f4f4f4;
    border: solid rgb(76, 76, 76) 1px;
    padding-left: 30px;
}
.div_info input:focus{
    outline: 1px solid #f4f4f4;
}
.div_bar{
    display: flex;
    flex-direction: column;
    width: 90%;
    height: auto;
    padding: 2px;
    gap: 6px;
}
.div_bar button {
    font-size: 16px;
    display: flex;
    flex-direction: row;
    text-align: center;
    align-items: center;
    color: rgb(76, 76, 76);
    font-family: "NotoSansGeorgianRegular";
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 55px;
    border-radius: 15px;
    transition: background-color 0.3s ease;
    background-color: #f4f4f4;
    padding-left: 5px;
    gap: 5px;
}
.div_bar button.active {
    display: flex;
    flex-direction: row;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 55px;
    border-radius: 15px;
    background-color: hsl(0, 0%, 86%);
    padding-left: 5px;
    gap: 5px;
}



.div_bar button img{
    width: 25px;
    height: 25px;
    margin-left: 7px;
}



.profile_div_right{
    width: 70%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.password_change_div{
    width: 90%;
    height: auto;
    grid-gap: 20px;
    margin-top: 20px;
}
.password-change-form{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.updatePasswordForm{
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.updatePasswordForm button{
    width: 53%;
    height: 40px;
    text-align: center;
    background-color: #5985E1;
    color: white;
    cursor: pointer;
    border: solid #5985E1 1px;
    font-weight: 700;
}
.updatePasswordForm button:hover{
    background-color: white;
    color: #5985E1;
}
.updatePasswordForm input{
    padding-left: 20px;
    width: 50%;
    height: 40px;
    background-color:#f4f4f4 ;
    font-weight: 300;
    
}
.updatePasswordForm input:focus{
    outline: 1px solid #f4f4f4;
}

















main{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}




.collaborate_div {
    width: 100%;
    height: auto;
    margin-top: 8%;
    color: rgb(76, 76, 76);
    display: flex;
    justify-content: center;
    text-align: center;
}
.partner_title_div{
    border-left: solid rgb(204, 204, 204) 1px;
}

.collaborate_div_logo {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.collaborate_div_logo h2 {
    font-weight: 700;
    font-size: 17px;
}

.collaborate_div_logo div {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

/* Each logo + country block */
.collaborate_div_logo div .partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10%;
}

.collaborate_div_logo div .partner img {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

/* Country name below logo */
.collaborate_div_logo div .partner p {
    margin-top: 5px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

/* Responsive */




.student_section{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 7%;
    
}
.student_section h1{
    font-size:30px;
    font-weight: bold;
    color: rgb(48, 48, 75);
    margin: auto;
}
.student_div{
    width: 90%;
    height: auto;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
    margin-top: 3%;
}
.student_title{
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background-color: #c9c9c9;
    color: black;
    gap: 20px;
    box-shadow: 0px 15px 30px 5px rgba(0, 0, 0, 0.06);
    border-radius: 5px;
}
.student_title p{
    width: 100%;
    height: auto;
    font-size: 17px;
}
.student_title_div{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.student_title_div img{
    width: 60px;
    height: 60px;
    border-radius: 100%;
}
.student_title_div_about{
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.student_title_div_about h3{
    font-weight: 700;
    font-size: 17px;
}
.student_title_div_about span{
    font-size: 17px;
}
.about_section{
    width: 100%;
    height: auto;
    margin-top: 33%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about_div{
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: center;
}
.about_div_title{
    width: 250px;
    height: 200px;
    color: #2d746c;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 5px;
    gap: 25px;
}
.about_div_title h3{
    font-size: 19px;
    line-height: 25px;
    font-weight: 700;
}
.about_div_title p{
    font-size: 17px;
    line-height: 25px;
    font-weight: 300;
    color: black;
    margin-top: -20px;
}
.about_div_title img{
    width: 40px;
    height: 40px;
}






.img-slider{
    position: relative;
    width: 80%;
    height: auto;
    margin: 10px;
    margin-top: 4%;

  }
  
  .img-slider .slide{
    z-index: 1;
    position: absolute;
    width: 100%;
    height: auto;
    object-fit: cover;
    clip-path: circle(0% at 0 50%);
    display: block;
    text-align: center;
    justify-content: center;
    align-items: center;
    
  }
  .slide button{
    width: 120px;
    cursor: pointer;
    height: 40px;
    border-radius: 5px;
    background-color: #2d746c;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border: none;
    margin-top: 15px;
  }
  .slide button:hover{
    color: white;
    background-color: #25282a;
    border: solid #2d746c 1px;
   
  }
  .slide img{
    width: 100%;
    height: 350px;
  }
  .img-slider .slide.active{
    clip-path: circle(150% at 0 50%);
    transition: 2s;
    transition-property: clip-path;
  }
  
  .img-slider .slide img{
    z-index: 1;
    width: 100%;
    border-radius: 5px;
  }
  
  .img-slider .slide .info{
    position: absolute;
    top: 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
  }
  
  .img-slider .slide .info h2{
    color: #fff;
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    width:37%;
 
  }
  
  .img-slider .slide .info p{
    color: #fff;
    font-size: 20px;
    width: 60%;
    padding: 10px;
    border-radius: 4px;
  }
  
  .img-slider .navigation{
    z-index: 2;
    position: absolute;
    display: flex;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .img-slider .navigation .n_btn{
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    margin: 10px;
    border-radius: 50%;
    cursor: pointer;
  }
  
  .img-slider .navigation .n_btn.active{
    background: #2696E9;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  }
/* Show burger button on smaller screens */















.content1{
    position: relative;
    margin: 130px auto;
    text-align: center;
    padding: 0 20px;
  }
  .content1 .text{
    font-size: 2.5rem;
    font-weight: 600;
    color: #202020;
  }
  .content1 .p{
    font-size: 2.1875rem;
    font-weight: 600;
    color: #202020;
  }
 
/* footer */

footer {
    width: 100%;
    background-color: #f1f1f1; /* Soft background */
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

footer .main-content {
    width: 95%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: #333;
}

footer .main-content img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

footer p {
    font-size: 12px;
    line-height: 1.6;
    width: 50%;
    color: #444;
    margin: 0;
}

footer h6 {
    font-size: 12px;
    line-height: 1.6;
    font-weight: 600;
    color: #222;
    margin: 0;
}

footer h6 span {
    font-weight: 500;
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #555;
}

/* Tablet (≤768px) */
@media (max-width: 768px) {
    footer .main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    footer p,
    footer h6 {
        width: 100%;
        font-size: 12px;
    }

    footer .main-content img {
        width: 180px;
    }
}

/* Mobile (≤500px) */
@media (max-width: 500px) {

    footer .main-content {
        gap: 20px;
    }

    footer .main-content img {
        width: 150px;
    }

    footer p,
    footer h6 {
        font-size: 11px;
        line-height: 1.5;
        width: 95%;
    }

    footer h6 span {
        font-size: 10px;
    }
}



.about_full_text {
    margin-top: 40px;
    font-size: 1rem;
    line-height: 1.6;
}
.about_full_text h2 {
    margin-top: 30px;
}
.about_full_text ul {
    padding-left: 20px;
}




/* news section */


.news_section{
    width: 100%;
    display: flex;
    height: auto;
    justify-content: center;
}
.news_section_div{
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 7%;
}
.news-item{
    width: 90%;
    height: auto;
}
.news-item a{
    width: 100%;
    display: flex;
    flex-direction: row;
    list-style-type: none;
    text-decoration: none;
    color: rgb(76, 76, 76);
    gap: 20px;
    justify-content: center;
}
.news_item_image{
    width: 40%;
    height: auto;
}
.news_item_image img{
    width: 100%;
    height: 220px;
}
.news_item_title{
    width: 60%;
    height: auto;
}
.news_item_title p{
    white-space: normal;
    word-wrap: break-word;
    margin-top: 5px;
}
.news_item_title h2{
    font-size: 18px;
}
/* news details */
.news_details{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;

}
.category_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    margin-bottom: 30px;
    background-color: #f5f5f5;
    border-radius: 10px;
    justify-content: center;
}

.category_filters a {
    text-decoration: none;
    color: #f9a948;
    background-color: #e0e0e0;
    padding: 10px 16px;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}



.category_filters a.active {
    background-color: #2d746c;
    color: #f9a948;
    font-weight: bold;
}
.news_details_div{
    width: 90%;
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 7%;
    text-align: left;

}
.news_created_at {

    color: gray;
    font-size: 14px;
    
}
.news_details_div img{
    width:60%;
    height: 300px;
}
.news_details_div h1{
    width: 100%;
    max-width: 60%;
    font-size: 23px;
    white-space: normal;
    word-wrap: break-word;
    color: rgb(76, 76, 76);
    margin-top: -5px;
}
.news_details_div p {
    width: 100%;
    max-width: 60%;
    font-size: 19px;
    white-space: normal;
    word-wrap: break-word;
    color: rgb(76, 76, 76);
    margin-top: 20px;
   
}



.admin_news_section {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.admin_news_section h1, 
.admin_news_section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.admin_news_section form {
    margin-bottom: 30px;
}

.admin_news_section input[type="text"],
.admin_news_section textarea,
.admin_news_section input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.admin_news_section textarea {
    min-height: 120px;
    resize: vertical;
}

.admin_news_section button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin_news_section button:hover {
    background-color: #218838;
}

.admin_news_section a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #dc3545;
}

.admin_news_list {
    margin-top: 20px;
}

.admin_news_item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f9f9f9;
    position: relative;
}

.admin_news_item h3 {
    margin-top: 0;
    color: #333;
}

.admin_news_item p {
    color: #555;
    margin: 10px 0;
    white-space: normal;
    word-wrap: break-word;
}

.admin_news_item img {
    display: block;
    margin-top: 10px;
    max-width: 100%;
    border-radius: 5px;
}

.admin_news_item form {
    display: inline-block;
    margin-top: 10px;
}

.admin_news_item form button {
    background-color: #007bff;
    margin-right: 5px;
}

.admin_news_item form button:hover {
    background-color: #0056b3;
}

.admin_news_item form:last-child button {
    background-color: #dc3545;
}

.admin_news_item form:last-child button:hover {
    background-color: #c82333;
}
.rules-container {
    margin: 40px auto;
    padding: 20px;
    max-width: 900px;
    background-color: #f9f9f9;
    border-left: 6px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rules-container h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.rules-content {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rules-content ol {
    padding-left: 20px;
}

.rules-content li {
    margin-bottom: 12px;
}


@media (max-width: 600px) {
    .rules-container {
        padding: 15px;
    }

    .rules-content {
        max-height: 250px;
        font-size: 0.9rem;
    }
}






@media screen and (max-width: 1400px) {
    .title li a {
        text-decoration: none;
        font-size: 13px;
       
    }
    .profile li a {
        text-decoration: none;
        font-size: 13px;
    }
}
@media screen and (max-width: 1300px) {
    .title li a img {
        width: 20px;
        height: 20px;
    }
    .profile li a img {
        width: 20px;
        height: 20px;
    }
}
@media screen and (max-width: 1200px) {
    .title li a img {
        width: 20px;
        height: 20px;
    }
    .profile {
        width: 15%;
        height: auto;
    }
    .title {
        width: 70%;
    }
    .logo {
        width: 15%;
        height: auto;
    }
    .books-container {
        grid-template-columns: auto auto auto;
    }
    .book_div_right h2 {
        font-size: 32px;
    }
    .book_div_right span {
        font-size: 12px;
    }
    .book_div_right p {
        font-size: 15px;
    }
    .book_div_right button {
        width: 180px;
        height: 40px;
        font-size: 15px;
    }
    .book_div_left button {
        height: 40px;
        font-size: 17px;
    }
    .about_section {
        margin-top: 37%;
    }
}
@media screen and (max-width: 1000px) {
    .profile li a {
        text-decoration: none;
        font-size: 11px;
    }
    .title li a {
        text-decoration: none;
        font-size: 11px;
    }
    
    .book_div_right h2 {
        font-size: 28px;
    }
    .book_div_right p {
        font-size: 14px;
    }
    .book_div_left button {
        height: 35px;
        font-size: 16px;
    }
    .book_div_right button {
        width: 170px;
        height: 35px;
        font-size: 14px;
    }
    
    .student_div {
        width: 90%;
        grid-template-columns: auto auto;
        gap: 20px;
    }
    .about_div_title {
        width: 200px;
        gap: 25px;
    }
    .about_div {
        width: 90%;
        gap: 25px;
    }
    .img-slider .slide .info h2{
        font-size: 20px;
    }
   .about_section {
        margin-top: 40%;
    }
    .about_div_title h3 {
        font-size: 17px;
    }
    .about_div_title p {
        font-size: 14px;
    }
    .news-item{
    width: 100%;
    height: auto;
}
}
@media screen and (max-width: 900px) {
    .burger-btn {
        display: flex; /* Make burger button visible on small screens */
    }

    /* Hide the title and profile nav items when burger is visible */
    .title,
    .profile {
        display: none;
    }
    .books-container {
        grid-template-columns: auto auto;
    }
    .book-item img {
        height: 240px;
    }
    .book-item h5 {
        font-size: 15px;
    }
    .book-item h4 {
        font-size: 13px;
    }
    .profile_div{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: none;
    }
    .profile_div_left{
        width: 90%;
        border: none;
    }
    .profile_div_right{
        width: 90%;
        margin-top: 5%;
    }
    .book-card{
        min-width: 42%;
    }
    .img_div img{
        height: 155px;
    }
    .carousel {
        height: 300px;
    }
    .book-info {
        padding: 0;
        text-align: center;
    }
    .book-title {
        font-size: 16px;
        margin: 10px 0;
    }
    .book-status {
        font-size: 13px;
        margin: 5px 0;
        font-weight: bold;
    }
    .book-author {
        font-size: 13px;
        color: #888;
    }
    .book_div {
        width: 90%;
    }
    .book_div_right p {
        line-height: 22px;
        font-size: 14px;
    }
    .book_div_right button {
        width: 150px;
        height: 35px;
        font-size: 13px;
    }
    .book_div_right h5 {
        font-size: 14px;
    }
      
      .main-content .box{
        margin: 5px 0;
      }
      .progress_bar_div {
        display: flex;
        flex-direction: column;
      }
      
    .progress_bar_div a {
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    .step-content {
        margin-left: 0px;
    }
    .quiz_div {
        margin-left: 0px;
    }
    .news_item_image {
        width: 50%;
        height: auto;
    }
    .news_item_title {
        width: 50%;
        height: auto;
    }
    .news_item_title h2 {
        font-size: 15px;
    }
    .news_item_title p {
        font-size: 14px;
    }
      .slide img{
        height: 300px;
      }
      .img-slider .slide .info {
        top: 60px;
      }
      .img-slider .slide .info h2 {
        font-size: 18px;
    }
   
    .news_details_div{
        width: 100%;
    }
    .news_details_div h1 {
        font-size: 20px;
    }
    .news_details_div p {
        font-size: 16px;
    }
    
}
@media screen and (max-width: 750px) {
    .book_div_right h2 {
        font-size: 26px;
    }
    .book_div_right p {
        font-size: 13px;
    }
    .book_div_right h5 {
        font-size: 14px;
    }
    .book_div_right button {
        width: 150px;
        height: 35px;
        font-size: 13px;
    }
    .book_div_right span {
        font-size: 11px;
    }
    .book_div {
        width: 95%;
    }
    .about_div_title {
        width: 150px;
        gap: 20px;
    }
    .about_div_title h3 {
        font-size: 15px;
        line-height: 25px;
        font-weight: 700;
    }
    .about_div_title p {
        font-size: 13px;
        line-height: 20px;
        margin-top: -15px;
    }
    .student_div {
        width: 83%;
        grid-template-columns: auto;
        gap: 20px;
    }
    .student_title {
        width: 92%;
    }
    .img-slider {
        width: 80%;
        height: 300px;
    }
    .student_section {
        margin-top: 10%;
    }
   
    .about_section {
        margin-top: -5%;
    }
        .about_div_title {
        width: 180px;
        gap: 20px;
    }
    .about_div_title h3 {
        font-size: 15px;
    }
    .about_div_title p {
        font-size: 13px;
    }
    .about_div_title img {
        width: 35px;
        height: 35px;
    }



    .about_div_title {
        width: 200px;
        gap: 10px;
    }
    .about_div_title img {
        width: 30px;
        height: 30px;
    }
    .about_div_title h3 {
        font-size: 13px;
    }
    .about_div_title p {
        font-size: 11px;
    }
    .news_item_image {
        width: 40%;
        height: auto;
    }
    .news_item_image img{
        height: 160px;
    }
    .news_item_title {
        width: 60%;
        height: auto;
    }
    .news_item_title h2 {
        font-size: 13px;
    }
    .news_item_title p {
        font-size: 12px;
    }
    .news_details_div img {
        width: 60%;
        height: 220px;
    }
    .collaborate_div_logo div .partner {
        width: 18%;
    }

    .collaborate_div_logo div .partner p {
        font-size: 11px;
    }

    .collaborate_div_logo h2 {
        font-size: 14px;
    }
   
}
@media screen and (max-width: 600px){
    .book_div_right h2 {
        font-size: 23px;
    }
    .book_div_right p {
        font-size: 12px;
    }
    .book_div_left button {
        height: 35px;
        font-size: 14px;
    }
    .book_div_right button {
        width: 130px;
        height: 30px;
        font-size: 13px;
    }
    .book_div_right span {
        font-size: 10px;
    }
    .book_div_right h5 {
        font-size: 12px;
    }
    .category_filters a {
        font-size: 13px;
        padding: 8px 12px;
    }
    .category_filters{
        width: 100%;
        
    }
    .slide img {
        height: 270px;
    }
    .img-slider .slide .info h2{
        font-size: 16px;
    }
    .img-slider .slide .info {
        top: 50px;
    }
    .slide button {
        margin-top: 5px;
    }
    .about_section {
        margin-top: -10%;
    }
    .news_details_div img {
        width: 60%;
        height: 165px;
    }
    .news_details_div h1 {
        font-size: 18px;
    }
    .news_details_div p {
        font-size: 14px;
    }
    .news_created_at {
        color: gray;
        font-size: 11px;
    }
    .updatePasswordForm input{
        width: 80%;
    }
}
@media screen and (max-width: 500px) {
    .book_div_right p {
        font-weight: 400;
        line-height: 15px;
        color: #555;
        font-size: 12px;
        width: 90%;
    }
    .book_div_right h2 {
        font-size: 22px;
    }

    .books-container {
        grid-template-columns: auto;
    }
    .book_div_right span {
        font-size: 9px;
    }
    .book_div_right {
        gap: 10px;
    }
    .book_div_left button {
        height: 30px;
        font-size: 13px;
    }
    .news_item_title {
        width: 60%;
        height: auto;
    }
    .news_item_image {
        width: 40%;
        height: auto;
    }
    .news_item_title p {
        font-size: 11px;
    }
    .news_item_title h2 {
        font-size: 13px;
    }
    .logo li{
        margin-left: 50px;
    }
  .slide img {
        height: 160px;
    }
    .img-slider .slide .info h2{
        font-size: 10px;
        width: 55%;
    }
    .img-slider .slide .info {
        top:27px;
    }
    .img-slider .slide .info p {
        font-size: 13px;
    }
    .slide button {
        width: 90px;
        height: 25px;
        border-radius: 5px;
        font-size: 10px;
        margin-top: 0px;
    }
    .about_section {
        margin-top: -25%;
    }
    .about_div{
        width: 97%;
        gap: 5px;
    }
        .about_div_title p {
        font-size: 8px;
    }
    .about_div_title h3 {
        font-size: 10px;
    }
    .img-slider {
        margin-top: 10%;
    }
    


    .news_item_image img {
        height: 120px;
    }
        .news_item_title h2 {
        font-size: 10px;
    }
        .news_item_title p {
        font-size: 8px;
    }
    .category_filters a {
        font-size: 11px;
        padding: 5px 8px;
    }
    .news_details_div h1 {
        max-width: 70%;
        font-size: 14px;
    }
    .news_details_div p {
        max-width: 70%;
        font-size: 11px;
    }
    .news_details_div img {
        width: 70%;
        height: 165px;
    }
    .collaborate_div_logo {
        flex-direction: row;
        gap: 10px;
    }

    .collaborate_div_logo div {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        padding-left: 5px;
    }

    

    .collaborate_div_logo div .partner img {
        height: 50px;
    }

    .collaborate_div_logo div .partner p {
        margin-top: 0;
        font-size: 9px;
    }
    .collaborate_div_logo h2 {
        font-size: 12px;
    }
}







