body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    font-size: 16px; 
    line-height: 1.6; 
    color: #333;
    background-color: #f4f4f4;
    background-image: url('Cover-E-Library 1.jpg');
    background-size: cover;
    background-attachment: fixed;
    padding: 0;
}

/* Header */
.header {
    background: rgba(128, 0, 0, 0.9);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
}

.logo {
    font-size: 1.8rem; 
    font-weight: bold;
    color: white;
}
.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    font-size: 1.1rem; 
    transition: color 0.3s ease;
}

.nav a:hover {
    color: red;
}

/* Search and Login Container */
.search-login-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    margin-left: 2%;
}

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

#searchInput {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 200px;
}

#searchInput:focus {
    outline: none;
    border-color: maroon;
}

.search-icon {
    position: absolute;
    right: 10px;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
}

.search-icon:hover {
    color: red;
}

/* Login Button */
.btn {
    background: maroon;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: darkred;
}

/* Login Container */
.login-container {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 258px;
    border: 1px solid #ccc;
    z-index: 1000;
}

.login-container input {
    width: 90%;
    padding: 0.6rem;
    margin-bottom: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.login-container button {
    width: 100%;
    padding: 0.6rem;
    background: maroon;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.login-container button:hover {
    background: darkred;
}


/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 1rem; 
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.hero h2 {
    font-size: 3rem; 
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem; 
    margin-bottom: 1.5rem;
}

/* Button */
.btn {
    display: inline-block;
    background: grey;
    color: white;
    padding: 1rem 2rem; 
    font-size: 1.2rem; 
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: black;
    color: white;
}

/* Materials Section */
.materials {
    padding: 3rem 1rem;
    background: white;
    text-align: center;
}

.materials h2 {
    font-size: 2.5rem; 
    color: maroon;
    margin-bottom: 2.5rem;
}

.material-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: nowrap;
}

.material-item {
    background: #f4f4f4;
    padding: 2rem; 
    border-radius: 10px;
    border: 1px solid grey;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 320px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.material-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.material-item h3 {
    font-size: 1.8rem; 
    color: maroon; 
    margin-bottom: 0.8rem; 
}
 
.material-item p {
    font-size: 1.1rem;
    color: grey;
    margin-bottom: 1.5rem;
}
 
/* About Section */
.about {
    padding: 4rem 1rem;
    background: grey;
    color: white;
    text-align: center;
}
 
.about h2 {
    font-size: 2rem; 
    margin-bottom: 0 auto;
}

.about p {
    font-size: 1.2rem; 
    line-height: 1; 
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: black;
    color: white;
    text-align: center;
    padding: 1.5rem 0; 
    font-size: 1rem; 
}

/* Highlight Search Results */
.highlight {
    background-color: yellow;
    font-weight: bold;
}