/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: grey;
}

header {
    background-color:  blue;
    color: yellow;
    padding: 7px 0; /* Reduced padding to decrease height */
    text-align: center;
}

.logo img {
    width: 50px; /* Adjusted size to make the logo smaller */
    height: auto;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 10px; /* Reduced margin to make the header more compact */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px; /* Adjust font size for smaller text if needed */
}


/* Layout for Main Content */
.main-content {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

/* Hero Section with Moving Images */
/* Hero Section with Moving Images */
.hero {
    width: 70%; /* Hero takes 70% width */
    position: relative;
    padding: 20px;
}

.carousel {
    width: 100%;
    height: 300px; /* Define the height for the hero section */
    overflow: hidden;
    position: relative;
}

.carousel img {
    width: 100%; /* Make sure the image takes the full width of its container */
    height: 100%; /* Ensures it fills the height without stretching */
    object-fit: cover; /* Maintain aspect ratio and crop if necessary */
    display: none;
}

.carousel img:first-child {
    display: block;
}


/*.enroll-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    display: block;
}

.enroll-btn:hover {
    background-color: #0056b3;
}*/
.enroll-btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 20px;
}

.enroll-btn:hover {
    background-color: #45a049;
}

/* Notices Section */
.notices {
    width: 25%; /* Takes up 25% width */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 10px;
}
/* About Us Page Specific Styles */
.about-us {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.about-us h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.about-us p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-us h3 {
    color: #555;
    margin-top: 20px;
}

.about-us ul {
    padding-left: 20px;
}

.about-us ul li {
    margin-bottom: 10px;
    font-size: 16px;
}
/* Contact Us Page Specific Styles */
.contact-us {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.contact-us h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.contact-us form {
    display: flex;
    flex-direction: column;
}

.contact-us form label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.contact-us form input,
.contact-us form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.contact-us form button {
    background-color: #333;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
}

.contact-us form button:hover {
    background-color: #555;
}
.enrollment-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.enrollment-form h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.enrollment-form form {
    display: flex;
    flex-direction: column;
}

.enrollment-form form label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.enrollment-form form input,
.enrollment-form form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.enrollment-form form button {
    background-color: #333;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
}

.enrollment-form form button:hover {
    background-color: #555;
}
/* Dashboard container styling */
.dashboard-container {
    width: 80%;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Welcome text */
h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 36px;
    margin-bottom: 20px;
}

/* Navigation list styling */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

ul li {
    margin: 15px 0;
}

ul li a {
    text-decoration: none;
    font-size: 18px;
    color: #2980b9;
    padding: 10px 20px;
    border: 2px solid #2980b9;
    border-radius: 5px;
    transition: all 0.3s ease;
}

ul li a:hover {
    background-color: #2980b9;
    color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dashboard-container {
        width: 90%;
    }
    
    h1 {
        font-size: 28px;
    }

    ul li a {
        font-size: 16px;
        padding: 8px 15px;
    }
}
/* Styling for the Student Registration form */
.student-registration-title {
    text-align: center;
    font-size: 24px;
    color: #007bff;
    margin-bottom: 20px;
}

.student-registration {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.student-registration label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.student-registration input[type="text"],
.student-registration input[type="date"],
.student-registration textarea {
    width: 100%;
    padding: 5px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.student-registration textarea {
    resize: vertical;
    height: 10px;
}

.student-registration input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.student-registration input[type="submit"]:hover {
    background-color: #0056b3;
}
/* Styling for the E-Library */
.library-title {
    text-align: center;
    font-size: 32px;
    color: green;
    margin-bottom: 20px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.library-item {
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.library-item:hover {
    transform: scale(1.05);
}

.library-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.library-item h3 {
    font-size: 18px;
    color: #007bff;
    margin: 0;
    text-transform: capitalize;
}

.library-item a {
    text-decoration: none;
    color: inherit;
}
