/* Home.css - Styling for Library Management System Homepage */

/* Reset */

{ margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }


body { background: #f5f5f5; color: #333; }

/* Header */ header { width: 100%; background: #2a4d69; color: #fff; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

header h1 { font-size: 26px; font-weight: 600; }

nav a { margin-left: 20px; color: #fff; text-decoration: none; font-size: 16px; transition: 0.3s; }

nav a:hover { opacity: 0.8; }

/* Hero Section */ .hero { width: 100%; height: 380px; background: url('images/library1.jpg') center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 40px; }

.hero h2 { font-size: 40px; background: rgba(0,0,0,0.5); padding: 15px 25px; border-radius: 10px; }

/* Search Bar */ .search-box { max-width: 600px; margin: 40px auto; text-align: center; }

.search-box input { width: 70%; padding: 12px 15px; border: 2px solid #2a4d69; border-radius: 6px; outline: none; font-size: 18px; }

.search-box button { padding: 12px 20px; background: #2a4d69; color: #fff; border: none; border-radius: 6px; margin-left: 5px; cursor: pointer; font-size: 16px; transition: 0.3s; }

.search-box button:hover { background: #1e3b52; }

/* Sections */ .section { width: 90%; margin: 40px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }

.card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: 0.3s; text-align: center; }

.card img { width: 100%; border-radius: 10px; max-height: 160px; object-fit: cover; margin-bottom: 10px; }

.card h3 { font-size: 20px; margin-bottom: 10px; color: #2a4d69; }

.card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* Footer */ footer { width: 100%; background: #2a4d69; color: #fff; text-align: center; padding: 15px; margin-top: 40px; }