body {
    /* margin-top: 100px; */ /* Adjust based on header height to prevent content overlap */
    font-family: Arial, sans-serif;

 
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 50px; /* Adds 5px margin on the left and right */
    border-left: 1px solid #ddd; /* Light border on the left */
    border-right: 1px solid #ddd; /* Light border on the right */
    padding: 10px; /* Optional: padding to add space inside the main area */
    box-sizing: border-box; /* Ensures borders don’t affect the width */


}

.header_strip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa; /* Adjust background color as needed */
    padding: 5px 5px;
    z-index: 1000; /* Ensure it stays on top of other elements */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for visual separation */
    border-bottom: 3px solid #4CAF50; /* Add this line for border-bottom */
 }

.logo_left {
    flex: 1;
    margin-left: 1%;
}

.logo {
    height: 70px; /* Adjust the height as needed */
    width: 70%;
}




/* Container for login, categories, and others */
.login_right {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between each item */
    text-align: right;
    margin-right:3%;
}

/* Style for dropdown buttons */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #4CAF50; /* Button color */
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    text-align: left;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
   /*  background-color: #f1f1f1; */
    background-color: chocolate;      /* Color on hover */
}

/* Show dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Style for the Log in button */
.login-btn {
    background-color: #333;       /* Button color */
    color: white;
    padding: 10px 16px;
    border: none;                 /* Remove default border */
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;        /* Remove underline for <a> */
    display: inline-block;        /* To maintain button-like shape */
}

/* Hover effect */
.login-btn:hover {
    background-color: chocolate;      /* Color on hover */
}






.title_center {
    flex: 1;
    text-align: left;
    color: chocolate;
    font-size:15px;
}


nav {
    /* margin-top: 100px; */
    text-align: center;
    margin-bottom: 20px;
}

nav button, nav input {
    margin: 5px;
    padding: 10px 20px;
    margin-bottom: 50px;
}

nav input  {
    width: 20%; /* Increased width */
    font-size: 16px; /* Increasing font size */
    border: none; /* Removing the border */
    border-bottom: 2px solid #000; /* Adding an underline */
    outline: none; /* Removing the outline on focus */
}

nav input:focus {
    border-bottom: 2px solid #007BFF; /* Changing underline color on focus */
}


nav button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 20px;
    border-radius: 4px;
    border-style: none;
    cursor: pointer;
}

.active {
    background-color: #4CAF50; /* Change this to the desired active background color */
    color: white;
}

main {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}





.card-container {
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.row {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 2px;
}


.card {
    width: 20%; 
    background-color: #f9f9f9;
    padding: 10px;
    margin: 15px; /* Increased margin for more space between cards */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    display: none; /* Default display is none; shown via JavaScript */
}

.card img {
    width: 100%!important; 
    height: 350px;
    object-fit: cover;
    border: 1px solid #000; /* Light border on the left */
}



.description {
    margin-top: 10px;
    text-align: center;
    font-size:16px;
    color:rgb(95, 94, 94);
}

.date-posted {
    padding: 5px;
    font-size: 10px!important;
    color: rgb(45, 44, 43);
    margin-top: -10px; /* Reduce space above the date */
}


.authors {
    /* display: none; */
    /* margin-top: 10px; */
    text-align: center;
    font-style: italic;
    font-size:14px;
    color:grey;
}




 /* Slider styling */
 .slider {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
    margin-top:80px;

}

.slider-images {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optional navigation buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    user-select: none;
}

.prev { left: 0; }
.next { right: 0; }

 /* Radio button styling */
 .radio-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.radio-buttons input {
    margin-right: 5px;
}

.radio-buttons img {
    width: 50px; /* Thumbnail size */
    height: auto;
    cursor: pointer;
}



/* Radio button styling */
.radio-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.radio-buttons input {
    margin-right: 5px;
}

.radio-buttons img {
    width: 50px; /* Thumbnail size */
    height: auto;
    cursor: pointer;
}


/* Search box styling */
.search-box {
    position: absolute;
    top: 20px; /* Adjust position */
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    border-radius: 25px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 50%; /* Width of the search box */
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent */
    z-index: 10; /* Ensure it appears on top */
    
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px 15px;
    width: 95%;
    border-radius: 25px;
}

.search-box input:hover {
    background-color: #a3e2e9; /* Darker shade on hover */
}

.search-box button {
    background-color: #007bff; /* Button color */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 15px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}



.container_lib {
    width: 100%;
    /* margin: auto; */
    margin-bottom:30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.horizontal-line {
    border-top: 1px solid lightgray; /* Light horizontal line */
    margin: 20px 0; /* Margin above and below the line */
}





