/* General */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { background-color: #f5f5f5; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
h2 { text-align: center; margin-bottom: 20px; }

/* Navbar */
.navbar { background: #1a237e; position: sticky; top: 0; z-index: 100; padding: 10px 0; }
.navbar ul { display: flex; justify-content: center; list-style: none; }
.navbar li { padding: 15px; }
.navbar a { color: white; text-decoration: none; padding: 15px 20px; }
.navbar a:hover, .navbar a.active { background: #303f9f; }

/* Hero Section */
.hero { height: 100vh; background: rgba(0, 0, 0, 0.5) center/cover; display: flex; align-items: center; justify-content: center; color: white; }
.hero-content h1 { font-size: 4rem; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); }

/* Search Bar */
.search-input { width: 100%; padding: 10px; margin: 10px 0; }

/* Hostel List */
.hostel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.hostel-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.hostel-card:hover { transform: scale(1.05); }
.hostel-name { font-size: 1.5rem; color: #1a237e; }

/* Review Form */
form { background: white; padding: 20px; margin: auto; max-width: 500px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
label, textarea, input, button { width: 100%; display: block; margin-top: 10px; }
button { background: #1a237e; color: white; padding: 10px; border: none; }



/* Form Styling */
#hostelForm {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#hostelForm input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#hostelForm button {
    background: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

#hostelForm button:hover {
    background: #218838;
}

/* Search Bar */
#hostelSearch {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Hostel List */
#hostelList {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Hostel Card */
.hostel-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
}

.hostel-card h3 {
    color: #333;
    margin-bottom: 5px;
}

.hostel-card p {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

/* Review List */
.review-list {
    list-style: none;
    padding: 0;
}

.review-list li {
    font-size: 13px;
    color: #666;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 5px;
    margin-top: 5px;
}
