header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding: 15px 5%;
    background: transparent;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
   background-color: #0a2039;
    
}
.logo {
    height: 80px;
    
}
nav a {
    margin: 0 12px;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
    position: relative;
}

nav a:hover,
nav a.active {
    color: #ee1717;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    left: 0;
    bottom: -5px;
    background: #0077ff;
    transition: 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}


.hero {
    background-image: url('/nen.jpg');
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    text-align: center;
        animation: fadeIn 1.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    font-size: 48px;
    text-shadow: 2px 2px 8px black;
    margin-top: 100px;

}

.hero p {
    font-size: 20px;
    margin-top: 10px;
}
.search-box {
    margin-top: 25px;
}

.search-box input {
    padding: 12px;
    width: 300px;
    border-radius: 6px;
    border: none;
}

.search-box button {
    padding: 12px 18px;
    background: #186ac8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    color: #dcdcdc;
}

.nav {
    float: right;
    margin-top: 20px;
}

.nav a {
    margin-left: 25px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.nav a.active,
.nav a:hover {
    text-decoration: underline;
}


.banner {
    background: url("library.jpg") center/cover no-repeat;
    padding: 120px 20px;
    text-align: center;
    color: white;
}

.banner h1 {
    font-size: 48px;
    letter-spacing: 2px;
}

.banner p {
    font-size: 20px;
    margin: 15px 0;
}

.search-box {
    margin-top: 25px;
}

.search-box input {
    padding: 12px;
    width: 300px;
    border-radius: 6px;
    border: none;
}

.about {
    margin: 50px 0;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 15px;
}


.books h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.book-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.book-card {
    background: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.book-card img {
    width: 100%;
    border-radius: 10px;
}


.service-list {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.service-card {
    background: white;
    width: 32%;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    color: #0a2039;
}


