
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}
body, html {
    width: 100%;
    overflow-x: hidden; 
    font-family: 'Poppins', 'Montserrat', sans-serif;
}
.banner{
    background-color: #011F59 !important;
}
.navbar-toggler {
    border-color: white; 
}

.navbar-toggler-icon {
    filter: invert(1); 
}
.container {
    max-width: 800px;
    margin: 60px auto;
    padding: 2rem;
}

h1 {
    color: #011F59;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.book-item {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #011F59;
}

.book-details {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #011F59;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: gold;
    text-decoration: underline;
}

.no-books {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* Donate Book Page Styles */
#donated-books {
    margin-top: 20px;
    text-align: left;
    width: 100%;
}
.donate-book-section {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0;
    border: 1px solid rgb(214, 214, 214);
    border-radius: 12px;
    overflow: hidden;
}

/* Image container */
.donate-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.donate-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Form container */
.donate-form-container {
    background-color: white;
    padding: 1rem;
    width: 100%;
    height: 100%; /* Ensure same height as image */
    display: flex;
    flex-direction: column;
}

.donate-form-container h1 {
    color: #011F59;
    text-align: center;
    margin-bottom: 1.25rem; 
    font-size: 1.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Form styling */
#donation-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem; 
    margin-bottom: 1rem;
    flex: 1;
}

#donation-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem; 
    font-size: 0.95rem;
}

#donation-form input {
    width: 90%;
    padding: 0.625rem; 
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem; 
    transition: border-color 0.3s, box-shadow 0.3s;
}

#donation-form button {
    background-color: #011F59;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem; 
    font-size: 0.95rem; 
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 0.5rem;
    align-self: center;
}

#donation-form button:hover {
    background-color: #001540;
    transform: translateY(-2px);
}

#donation-form button:active {
    transform: translateY(0);
}
/* View donated books link */
.donate-form-container a {
    display: block;
    text-align: center;
    color: #011F59;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem;
    transition: color 0.3s;
    margin-top: auto; 
    font-size: 0.95rem; 
}

.donate-form-container a:hover {
    color: gold;
    text-decoration: underline;
}
/* Footer Styles */
footer {
    background-color: #011F59 !important;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 32px;

}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.footer-heading {
    position: relative;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: gold;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-list li i {
    margin-right: 0.5rem;
    width: 16px;
    color: gold;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.social-links i {
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .donate-book-section {
        flex-direction: row;
        height: 550px; 
    }
    
    .donate-image-container {
        flex: 1;
    }
    
    .donate-form-container {
        flex: 1;
        overflow-y: hidden; 
    }
   
}

@media (max-width: 767px) {
    .donate-book-section {
        border-radius: 0;
    }
    
    .donate-form-container {
        padding: 1.5rem;
    }
    
    .donate-form-container h1 {
        font-size: 1.5rem;
    }
    
    #donation-form {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .donate-form-container {
        padding: 1.25rem;
    }
    
    .donate-form-container h1 {
        font-size: 1.4rem;
    }
    
    #donation-form button {
        width: 100%;
    }
}