/* Global Styles */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f7f7f7;
    text-align: justify;
}

a {
    font-weight: bold;
    text-decoration: none;
}

/* Header Styles */
header {
    background: #004080;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ffcc33;
    text-transform: uppercase;
}

.nav-link {
    color: #fff;
    transition: background 0.3s, color 0.3s;
}

.nav-link:hover {
    background: #ffcc33;
    color: #004080;
    border-radius: 5px;
}

.navbar-toggler {
    border: 1px solid #ffcc33;
    background-color: #ffcc33;
    color: #004080;
}

/* Button Styles */
.btn-college-home,
.btn-admin-login {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn-college-home {
    background: #ffcc33;
    color: #004080;
}

.btn-college-home:hover {
    background: #004080;
    color: #ffcc33;
}

.btn-admin-login {
    background: transparent;
    color: #ffcc33;
    border: 1px solid #ffcc33;
}

.btn-admin-login:hover {
    background: #ffcc33;
    color: #004080;
}

/* Hero Section Styles */
.hero,
.hero-section {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    background-image: url('../images/hero-1.jpeg'); /* Added background image */
}

.hero::before,
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content,
.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero .btn,
.hero-section .btn {
    background: #ffcc33;
    color: #004080;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.hero .btn:hover,
.hero-section .btn:hover {
    background: #004080;
    color: #ffcc33;
}

/* Footer Styles */
footer {
    background: #004080;
    color: #fff;
    text-align: center;
    padding: 1.5em 0;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: #ffcc33;
    border-color: #ffcc33;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .logo {
        font-size: 1.75rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.5rem;
    }

    .btn-college-home,
    .btn-admin-login {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Separator with Icon */
.separator-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator-with-icon .line {
    border: 3px solid;
    height: 3px;
    background: linear-gradient(to right, #FF5733, #33FF57, #3357FF);
    width: 80%;
}

.separator-with-icon .icon {
    position: absolute;
    color: #004080;
    background: white;
    padding: 0 10px;
    font-size: 32px;
    z-index: 1;
}

/* Carousel Caption */
.carousel-caption h5 {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 5px;
}

@media (max-width: 767px) {
    .carousel-caption h5 {
        font-size: 1rem;
    }
}

/* Make images equal size */
.equal-img {
    height: 300px; /* Set your desired height */
    object-fit: contain; /* Makes the image fit the space without cropping */
    width: 100%;
}

/* Style the download buttons consistently */
.download-btn {
    width: 80%; /* Ensures buttons are of equal width */
    margin: 0 auto; /* Centers the buttons */
}
    
    .news-logo {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* Adjust based on your design */
}
.news-logo img {
    width: 100%; /* Ensures responsiveness */
    max-width: 150px; /* Adjust the maximum width */
    height: auto; /* Keeps the aspect ratio */
    display: block; /* Removes extra spacing */
    margin: 0 auto; /* Centers the image */
}

.librarian-details {
    text-align: center;
    background: linear-gradient(to right, #f0f8ff, #e6f7ff); /* Light blue gradient */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 90%;
}

.librarian-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.librarian-icon i {
    font-size: 80px;
    color: #007bff;
    margin-bottom: 10px;
}

.librarian-text {
    margin-top: 10px;
}

.librarian-text h3 {
    margin: 5px 0;
    color: #333;
    font-size: 20px;
}

.librarian-text p {
    margin: 3px 0;
    color: #555;
    font-size: 14px;
}

.librarian-efforts {
    margin-top: 15px;
    font-style: italic;
    color: #4b4b4b;
    font-size: 15px;
}

.library-timings-rules {
    background-color: #f7f7f7;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 8px auto;
    max-width: 96%;
}

.library-content {
    display: grid;
    grid-template-columns: 40% 60%; /* Timing card takes 40%, rules card takes 60% */
    gap: 20px;
    padding-top: 12px;
}

.timings, .rules {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure full width within the grid */
}

.timings {
    display: flex;
    flex-direction: column; /* Stack the content vertically */
    align-items: center; /* Horizontally center the cards */
    text-align: center;
}

.timing-card {
    margin-top: 10px;
    display: flex;
    flex-direction: column; /* Stack the children vertically */
    gap: 20px; /* Add space between the items */
    justify-content: flex-start; /* Align items at the top */
    align-items: center; /* Center align the items horizontally */
}

.library-box {
    background-color: #007bff;
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 100%; /* Full width for the library box */
    text-align: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.library-box i {
    font-size: 60px;
    margin-bottom: 10px;
}

.library-box p {
    margin: 5px 0;
}

.rules-list ul {
    list-style-type: none;
    padding-left: 0;
    color: #555;
}

.rules-list li {
    margin-bottom: 12px;
    font-size: 14px;
}

.rules-list li::before {
    content: "✔️";
    margin-right: 8px;
    color: #007bff;
}

@media (max-width: 768px) {
    .library-content {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        align-items: center;
    }

    .timings, .rules {
        width: 100%; /* Full width on smaller screens */
    }

    .timing-card {
        align-items: center;
    }

    .library-box {
        width: 100%; /* Ensure it takes full width on smaller screens */
        margin-bottom: 15px;
    }
}






