/* Professional Footer Styles - Clean White & Blue Theme */
.site-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    margin-top: 0;
    position: relative;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #007bff 50%, transparent 100%);
}

.footer-content {
    padding: 50px 0 30px;
    position: relative;
}

.footer-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.02);
}

.footer-logo-img {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0);
    transition: all 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0);
}

.footer-logo h5 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: -0.3px;
}

/* Footer Description */
.footer-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* Section Headings */
.footer-section h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 1px;
}

/* Contact Info */
.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 0;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.contact-item:hover {
    transform: translateX(3px);
    background: rgba(0, 123, 255, 0.05);
    padding-left: 8px;
}

.contact-item i {
    color: #007bff;
    width: 16px;
    margin-right: 10px;
    font-size: 0.85rem;
}

.contact-item span {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
    display: inline-block;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #007bff;
    transform: translateX(2px);
    background: rgba(0, 123, 255, 0.05);
    padding-left: 6px;
    padding-right: 6px;
}

/* Library Hours */
.library-hours {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item span:first-child {
    color: #495057;
    font-weight: 500;
}

.hours-item span:last-child {
    color: #007bff;
    font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
    margin-bottom: 20px;
}

.newsletter-section p {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.newsletter-form .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: 1px solid #e9ecef;
    padding: 10px 12px;
    font-size: 0.85rem;
    border-right: none;
    background: #ffffff;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: #007bff;
    background: #ffffff;
}

.newsletter-form .btn {
    border: 1px solid #007bff;
    padding: 10px 14px;
    border-left: none;
    background: #007bff;
    color: white;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: scale(1.05);
}

/* Social Media */
.social-media {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.social-link.facebook {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
}

.social-link.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #0099cc);
}

.social-link.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #1991db);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        padding: 35px 0 25px;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .footer-logo {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .footer-logo-img {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .footer-description,
    .contact-info {
        text-align: center;
    }
    
    .social-media {
        justify-content: center;
    }
    
    .footer-nav {
        justify-content: center;
        gap: 12px;
    }
    
    .hours-item {
        font-size: 0.8rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding: 25px 0 20px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 6px !important;
        border: 1px solid #e9ecef !important;
    }
    
    .newsletter-form .btn {
        margin-top: 8px;
    }
    
    .footer-nav {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .social-media {
        margin-top: 15px;
    }
}

/* Animation for footer elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.5s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.15s; }
.footer-section:nth-child(3) { animation-delay: 0.2s; }
.footer-section:nth-child(4) { animation-delay: 0.25s; }

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23007bff" opacity="0.02"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

/* Main Footer Content */
.footer-content {
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-section h5 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    letter-spacing: 0.5px;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 1px;
}

.footer-section p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 0;
    border-radius: 4px;
}

.footer-links a i {
    margin-right: 10px;
    width: 16px;
    color: #007bff;
    transition: all 0.3s ease;
    font-size: 13px;
}

.footer-links a:hover {
    color: #007bff;
    padding-left: 8px;
    background: rgba(0, 123, 255, 0.05);
    transform: translateX(4px);
}

.footer-links a:hover i {
    transform: scale(1.2);
}

/* The rest of the footer CSS content - truncating for brevity */

/* Fix footer collision with main content */
body {
    padding-bottom: 0;
}

main {
    margin-bottom: 0;
}

.site-footer {
    clear: both;
    width: 100%;
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease;
}
